@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-300.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-400.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-500.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-700.woff2") format("woff2");
}

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --font: "Be Vietnam Pro", sans-serif;
  --gutter: clamp(2.5rem, 6vw, 7rem);
  --frame-max: 1440px;
  --inset: calc((100% - min(100% - var(--gutter), var(--frame-max))) / 2);
  --inner: clamp(20px, 2.4vw, 40px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pad: calc((100vw - min(100vw - var(--gutter), var(--frame-max))) / 2 + var(--inner));
}

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

html {
  min-height: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100%;
  padding: 5rem calc(var(--inset) + var(--inner)) 0; /* room for the fixed header */
  /* Off-white with the legacy grid, the same grid as the range section. */
  background:
    linear-gradient(rgba(var(--charcoal-rgb), 0.045) 1px, transparent 1px) 0 0 / 3.5rem 3.5rem,
    linear-gradient(90deg, rgba(var(--charcoal-rgb), 0.045) 1px, transparent 1px) 0 0 / 3.5rem 3.5rem,
    var(--off-white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: clamp(13px, 0.9vw, 14px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.canvas {
  --canvas-line-on-light: rgba(var(--charcoal-rgb), 0.14);
  --canvas-line-on-dark: rgba(255, 255, 255, 0.18);
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.canvas span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100vh;
  background: var(--canvas-line-on-light);
}

.canvas span {
  left: 50%;
  transform: translateX(-50%);
}

main > section {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: clamp(48px, 8vw, 96px) var(--pad);
}

/* The one section title style, at the hero headline's scale. */
main section h2,
footer > section h2 {
  max-width: 22ch;
  margin: 0 0 clamp(0.75rem, 1.25vw, 1rem);
  color: var(--charcoal);
  font-size: clamp(1.75rem, 3.2vw, 2.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

main section h2 strong,
footer > section h2 strong {
  color: var(--crimson);
  font-weight: inherit;
}

main section p {
  max-width: 36rem;
  color: rgba(var(--charcoal-rgb), 0.7);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
}

figure {
  margin: 0;
}

main section h3 {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color var(--duration-normal) var(--ease-out);
}

main section small {
  color: rgba(var(--charcoal-rgb), 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

main section :is(a, button):focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 4px;
}
