@font-face {
  font-family: "Barlow";
  src: url("./fonts/barlow-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("./fonts/barlow-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("./fonts/barlow-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/barlow-condensed-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/barlow-condensed-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --accent: #FDA947;
  --amber: #FDA947;
  --ink: #050403;
  --paper: #f6f2ea;
  --muted: #c2b9ac;
  --ease: cubic-bezier(.22,.78,.18,1);
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;
  color: var(--paper);
  background: #030302;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { display: flow-root; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
.ui-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
:where(a, button, summary, [tabindex="0"]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 90; top: 8px; left: 8px; padding: 10px; color: black; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
/* The solid paper surface keeps the original ink wordmark legible over moving glass. */
.site-header {
  --nav-paper: #F5ECDD;
  --nav-ink: #201C18;
  --nav-height: clamp(58px, 4.6vw, 70px);
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  top: max(clamp(13px, 1.5vw, 24px), env(safe-area-inset-top));
  width: min(88%, 1040px);
  margin-inline: auto;
  color: var(--nav-ink);
}
:root { scroll-padding-top: clamp(84px, 7vw, 112px); }
.nav-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--nav-height);
  padding: 5px 7px 5px clamp(20px, 2.35vw, 32px);
  border: 1px solid #c9bca8;
  border-radius: 999px;
  background: var(--nav-paper);
  box-shadow: 0 2px 7px rgb(0 0 0 / .13);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  border-radius: 5px;
}
.brand img { display: block; width: clamp(90px, 7.4vw, 110px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(3px, .6vw, 11px); }
.main-nav a, .nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36em;
  min-height: 44px;
  font-size: clamp(13px, .94vw, 15px);
  font-weight: 500;
  letter-spacing: .065em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border-radius: 99px;
}
.main-nav a {
  padding: 0 clamp(10px, 1.1vw, 18px);
  color: var(--nav-ink);
  transition: background-color .18s ease;
}
.main-nav a:is(:hover, :focus-visible) { background: #E4D6C2; }
.nav-source span { font-size: .94em; }
.nav-download {
  justify-self: end;
  gap: 12px;
  padding: 0 clamp(14px, 1.6vw, 23px);
  height: calc(var(--nav-height) - 12px);
  background: #211C16;
  color: #FFF8ED;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.nav-download span { color: var(--accent); font-size: 16px; transition: translate .2s; }
.nav-download:is(:hover, :focus-visible) { background: var(--accent); color: #20160C; }
.nav-download:is(:hover, :focus-visible) span { color: #20160C; translate: 0 2px; }
.site-header :is(a, button):focus-visible { outline: 2px solid #8B500D; outline-offset: 1px; }
.menu-trigger { display: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer {
  display: flex;
  align-items: center;
  gap: clamp(16px,3vw,55px);
  width: 87%;
  margin: auto;
  border-top: 1px solid #352a20;
  padding: 28px 0 34px;
  color: #c0b9b0;
}
.footer-brand { display: flex; align-items: center; gap: 17px; margin-right: auto; }
.footer-brand img { display: block; width: 89px; }
.footer-brand > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand span { font-size: 12px; letter-spacing: .045em; }
.site-footer nav { display: flex; gap: clamp(15px,2vw,34px); font-size: 13px; letter-spacing: .025em; }
.site-footer nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.back-to-top { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid #654c32; color: var(--accent); }
.hero.off-screen * { animation-play-state: paused !important; }
@media (max-width: 740px) {
  :root { scroll-padding-top: 80px; }
  .site-header { --nav-height: 54px; width: min(92%, 540px); top: max(10px, env(safe-area-inset-top)); }
  .nav-surface {
    grid-template-columns: 1fr auto auto;
    gap: 5px;
    min-height: var(--nav-height);
    padding: 4px 5px 4px 18px;
  }
  .brand img { width: 86px; }
  .nav-download { grid-column: 2; grid-row: 1; min-height: 44px; height: 44px; gap: 8px; padding: 0 14px; font-size: 12px; letter-spacing: .04em; }
  .menu-trigger {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--nav-ink);
    background: #E8DCCB;
  }
  .menu-trigger span { display: block; width: 17px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .2s; }
  .menu-trigger[aria-expanded=true] span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .menu-trigger[aria-expanded=true] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .main-nav {
    display: none;
    position: absolute;
    inset: calc(100% + 7px) 0 auto;
    padding: 10px;
    border: 1px solid #c9bca8;
    border-radius: 23px;
    background: var(--nav-paper);
    box-shadow: 0 10px 22px rgb(0 0 0 / .2);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: grid; gap: 1px; animation: nav-unfold .2s var(--ease); }
  .main-nav a { justify-content: space-between; min-height: 46px; padding-inline: 16px; border-radius: 14px; font-size: 15px; }
  .main-nav a + a { border-top: 1px solid #DCD1C0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .main-nav .nav-source span { font-size: 15px; }
  @keyframes nav-unfold {
    from { opacity: .4; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
  .site-footer { width: 89%; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
  .footer-brand { flex: 1; }
  .site-footer nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
