/* Shared by every page: self-hosted fonts and the site footer.
   Fonts are Google Fonts' latin subset (variable files). nginx caches /fonts/ forever, so a changed
   font gets a new file name. Pages load this file as base.css?v=<hash>, kept current by pnpm web:build. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Site footer: shared by every page, the markup is written by scripts/build-web.mjs
   between <!-- footer:start --> and <!-- footer:end -->. Uses each page's own colour tokens. */
.site-foot { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px) 40px; color: var(--muted); font-size: 14px; max-width: none; margin: 0; }
.site-foot .foot-in { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.site-foot .foot-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-foot .foot-brand .wordmark { font: 400 28px/1 "Fraunces", Georgia, serif; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 144; }
.site-foot .foot-brand .wordmark i { color: var(--clay); font-style: normal; }
.site-foot .foot-brand p { margin: 0; max-width: 22em; line-height: 1.5; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-foot nav h2 { font: 500 11.5px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
@media (max-width: 900px) { .site-foot .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot .foot-brand { grid-column: 1 / -1; } }

/* Site header: shared by every page, written by scripts/build-web.mjs between
   <!-- header:start --> and <!-- header:end -->. Full links from 900px, a menu button below. */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}
.site-head .head-in { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 28px; min-height: 68px; }
.site-head .wordmark { font: 400 28px/1 "Fraunces", Georgia, serif; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 144; margin-right: auto; }
.site-head .wordmark i { color: var(--clay); font-style: normal; }
.site-head .head-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.site-head a { color: var(--ink-soft); text-decoration: none; }
.site-head a:hover, .site-head a[aria-current="page"] { color: var(--ink); }
.site-head a[aria-current="page"] { font-weight: 500; }
.site-head .head-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 14px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.01em; white-space: nowrap;
}
.site-head .head-cta:hover { background: var(--ink-soft); color: var(--paper); }
.site-head .head-menu { display: none; }
@media (max-width: 899px) {
  .site-head .head-in { gap: 12px; }
  .site-head .head-links { display: none; }
  .site-head .head-menu { display: block; }
  .site-head .head-menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; margin-right: -10px;
    display: grid; place-items: center; border-radius: 12px;
  }
  .site-head .head-menu summary::-webkit-details-marker { display: none; }
  .site-head .head-menu summary span, .site-head .head-menu summary span::before, .site-head .head-menu summary span::after {
    display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  .site-head .head-menu summary span { position: relative; }
  .site-head .head-menu summary span::before, .site-head .head-menu summary span::after { content: ""; position: absolute; left: 0; }
  .site-head .head-menu summary span::before { top: -6px; }
  .site-head .head-menu summary span::after { top: 6px; }
  .site-head .head-menu[open] summary span { background: transparent; }
  .site-head .head-menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
  .site-head .head-menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
  .site-head .menu-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 4vw, 40px) 24px; max-height: calc(100dvh - 68px); overflow-y: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25);
  }
  .site-head .menu-panel div { display: flex; flex-direction: column; gap: 2px; }
  .site-head .menu-panel p { margin: 6px 0 4px; font: 500 11.5px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #6C665D); }
  .site-head .menu-panel a { font-size: 16px; padding: 7px 0; }
}
