* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Geist, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#grain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
#grain[hidden] { display: none; }
header, main, footer { position: relative; z-index: 1; }
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.direction-arrow { width: 16px; height: 16px; }
a:focus-visible, summary:focus-visible, main:focus-visible { outline: var(--site-focus-width) solid var(--paper); outline-offset: var(--site-focus-offset); }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.masthead { flex-wrap: wrap; }
.header-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-links .guide-link { white-space: nowrap; }


main { display: grid; flex: 1; align-content: center; padding-block: 84px 96px; }
.title-seat { grid-column: 1 / -1; min-width: 0; }
footer { padding-bottom: 24px; }
h1 { max-width: 1100px; font-size: clamp(26px, 8vw, 82px); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
.introduction { max-width: 42ch; margin-top: 38px; color: var(--muted); font-size: 18px; line-height: 1.5; letter-spacing: -.02em; }

.guide-link { display: inline-flex; align-items: center; min-height: var(--site-target); min-width: var(--site-target); gap: 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (hover: hover) {
  .guide-link:hover { text-decoration: underline; text-underline-offset: 5px; }
}

@media (max-width: 600px) {
  main { padding-block: 74px 78px; }
  h1 { font-size: clamp(48px, 15.5vw, 70px); line-height: 1.02; }
  h1 span { display: block; }
  footer { padding-bottom: 20px; }
  .introduction { margin-top: 30px; font-size: 16px; }
}


/* A native disclosure keeps navigation within one row on narrow phones. */
.mobile-navigation { display: none; }
@media (max-width: 380px) {
  .masthead { flex-wrap: nowrap; z-index: 2; }
  .header-links { display: none; }
  .mobile-navigation { display: block; position: relative; margin-left: auto; }
  .mobile-navigation summary { gap: var(--site-space-3); min-height: var(--site-target); list-style: none; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .menu-chevron { width: 7px; height: 7px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
  .mobile-navigation[open] .menu-chevron { margin-top: 3px; transform: rotate(225deg); }
  .mobile-navigation-links { position: absolute; z-index: 3; top: calc(100% + var(--site-space-2)); right: 0; width: 180px; max-width: calc(100vw - 2 * var(--site-gutter)); padding: var(--site-space-2); border: 1px solid var(--site-line); border-radius: var(--site-radius-control); background: var(--site-surface); box-shadow: 0 12px 32px #0004; }
  .mobile-navigation-links a { display: flex; align-items: center; min-height: var(--site-target); padding: var(--site-space-2) var(--site-space-3); border-radius: var(--site-radius-control); font-size: 14px; line-height: 1.5; }
  .mobile-navigation-links a:hover { background: var(--site-control-hover); }
}

/* The beta invitation uses the same quiet, rounded controls as the site. */
.beta-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-top: 26px; padding: 12px 18px; border: 1px solid var(--paper); border-radius: var(--site-radius-control); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; }
.beta-link:hover { background: var(--site-paper-hover); border-color: var(--site-paper-hover); }
.beta-link .direction-arrow { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .beta-link { margin-top: 22px; }
}

/* Useful product context stays secondary to the film and beta invitation. */
.product-note { max-width: 49ch; margin-top: 32px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.product-note a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
