@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-700.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-600.woff2") format("woff2");
}

:root {
  --soot: #14110c;
  --ink: #1c1812;
  --paper: #f3ead8;
  --paper-deep: #e6d9bf;
  --brass: #c4964a;
  --brass-dim: #8a6a32;
  --moss: #3f4c38;
  --mist: #cfc3ab;
  --display: "Bricolage Grotesque", "Iowan Old Style", Palatino, serif;
  --body: "Newsreader", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --measure: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--soot);
  color: var(--paper);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

body.doc {
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 5;
  padding: 0.4rem 0.7rem;
  background: var(--brass);
  color: var(--soot);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.mast {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}

.latch {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.mark .latch-bar {
  transform-origin: 18px 32px;
  animation: latch-set 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  justify-content: flex-end;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a[aria-current="page"],
nav a:hover,
nav a:focus-visible {
  border-bottom-color: var(--brass);
}

.langs {
  margin: 0;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.langs a {
  text-decoration: none;
  opacity: 0.55;
}

.langs a[aria-current="true"],
.langs a:hover,
.langs a:focus-visible {
  opacity: 1;
}

main {
  position: relative;
  z-index: 3;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  min-height: 68vh;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 34rem;
  font-size: 1.28rem;
}

.plate {
  justify-self: end;
  width: min(100%, 16rem);
  aspect-ratio: 4 / 5;
  padding: 1.2rem;
  border: 1px solid var(--brass-dim);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brass) 18%, transparent), transparent 42%),
    var(--soot);
}

body.doc .plate {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brass) 22%, transparent), transparent 42%),
    var(--paper-deep);
}

.plate svg {
  width: 100%;
  height: 100%;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 2.5rem 0 0;
}

.band h2,
.doc h1,
.doc h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.band h2 {
  font-size: 1.15rem;
  color: var(--brass);
}

.band p,
.doc p,
.doc li {
  margin: 0 0 0.9rem;
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.limits {
  margin-top: 3rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
}

.limits ul,
.doc ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

footer {
  position: relative;
  z-index: 3;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.95rem;
  color: var(--mist);
}

body.doc footer {
  color: var(--brass-dim);
}

.crumb {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

.doc h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.doc h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.meta {
  margin: 0 0 2rem;
  color: var(--brass-dim);
}

.note {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 12%, transparent);
}

body.doc .note {
  background: color-mix(in srgb, var(--brass) 16%, var(--paper));
}

@keyframes latch-set {
  from {
    transform: rotate(-28deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 820px) {
  .mast {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .plate {
    justify-self: start;
    width: 10rem;
  }

  .hero {
    min-height: 0;
  }
}

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

  .mark .latch-bar {
    animation: none;
  }
}
