/* Night Letters, approved design */
:root {
  --bg: #0d0a0b;
  --bg2: #141011;
  --ink: #f1e7e0;
  --ink2: #cbbdb4;
  --muted: #8f817b;
  --line: #2a2122;
  --wine: #8e2234;
  --wine2: #b23a4c;
  --rose: #dba491;
  --d: "Cormorant Garamond", Georgia, serif;
  --t: "Newsreader", Georgia, serif;
  --g: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--t); font-weight: 300; font-size: 20px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--wine); color: #fff; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--g); z-index: 20; }
.top.overlay { position: absolute; top: 0; left: 0; right: 0; }
.top.solid { position: relative; background: var(--bg); }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 400; font-size: 12px; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; color: var(--ink2); padding: 4px 0 6px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-color: var(--rose); }
.nav .nav-write { color: var(--rose); }
.top.overlay .nav a { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.burger { display: none; width: 40px; height: 40px; margin-right: -8px; align-items: center; justify-content: center; color: var(--ink); }
.burger path { stroke: currentColor; stroke-width: 1.4; transition: transform .3s, opacity .3s; transform-origin: 12px 12px; }
.top.open .b1 { transform: translateY(5px) rotate(45deg); }
.top.open .b2 { opacity: 0; }
.top.open .b3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons and small labels ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border: 1px solid rgba(219, 164, 145, .7); border-radius: 99px; font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: rgba(13, 10, 11, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .3s, color .3s; }
.btn:hover { background: var(--rose); color: var(--bg); }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 10px; color: var(--rose); font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(219, 164, 145, .4); padding-bottom: 5px; transition: border-color .3s; }
.more:hover { border-color: var(--rose); }
.more svg { transition: transform .3s; }
.more.up svg { transform: rotate(180deg); }
.meta { font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.meta b { color: var(--wine2); font-weight: 400; margin: 0 10px; font-size: 10px; vertical-align: 1px; }
.eyebrow { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); margin: 0 0 22px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 60px; height: 1px; background: var(--wine2); }
.sub { font-style: italic; color: var(--ink2); margin: 0; }
.empty { text-align: center; color: var(--muted); font-style: italic; margin: 40px var(--g) 0; }

/* ---------- home: photo ---------- */
.hero { position: relative; height: 86vh; height: 86svh; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 10, 11, .75), rgba(13, 10, 11, .1) 25%, rgba(13, 10, 11, .15) 60%, var(--bg)); }
.hero-in { position: relative; z-index: 1; max-width: 960px; padding: 0 var(--g); }
.hero h1 { font-family: var(--d); font-style: italic; font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 1.04; margin: 0; color: #f8eee7; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); text-wrap: balance; animation: rise 1.6s .15s cubic-bezier(.2, .7, .2, 1) both; }
.by { margin: 26px 0 0; font-size: 13px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--rose); animation: rise 1.6s .35s cubic-bezier(.2, .7, .2, 1) both; }
.hero .btn { margin-top: 40px; animation: rise 1.6s .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes drift { from { transform: scale(1.1); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- home: introduction ---------- */
.intro { max-width: 760px; margin: 40px auto 0; padding: 0 var(--g); box-sizing: content-box; text-align: center; }
.intro .lead { font-family: var(--d); font-style: italic; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25; color: #f7ede6; margin: 0 0 28px; text-wrap: balance; }
.intro-rest { position: relative; text-align: left; max-height: 8.6em; overflow: hidden; transition: max-height .9s ease; }
.intro-rest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(transparent, var(--bg)); transition: opacity .5s; pointer-events: none; }
.intro-rest.open { max-height: 400em; }
.intro-rest.open::after { opacity: 0; }
.intro-rest p { margin: 0 0 1.4em; color: #e6dbd4; }
.intro-rest .mf-beat { display: flex; align-items: center; justify-content: center; gap: 24px; font-family: var(--d); font-style: italic; font-size: clamp(34px, 4.2vw, 50px); line-height: 1; color: var(--rose); margin: 1.4em 0; }
.intro-rest .mf-beat::before, .intro-rest .mf-beat::after { content: ""; height: 1px; flex: 0 1 100px; background: linear-gradient(90deg, transparent, var(--wine2)); }
.intro-rest .mf-beat::after { background: linear-gradient(90deg, var(--wine2), transparent); }
.intro-rest .mf-close { font-family: var(--d); font-style: italic; font-size: clamp(27px, 3.1vw, 36px); line-height: 1.3; color: var(--rose); text-align: center; margin: 1.8em 0 .6em; text-wrap: balance; }
.intro .more { margin-top: 18px; }

/* ---------- section heading and cards ---------- */
.latest { margin-top: 120px; }
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 var(--g) 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec h2 { font-family: var(--d); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; margin: 0; }
.sec a { color: var(--rose); font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0 var(--g); }
.ph { overflow: hidden; border-radius: 2px; background: linear-gradient(135deg, #1e1517, #120d0e); }
.ph > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
a:hover .ph > img { transform: scale(1.04); }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; }
.ph-empty img { width: 26%; max-width: 110px; opacity: .55; }
.card .ph { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.card h3 { font-family: var(--d); font-weight: 500; font-size: 32px; line-height: 1.08; margin: 0 0 8px; transition: color .3s; }
.card:hover h3 { color: var(--rose); }
.card .sub { font-size: 18px; }

/* ---------- the letters page ---------- */
.page-head { text-align: center; padding: 90px var(--g) 60px; }
.page-head h1 { font-family: var(--d); font-style: italic; font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 1; margin: 0; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; margin: 0 var(--g) 90px; }
.feature .ph { aspect-ratio: 16 / 11; }
.feature h2 { font-family: var(--d); font-weight: 500; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; margin: 0 0 18px; }
.feature .sub { font-size: 22px; }
.feature .more { margin-top: 30px; }
.rows { margin: 0 var(--g); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 70px 220px 1fr auto; gap: 36px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row .n { font-family: var(--d); font-style: italic; font-size: 34px; color: var(--wine2); }
.row .ph { aspect-ratio: 3 / 2; }
.row h3 { font-family: var(--d); font-weight: 500; font-size: 36px; line-height: 1.05; margin: 0 0 6px; transition: color .3s; }
.row:hover h3 { color: var(--rose); }
.row .sub { font-size: 18px; }
.row .go { color: var(--rose); transition: transform .3s; }
.row:hover .go { transform: translateX(5px); }

/* ---------- story ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--rose)); transform-origin: 0 50%; transform: scaleX(0); }
.draft-bar { position: relative; z-index: 70; text-align: center; background: var(--wine); color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px; }
.cover { position: relative; height: 88vh; height: 88svh; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; text-align: center; overflow: hidden; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 10, 11, .6), rgba(13, 10, 11, .1) 35%, rgba(13, 10, 11, .75) 75%, var(--bg)); }
.cover .in { position: relative; z-index: 1; max-width: 900px; padding: 0 var(--g) 80px; }
.cover h1, .plain-head h1 { font-family: var(--d); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .98; margin: 0; text-wrap: balance; }
.cover .sub, .plain-head .sub { font-size: clamp(20px, 2.2vw, 24px); margin-top: 20px; text-wrap: balance; }
.plain-head { text-align: center; max-width: 900px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) var(--g) 0; }

.prose { max-width: 680px; margin: 70px auto 0; padding: 0 var(--g); box-sizing: content-box; }
.prose p { margin: 0 0 1.4em; color: #ebe1da; }
.prose > p:first-child::first-letter { font-family: var(--d); font-style: italic; font-size: 5.2em; line-height: .78; float: left; padding: .06em .1em 0 0; color: var(--rose); }
.prose strong { font-weight: 400; color: #fff; }
.prose em { color: var(--ink2); }
.prose h2 { font-family: var(--d); font-weight: 500; font-style: italic; font-size: 38px; line-height: 1.15; margin: 2em 0 .7em; color: var(--rose); }
.prose blockquote { margin: 1.8em 0; padding-left: 28px; border-left: 1px solid var(--wine2); font-family: var(--d); font-style: italic; font-size: clamp(27px, 3.3vw, 34px); line-height: 1.3; color: var(--ink); }
.prose hr.break { border: 0; height: 12px; margin: 3em 0; background: center / 60px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cg fill='%23b23a4c'%3E%3Ccircle cx='10' cy='6' r='1.6'/%3E%3Ccircle cx='30' cy='6' r='1.6'/%3E%3Ccircle cx='50' cy='6' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
.prose > figure { margin: 2.6em calc(-1 * min(14vw, 140px)); }
.prose figure img { width: 100%; height: auto; border-radius: 2px; }
.prose figcaption { font-size: 15px; font-style: italic; color: var(--muted); text-align: center; margin-top: 12px; }
.gallery { display: grid; gap: 10px; margin: 2.6em calc(-1 * min(14vw, 140px)); }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; }
.gallery figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.end { color: var(--wine2); display: flex; justify-content: center; margin-top: 3em; }

.signature { margin: 3.2em 0 0; text-align: right; }
.prose .signature p { margin: 0; }
.prose .sig-line { font-family: var(--d); font-style: italic; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.3; color: var(--ink2); }
.prose .sig-name { font-family: var(--d); font-style: italic; font-weight: 500; font-size: clamp(34px, 4.4vw, 46px); line-height: 1.1; color: var(--rose); margin-top: .2em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 100px auto 0; padding: 0 var(--g); }
.pg { border-top: 1px solid var(--line); padding-top: 20px; transition: border-color .3s; }
.pg:hover { border-color: var(--rose); }
.pg span { display: block; font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pg strong { font-family: var(--d); font-weight: 500; font-size: 28px; line-height: 1.15; }
.pg.next { text-align: right; grid-column: 2; }

/* ---------- every word is true ---------- */
.truth-seal { width: 110px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.prose.truth > p:first-child::first-letter { font: inherit; float: none; padding: 0; color: inherit; }
.prose.truth > p:nth-child(-n+2) { font-family: var(--d); font-style: italic; font-size: clamp(27px, 3.2vw, 34px); line-height: 1.3; color: #f6ece4; margin-bottom: .5em; }
.prose.truth > p:nth-child(2) { color: var(--rose); margin-bottom: 1.6em; }

/* ---------- entry page ---------- */
.gate-bg { position: absolute; inset: 0; z-index: 0; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; }
.gate-bg::after { content: ""; position: absolute; inset: 0; background: rgba(13, 10, 11, .45); }
.gated { overflow: hidden; }
.gate-overlay { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--bg); }
.gate { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: 24px; }
.gate-card { max-width: 480px; text-align: center; background: rgba(13, 10, 11, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .07); border-radius: 4px; padding: clamp(32px, 6vw, 56px) clamp(22px, 5vw, 48px); }
.gate-logo { margin: 0 auto 30px; width: min(280px, 70vw); line-height: 0; }
.gate-logo img { width: 100%; height: auto; }
.gate-text { color: var(--ink2); margin: 0 0 32px; font-size: 19px; }
.gate-leave { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---------- footer and 404 ---------- */
.foot { margin-top: 130px; border-top: 1px solid var(--line); padding: 40px var(--g); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .logo img { height: 34px; }
.foot .nav { gap: 28px; }
.foot .nav a { font-size: 11px; border: 0; }
.foot small { color: var(--muted); font-size: 13px; }
.nf { text-align: center; padding: 16vh var(--g) 0; }
.nf h1 { font-family: var(--d); font-style: italic; font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 0 0 30px; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:nth-child(3) { display: none; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .row { grid-template-columns: 50px 160px 1fr; gap: 24px; }
  .row .go { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .top { padding: 18px var(--g); }
  .logo img { height: 34px; }
  .burger { display: inline-flex; position: relative; z-index: 31; }
  .top .nav { position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; gap: 30px; background: rgba(13, 10, 11, .97); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .top .nav a { font-family: var(--d); font-style: italic; font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .top.open .nav { opacity: 1; visibility: visible; }
  .top .logo { position: relative; z-index: 31; }
  body.menu-open { overflow: hidden; }

  .hero { height: 680px; min-height: 0; }
  .eyebrow { font-size: 11px; letter-spacing: .22em; white-space: nowrap; }
  .eyebrow::before, .eyebrow::after { width: 28px; }
  .latest { margin-top: 90px; }
  .sec h2 { font-size: 34px; white-space: nowrap; }
  .sec a { font-size: 11px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(3) { display: block; }
  .card .ph { aspect-ratio: 3 / 2; }
  .page-head { padding: 60px var(--g) 40px; }
  .feature { margin-bottom: 60px; }
  .row { grid-template-columns: 110px 1fr; gap: 18px; padding: 22px 0; }
  .row .n { display: none; }
  .row h3 { font-size: 26px; }
  .row .sub { font-size: 16px; }
  .row .meta { font-size: 10px; letter-spacing: .16em; }
  .row .meta b { margin: 0 6px; }
  .prose > figure, .gallery { margin-left: calc(-1 * var(--g)); margin-right: calc(-1 * var(--g)); }
  .gallery.g3 { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pg.next { grid-column: 1; text-align: left; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot .nav { flex-wrap: wrap; gap: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
