@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: optional;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: optional;
}

:root {
  --paper: #fafaf3;
  --ink: #002233;
  --muted: #4d5c61;
  --rule: #d8deca;
  --accent: #ddff55;
  --focus: #446818;
  --gradient-03: linear-gradient(180deg, #ddff55, #c0d6ea);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.23em;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
::selection {
  color: var(--ink);
  background: var(--accent);
}

.wrap {
  width: min(64rem, calc(100% - 2 * clamp(1.5rem, 6vw, 5rem)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

.mast {
  padding-block: clamp(1.25rem, 3.8vh, 2.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font: 400 2rem/1 var(--serif);
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-word { display: block; width: auto; height: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .brand-word { animation: wordmark-in 440ms ease-out 120ms both; }
}
@keyframes wordmark-in {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% 0 -10% 0); }
}
a.brand:hover {
  text-decoration: none;
}

.home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: linear-gradient(130deg, #f5f8e8 0%, var(--paper) 47%, #f8f9ef 100%);
}
.home .wrap { width: min(77rem, calc(100% - 2 * clamp(1.25rem, 5vw, 5rem))); }
.device-word { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .035em; text-decoration-thickness: .075em; text-decoration-skip-ink: none; }
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 7vh, 5rem);
}
.hero h1 {
  margin: 0;
  font: 400 clamp(3rem, 7vw, 5.4rem) / 0.99 var(--serif);
  letter-spacing: -0.035em;
}
.intro p {
  max-width: 34ch;
  margin: 1.25rem 0 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}
.beta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 0.4rem;
  color: var(--ink);
  background: var(--accent);
  font-weight: 550;
  text-decoration: none;
}
.beta:hover {
  background: #c9ee40;
  text-decoration: none;
}

.session {
  justify-self: center;
  display: block;
  height: auto;
  width: 100%;
  margin: 0;
}

footer.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer small,
footer nav {
  font-size: 0.85rem;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 0 1.2rem;
  flex-wrap: wrap;
}
footer nav a,
footer nav span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 49rem) {
  .mast {
    padding-block: 0.85rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 1.75rem;
    padding-block: 1.75rem 2rem;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 10.8vw, 4.55rem);
  }
  .intro p {
    margin-block: 0.9rem 1.15rem;
  }
  .session {
    width: min(100%, 37rem);
  }
  footer.wrap {
    padding-block: 0.5rem 1rem;
  }
  footer nav {
    order: -1;
    width: 100%;
  }
}

.product-stage { min-width: 0; }
.product-stage [hidden], .platforms[hidden] { display: none !important; }
.platforms {
  display: inline-grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 100%; align-items: stretch; margin: 0 0 1rem;
  padding: .22rem; border: 1px solid var(--rule); border-radius: .9rem;
  background: #edf0e4;
}
.platforms legend, .platforms input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.platforms label { position: relative; cursor: pointer; }
.platforms label span {
  display: grid; justify-items: center; align-content: center; gap: .16rem;
  min-height: 48px; padding: .25rem clamp(.32rem, 1vw, .95rem);
  border-radius: .65rem; white-space: nowrap; color: var(--muted); font-size: .8rem;
}
.platforms svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.platforms label:hover span { color: var(--ink); }
.platforms input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px #00223324; }
.platforms input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.intro .beta { display: flex; width: fit-content; }
@media (max-width: 49rem) {
  .product-stage { width: min(100%, 37rem); justify-self: center; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .intro h1, .intro p, .platforms, .intro .beta, .product-stage, .home footer { animation: arrive 440ms ease-out backwards; }
  .intro h1 { animation-delay: 100ms; } .intro p { animation-delay: 180ms; }
  .platforms { animation-delay: 240ms; } .intro .beta { animation-delay: 290ms; }
  .product-stage { animation-delay: 200ms; } .home footer { animation-delay: 340ms; }
}

/* Reserve the selector and demo caption while the deferred scripts initialize. */
.platforms[hidden] { display: inline-grid !important; visibility: hidden; }
.session:has(.session-poster:not([hidden])) { padding-bottom: 2.15rem; }
