/* Omnirelio — one stylesheet for every page. No JavaScript anywhere on the site. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* The logo's own navy, then its ring: cyan, blue, violet. */
  --ink: #010622;
  --ink-raised: #0a1036;
  --line: #1d2657;
  --text: #eef1ff;
  --muted: #a6aed8;
  --cyan: #3ee6f7;
  --blue: #5868ff;
  --violet: #c88bff;
  --ring: linear-gradient(115deg, var(--cyan), var(--blue) 55%, var(--violet));

  /* Scoremote's team colors (Royal blue and Red from the app's palette). */
  --team-a: #1e40af;
  --team-b: #aa1a1a;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --numerals: "Barlow Condensed", "Arial Narrow", var(--sans);

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.2vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

figure {
  margin: 0;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--text);
  color: var(--ink);
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

/* Header: the ring and the name, as in the logo. */

.site-header {
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

/* Home */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 6.5rem) clamp(3rem, 8vw, 6rem);
}

@media (min-width: 52rem) {
  .home-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.ring {
  width: min(100%, 26rem);
  margin-inline: auto;
  border-radius: 50%;
  /* The ring's own colors, glowing into the page. */
  box-shadow:
    0 0 6rem -1rem rgb(62 230 247 / 0.35),
    0 0 9rem -2rem rgb(200 139 255 / 0.3);
}

.home-hero h1 {
  font-size: var(--step-3);
  font-weight: 750;
  max-width: 14ch;
}

.home-hero p {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 34ch;
}

.apps {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.apps h2 {
  font-size: var(--step-2);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.app-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  max-width: 44rem;
  color: inherit;
  text-decoration: none;
}

.app-entry img {
  width: clamp(4.5rem, 12vw, 6rem);
  border-radius: 22%;
}

.app-entry h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

.app-entry:hover h3 {
  color: var(--cyan);
}

.app-entry p {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Scoremote */

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}

@media (min-width: 56rem) {
  .app-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.app-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.app-title img {
  width: 3.5rem;
  border-radius: 22%;
}

.app-title span {
  font-size: var(--step-1);
  font-weight: 700;
}

.app-hero h1 {
  font-family: var(--numerals);
  font-weight: 800;
  font-size: clamp(2.8rem, 2rem + 4.2vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 11ch;
}

.app-hero .lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 36ch;
}

.store {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.store .soon {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-raised);
  font-weight: 600;
}

.store small {
  color: var(--muted);
  font-size: var(--step--1);
}

/* The scoreboard: the app's Broadcast style, in HTML. */

.board {
  --radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: calc(var(--radius) + 6px);
  background: #0b0d12;
  box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / 0.7), 0 0 0 1px var(--line);
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
}

.panel {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.15rem;
  padding: 1.25rem 0.75rem 1.1rem;
  border-radius: var(--radius);
  color: #fff;
  min-height: clamp(13rem, 34vw, 18rem);
}

.panel.a {
  background: var(--team-a);
}

.panel.b {
  background: var(--team-b);
}

.team {
  font-family: var(--numerals);
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.points {
  position: relative;
  display: grid;
  font-family: var(--numerals);
  font-weight: 800;
  font-size: clamp(5.5rem, 3.5rem + 9vw, 9.5rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

/* Both numbers share one cell; the old one leaves as the new one arrives. */
.points span {
  grid-area: 1 / 1;
  text-align: center;
}

.serve {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.3rem rgb(255 255 255 / 0.22);
}

.tag {
  font-family: var(--numerals);
  font-weight: 800;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  background: #fff;
  color: var(--team-a);
}

/* Keeps both panels' lines level when only one team has a tag or a set. */
.placeholder {
  visibility: hidden;
}

.chips {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-family: var(--numerals);
  font-weight: 800;
  font-size: clamp(0.8rem, 0.72rem + 0.3vw, 0.95rem);
  letter-spacing: 0.03em;
}

.chips span {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.16);
}

.board-caption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}

/* The one moment on the page: Eagles win a rally, 23 becomes 24, set point. */
@media (prefers-reduced-motion: no-preference) {
  .points .before {
    animation: leave 0.45s cubic-bezier(0.5, 0, 0.75, 0) 1.1s both;
  }

  .points .after {
    animation: arrive 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15) 1.4s both;
  }

  .panel.a .tag {
    animation: tag-in 0.35s ease-out 1.9s both;
  }

  .panel.a {
    animation: pulse 0.6s ease-out 1.4s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .points .before {
    visibility: hidden;
  }
}

@keyframes leave {
  to {
    transform: translateY(-0.35em);
    opacity: 0;
  }
}

@keyframes arrive {
  from {
    transform: translateY(0.35em);
    opacity: 0;
  }
}

@keyframes tag-in {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}

@keyframes pulse {
  from {
    filter: brightness(1.35);
  }
}

/* Sections */

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.section > .wrap > h2 {
  font-size: var(--step-2);
  font-weight: 700;
  max-width: 24ch;
}

.section .intro {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 52ch;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.steps li::before {
  content: counter(step);
  font-family: var(--numerals);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  background: var(--ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.steps h3 {
  font-size: var(--step-1);
  font-weight: 650;
}

.steps p {
  color: var(--muted);
}

.sports {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 56rem;
}

.sports li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 550;
}

.features {
  margin: 2rem 0 0;
  display: grid;
  gap: 0;
  max-width: 56rem;
}

.features div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.features div:first-child {
  border-top: 1px solid var(--line);
}

@media (min-width: 44rem) {
  .features div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.features dt {
  font-weight: 650;
}

.features dd {
  margin: 0;
  color: var(--muted);
}

.faq {
  margin-top: 1.75rem;
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding-block: 1.05rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

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

.faq details p {
  color: var(--muted);
  padding-bottom: 1.1rem;
  max-width: var(--measure);
}

.faq details p + p {
  margin-top: -0.4rem;
}

/* Long text: the privacy policy. */

.doc {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.doc > * {
  max-width: var(--measure);
}

.doc h1 {
  font-size: var(--step-3);
  font-weight: 750;
}

.doc .updated {
  margin-top: 0.75rem;
  color: var(--muted);
}

.doc h2 {
  font-size: var(--step-1);
  font-weight: 700;
  margin-top: 2.5rem;
}

.doc p,
.doc ul {
  margin-top: 0.9rem;
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc strong {
  font-weight: 650;
}

/* The help guide: a doc with a contents list, sub-headings, tips and questions. */

.doc .crumb {
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
}

.doc .lede {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--muted);
}

.toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc h2 {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.4rem;
  columns: 2 14rem;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.doc section {
  scroll-margin-top: 1rem;
}

.doc h3 {
  font-size: var(--step-0);
  font-weight: 700;
  margin-top: 1.75rem;
}

.doc h3 + p {
  margin-top: 0.4rem;
}

.doc .tip {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--cyan);
  background: var(--ink-raised);
  border-radius: 0 10px 10px 0;
}

.not-found {
  padding-block: clamp(4rem, 14vw, 9rem);
}

.not-found h1 {
  font-size: var(--step-3);
}

.not-found p {
  margin-top: 1rem;
  color: var(--muted);
}
