/* Fig and Linen. Aubergine panel, linen reading ground, mulberry accent.
   Fraunces for display, Instrument Sans for text. No motion on scroll. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --panel: #2e1f34;
  --panel-deep: #22162a;
  --panel-ink: #f4ecf0;
  --panel-mute: #c9b6c6;
  --ground: #f5f1ec;
  --ground-tint: #ece5df;
  --ink: #241b26;
  --ink-soft: #5b4d5e;
  --accent: #7d2e4f;
  --accent-deep: #5f2039;
  --rule: #d9cfc8;
  --rule-panel: #4a3752;
  --field-ink: #e6c9d6;
  --display: "Fraunces", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  --wide: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wght" 420;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 24, "SOFT" 30; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul { padding-left: 1.2em; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* masthead */
.masthead { background: var(--panel); color: var(--panel-ink); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand .mark { flex: none; }
.brand span { font-family: var(--display); font-size: 1.15rem; font-variation-settings: "opsz" 18, "SOFT" 40; }
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a { color: var(--panel-mute); text-decoration: none; font-size: .95rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--panel-ink); border-bottom-color: var(--panel-ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule-panel); color: var(--panel-ink); padding: .5rem .8rem; font: inherit; border-radius: 3px; }
@media (max-width: 720px) {
  .masthead .wrap { gap: .6rem; }
  .brand { gap: .5rem; }
  .brand span { font-size: .9rem; }
  .menu-btn { padding: .4rem .6rem; font-size: .9rem; }
  html.js .menu-btn { display: inline-block; margin-left: auto; }
  html.js .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 1rem; }
  html.js .nav.open { display: flex; }
  html.js .nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule-panel); }
}

/* hero, home */
.hero {
  position: relative; background: var(--panel-deep); color: var(--panel-ink);
  overflow: hidden; border-top: 1px solid var(--rule-panel);
}
.hero .field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: clamp(3rem, 7vw, 6rem);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .dek { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--panel-mute); max-width: 32ch; margin-bottom: clamp(2rem, 5vw, 5rem); }
.hero .cta { display: inline-block; margin-bottom: clamp(2rem, 5vw, 5rem); color: #fff; border: 1px solid var(--panel-mute); padding: .8rem 1.3rem; text-decoration: none; border-radius: 2px; }
.hero .cta:hover { background: rgba(255,255,255,.08); }
.hero figure { margin: 0; align-self: end; justify-self: end; width: min(100%, 30rem); }
.hero figure img { width: 100%; height: auto; }
.hero .photo-frame img { border-top-left-radius: 200px 260px; border-top-right-radius: 200px 260px; object-fit: cover; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero figure { width: min(100%, 22rem); justify-self: start; }
  .hero .dek, .hero .cta { margin-bottom: 2rem; }
}

/* page hero band for inner pages */
.band { background: var(--panel); color: var(--panel-ink); border-top: 1px solid var(--rule-panel); }
.band .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 5rem);
  align-items: end; padding-top: clamp(2.5rem, 5vw, 4rem);
}
.band h1 { color: #fff; max-width: 16ch; }
.band .dek { color: var(--panel-mute); font-size: 1.15rem; max-width: 40ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.band figure { margin: 0; width: clamp(12rem, 24vw, 19rem); align-self: end; }
.band figure img { width: 100%; height: auto; max-height: 24rem; object-fit: cover; object-position: top; }
.band figure.photo-frame img { border-top-left-radius: 160px 200px; border-top-right-radius: 160px 200px; }
.crumbs { font-size: .85rem; color: var(--panel-mute); margin: 0 0 1.5rem; }
.crumbs a { color: var(--panel-mute); }
.crumbs span::before { content: "/"; margin: 0 .5rem; opacity: .6; }
@media (max-width: 720px) {
  .band .wrap { grid-template-columns: 1fr; }
  .band figure { width: 13rem; }
}

/* register sections */
.register { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--rule); }
.register .wrap { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.register .kicker { font-family: var(--display); font-size: .95rem; color: var(--accent); font-variation-settings: "opsz" 14, "SOFT" 60; margin: 0 0 .5rem; }
.register h2 { max-width: 14ch; }
.register .lede { font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 820px) { .register .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.tint { background: var(--ground-tint); }

/* ledger: numbered rows */
.ledger { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.ledger li {
  counter-increment: row; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger li::before {
  content: counter(row, decimal-leading-zero); font-family: var(--display);
  color: var(--accent); font-size: 1.1rem; padding-top: .2rem;
  font-variation-settings: "opsz" 14, "SOFT" 40;
}
.ledger h3 { margin-bottom: .3rem; }
.ledger p { margin: 0; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.pillars > div { padding: 1.6rem 1.6rem 1.6rem 0; border-right: 1px solid var(--rule); }
.pillars > div + div { padding-left: 1.6rem; }
.pillars > div:last-child { border-right: 0; }
.pillars h3 { margin-bottom: .4rem; }
.pillars p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0; }
  .pillars > div:last-child { border-bottom: 0; }
}

/* portrait aside in reading sections */
.aside-figure { margin: 0; }
.aside-figure img { width: 100%; max-width: 20rem; }
.aside-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

/* prose */
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); }

/* pull quote */
.pull { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.3rem; margin: 1.5rem 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.35; font-variation-settings: "opsz" 24, "SOFT" 60; max-width: 30ch; }

/* faq */
.faq { padding: clamp(3rem, 7vw, 6rem) 0; }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.faq dl { margin: 0; }
.faq dt, .faq h3 { font-size: 1.2rem; margin: 0; padding: 1.2rem 0 .4rem; border-top: 1px solid var(--rule); }
.faq p { margin: 0 0 1.2rem; }
@media (max-width: 820px) { .faq .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* feed rows */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 1px solid var(--rule); }
.feed img { width: 100%; height: 10rem; object-fit: cover; object-position: top; background: var(--ground-tint); }
.feed h3 { margin-bottom: .3rem; }
.feed p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .feed li { grid-template-columns: 1fr; } .feed img { width: 8rem; } }

/* article */
.article { padding: clamp(3rem, 7vw, 5rem) 0; }
.article .wrap { max-width: 42rem; }
.article .lead { margin: 0 0 2.5rem; }
.article .lead img { width: 100%; max-height: 32rem; object-fit: cover; object-position: top; background: var(--ground-tint); }
.article h2 { margin-top: 2.2rem; }
.sources { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.4rem; }
.sources h2 { font-size: 1.2rem; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: .4rem 0; }
.sources small { display: block; color: var(--ink-soft); margin-top: 1rem; }
.siblings { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.siblings h2 { font-size: 1.2rem; }

/* contact */
.form { max-width: 34rem; }
.form label { display: block; font-weight: 600; margin: 1rem 0 .35rem; font-variation-settings: "wght" 600; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--rule);
  background: #fff; color: var(--ink); border-radius: 2px;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button {
  margin-top: 1.2rem; background: var(--accent); color: #fff; border: 0; font: inherit;
  font-weight: 600; padding: .85rem 1.4rem; border-radius: 2px; cursor: pointer;
}
.form button:hover { background: var(--accent-deep); }
.status { margin-top: 1rem; min-height: 1.5rem; }
.contact-side p { color: var(--ink-soft); }
.contact-side a { overflow-wrap: anywhere; }

/* closer */
.closer { background: var(--panel); color: var(--panel-ink); padding: clamp(3rem, 6vw, 5rem) 0; }
.closer h2 { color: #fff; max-width: 18ch; }
.closer p { color: var(--panel-mute); }
.closer a { color: #fff; }

/* footer */
.footer { background: var(--panel-deep); color: var(--panel-mute); padding: 2.5rem 0; font-size: .9rem; border-top: 1px solid var(--rule-panel); }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.footer a { color: var(--panel-ink); }
.footer nav a { margin-right: 1.2rem; }
.footer p { margin: .5rem 0 0; max-width: 48ch; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
