/* Reset, page shell, type scale, motion. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(39, 96, 108, .55), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(31, 84, 96, .5), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 400 1.0625rem/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* the deck's dot grid */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(157, 183, 185, .16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
}
a { color: inherit; text-decoration-color: rgba(157, 183, 185, .5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--butter); }
strong { font-weight: 600; }
::selection { background: var(--butter); color: var(--bg); }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; }
kbd { font: 500 .66rem var(--mono); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 5px; color: var(--fg-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.page {
  position: relative;
  z-index: 1;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) env(safe-area-inset-bottom);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.screen { animation: screen-in 460ms var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }

/* Type scale */
.wordmark { margin: 0; font: 400 1.3rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--fg); }
.wordmark--sm { font-size: 1rem; }
.eyebrow { margin: 0 0 14px; font: 400 .74rem/1.4 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--butter); }
.eyebrow--section { margin-top: 40px; }
.label { margin: 0; font: 400 .68rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.headline { margin: 0; font: 300 clamp(3rem, 12.5vw, 5.6rem)/1.02 var(--serif); letter-spacing: -.025em; outline: none; text-wrap: balance; }
.headline em { font-style: italic; color: var(--butter); font-weight: 300; }
.h2 { margin: 0 0 18px; font: 400 clamp(2rem, 6.5vw, 3rem)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lede { margin: 22px 0 28px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
.lede--small { font-size: 1.05rem; margin: 12px 0 24px; }
.fine { margin: 18px 0 0; font: 400 .68rem/1.8 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.closing { font: 400 clamp(1.25rem, 4.4vw, 1.55rem)/1.4 var(--serif); color: var(--fg-2); letter-spacing: -.005em; max-width: 40em; }
.closing mark { background: none; color: var(--butter); }

/* Masthead, site navigation and footer */
.masthead { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.masthead .wordmark { margin-right: auto; font-size: 1.1rem; }
.sitenav { display: flex; align-items: center; gap: 2px; }
.sitenav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; border-radius: var(--r); font: 400 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 160ms; }
.sitenav a:hover { color: var(--fg); }
.sitenav a[aria-current='page'] { display: none; } /* phones: only offer the other page */
.colophon { display: grid; gap: 14px; margin-top: 56px; padding: 26px 0 32px; border-top: 1px solid var(--border); }
.colophon .wordmark { margin-bottom: 8px; }
.colophon .label { line-height: 1.9; }
.colophon a { color: var(--fg-2); }
@media (min-width: 640px) {
  .masthead { gap: 16px; }
  .masthead .wordmark { margin-right: 22px; font-size: 1.3rem; }
  .sitenav { margin-right: auto; }
  .sitenav a { padding: 0 10px; }
  .sitenav a[aria-current='page'] { display: inline-flex; color: var(--butter); }
  .colophon { grid-template-columns: 1fr auto; align-items: end; }
  .colophon-right { text-align: right; }
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.reveal { animation: rise 800ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
