/* gretajbradman.com — v1 draft
   Palette drawn from the What Matters to You cover: deep navy, warm gold, cream paper. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF7EF;
  --paper-deep: #F4EDDE;
  --ink: #1D2138;
  --navy: #101430;
  --navy-2: #181D40;
  --gold: #BE9D54;
  --gold-bright: #DCBE7E;
  --gold-soft: rgba(190, 157, 84, 0.35);
  --muted: #5F6379;
  --line: rgba(29, 33, 56, 0.14);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --soft: "SOFT" 60, "WONK" 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variation-settings: var(--soft);
  font-weight: 540;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head { padding: 26px 0 22px; }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--serif);
  font-variation-settings: var(--soft);
  font-size: 1.5rem;
  font-weight: 580;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--gold); }
nav.main { display: flex; gap: 26px; flex-wrap: wrap; }
nav.main a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
nav.main a:hover { color: var(--ink); }
nav.main a.here { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 17ch;
  margin-bottom: 34px;
}
.hero .lede { max-width: 62ch; font-size: 1.1rem; color: var(--ink); }
.hero .lede p + p { margin-top: 1.1em; }
.hero .lede em { font-family: var(--serif); }
.constellation {
  position: absolute; right: -60px; top: -40px; width: 560px; max-width: 65vw;
  opacity: 0.5; pointer-events: none;
}

/* ---------- area cards ---------- */
.areas { padding: 10px 0 90px; }
.areas .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 680px) { .areas .grid { grid-template-columns: 1fr; } }
.card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px 26px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(16, 20, 48, 0.09); border-color: var(--gold-soft); }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card .go { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

/* ---------- bands ---------- */
.band { background: var(--navy); color: #F4EFE3; position: relative; overflow: hidden; }
.band .wrap { position: relative; z-index: 1; padding-top: 78px; padding-bottom: 82px; }
.band h2 { color: #FBF7EF; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; margin-bottom: 18px; }
.band p { max-width: 58ch; color: rgba(244, 239, 227, 0.82); }
.band .constellation { opacity: 0.8; right: -30px; top: auto; bottom: -80px; }
.band .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  padding: 12px 26px; border-radius: 999px;
  transition: transform .15s ease, background .18s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(244,239,227,0.4); color: #F4EFE3; }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-navy { background: var(--navy); color: #FBF7EF; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.band .small-note { font-size: 0.85rem; color: rgba(244,239,227,0.6); margin-top: 16px; }

/* ---------- section headings ---------- */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head a { font-size: 0.95rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.kicker { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }

/* ---------- writing list ---------- */
.post-list { display: grid; gap: 0; }
.post-row {
  display: block; text-decoration: none;
  padding: 26px 6px;
  border-top: 1px solid var(--line);
  transition: background .15s;
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row:hover { background: rgba(190, 157, 84, 0.06); }
.post-row .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.post-row h3 { font-size: 1.35rem; max-width: 32ch; }
.post-row .go { color: var(--gold); font-size: 0.9rem; font-weight: 600; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 20ch; margin-bottom: 16px; }
.page-hero .sub { max-width: 60ch; color: var(--muted); font-size: 1.06rem; }

/* ---------- wellbeing / feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .art { border-radius: 16px; overflow: hidden; }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.feature p { color: var(--ink); max-width: 52ch; }
.feature p.dim { color: var(--muted); }
.feature .actions { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.feature .art.book { display: flex; justify-content: center; background: var(--navy); padding: 44px; }
.feature .art.book img { width: 240px; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.feature .art.night {
  background: radial-gradient(120% 120% at 20% 15%, #232a55 0%, #131735 55%, #0b0e23 100%);
  min-height: 300px; position: relative;
}
.feature .art.calm {
  background: linear-gradient(150deg, #F4EDDE 0%, #EFE4CC 100%);
  min-height: 300px; position: relative;
}
.feature .art svg.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature .art.night, .feature .art.calm { min-height: 200px; }
  .feature .art { order: -1; }
}

/* ---------- article ---------- */
article.post { padding: 56px 0 40px; }
article.post .meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
article.post h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 20px; line-height: 1.16; }
article.post .rule { width: 64px; height: 3px; background: var(--gold); border-radius: 2px; margin: 26px 0 40px; }
.prose {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 13;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #23273e;
}
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3 {
  font-family: var(--serif);
  margin: 1.7em 0 0.65em;
  font-size: 1.45rem;
}
.prose ul, .prose ol { margin: 0 0 1.25em 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose strong { font-weight: 640; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--muted); font-style: italic; margin: 0 0 1.25em; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 34px 0 70px; flex-wrap: wrap; }
.post-nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; max-width: 42%; }
.post-nav a:hover { color: var(--ink); }
.post-nav .lbl { display: block; color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- signup ---------- */
.signup { background: var(--paper-deep); }
.signup .wrap { padding: 70px 24px 76px; text-align: center; }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.signup p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.signup form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input[type=email] {
  font: inherit; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fffdf7; min-width: 280px;
  outline: none;
}
.signup input[type=email]:focus { border-color: var(--gold); }
.signup .form-note { font-size: 0.85rem; margin-top: 14px; color: var(--gold); display: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 30px 0 80px; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: rgba(244, 239, 227, 0.75); }
.site-foot .wrap { padding: 54px 24px 44px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-mark { font-family: var(--serif); font-variation-settings: var(--soft); font-size: 1.3rem; color: #FBF7EF; text-decoration: none; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { color: rgba(244,239,227,0.75); text-decoration: none; font-size: 0.92rem; }
.foot-nav a:hover { color: var(--gold-bright); }
.socials { display: flex; gap: 16px; }
.socials a { color: rgba(244,239,227,0.75); transition: color .15s; }
.socials a:hover { color: var(--gold-bright); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.foot-base { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(244,239,227,0.14); font-size: 0.85rem; color: rgba(244,239,227,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 60px; }
  .section { padding: 60px 0; }
  nav.main { gap: 18px; }
}
