/* Charlotte Ivy Hunter — site styles
   Palette drawn from The Woods Know cover: midnight blue-black, cold mist slate,
   silver lettering, and the pale gold of the moon behind the trees.
   Type: Cinzel (title, echoing the cover's Roman capitals) + EB Garamond (everything else). */
:root {
  --night: #070b10;
  --dusk: #0d141b;
  --slate: #1c2a33;
  --mist: #46545e;
  --silver: #e2e4e3;
  --silver-dim: #9aa4aa;
  --moon: #cbbd97;
  --moon-hi: #e6dcc0;
  --oxblood: #7e2c2c;
  --paper: #d8d6ce;
  --ink: #15191d;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--silver);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "onum";
}
/* faint film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--moon-hi); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--moon) 50%, transparent); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--silver); text-decoration-color: var(--silver); }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
::selection { background: var(--moon); color: var(--night); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(7,11,16,.85), rgba(7,11,16,0));
  transition: background .3s, box-shadow .3s;
}
.site-header.solid { background: rgba(7,11,16,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(226,228,227,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .08em; color: var(--silver); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--moon-hi); }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 18px; }
.nav a { color: var(--silver-dim); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--silver); border-bottom-color: var(--moon); }
.menu-toggle { display: none; background: none; border: 0; color: var(--silver); font: 18px var(--serif); cursor: pointer; padding: 8px 0; }

@media (max-width: 680px) {
  .site-header { background: rgba(7,11,16,.94); }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--dusk); display: none; padding: 4px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--slate); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; padding: 0;
  background:
    radial-gradient(ellipse 45% 55% at 88% 12%, rgba(120,140,158,.30), transparent 70%),
    radial-gradient(ellipse 70% 60% at 60% 30%, rgba(60,78,94,.30), transparent 75%),
    linear-gradient(180deg, #111c26, var(--night) 85%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,11,16,.78) 0%, rgba(7,11,16,.35) 45%, transparent 70%),
              linear-gradient(0deg, var(--night) 0%, transparent 22%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: 120px 0 96px; }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8.4vw, 118px);
  line-height: .98; letter-spacing: .02em; margin: 0 0 30px; color: var(--silver);
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero h1 span { display: block; }
.hero .lede { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.55; color: var(--silver-dim); max-width: 30ch; margin: 0 0 14px; }
.hero .release { font-style: italic; color: var(--moon); margin: 0 0 40px; font-size: 19px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }

/* one orchestrated entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .release, .hero .cta-row { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-name: emerge; animation-duration: 2s; }
  .hero .lede { animation-delay: .5s; }
  .hero .release { animation-delay: .7s; }
  .hero .cta-row { animation-delay: .9s; }
  .hero .cover { animation: rise 1.8s cubic-bezier(.2,.7,.2,1) .3s both; }
}
@keyframes emerge { from { opacity: 0; filter: blur(10px); letter-spacing: .08em; } to { opacity: 1; filter: blur(0); letter-spacing: .02em; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding: 112px 0 72px; }
  .hero .cover { max-width: 270px; justify-self: center; margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 500 19px var(--serif); letter-spacing: .01em;
  padding: 13px 30px 14px; text-decoration: none; cursor: pointer; border: 1px solid var(--moon);
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn-solid { background: var(--moon); color: var(--night); }
.btn-solid:hover { background: var(--moon-hi); color: var(--night); box-shadow: 0 0 30px -6px rgba(230,220,192,.45); }
.text-link { font-size: 19px; color: var(--silver); text-decoration-color: var(--mist); }

/* ---------- Book cover ---------- */
.cover {
  width: 100%; max-width: 380px; height: auto; justify-self: center; border-radius: 2px;
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(226,228,227,.07), 0 0 90px -10px rgba(170,190,205,.12);
}
.cover-small { max-width: 300px; }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 140px) 0; }
.section-alt { background: var(--dusk); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.005em; margin: 0 0 22px; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
.muted { color: var(--silver-dim); }
.narrow { max-width: 640px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- The hook: a single quiet line ---------- */
section.hook { padding: clamp(90px, 14vw, 170px) 0; text-align: center; }
.hook p {
  font-style: italic; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.25; color: var(--silver);
  max-width: 22ch; margin: 0 auto;
}
.hook p + p { margin-top: .4em; color: var(--moon); }

/* ---------- Case file card (series) ---------- */
.casefile {
  background: var(--paper); color: var(--ink); padding: 34px 34px 30px; position: relative;
  box-shadow: 0 30px 50px -25px rgba(0,0,0,.8);
}
.casefile .tab { position: absolute; top: -20px; left: 26px; background: var(--paper); padding: 2px 18px 0; font-size: 16px; font-style: italic; }
.casefile dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; font-size: 18px; }
.casefile dt { color: #545b61; font-style: italic; }
.casefile dd { margin: 0; font-family: "Courier New", Courier, monospace; font-size: 17px; padding-top: 2px; }
.stamp { display: inline-block; margin-top: 24px; transform: rotate(-4deg); border: 2px solid var(--oxblood); color: var(--oxblood); padding: 2px 14px; font: 600 16px var(--display); letter-spacing: .12em; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter h2 { margin-bottom: 14px; }
.newsletter .muted { margin: 0 auto 34px; max-width: 34ch; }
.signup { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.signup input[type="email"] {
  flex: 1; min-width: 0; padding: 14px 18px; font: 19px var(--serif);
  background: transparent; color: var(--silver); border: 0; border-bottom: 1px solid var(--mist); border-radius: 0;
}
.signup input[type="email"]::placeholder { color: #6f7b84; font-style: italic; }
.signup input[type="email"]:focus { outline: none; border-bottom-color: var(--moon); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.6em; margin-top: 16px; font-size: 18px; color: var(--silver-dim); }
.signup-msg.ok { color: var(--moon-hi); }
.signup-msg.err { color: #e08a74; }
.fine { font-size: 16px; font-style: italic; color: var(--silver-dim); opacity: .75; margin-top: 4px; }
@media (max-width: 520px) { .signup { flex-direction: column; } }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(140px, 16vw, 190px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, #111c26, var(--night)); }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: .02em; margin: 0 0 14px; }
.page-head .sub { font-style: italic; color: var(--moon); margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 640px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 34px; margin-top: 1.6em; }
.prose .dropcap::first-letter { float: left; font-family: var(--display); font-size: 4.1em; line-height: .82; padding: 8px 12px 0 0; color: var(--moon); }

.portrait {
  aspect-ratio: 4/5; width: 100%; max-width: 360px;
  background: linear-gradient(160deg, var(--slate), var(--dusk));
  box-shadow: 0 0 0 1px rgba(226,228,227,.06);
  display: grid; place-items: center; color: var(--mist); font-style: italic; font-size: 17px; text-align: center; padding: 20px;
}

/* ---------- Journal ---------- */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.post-list li { padding: 34px 0; border-top: 1px solid var(--slate); }
.post-list li:last-child { border-bottom: 1px solid var(--slate); }
.post-list a.title { font-size: 34px; line-height: 1.15; color: var(--silver); text-decoration: none; }
.post-list a.title:hover { color: var(--moon-hi); }
.meta { font-style: italic; color: var(--moon); margin-bottom: 6px; font-size: 18px; }
.post-list p { margin: 10px 0 0; color: var(--silver-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--slate); padding: 44px 0; font-size: 17px; color: var(--silver-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--silver-dim); }

/* ---------- Hero background: moonlit branches ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-bg svg { position: absolute; inset: -3%; width: 106%; height: 106%; }
.hero-bg .moon {
  position: absolute; top: -2%; right: -1%; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,228,205,.55) 0 7%, rgba(214,206,182,.18) 14%, rgba(150,170,185,.07) 38%, transparent 68%);
  filter: blur(2px);
  animation: moon-breathe 14s ease-in-out infinite alternate;
}
.hero-bg .branches.far { filter: blur(1.4px); opacity: .9; }
.hero-bg .mist {
  position: absolute; left: -20%; right: -20%; bottom: -5%; height: 45%;
  background: radial-gradient(ellipse at 40% 70%, rgba(120,140,155,.10), transparent 60%),
              radial-gradient(ellipse at 75% 80%, rgba(120,140,155,.08), transparent 55%);
  animation: drift 30s ease-in-out infinite alternate;
}
.sway { transform-box: view-box; will-change: transform; }
.s-near1 { animation: sway-a 9s ease-in-out infinite alternate; }
.s-near2 { animation: sway-b 11s ease-in-out infinite alternate; }
.s-near3 { animation: sway-a 13s ease-in-out -4s infinite alternate; }
.s-far1  { animation: sway-b 16s ease-in-out infinite alternate; }
.s-far2  { animation: sway-a 19s ease-in-out -6s infinite alternate; }
.s-far3  { animation: sway-b 22s ease-in-out -3s infinite alternate; }
@keyframes sway-a { 0% { transform: rotate(-1.1deg); } 100% { transform: rotate(1.3deg); } }
@keyframes sway-b { 0% { transform: rotate(0.9deg); } 60% { transform: rotate(-0.6deg); } 100% { transform: rotate(-1.2deg); } }
@keyframes moon-breathe { from { opacity: .85; } to { opacity: 1; } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@media (prefers-reduced-motion: reduce) {
  .sway, .hero-bg .moon, .hero-bg .mist { animation: none; }
}
@media (max-width: 820px) {
  .hero-bg .moon { right: -30%; top: -8%; width: 260px; height: 260px; }
}
.two-col > h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
