/* Jeremy Grove Writes — author / advocacy site */
:root {
  --ink: #12151a;
  --ink-2: #1a1f27;
  --ink-3: #242b36;
  --paper: #f3efe6;
  --paper-2: #e8e1d3;
  --gold: #c9a46a;
  --gold-2: #a88545;
  --slate: #4a5d6e;
  --slate-2: #6b8296;
  --text: #1a1814;
  --muted: #5c584f;
  --light: #f0ebe1;
  --light-muted: #a8a195;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --maxw: 1100px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d9b67a; }
.btn--ghost {
  border-color: rgba(240,235,225,.35);
  color: var(--light);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--light); }
.btn--ink { background: var(--ink); color: var(--light); }
.btn--ink:hover { background: var(--ink-3); }

.text-link {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(18,21,26,.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201,164,106,.15);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--light); text-decoration: none;
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--light-muted); text-decoration: none;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--light); }
.nav__cta {
  padding: .55rem 1rem !important;
  border: 1px solid rgba(201,164,106,.55);
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav__cta:hover { background: rgba(201,164,106,.12); color: var(--gold) !important; }

.nav__toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav__toggle span {
  display: block; height: 2px; width: 22px; background: var(--light);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,93,110,.35), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--light);
  overflow: hidden;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, 780px);
  text-align: center;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 0 0 1.4rem;
  color: var(--light);
}
.hero__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  color: var(--light-muted);
  margin: 0 auto 2rem;
  max-width: 36em;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 3rem;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(240,235,225,.12);
  text-align: center;
}
.hero__meta dt {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .35rem;
}
.hero__meta dd {
  margin: 0;
  font-size: 1rem;
  color: var(--light);
}
.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  color: var(--light-muted); text-decoration: none; font-size: 1.25rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--paper { background: var(--paper); color: var(--text); }
.section--ink { background: var(--ink-2); color: var(--light); }
.section--contact {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74,93,110,.28), transparent 55%),
    var(--ink);
  color: var(--light);
  text-align: center;
  padding: 6rem 0;
}

.section__head { max-width: 40rem; margin-bottom: 3rem; }
.section--ink .section__head,
.section--contact .section__head { margin-inline: auto; text-align: center; }

.section__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 1rem;
  color: var(--text);
}
.section__title--light { color: var(--light); }

.section__sub {
  font-size: 1.1rem;
  color: var(--light-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 3.5rem;
  align-items: start;
}
.story .lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.story__text p { margin: 0 0 1.15rem; color: var(--muted); }
.story__text .lede { color: var(--text); }

.timeline {
  background: var(--paper-2);
  border: 1px solid rgba(26,24,20,.08);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}
.timeline__heading {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.timeline__list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(26,24,20,.08);
}
.timeline__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__when {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.timeline__what {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Advocacy pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.pillar {
  background: var(--ink-3);
  border: 1px solid rgba(240,235,225,.06);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
}
.pillar__num {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}
.pillar h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--light);
}
.pillar p {
  margin: 0;
  font-size: 1rem;
  color: var(--light-muted);
  line-height: 1.65;
}

.orgs {
  border-top: 1px solid rgba(240,235,225,.1);
  padding-top: 2rem;
}
.orgs__label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  text-align: center;
}
.orgs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.orgs__list li {
  text-align: center;
  padding: 1.25rem;
  background: rgba(240,235,225,.03);
  border-radius: 6px;
}
.orgs__list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--light);
  margin-bottom: .35rem;
}
.orgs__list span {
  font-size: .9rem;
  color: var(--light-muted);
}

/* ---------- Writing cards ---------- */
.writing .section__head { max-width: 36rem; }
.writing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid rgba(26,24,20,.08);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(26,24,20,.04);
}
.card--feature {
  background: var(--ink);
  color: var(--light);
  border-color: transparent;
}
.card--feature .card__eyebrow { color: var(--gold); }
.card--feature .card__title { color: var(--light); }
.card--feature .card__body { color: var(--light-muted); }
.card__eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .6rem;
}
.card__title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 .85rem;
  color: var(--text);
  line-height: 1.2;
}
.card__body {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  flex: 1;
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact { max-width: 36rem; margin-inline: auto; }
.contact__lede {
  font-size: 1.15rem;
  color: var(--light-muted);
  margin: 0 0 1.25rem;
}
.contact__note {
  font-size: .95rem;
  color: var(--light-muted);
  margin: 0 0 2rem;
}
.contact__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__hint {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--light-muted);
  margin: 1rem 0 0;
  opacity: .7;
}

/* ---------- Footer ---------- */
.footer {
  background: #0c0e12;
  color: var(--light-muted);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(240,235,225,.06);
}
.footer__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0;
}
.footer__copy {
  font-family: var(--sans);
  font-size: .8rem;
  margin: 0;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light-muted);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .writing__grid { grid-template-columns: 1fr; }
  .orgs__list { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(18,21,26,.97);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1rem; color: var(--light); }
  .section { padding: 4rem 0; }
  .timeline__list li { grid-template-columns: 1fr; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  .btn:hover { transform: none; }
}
