/* Brand v1 tokens. Restyle the site from this block. */

:root {
  --color-ink: #1b2a41;
  --color-paper: #faf7f0;
  --color-amber: #e9a23b;
  --color-amber-deep: #8f5b0a;
  --color-note: #f6e3b4;
  --color-slate: #5a6270;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: clamp(1.625rem, 4.5vw, 4.25rem);
  --logo-width: clamp(10.75rem, 30vw, 15rem);
}

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

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

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-ink);
  color: var(--color-paper);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 0.9rem;
  overflow: visible;
  clip: auto;
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 700;
  text-decoration: none;
}

.sheet {
  width: min(72rem, calc(100% - (2 * var(--gutter))));
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: var(--gutter);
  display: flex;
  flex-direction: column;
}

.brand {
  display: block;
  width: var(--logo-width);
  /* Source PNG is 1014×298 with 66px of clear space on the left.
     Shift the file so the mark lines up with the column. */
  margin-left: calc(var(--logo-width) * -66 / 1014);
  border-radius: 2px;
}

.brand:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 4px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

main {
  flex: 1;
  padding-top: clamp(2.75rem, 9vh, 6rem);
  padding-bottom: clamp(2.5rem, 8vh, 4rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--color-slate);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11em;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 .line {
  display: block;
}

h1 .accent {
  color: var(--color-amber-deep);
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--color-slate);
  font-size: 1.125rem;
  line-height: 1.5;
}

.action {
  margin: 1.75rem 0 0;
}

.action a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.action a:hover {
  color: var(--color-amber-deep);
}

.action a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.5;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 0.35rem;
}

@media (forced-colors: active) {
  h1 .accent,
  .kicker,
  .lede,
  footer {
    color: CanvasText;
  }
}

@media (max-width: 26rem) {
  h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
  }
}
