@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  color-scheme: dark;
  --background: #0f1815;
  --surface: #17231e;
  --line: #4d6255;
  --ink: #f1eddf;
  --muted: #c2cbbf;
  --brass: #d8ba7b;
  --brass-ink: #17221b;
  --focus: #ffdf9a;
  font-family: "Instrument Sans Variable", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 24px; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--background); }
body, a { color: inherit; }
a { text-underline-offset: 0.24em; }
a:hover { color: #f3d594; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--brass-ink); background: var(--brass); }

.shell { width: min(100% - 64px, 1280px); margin: auto; }
.skip-link { z-index: 20; position: absolute; top: 8px; left: 8px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; transform: translateY(calc(-100% - 14px)); color: var(--brass-ink); background: var(--brass); font-weight: 700; text-decoration: none; }
.skip-link:focus-visible { transform: translateY(0); outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; position: relative; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--brass); }
.brand-mark::before { width: 1px; height: 35px; }
.brand-mark::after { width: 35px; height: 1px; }
.brand-mark span { z-index: 1; width: 10px; height: 10px; border: 1px solid var(--brass); border-radius: 50%; background: var(--background); }
.brand-name { font: 400 1.35rem/1 var(--font-display, "Instrument Serif"), Georgia, serif; letter-spacing: -0.015em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.site-nav .nav-action { padding-inline: 15px; border: 1px solid #e8cc8c; border-radius: 999px; color: var(--brass-ink); background: var(--brass); font-weight: 650; }
.site-nav .nav-action:hover { color: var(--brass-ink); background: #ecd49c; }

.legal-main { width: min(100%, 840px); min-height: calc(100vh - 245px); margin: 0 auto; padding: clamp(44px, 7vw, 82px) 0 76px; }
.legal-main h1 { max-width: 17ch; margin: 0; color: var(--ink); font: 400 clamp(3rem, 7vw, 5.3rem)/0.98 "Instrument Serif", Georgia, serif; letter-spacing: -0.025em; }
.lead { max-width: 62ch; margin: 17px 0 39px; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.copy { max-width: 70ch; color: var(--ink); }
.copy h2 { margin: 31px 0 9px; color: #ebd39b; font: 400 1.65rem/1.18 "Instrument Serif", Georgia, serif; }
.copy p { margin: 0 0 16px; color: #e2e5d9; font-size: 0.98rem; line-height: 1.75; }
.copy a { color: #f1d18a; }
.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.site-footer p { margin: 0; font-size: 0.875rem; }
.site-footer .footer-credit { grid-column: 2; text-align: right; }
.site-footer a[href^="mailto"] { color: #f1d18a; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 650px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 4px; padding: 8px 0 11px; }
  .site-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 5px; }
  .site-nav a { min-height: 40px; padding-inline: 9px; }
  .legal-main { min-height: calc(100vh - 260px); padding: 48px 0 60px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
  .site-footer .footer-credit { grid-column: auto; text-align: left; }
}

@media (max-width: 380px) {
  .shell { width: min(100% - 24px, 650px); }
  .legal-main h1 { font-size: 2.8rem; }
  .copy p { font-size: 0.93rem; }
}
