/* Her Frontier brand, lifted from the canonical source:
   ~/Projects/Her-Frontier/web/src/app/globals.css (15 Jul 2026).
   One role-based token set, two worlds. If the live file changes, re-lift.
   Do not hardcode a hex that a token covers or one theme will break. */

:root {
  /* Metallic Teal Glass — light */
  --deep-teal: #0d4d56;        /* headings / ink */
  --structural-teal: #147a7e;  /* links, accents */
  --living-turquoise: #36b6b4; /* highlights */
  --open-mint: #8fd9d6;
  --warm-cream: #f3e9d6;
  --signal-gold: #d4af37;      /* the ONE accent */
  --gold-deep: #9a7c25;        /* legible gold for TEXT on light */
  --ink-soft: #16545d;         /* body text */
  --background: #ffffff;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --glass-bg: linear-gradient(145deg, rgba(255,255,255,.78), rgba(243,233,214,.42));
  --glass-border: rgba(20,122,126,.16);
  --glass-shadow: 0 18px 44px rgba(13,77,86,.09);
  --rule: rgba(20,122,126,.15);
}

[data-theme="dark"] {
  color-scheme: dark;
  --deep-teal: #e9f4f1;        /* ink role flips to warm white */
  --structural-teal: #56c4bd;
  --living-turquoise: #4fd1cc;
  --gold-deep: #d9bc5e;        /* legible gold at night */
  --ink-soft: #c7dcd8;
  --background: #052b32;

  --glass-bg: linear-gradient(145deg, rgba(13,77,86,.55), rgba(8,61,70,.38));
  --glass-border: rgba(143,217,214,.16);
  --glass-shadow: 0 18px 44px rgba(0,0,0,.34);
  --rule: rgba(143,217,214,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  /* the metallic-teal sheen over white */
  background:
    radial-gradient(38% 46% at 12% 5%, rgba(243,233,214,.55), transparent 62%),
    radial-gradient(42% 52% at 90% 8%, rgba(143,217,214,.42), transparent 60%),
    radial-gradient(46% 50% at 84% 98%, rgba(54,182,180,.24), transparent 62%),
    radial-gradient(40% 44% at 12% 99%, rgba(20,122,126,.18), transparent 62%),
    #ffffff;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.75;
}

/* the deep-teal night sheen — malachite glow, a breath of gold */
[data-theme="dark"] body {
  background:
    radial-gradient(46% 52% at 88% 4%, rgba(20,122,126,.34), transparent 62%),
    radial-gradient(34% 42% at 8% 10%, rgba(212,175,55,.09), transparent 58%),
    radial-gradient(52% 56% at 84% 100%, rgba(13,77,86,.6), transparent 64%),
    radial-gradient(40% 44% at 10% 96%, rgba(8,61,70,.65), transparent 62%),
    #052b32;
  background-attachment: fixed;
}

::selection { background: var(--signal-gold); color: #0d4d56; }

/* ---- layout: mobile-first, single centred column ---- */
.wrap { width: 100%; max-width: 44rem; margin: 0 inline; margin-inline: auto; padding: 0 1.5rem; }

.glass-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  border-bottom: 1px solid var(--glass-border);
}
[data-theme="dark"] .glass-nav {
  background: linear-gradient(180deg, rgba(5,43,50,.82), rgba(5,43,50,.6));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand-mark {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--deep-teal);
  text-decoration: none; letter-spacing: -.01em;
}
.brand-mark span { color: var(--gold-deep); }

.theme-toggle {
  border: 1px solid var(--glass-border); background: transparent; cursor: pointer;
  color: var(--structural-teal); border-radius: 999px; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; font-size: .95rem; line-height: 1;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--living-turquoise); color: var(--living-turquoise); }
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: inline; }
[data-theme="dark"] .theme-light-only { display: none; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .75rem;
}

/* ---- prose-hf: long-form article body ---- */
.prose-hf { color: var(--ink-soft); font-size: 1.075rem; }
.prose-hf h1, .prose-hf h2, .prose-hf h3 {
  font-family: var(--font-serif); color: var(--deep-teal);
  line-height: 1.2; letter-spacing: -.015em; font-weight: 500;
}
.prose-hf h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); margin: 0 0 .75rem; }
.prose-hf h2 { font-size: clamp(1.45rem, 3.4vw, 1.85rem); margin: 3rem 0 1rem; }
.prose-hf h3 { font-size: 1.2rem; margin: 2.25rem 0 .75rem; }
.prose-hf p { margin: 0 0 1.4rem; }
.prose-hf a { color: var(--structural-teal); text-decoration-color: var(--living-turquoise); text-underline-offset: .2em; }
.prose-hf a:hover { color: var(--living-turquoise); }
.prose-hf strong { color: var(--deep-teal); font-weight: 600; }
.prose-hf ul, .prose-hf ol { margin: 0 0 1.4rem; padding-left: 1.1rem; }
.prose-hf li { margin: .4rem 0; }
.prose-hf ul { list-style: none; padding-left: 1.4rem; }
.prose-hf ul > li::before {
  content: "✦"; color: var(--signal-gold); font-size: .8em;
  margin-left: -1.4rem; margin-right: .6rem; display: inline-block;
}
.prose-hf blockquote {
  margin: 2rem 0; padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--signal-gold);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.2rem; color: var(--deep-teal); line-height: 1.55;
}
.prose-hf blockquote p:last-child { margin-bottom: 0; }
.prose-hf blockquote strong { font-style: normal; }
.prose-hf pre {
  background: rgba(13,77,86,.05); border: 1px solid var(--rule);
  border-radius: .6rem; padding: 1.1rem 1.2rem; overflow-x: auto;
  font-size: .875rem; line-height: 1.7; margin: 0 0 1.4rem;
}
[data-theme="dark"] .prose-hf pre { background: rgba(0,0,0,.24); }
.prose-hf code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .875em; color: var(--deep-teal);
}
.prose-hf pre code { color: var(--ink-soft); }
.prose-hf :not(pre) > code {
  background: rgba(20,122,126,.09); padding: .12em .38em; border-radius: .25rem;
}
.prose-hf hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75rem 0; }
.prose-hf img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1.75rem 0; }
.prose-hf table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose-hf th, .prose-hf td { border: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; }
.prose-hf th { color: var(--deep-teal); font-weight: 600; }

.lede { font-size: 1.2rem; color: var(--ink-soft); opacity: .9; margin: 0 0 2rem; }
.post-meta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* ---- index listing ---- */
.post-card { display: block; text-decoration: none; padding: 1.5rem; margin-bottom: 1.1rem; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(13,77,86,.14); }
.post-card h2 { font-family: var(--font-serif); color: var(--deep-teal); font-size: 1.35rem; margin: .35rem 0 .5rem; font-weight: 500; line-height: 1.25; }
.post-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; opacity: .88; }
.post-card .post-meta { display: flex; gap: .6rem; align-items: center; }

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 5rem; padding: 2.5rem 0 3.5rem;
  font-size: .85rem; color: var(--ink-soft); opacity: .7;
}
.site-footer a { color: var(--structural-teal); }

@media print {
  body { background: #fff; }
  .glass-nav, .theme-toggle, .site-footer { display: none; }
  .prose-hf { font-size: 11pt; }
}
