/* The privacy and terms pages: the home page's own rules, cut from its inline styles (site/public/index.html), for
   its tokens, masthead, framed section, rules list and frieze footer. Nothing here that the home page doesn't have. */
:root {
  --red-900: #3f040c;
  --red-800: #5e0712;
  --red-700: #7a0a18;
  --red-600: #8b0c1c;
  --red-500: #a8121f;

  --gold-400: #e3a94a;
  --gold-300: #f0be6b;
  --gold-200: #f7d9a0;

  --jade: #2e6b58;
  --jade-light: #7fb8a2;

  --cream: #f7efe0;
  --cream-dim: #dccdb4;
  --cream-faint: rgba(247, 239, 224, 0.62);

  --ink: #1a0509;

  --font-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type scale */
  --t-hero: clamp(4.2rem, 15vw, 12rem);
  --t-h2: clamp(2.4rem, 6vw, 4.6rem);
  --t-h3: clamp(1.3rem, 2.4vw, 1.8rem);
  --t-body: clamp(1rem, 0.55vw + 0.9rem, 1.16rem);
  --t-lede: clamp(1.12rem, 1vw + 0.95rem, 1.44rem);

  --shell: min(1240px, 92vw);
  /* Ornaments are placed against this frame, which stops growing past the content column. */
  --art: min(100vw, calc(var(--shell) * 1.28));
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spin: cubic-bezier(0.34, 0.02, 0.2, 1);

  /* set by the script: how far the wheel has turned */
  --ring-rot: 0deg;
}

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

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

body {
  margin: 0;
  background: var(--red-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}

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

a {
  color: var(--gold-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-200);
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -110%;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  background: var(--gold-300);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: translate 0.18s var(--ease);
}

.skip-link:focus {
  translate: -50% 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.kicker::before {
  content: "";
  inline-size: 2.6rem;
  block-size: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.62;
  color: var(--cream);
  font-weight: 300;
}

.dim {
  color: var(--cream-faint);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  background: color-mix(in srgb, var(--red-900) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--gold-400) 20%, transparent);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--gold-200);
}

.brand__mark {
  inline-size: 30px;
  block-size: 30px;
  flex: none;
  color: var(--gold-400);
}

/* The scrollbar, on the page and on anything that scrolls: thin, on no track, in the art's gold. */
html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gold-400) 35%, transparent) transparent;
}
::-webkit-scrollbar {
  inline-size: 8px;
  block-size: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--gold-400) 35%, transparent);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--gold-400) 55%, transparent);
}

.head {
  max-width: 44rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.head h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3em;
}

.rules {
  background: var(--red-900);
  border-bottom: 1px solid color-mix(in srgb, var(--gold-400) 20%, transparent);
}

.rules__list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--gold-400) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-400) 22%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}

.rules__list li {
  background: var(--red-800);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: background-color 0.25s var(--ease);
}

.rules__list h3 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.35rem;
}

.rules__list p {
  font-size: 0.95rem;
  color: var(--cream-dim);
  line-height: 1.68;
}

.index {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .rules__list {
    grid-template-columns: 1fr 1fr;
  }
}

.footer {
  background: var(--red-900);
}

.frieze {
  block-size: clamp(58px, 9vw, 104px);
  background: url("img/frieze.svg") center/auto 100% repeat-x;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.footer__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--cream-faint);
}

.footer__inner p {
  margin: 0 0 0.5em;
  max-width: 34rem;
}

.footer__tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
}

.footer__links a {
  display: flex;
  align-items: center;
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
  color: var(--cream-dim);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--gold-200);
}

/* The way back: the home page's dotted text link. */
.back {
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-200);
  text-decoration-style: dotted;
}

.legal .rules__list a {
  color: var(--gold-200);
}
.masthead .back {
  margin-inline-start: auto;
}
.head__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3em;
}
