/* The website's own layout, on top of tokens.css and design-system.css, which are copies from the design system. */

/* Type styles from the tokens, which the bundle leaves to each surface. */

.display-xl,
.display-lg,
.display-md {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.display-xl {
  font-size: 72px;
  line-height: 72px;
  letter-spacing: -0.01em;
}

.display-lg {
  font-size: 52px;
  line-height: 54px;
  letter-spacing: -0.01em;
}

.display-md {
  font-size: 38px;
  line-height: 42px;
}

.body-lg {
  font-size: 18px;
  line-height: 28px;
}

/* Header and footer */

.site-header,
.page-hero,
.home-hero,
.site-footer {
  padding-inline: max(var(--space-4), calc((100% - var(--site-max)) / 2));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6) 0;
}

.site-logo {
  width: auto;
  height: 48px;
}

.band-aqua a,
.band-spine a {
  color: inherit;
}

.site-footer {
  display: grid;
  gap: var(--space-12);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer h2 {
  margin: 0 0 var(--space-4);
  font: 800 22px/28px var(--font-display);
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer ul {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}

.site-footer-brand {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  max-width: 26rem;
}

.site-footer-brand p {
  font-size: 14px;
  line-height: 20px;
  opacity: 0.85;
}

.site-footer-logo {
  width: auto;
  height: 44px;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 233, 201, 0.3);
  font-size: 14px;
  line-height: 20px;
}

.site-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
}

.site-footer-bottom nav a + a {
  margin-left: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid rgba(255, 233, 201, 0.5);
}

/* Home page */

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-12) var(--space-16);
}

.home-hero > * {
  min-width: 0;
}

.home-hero h1 {
  margin-bottom: var(--space-4);
}

.home-hero p {
  max-width: 30em;
  margin-bottom: var(--space-6);
}

/* An aqua button would vanish on the aqua band. */
.band-aqua .button-on-aqua {
  border-color: transparent;
  background: var(--band-spine);
  color: var(--on-spine);
}

.site-tv-frame {
  padding: 14px;
  border-radius: 24px;
  background: var(--on-accent);
}

.site-tv-screen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 12px;
}

.site-tv-screen .watch-card {
  width: auto;
}

.home-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.home-columns h2 {
  margin-bottom: var(--space-2);
}

/* While it's only open to invited families */

.coming-badge {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--band-spine);
  color: var(--on-spine);
  font: 700 14px/20px var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua-300);
}

@media (prefers-reduced-motion: no-preference) {
  .coming-dot {
    animation: coming-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes coming-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(134, 223, 212, 0.25);
  }
}

.home-hero p + p {
  margin-top: calc(-1 * var(--space-3));
}

.coming-tv {
  position: relative;
}

.coming-sticker {
  position: absolute;
  top: -28px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--band-spine);
  box-shadow: var(--shadow-pop);
  color: var(--on-spine);
  font: 800 20px/22px var(--font-display);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(10deg);
}

.invited {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}

.invited h2 {
  text-align: center;
}

.invited-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: min(44rem, 100%);
  margin: 0;
  padding: 0;
  border: 0;
}

/* The radio button is there for the keyboard and screen readers, and the whole card shows its state. */
.invited-answer {
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-6);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.invited-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.invited-answer:hover {
  border-color: var(--line-strong);
}

.invited-answer:has(:checked) {
  border-color: var(--accent-edge);
  background: var(--accent-tint);
  box-shadow: var(--shadow-shelf);
}

.invited-answer:has(:focus-visible) {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 2px;
}

.invited-answer strong {
  font: 800 24px/30px var(--font-display);
}

.invited-answer span {
  color: var(--ink-muted);
}

.invited-form {
  display: none;
  width: min(32rem, 100%);
}

.invited:has([value="yes"]:checked) .invited-form-code,
.invited:has([value="no"]:checked) .invited-form-email {
  display: block;
}

.invited-form .field {
  color: var(--ink);
}

.invited-row {
  display: flex;
  gap: var(--space-2);
}

.invited-row input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
}

.invite-code-input {
  font: 700 20px/24px var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invite-code-input::placeholder {
  opacity: 0.45;
}

.invited-hint {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  line-height: 20px;
}

.invited-notice {
  margin: var(--space-3) 0 0;
}

/* The design system's .notice sets display, which would otherwise beat the hidden attribute. */
[hidden] {
  display: none !important;
}

/* A field that only bots fill in, kept off the screen rather than hidden, because some bots skip hidden fields. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Other pages */

.page-hero {
  padding-block: var(--space-12) var(--space-16);
}

.prose {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
}

.prose h2 {
  margin: var(--space-6) 0 0;
  font-weight: 800;
}

.prose ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-6);
}

.prose a {
  color: inherit;
}

.price {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 72px;
}

.price small {
  font-size: 38px;
}

.to-add {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  outline: 2px dashed var(--on-accent);
  background: transparent;
  color: var(--on-accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .home-hero,
  .home-columns,
  .invited-answers,
  .site-footer-top {
    grid-template-columns: 1fr;
  }

  .coming-sticker {
    top: -24px;
    right: -4px;
    width: 88px;
    height: 88px;
    font-size: 16px;
    line-height: 18px;
  }
}

@media (max-width: 720px) {
  .invited-row {
    flex-direction: column;
  }

  .display-xl {
    font-size: 52px;
    line-height: 54px;
  }

  .display-lg {
    font-size: 38px;
    line-height: 42px;
  }
}
