/* Tryst blog — "a quiet hand on the shoulder of someone about to be brave."
   Prose held by hairlines, not a grid of cards. Built to Jony Ive's direction:
   narrow reading channel, Instrument Serif for gestures only, coral rationed,
   candle as heartbeat (hero + close), motion only on section openings. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --coral: #FF3B5C;
  --coral-glow: #FF6079;
  --black: #0a0708;
  --card: #141012;
  --card-border: rgba(255,255,255,0.09);
  --warm-white: #F5EFEF;
  --text-secondary: #C7BCBE;
  --text-tertiary: #8E8186;
  --glass-border: rgba(255,255,255,0.09);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --measure: 660px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.78;
  color: var(--warm-white);
  background: var(--black);
  overflow-x: hidden;
}
::selection { background: var(--coral); color: #FBF6EF; }
a { color: inherit; text-decoration: none; }

/* Faint warmth through a doorway — behind the hero candle only, never body. */
.page-glow {
  position: fixed; top: -10%; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,59,92,0.10) 0%, rgba(255,59,92,0.05) 45%, transparent 70%);
  border-radius: 50%;
}

.wrap { position: relative; z-index: 2; max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 940px; }

/* Header — minimal, just wordmark + a quiet download */
.blog-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 940px; margin: 0 auto; padding: 24px;
}
.wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 26px; color: var(--warm-white); letter-spacing: -0.02em;
}
.header-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--coral); padding: 8px 18px;
  border: 1.5px solid rgba(255,59,92,0.4); border-radius: 100px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.header-cta:hover { background: var(--coral); color: #FBF6EF; transform: translateY(-1px); }

/* The candle — the blog's heartbeat. Hero + close only. */
.candle { font-size: 34px; display: block; text-align: center; margin: 0 auto 22px; animation: flicker 3s ease-in-out infinite; }
@keyframes flicker {
  0%,100% { transform: scale(1); opacity: 1; }
  25% { transform: scale(1.02) rotate(0.5deg); opacity: 0.95; }
  75% { transform: scale(1.01) rotate(-0.3deg); opacity: 0.97; }
}

/* Hairline divider — does the heavy lifting; the editorial spine. */
.hr { border: 0; border-top: 1px solid var(--glass-border); margin: 56px auto; max-width: var(--measure); }
.hr-tight { margin: 36px auto; }

/* Hero of an article / index — fully centered, one shared spine.
   Vertical rhythm on an 8px base: 64 (top) · 16 · 20 · 40 · 48. */
.hero { text-align: center; padding: 64px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.08;
  color: var(--warm-white); letter-spacing: -0.02em; margin: 0 auto 0;
  max-width: 18ch;       /* balanced wrap so it reads centered, not left-shifted */
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--coral-glow); }
.reassure { font-size: 1.05rem; color: var(--text-secondary); max-width: 30ch; margin: 0 auto; line-height: 1.6; }
.meta-line { font-size: 13px; color: var(--text-tertiary); margin-top: 22px; letter-spacing: 0.03em; }
/* Center the inline meta row (DATING · date · read · byline) under the title.
   20px top margin = title and meta read as one unit. */
.hero .post-meta { justify-content: center; margin-top: 20px; }

/* Hero photo — constrained to the TEXT measure so every left/right edge on the
   page shares one spine (title, meta, body, image all agree). 3/2 gives it real
   vertical presence instead of a thin letterbox. 40px of breath above it. */
.hero-photo {
  position: relative; z-index: 2;
  width: min(660px, 92vw);   /* == --measure: the article's spine */
  margin: 40px auto 0;
  aspect-ratio: 3 / 2;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-border);
  background: radial-gradient(120% 120% at 65% 20%, #2a1018, #0c0809);
  box-shadow: 0 30px 70px -36px rgba(0,0,0,0.8);
}
/* Lift the crop's center of mass up toward the subject (corrects bottom-heavy weight). */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,7,8,0.35), transparent 55%); }
/* The hr after the hero photo: 48px, mirroring the rhythm above. */
.hero-photo + .hr { margin-top: 48px; }

/* In-article figure — aligned to the same spine as the hero + text column. */
.figure {
  width: min(660px, 92vw);
  margin: 40px auto 44px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 16 / 9; position: relative;
  background: radial-gradient(120% 120% at 60% 25%, #241016, #0c0809);
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 12px;
  font-family: var(--font-body); font-size: 12.5px; color: var(--text-secondary);
  background: linear-gradient(to top, rgba(10,7,8,0.85), transparent);
}

/* Article prose */
.prose { padding: 8px 0 0; }
.prose p { margin: 0 0 26px; }
.prose .lede { font-size: 1.18rem; color: var(--warm-white); line-height: 1.6; }
.section-sub {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 1.05rem; color: var(--coral-glow); margin: 0 0 6px; letter-spacing: 0.01em; opacity: 0.85;
}

/* An idea — prose, not a card. Name in serif, warm body, one quiet metric line. */
.idea { margin: 0 0 40px; }
.idea h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.65rem;
  color: var(--warm-white); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 10px;
}
.idea p { margin: 0 0 12px; }
.idea .vitals {
  font-size: 13px; color: var(--text-secondary); letter-spacing: 0.02em;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.idea .vitals b { color: var(--text-secondary); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 5px; }

/* The connective italic line between chapters */
.bridge { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--text-secondary); text-align: center; max-width: 34ch; margin: 0 auto; line-height: 1.4; }

/* The quiet Tryst seam — finishing the article's own thought, not an ad break */
.seam {
  border-left: 2px solid var(--coral); padding: 4px 0 4px 22px; margin: 8px 0 36px;
  font-size: 1.1rem; color: var(--warm-white); line-height: 1.6;
}
.seam a { color: var(--coral); border-bottom: 1px solid rgba(255,59,92,0.35); }

/* Close — candle, one line, one calm button */
.close { text-align: center; padding: 24px 0 8px; }
.close p { color: var(--text-secondary); max-width: 32ch; margin: 0 auto 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 34px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--coral); color: #FBF6EF;
  box-shadow: 0 4px 28px rgba(255,59,92,0.28);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 44px rgba(255,59,92,0.4); }

/* Email capture — a promise of restraint, never a pop-up */
.capture { text-align: center; padding: 8px 0; }
.capture .label { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--warm-white); margin-bottom: 6px; }
.capture .sub { font-size: 13px; color: var(--text-tertiary); margin-bottom: 18px; }
.capture form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.capture input {
  flex: 1; background: var(--card); border: 1px solid var(--card-border); color: var(--warm-white);
  padding: 13px 16px; border-radius: 100px; font: inherit; font-size: 15px;
}
.capture input:focus { outline: none; border-color: rgba(255,59,92,0.5); }
.capture button {
  background: var(--warm-white); color: var(--black); border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 100px;
  transition: transform 0.2s;
}
.capture button:hover { transform: translateY(-1px); }
.capture .fs-msg { font-size: 15px; color: var(--warm-white); margin-top: 6px; line-height: 1.5; }

/* INDEX cards — organized by the reader's fear, not our topics. Cards for choosing. */
.welcome { text-align: center; padding: 12px 0 8px; }
.welcome .line { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--warm-white); max-width: 22ch; margin: 0 auto; line-height: 1.3; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px auto 0; }
.fear-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 30px 26px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
}
.fear-card:hover { transform: translateY(-3px); border-color: rgba(255,59,92,0.25); }
.fear-card .feeling { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--warm-white); line-height: 1.25; margin-bottom: 10px; }
.fear-card .feeling em { font-style: italic; color: var(--coral-glow); }
.fear-card .topic { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.fear-card .blurb { font-size: 14.5px; color: var(--text-secondary); margin-top: 12px; line-height: 1.55; }

/* Footer */
.blog-footer { border-top: 1px solid var(--glass-border); padding: 40px 24px 36px; text-align: center; margin-top: 64px; position: relative; z-index: 2; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--text-secondary); opacity: 0.5; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--text-secondary); opacity: 0.55; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--warm-white); }
.footer-social { font-size: 13px; color: var(--text-tertiary); }
.footer-copy { font-size: 11px; color: rgba(142,142,147,0.3); }

/* Motion only on section openings, gentle */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .candle { animation: none; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .capture form { flex-direction: column; }
  .hr { margin: 44px auto; }
}
