/* Fonts, design tokens, shared elements, navigation and footer. */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-700.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-600.woff2") format("woff2");
}

:root {
  --background: #080808;
  --surface: #141414;
  --text: #f5f5f0;
  --muted: #b4b4b0;
  --line: #303030;
  --section-space: clamp(3rem, 7vw, 6rem);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--background);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  overflow-wrap: break-word;
}

img, svg, video {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

[id] {
  scroll-margin-top: 1.5rem;
}

::selection {
  background: var(--text);
  color: var(--background);
}

.wrap {
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left)) max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -6rem;
  padding: .75rem 1rem;
  background: var(--text);
  color: #080808;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 6rem;
  padding-block: 1.25rem;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.logo svg, .logo img {
  display: block;
  width: 11.5rem;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
}

.nav a {
  padding: .65rem .9rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover, .nav a[aria-current="page"] {
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.015em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 32rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.newsletter-consent {
  margin-top: 1rem;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}

.newsletter-consent a {
  color: var(--text);
}

.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: 600 .875rem/1.3 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--text);
  color: var(--background);
}

.button:hover, button:hover, input[type="submit"]:hover {
  background: #dcdcd7;
  text-decoration: none;
}

.button.secondary {
  border-color: #666;
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--text);
  background: var(--surface);
}

.button .arrow {
  margin-left: 1.5rem;
  font-size: 1.1rem;
}

button .arrow {
  margin-left: 1.5rem;
  font-size: 1.1rem;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 2rem;
  padding-block: 2.5rem 3rem;
}

.footer-brand {
  margin-bottom: .65rem;
  font: 700 1.5rem/1.2 var(--display);
  letter-spacing: .04em;
}

.footer-note, .site-footer address {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
  font-style: normal;
}

.footer-reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  margin: 0;
  font-size: .8rem;
}

.page-heading {
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-heading .lede {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-heading h1 {
  text-transform: uppercase;
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-card label {
  display: block;
  margin-bottom: .6rem;
  font-size: .875rem;
  font-weight: 600;
}

input[type="email"], input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: .85rem 1rem;
  border: 1px solid #656565;
  border-radius: 0;
  background: #080808;
  color: var(--text);
  font: 400 1rem/1.4 var(--body);
}

input::placeholder {
  color: #a4a4a0;
  opacity: 1;
}

.form-card button {
  width: 100%;
  margin-top: 1rem;
}

.form-help {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.form-alternative {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.mailout-credit {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .75rem;
}

/* Shared responsive navigation and footer. */
@media (max-width: 55rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}

@media (max-width: 38rem) {
  .bar {
    flex-wrap: wrap;
    gap: .75rem;
    padding-block: 1.25rem .75rem;
  }
  .logo svg, .logo img {
    width: 10.5rem;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: .25rem;
  }
  .nav a {
    padding-inline: .6rem;
    font-size: .7rem;
    letter-spacing: .1em;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid > nav {
    grid-column: auto;
  }
}

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