@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  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: "DM Sans";
  src: url("fonts/dm-sans-ext.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --canvas: #f8f7f5;
  --panel: #fff;
  --ink: #181715;
  --muted: #5e5852;
  --accent: #b93215;
  --accent-bright: #f34216;
  --accent-deep: #94250d;
  --accent-pale: #fff0e9;
  --line: #e6e0d9;
  --line-strong: #898077;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --gutter: clamp(18px, 4vw, 64px);
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-height) + 14px); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img, video { max-width: 100%; }
img { display: block; }
a { color: inherit; text-underline-offset: .17em; }
::selection { background: #fbd7c7; color: var(--ink); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - var(--gutter) - var(--gutter), 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 80;
  inset: .5rem auto auto var(--gutter);
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: var(--panel);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-width: 44px;
  min-height: 46px;
  padding: .65rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.button:hover { background: var(--accent-pale); }
.button--primary, .button--nav { border-color: var(--accent); background: var(--accent); color: #fff; }
.button--primary:hover, .button--nav:hover { border-color: var(--accent-deep); background: var(--accent-deep); }
.button:disabled { opacity: .6; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  min-height: calc(var(--header-height) - 1px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.wordmark img {
  width: clamp(180px, 24vw, 218px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem clamp(.75rem, 2.7vw, 2rem);
  font-size: .925rem;
}

.site-nav a:not(.button), .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.site-nav a:not(.button):hover, .site-nav a[aria-current="page"]:not(.button), .footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .35rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle::after {
  width: .8rem;
  height: .42rem;
  border-block: 1px solid currentColor;
  content: "";
}

.site-footer {
  padding-block: clamp(1rem, 2.2vw, 1.8rem);
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.75rem, 2.6vw, 1.6rem);
  color: var(--muted);
  font-size: .925rem;
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .site-header__inner { flex-wrap: wrap; column-gap: .65rem; }
  .wordmark img { width: clamp(180px, 48vw, 208px); }
  .site-header[data-menu-ready] .nav-toggle { display: inline-flex; }
  .site-header[data-menu-ready] .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    padding: .65rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 16px 24px rgb(24 23 21 / 11%);
  }
  .site-header[data-menu-open] .site-nav { display: grid; }
  .site-nav a:not(.button) { min-height: 44px; }
  .site-nav .button { justify-self: start; }
}

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