@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --mist: #f1f5f3;
  --ink: #13262b;
  --slate: #48605f;
  --sage: #3f6b5c;
  --wheat: #e0b23f;
  --rule: #c7d3cf;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--sage); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--mist); padding: 0.5rem 0.9rem;
}
.skip:focus { top: 0.75rem; }

/* Top bar */
.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem var(--gutter);
}
.top-name { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9375rem; }
.top nav a { white-space: nowrap; text-decoration: none; color: var(--slate); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: the wordmark stands on a horizon with the sun coming up behind it */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) var(--gutter) 0; }
.sun {
  position: absolute; right: clamp(-4rem, 6vw, 9rem); bottom: 0;
  width: clamp(14rem, 38vw, 32rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--wheat);
  transform: translateY(50%);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise { from { transform: translateY(72%); } }
.wordmark {
  position: relative;
  font-size: clamp(4.25rem, 19.5vw, 19rem);
  font-weight: 700; line-height: 0.8; letter-spacing: -0.055em;
  margin-left: -0.06em; padding-bottom: 0.09em;
}
.horizon { border: 0; border-top: 2px solid var(--ink); margin: 0 calc(var(--gutter) * -1); position: relative; }

.lede {
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0;
  display: grid; gap: 1.25rem; max-width: 60rem;
}
.lede-main {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch;
}
.lede p + p { max-width: var(--measure); color: var(--slate); }

/* Sections */
.band { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0; }
.band > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.01em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.pair { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 68rem; }
.pair h3 { font-size: 1.25rem; padding-top: 1rem; border-top: 2px solid var(--ink); margin-bottom: 0.75rem; }
.pair p { max-width: var(--measure); color: var(--slate); }

.prose { max-width: var(--measure); display: grid; gap: 1rem; color: var(--slate); }

.terms-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.terms-list li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.25rem 2rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.terms-list li:last-child { border-bottom: 1px solid var(--rule); }
.terms-list strong { font-weight: 600; }
.terms-list span { color: var(--slate); }

/* Company record */
.record { margin: 0; max-width: 46rem; }
.record div { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.25rem 2rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.record div:last-child { border-bottom: 1px solid var(--rule); }
.record dt { color: var(--slate); }
.record dd { margin: 0; font-weight: 500; }

/* Footer */
.foot {
  margin-top: clamp(4rem, 10vw, 8rem); padding: 1.75rem var(--gutter) 2.5rem;
  border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-size: 0.9375rem; color: var(--slate);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Legal pages */
.doc { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 0; max-width: calc(40rem + var(--gutter) * 2); }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -0.03em; }
.doc .dated { color: var(--slate); margin-top: 0.75rem; }
.doc h2 { font-size: 1.25rem; margin: 2.5rem 0 0.6rem; }
.doc p + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.doc li + li { margin-top: 0.35rem; }

@media (max-width: 34rem) {
  .top { flex-direction: column; gap: 0.5rem; padding-bottom: 0.5rem; }
  .terms-list li, .record div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sun { animation: none; }
}
