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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: `hidden` would make the body a scroll container and
     silently break every position:sticky on the page. */
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

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

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; font-size: 0.9rem;
}
.skip:focus { left: 0; }

/* The lockup is drawn from two decorative spans; this is what is actually
   announced. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Type scale ---------------------------------------------------------- */

/* Measure caps below are in `ch`, which resolves against the element's OWN
   font-size. Never set them on a wrapper that runs at body size. */
.display {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.2vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.display em {
  font-style: italic;
  font-weight: 300;
}

.lede {
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* The typographic echo of "EVENTS" in the mark. Used for every label. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 0 0 auto;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.num {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

/* --- Grain --------------------------------------------------------------- */
/* The logo is printed on textured stock. This is that texture. */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
