:root {
  color-scheme: light;

  /* the app's white ice and its reds: ink type, ash small print, and the
     ribbed concrete nosing every riser in the app carries along its top */
  --color-page: #f4f7fa;
  --color-glow: #e3e9ef;
  --color-sheet: #ffffff;
  --color-text: #1c1114;
  --color-muted: #6a5c60;
  --color-line: #e3e9ef;
  --color-rib: #bfcad6;
  --color-link: #ce1b32;
  --color-link-deep: #8a1329;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "League Gothic", "Arial Narrow", Impact, sans-serif;

  --text-base: 1.0625rem;
  --text-small: 0.9375rem;
  --text-label: 0.8125rem;
  --text-title: clamp(2.25rem, 1.55rem + 3.2vw, 3.25rem);

  --sheet-width: 46rem;
  --sheet-width-narrow: 34rem;
  --radius-plate: 6px;
  --nosing: 4px;
  --rib: 2px;
  --rib-step: 5px;
  --duration-fast: 150ms;
}

@font-face {
  font-family: "League Gothic";
  src: url("assets/fonts/LeagueGothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  background: var(--color-page) radial-gradient(ellipse 60% 18rem at 50% 0, var(--color-glow), transparent) no-repeat;
  color: var(--color-text);
  font: var(--text-base) / 1.65 var(--font-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- the three page links, centered above the sheet */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  padding: 1.5rem 1rem 1.25rem;
  font-size: var(--text-small);
  font-weight: 600;
}

nav a {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-plate);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

nav a:hover {
  background: var(--color-line);
  color: var(--color-text);
}

nav a[aria-current="page"] {
  background: var(--color-link);
  color: var(--color-sheet);
}

/* ---------- the sheet: one centered column, a white riser with its nosing */
main {
  position: relative;
  max-width: var(--sheet-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-sheet);
}

main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--nosing);
  background: repeating-linear-gradient(90deg, var(--color-rib) 0 var(--rib), var(--color-line) var(--rib) var(--rib-step));
}

main > :last-child {
  margin-bottom: 0;
}

h1,
h2 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

/* a short nosing under the title, its middle ribs red: the seat that is yours */
h1::after {
  content: "";
  display: block;
  width: 120px;
  height: var(--nosing);
  margin: 1.1rem auto 0;
  background:
    repeating-linear-gradient(90deg, var(--color-link) 0 var(--rib), transparent var(--rib) var(--rib-step))
      center / 20px 100% no-repeat,
    repeating-linear-gradient(90deg, var(--color-rib) 0 var(--rib), var(--color-line) var(--rib) var(--rib-step));
}

/* the line right under the title: the dates on the legal pages, the lead on contact */
h1 + p {
  margin: 1.2rem 0 2.5rem;
  color: var(--color-muted);
  font-size: var(--text-small);
  text-align: center;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--text-base);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.3em;
}

li::marker {
  color: var(--color-link);
}

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

a:hover {
  color: var(--color-link-deep);
  text-decoration-thickness: 2px;
}

main a {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}

/* ---------- contact: a narrower sheet, everything centered */
.contact {
  max-width: var(--sheet-width-narrow);
  text-align: center;
}

.contact h1 + p {
  font-size: var(--text-base);
}

dl {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 2.25rem;
}

dt {
  color: var(--color-muted);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  margin: 0.1rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- FAQ: each question opens in place */
.faq {
  position: relative;
  padding-top: 2.25rem;
  text-align: left;
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--nosing);
  background: repeating-linear-gradient(90deg, var(--color-rib) 0 var(--rib), var(--color-line) var(--rib) var(--rib-step));
}

.faq h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
}

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

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

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color var(--duration-fast);
}

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

/* a red plus that turns to a cross when the answer is open */
.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.4em;
  background:
    linear-gradient(var(--color-link), var(--color-link)) center / 100% 2px no-repeat,
    linear-gradient(var(--color-link), var(--color-link)) center / 2px 100% no-repeat;
  transition: transform var(--duration-fast);
}

.faq summary:hover {
  color: var(--color-link);
}

.faq summary:focus-visible {
  outline-offset: -2px;
}

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

.faq details p {
  margin: -0.25rem 0 1.1rem;
  padding: 0 2rem 0 0.25rem;
  color: var(--color-muted);
}

/* ---------- wide screens: the riser stands off the ice */
@media (min-width: 48rem) {
  body {
    padding: 0 1.5rem 4rem;
  }

  main {
    padding: 3.75rem 4rem 4rem;
    border: 1px solid var(--color-line);
    box-shadow: 0 1px 2px rgb(28 17 20 / 0.04), 0 18px 44px -22px rgb(28 17 20 / 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
