:root {
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-mono: 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
  --background: #fcfcfb;
  --foreground: #20201e;
  --card: #ffffff;
  --card-foreground: #20201e;
  --popover: #ffffff;
  --popover-foreground: #20201e;
  --primary: #252522;
  --primary-foreground: #fcfcfb;
  --secondary: #f1f1ee;
  --secondary-foreground: #252522;
  --muted: #f1f1ee;
  --muted-foreground: #686862;
  --accent: #be421f;
  --accent-foreground: #ffffff;
  --destructive: #b42318;
  --border: #dcdcd5;
  --input: #dcdcd5;
  --ring: #be421f;
}

.dark {
  color-scheme: dark;
  --background: #191a18;
  --foreground: #efefea;
  --card: #21221f;
  --card-foreground: #efefea;
  --popover: #21221f;
  --popover-foreground: #efefea;
  --primary: #efefea;
  --primary-foreground: #191a18;
  --secondary: #292b27;
  --secondary-foreground: #efefea;
  --muted: #292b27;
  --muted-foreground: #aeafa7;
  --accent: #ed936f;
  --accent-foreground: #191a18;
  --destructive: #f48b82;
  --border: #393c35;
  --input: #393c35;
  --ring: #ed936f;
}

*, ::before, ::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { text-decoration: inherit; }
svg { display: block; vertical-align: middle; }


  * { border-color: var(--border); }
  html { font-family: var(--font-sans); }
  body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  a { color: inherit; }
  a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 6px;
  }
  ::selection { background: #f1d9c9; color: #20201e; }

.site-shell {
  width: min(45rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 3.75rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 0.5625rem;
  height: 0.5625rem;
  flex: none;
  background: var(--accent);
}

.article-header { margin-block: 4.375rem 2.75rem; }

.eyebrow {
  margin: 0 0 1.375rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.085;
  text-wrap: balance;
}

.prose {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose p { margin: 0 0 1.65em; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--accent); }

.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.header-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 500;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-line: underline;
  transition: color 150ms ease;
  white-space: nowrap;
}

.header-link:hover { color: var(--accent); }
.header-link svg { width: 1.125rem; height: 1.125rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.75rem;
  border-top: 1px solid var(--border);
  padding-block: 1.625rem 3.5rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-details,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-socials { gap: 1rem; }

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.footer-socials a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -200%);
  padding: 0.5rem 1rem;
  background: var(--foreground);
  color: var(--background);
  z-index: 10;
}

.skip-link:focus { transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .site-shell { width: calc(100% - 2.75rem); }
  .site-header { padding-block: 2rem 1.25rem; }
  .article-header { margin-block: 3rem 2rem; }
  .eyebrow { margin-bottom: 1.125rem; }
  .prose { font-size: 1.125rem; line-height: 1.7; }
  .site-footer { margin-top: 2.75rem; padding-bottom: 2rem; }
}

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

@media print {
  .site-shell { width: 100%; }
  .site-header { padding-top: 0; }
  .article-header { margin-block: 2rem; }
  h1 { font-size: 2.5rem; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .prose p { orphans: 3; widows: 3; }
  .header-links, .site-footer { break-inside: avoid; }
}

.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;
}
