:root {
  --ink: #1d1c1a;
  --muted: #716e68;
  --paper: #f5f3ef;
  --surface: #fffdfa;
  --line: #d8d4cc;
  --accent: #b95f3b;
  --max: 1240px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-width: 320px; margin: 0; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 5; padding: .7rem 1rem; color: var(--paper); background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; padding: 2rem max(1.5rem, calc((100% - var(--max)) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.wordmark { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .12em; }
.wordmark, .header-label { margin: 0; line-height: .9; }
.wordmark__secondary { font-weight: 400; }
.header-label, .site-footer { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 2rem; border-top: 1px solid var(--line); }
.button { border: 1px solid var(--ink); padding: .8rem 1rem; text-align: left; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { align-items: center; padding: 1.3rem 1rem; }
  .header-label { font-size: .62rem; }
  .site-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
