/* =============================================================================
   Fonts

   Founders Grotesk Text and Tiempos Headline are licensed from Klim Type
   Foundry for this domain. The files are not redistributable.
   ============================================================================= */
@font-face {
  font-family: "Founders Grotesk Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/FoundersGroteskTextWeb-Regular.woff2") format("woff2"),
       url("assets/fonts/FoundersGroteskTextWeb-Regular.woff") format("woff");
}

@font-face {
  font-family: "Founders Grotesk Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/FoundersGroteskTextWeb-RegularItalic.woff2") format("woff2"),
       url("assets/fonts/FoundersGroteskTextWeb-RegularItalic.woff") format("woff");
}

@font-face {
  font-family: "Founders Grotesk Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/FoundersGroteskTextWeb-Medium.woff2") format("woff2"),
       url("assets/fonts/FoundersGroteskTextWeb-Medium.woff") format("woff");
}

@font-face {
  font-family: "Founders Grotesk Text";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/FoundersGroteskTextWeb-MediumItalic.woff2") format("woff2"),
       url("assets/fonts/FoundersGroteskTextWeb-MediumItalic.woff") format("woff");
}

@font-face {
  font-family: "Tiempos Headline";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/TiemposHeadlineWeb-Medium.woff2") format("woff2"),
       url("assets/fonts/TiemposHeadlineWeb-Medium.woff") format("woff");
}

@font-face {
  font-family: "Tiempos Headline";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/TiemposHeadlineWeb-MediumItalic.woff2") format("woff2"),
       url("assets/fonts/TiemposHeadlineWeb-MediumItalic.woff") format("woff");
}

/* =============================================================================
   CSS Custom Properties

   Colours come from Arnold Ventures. Structure and typography follow
   turnout.rocks. Both are documented in README.md, and tests/test_design_system.py
   asserts this block against it.
   ============================================================================= */
:root {
  /* Text */
  --color-text:         #0e0e0e;
  /* Darker than Arnold Ventures' #777777, which measures 4.21:1 on the tinted
     band and fails AA. */
  --color-text-muted:   #6f6f6f;
  --color-text-inverse: #ffffff;

  /* Brand */
  --color-primary:      #0e50e9;
  --color-link:         #0e50e9;
  --color-link-hover:   #101b3b;

  /* Surfaces */
  --color-bg:           #ffffff;
  --color-surface-alt:  #f6f8fe;
  --color-dark-surface: #101b3b;

  /* Accents */
  --color-highlight:    #fedb37;
  --color-divider:      #d8e3fc;

  /* Typography */
  --font-sans:    "Founders Grotesk Text", Arial, Helvetica, sans-serif;
  --font-display: "Tiempos Headline", Georgia, "Times New Roman", Times, serif;

  --text-sm:   0.875em;
  --text-base: 1em;
  --text-lg:   1.125em;
  --text-xl:   1.25em;

  /* Near-imperceptible by design. See README, "Labels". */
  --tracking-eyebrow: 0.0075em;
  --tracking-label:   0.0058em;

  /* Spacing */
  --space-1:  0.25em;
  --space-2:  0.5em;
  --space-3:  0.75em;
  --space-4:  1em;
  --space-6:  1.5em;
  --space-8:  2em;
  --space-10: 2.5em;
  --space-12: 3em;
  --space-16: 4em;
  --space-20: 5em;

  /* Layout */
  --container-max: 75em;
  --container-pad: 1em;
  --rhythm:        5vw;
  --rhythm-wide:   7vw;

  /* Depth comes from this, not from shadows. The white stop is capped so that
     white text over --color-primary stays above 4.5:1 at the bright corner. */
  --sheen: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12) 0, rgba(0, 0, 0, 0.4) 64%);

  --transition:       0.2s;
  --transition-sweep: 0.3s ease-in-out;
}

/* =============================================================================
   Reset & Base
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Interpolates 14px to 16px between 300px and 1400px of viewport. Every em in
   this stylesheet scales from here. */
body {
  font-family: var(--font-sans);
  font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1400 - 300)));
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  transition: color var(--transition);
}

/* Underlined by default, underline removed on hover. Deliberate, and matches
   turnout.rocks. */
a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 500;
  color: inherit;
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   Utilities
   ============================================================================= */

/* Hidden visually, still announced. Use for accessible names. */
.a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Hidden from everyone. Exists only as an aria-describedby target. */
.squelch,
[hidden] {
  display: none;
}

.is-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* Keeps words together to prevent orphans in display headings. */
.w {
  white-space: nowrap;
}

.list-bare {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =============================================================================
   Layout

   .region is a full-width band that owns its background and vertical rhythm.
   Its named grid lines let any child sit on the measure (grid-column: main)
   or bleed the full width (.bleed). .inner carries the column grid.
   ============================================================================= */
.region {
  padding-inline: var(--container-pad);
}

.inner {
  position: relative;
  padding-block: var(--rhythm);
}

@supports (display: grid) {
  .region {
    display: grid;
    grid-template-columns:
      [edge-start] minmax(var(--container-pad), 1fr)
      [main-start] minmax(0, var(--container-max))
      [main-end] minmax(var(--container-pad), 1fr)
      [edge-end];
    padding-inline: 0;
  }

  .region > * {
    grid-column: main;
  }

  .region > .bleed {
    grid-column: edge;
  }

  @media (min-width: 40em) {
    .inner {
      display: grid;
      grid-template-columns: [content-start] repeat(4, 1fr) [content-end];
      column-gap: 3.125%;
      padding-block: var(--rhythm-wide);
    }

    .inner > * {
      grid-column: content;
    }
  }

  @media (min-width: 60em) {
    .inner {
      grid-template-columns: [content-start] repeat(12, 1fr) [content-end];
      column-gap: 1.6666667%;
    }
  }
}

.region--tint {
  background-color: var(--color-surface-alt);
}

.region--brand {
  background-color: var(--color-primary);
  background-image: var(--sheen);
  color: var(--color-text-inverse);
}

/* =============================================================================
   Typography

   The serif is opt-in through .hed. A heading without it stays in Founders
   Grotesk, which is how section eyebrows keep their sans setting.
   ============================================================================= */
.hed {
  font-family: var(--font-display);
  font-weight: 500;
}

/* Emphasis in a display heading takes colour rather than italics. */
.hed em {
  color: var(--color-primary);
  font-style: inherit;
}

.hed-home-lead {
  font-size: 1.875em;
  line-height: 1.1;
  margin-bottom: 0.45em;
}

.hed-page-title {
  font-size: 1.75em;
  line-height: 1.125;
  margin-bottom: 0.5em;
  color: var(--color-dark-surface);
}

.region--brand .hed-page-title {
  color: inherit;
}
@media (min-width: 30em) {
  .hed-home-lead {
    font-size: 2.4em;
  }

  .hed-page-title {
    font-size: 2.5em;
  }
}

@media (min-width: 60em) {
  .hed-home-lead {
    font-size: 4em;
    line-height: 0.90625;
  }

  .hed-page-title {
    font-size: 3.375em;
    line-height: 1.074;
  }
}

.blurb p {
  font-size: var(--text-lg);
  line-height: 1.333;
}

@media (min-width: 30em) {
  .blurb p {
    font-size: 1.25em;
  }
}

/* =============================================================================
   Labels

   Uppercase, Founders Grotesk, 0.875em apart from the eyebrow. Hierarchy comes
   from weight and colour rather than size. The tracking is deliberately
   near-imperceptible; a conventional 0.05em reads as a different typeface.
   Author the text in sentence case and let CSS do the uppercasing.
   ============================================================================= */
.hed-section {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-10);
}

.region--brand .hed-section {
  color: var(--color-highlight);
}

.label {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text);
}

.region--brand .label {
  color: inherit;
}

.meta {
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.meta a {
  font-weight: 500;
}

.link-more {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.link-more::after {
  content: " \00BB";
  display: inline-block;
  padding-left: 0.15em;
}

/* =============================================================================
   Skip link
   ============================================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-highlight);
  color: var(--color-text);
  font-weight: 500;
}

.skip-link:focus {
  left: 0;
}

/* =============================================================================
   Rule

   A bar that straddles the section boundary: half of it sits outside .inner,
   pulled back by a negative margin of half its own height. Last child in a
   content band, first child in the footer.
   ============================================================================= */
/* A single accent colour for every rule. Yellow is the one value that reads
   against both the white and the brand-blue bands. */
.rule {
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  margin: 0;
  border: none;
  background-color: var(--color-highlight);
}

.rule:first-child {
  top: 0;
  margin-top: -4px;
}

.rule:last-child {
  bottom: 0;
  margin-bottom: -4px;
}

@media (min-width: 50em) {
  .rule {
    height: 36px;
    width: 50%;
  }

  .rule:first-child {
    margin-top: -18px;
  }

  .rule:last-child {
    margin-bottom: -18px;
  }
}

@media (min-width: 60em) {
  .inner > .rule {
    grid-column: content-start / span 6;
    width: 100%;
  }
}

/* =============================================================================
   Buttons

   The asymmetric padding is optical centring for Founders Grotesk's baseline.
   ============================================================================= */
.btn {
  display: inline-block;
  padding: 0.35em 0.75em 0.5em;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.btn:hover,
.btn:focus {
  background-color: var(--color-link-hover);
  color: var(--color-text-inverse);
  text-decoration: none;
}

@media (min-width: 30em) {
  .btn {
    padding: 0.5em 1.25em 0.65em;
  }
}

.btn--on-dark {
  background-color: var(--color-text-inverse);
  color: var(--color-link);
}

.btn--on-dark:hover,
.btn--on-dark:focus {
  background-color: var(--color-highlight);
  color: var(--color-text);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background-color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
  color: var(--color-link);
}

/* =============================================================================
   Masthead
   ============================================================================= */
.site-mast {
  background-color: var(--color-primary);
  background-image: var(--sheen);
  color: var(--color-text-inverse);
}

.enhanced .site-mast {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-mast .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}

.site-mast a {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.logo-lockup__divider {
  width: 1px;
  align-self: stretch;
  min-height: 1.75em;
  background-color: rgba(255, 255, 255, 0.35);
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

/* A definite height rather than max-height, so an SVG shipped without intrinsic
   dimensions still resolves its width from the aspect ratio. */
.site-logo img {
  display: block;
  width: auto;
  height: 28px;
}

@media (min-width: 33.75em) {
  .site-logo img {
    height: 50px;
  }
}

/* =============================================================================
   Navigation
   ============================================================================= */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-inverse);
  text-decoration: none;
  overflow: hidden;
}

/* A panel parked off-canvas at 45 degrees, slid in on hover. Navy so it reads
   against the brand-blue masthead. */
.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-dark-surface);
  transform: translate(100%, 100%) scale(2) rotate(-45deg);
  transition: transform var(--transition-sweep);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: translate(0, 0) scale(3) rotate(-45deg);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.nav-link[aria-current] {
  background-color: var(--color-dark-surface);
  font-weight: 500;
}

.toggle--site-nav {
  display: none;
  padding: var(--space-2);
  color: var(--color-text-inverse);
  font-size: var(--text-lg);
}

/* Below 44em the navigation collapses into a full-screen drawer. Without
   scripting the toggle stays hidden and the list renders inline. */
@media (max-width: 43.99em) {
  .enhanced .toggle--site-nav {
    display: inline-flex;
  }

  .enhanced .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-8);
    font-size: 1.75em;
    background-color: var(--color-primary);
    background-image: var(--sheen);
    overflow-y: auto;
  }

  .enhanced .site-menu.is-open .site-nav {
    display: flex;
  }

  .enhanced .site-menu.is-open .toggle--site-nav {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 300;
  }
}

/* =============================================================================
   Hero
   ============================================================================= */
@media (min-width: 60em) {
  .home-lead-blurb {
    grid-column: content-start / span 9;
  }
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  list-style: none;
  padding: 0;
}

.date-badge {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-3) var(--space-4);
  min-width: 11em;
}

.date-badge .label {
  display: block;
}

.date-badge__value {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* =============================================================================
   Prose
   ============================================================================= */
.prose {
  max-width: 42em;
}

.prose h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.prose ul,
.prose ol {
  margin-block: var(--space-4);
  padding-left: var(--space-6);
}

.prose li + li {
  margin-top: var(--space-2);
}

/* =============================================================================
   Key dates
   ============================================================================= */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.date-card {
  border: 1px solid var(--color-divider);
  padding: var(--space-6);
}

.date-card__date {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-dark-surface);
}

.date-card__note {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =============================================================================
   Schedule
   ============================================================================= */
.to-table {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 2px solid var(--color-dark-surface);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.schedule-table td {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: baseline;
}

.schedule-table .col-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.schedule-table .col-event {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

/* =============================================================================
   Registration
   ============================================================================= */
.register-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.register-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =============================================================================
   Sponsors
   ============================================================================= */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

.sponsor-grid img {
  width: auto;
  max-height: 56px;
}

.sponsor-placeholder {
  color: var(--color-text-muted);
}

/* Marks content that is still awaiting delivery; asserted by the launch suite. */
.pending-notice {
  margin-top: var(--space-8);
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-highlight);
  color: var(--color-text-muted);
}

/* =============================================================================
   FAQ
   ============================================================================= */
.faq-list {
  border-top: 1px solid var(--color-divider);
  max-width: 46em;
}

.faq-group-header {
  margin-top: var(--space-10);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-sans);
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item[open] summary {
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-6);
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-highlight);
}

.faq-note {
  max-width: 46em;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

/* =============================================================================
   Footer
   ============================================================================= */
.site-footer {
  margin-top: auto;
  background-color: var(--color-dark-surface);
  background-image: var(--sheen);
  color: var(--color-text-inverse);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-8);
}

.footer-credit .label {
  display: block;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
}

/* Equal-height mark slots keep the two credits on the same baseline even though
   one is artwork and the other is set type. */
.footer-credit > a {
  display: flex;
  align-items: center;
  min-height: 2.5em;
}

.site-footer .site-logo img {
  height: 32px;
}

.info-footer {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

/* =============================================================================
   Brand-surface overrides
   ============================================================================= */
.region--brand a:not(.btn) {
  color: var(--color-highlight);
}

.region--brand a:not(.btn):hover,
.region--brand a:not(.btn):focus {
  color: var(--color-text-inverse);
}

.region--brand .meta,
.region--brand .register-note {
  color: rgba(255, 255, 255, 0.85);
}

