/* Filidh — brand stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --ink: #1c1a16;
  --ink-soft: #4a463d;
  --parchment: #f6f2e9;
  --parchment-dim: #efe9db;
  --line: #ddd4bf;
  --accent: #8a6a2f;
  --accent-deep: #6b5122;
  --max: 780px;
  --wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece7db;
    --ink-soft: #bdb6a4;
    --parchment: #17150f;
    --parchment-dim: #1f1c14;
    --line: #33301f;
    --accent: #c9a24a;
    --accent-deep: #e2bb62;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a.plain { text-decoration: none; }

p { margin: 0 0 1.3em; }

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

.prose {
  max-width: var(--max);
}

/* ---- Header ---- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--parchment) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

nav.primary {
  display: flex;
  gap: 34px;
  align-items: center;
}

nav.primary a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--parchment); }

.btn.solid {
  background: var(--ink);
  color: var(--parchment);
}
.btn.solid:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--parchment);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---- Hero ---- */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 22px;
  display: block;
}

h1.headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 15ch;
  margin: 0 0 28px;
}

.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

/* ---- Sections ---- */

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
section.line-top { border-top: 1px solid var(--line); }
section.dim { background: var(--parchment-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2.section-head {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 18px;
}

.section-intro {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 44px;
}

/* ---- Cards / grids ---- */

.grid {
  display: grid;
  gap: 40px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.card .tag {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 24px;
}
.list-plain li:last-child { border-bottom: 1px solid var(--line); }
.list-plain strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
}
.list-plain span {
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .list-plain li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Pull quote ---- */

.pull {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 40ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

.pull-wrap { text-align: center; }

.pull-source {
  display: block;
  margin-top: 22px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- CTA band ---- */

.cta-band {
  border-top: 1px solid var(--line);
  padding: 84px 0;
  text-align: center;
}
.cta-band p {
  font-size: 19px;
  max-width: 50ch;
  margin: 0 auto 28px;
  color: var(--ink-soft);
}
.cta-band h2 { margin-bottom: 20px; }

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-row nav { display: flex; gap: 22px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

/* ---- Utility ---- */

.stack { display: flex; flex-direction: column; gap: 6px; }
.byline {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.arrow::after { content: " →"; }

.essay h2 { margin-top: 0; }
.essay .meta {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---- Mobile nav ---- */

@media (max-width: 780px) {
  nav.primary { display: none; }
  .nav-toggle { display: block; }
  .nav-row .btn.header-cta { display: none; }

  header.site.open nav.primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    padding: 12px 32px 24px;
  }
  header.site.open nav.primary a { padding: 10px 0; }
  header.site.open .nav-row .btn.header-cta {
    display: inline-block;
  }
}
