@import url("fonts.css");

/* =============================================================
   Donnelly Snowmobile Club
   World: USGS 7.5-minute topographic quadrangle sheet.
   A printed sheet casts no shadow and has no rounded corners:
   there is no box-shadow and no border-radius in this file.
   ============================================================= */

:root {
  /* Palette — USGS quadrangle print roles */
  --sheet: #fdfcfa;
  --paper: #f1efe9;
  --ink: #16181a;
  --ink-2: #4d5358;
  --rule: #c9c8c1;
  --rule-soft: #e2e1db;
  --contour: #9a5b2d;
  --contour-soft: #e0cdbc;
  --timber: #cfe3c8;
  --timber-soft: #e3efe0;
  --timber-deep: #2f5d3a;
  --water: #1c6ea4;
  /* Reserved: marks only what is live or actionable. Never decoration. */
  --red: #c00000;
  --red-deep: #8f0000;

  /* Inverted surfaces (.band--ink, .sheetfoot) */
  --on-ink: #f1efe9;
  --on-ink-2: #b9beb6;
  --on-ink-soft: #d7dbd3;
  --on-ink-link: #9fd0ee;
  --on-ink-live: #ff8a8a;
  --on-ink-contour: #e0b892;
  --on-ink-rule: #3a3f43;
  --on-ink-rule-2: #6b7075;

  /* Type */
  --face-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --face-text: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --fs-meta: 0.8125rem;
  --fs-ui: 0.875rem;
  --fs-sm: 0.9375rem;
  --fs-nav: 1rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  /* Space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  --rail: 17.5rem;
  --measure: 68ch;
  --bar: 3.75rem;

  color-scheme: light;
}

/* ---------- reset ---------- */

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

* {
  margin: 0;
}

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

body {
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--face-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ---------- browser surfaces ---------- */

::selection {
  background: var(--timber);
  color: var(--ink);
}

body {
  caret-color: var(--red);
  accent-color: var(--red);
  scrollbar-color: var(--rule) var(--paper);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--rule);
  border: 3px solid var(--paper);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--contour);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -4rem;
  z-index: 60;
  background: var(--red);
  color: #fff;
  padding: var(--s3) var(--s5);
  font-family: var(--face-display);
  font-size: var(--fs-ui);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

a.skip,
a.skip:hover {
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: var(--s4);
}

/* ---------- typography ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--face-display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: var(--s4);
}

a {
  color: var(--water);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms linear;
}

a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

strong {
  font-weight: 700;
}

/* ---------- collar rail (desktop nav) ---------- */

.collar {
  background: var(--paper);
  border-right: 1px solid var(--rule);
}

.collar__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  padding: var(--s6) var(--s6);
  min-height: 100svh;
}

.collar__mark {
  display: block;
  width: 100%;
}

.collar__mark img {
  width: 100%;
}

.collar__nav ol {
  list-style: none;
  padding: 0;
  display: grid;
}

.collar__nav a {
  position: relative;
  display: block;
  padding: var(--s3) var(--s3) var(--s3) var(--s6);
  font-family: var(--face-display);
  font-size: var(--fs-nav);
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}

.collar__nav li:first-child a {
  border-top: 1px solid var(--rule-soft);
}

.collar__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.625rem;
  height: 1px;
  background: var(--rule);
  transform: translateY(-50%);
  transition: opacity 120ms linear;
}

.collar__nav a:hover {
  color: var(--red);
  background: var(--sheet);
}

.collar__nav a:hover::before {
  opacity: 0;
}

/* The one authored moment: a position tick travels the sheet edge. */
.collar__nav a[aria-current="true"] {
  color: var(--red);
  background: var(--sheet);
}

/* Declared after :hover so the active tick survives being hovered. */
.collar__nav a[aria-current="true"]::before {
  width: 1.25rem;
  height: 3px;
  background: var(--red);
  opacity: 1;
  transition:
    width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    height 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.collar__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

.iconlink {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--sheet);
  transition:
    color 120ms linear,
    border-color 120ms linear;
}

a.iconlink {
  color: var(--ink);
}

a.iconlink:hover {
  color: var(--red);
  border-color: var(--red);
}

.iconlink svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.67;
}

/* ---------- mobile bar + drawer ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--bar);
  padding: 0 var(--s4);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.bar__mark {
  display: block;
  height: 2.25rem;
}

.bar__mark img {
  height: 100%;
  width: auto;
}

.bar__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: 0 var(--s3);
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--face-display);
  font-size: var(--fs-ui);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.bar__toggle svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.875;
}

.bar__toggle .i-close,
.bar__toggle[aria-expanded="true"] .i-menu {
  display: none;
}

.bar__toggle[aria-expanded="true"] .i-close {
  display: block;
}

@media (min-width: 64rem) {
  .bar {
    display: none;
  }
}

/* ---------- page frame ---------- */

.page {
  display: block;
}

@media (min-width: 64rem) {
  .page {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .collar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* A visible scrollbar here would steal width and clip the sheet edge. */
    scrollbar-width: none;
  }

  .collar::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

@media (max-width: 63.9375rem) {
  .collar {
    display: none;
    position: fixed;
    inset: var(--bar) 0 0;
    z-index: 39;
    overflow-y: auto;
    border-right: 0;
  }

  .collar.is-open {
    display: block;
  }

  .collar__inner {
    min-height: 0;
    padding-bottom: var(--s12);
  }

  .collar__mark {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: var(--s8);
  padding: var(--s10) var(--s6) var(--s8);
}

@media (min-width: 48rem) {
  .hero {
    padding: var(--s16) var(--s10) var(--s10);
  }
}

@media (min-width: 64rem) {
  .hero {
    grid-template-rows: auto 1fr;
    min-height: 100svh;
    gap: var(--s6);
  }
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 16ch;
}

.hero__lede {
  margin-top: var(--s5);
  max-width: 54ch;
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__actions {
  margin-top: var(--s8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.hero__plate {
  min-width: 0;
  max-width: 68rem;
}

/* ---------- actions ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3rem;
  padding: 0 var(--s6);
  font-family: var(--face-display);
  font-size: var(--fs-nav);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  transition:
    background-color 120ms linear,
    color 120ms linear,
    border-color 120ms linear;
}

a.btn {
  color: var(--ink);
}

a.btn:hover {
  border-color: var(--red);
  color: var(--red);
}

a.btn--live {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

a.btn--live:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke-width: 1.875;
}

/* Secondary route: still a live action, so it still carries the red. */
a.btn--path {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

a.btn--path:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- neatline plate ---------- */

.plate {
  border: 1px solid var(--ink);
  padding: 3px;
  background: var(--sheet);
}

.plate > img {
  width: 100%;
  border: 1px solid var(--rule);
}

.plate--fill {
  display: grid;
}

.plate--fill img {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

@media (min-width: 64rem) {
  .plate--fill img {
    aspect-ratio: auto;
    min-height: 20rem;
    height: 100%;
  }
}

/* ---------- neatline panel ---------- */

/* border + offset outline draws the double rule without nesting a container. */
.panel {
  background: var(--sheet);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  margin: 4px;
  padding: var(--s8) var(--s6);
  max-width: 68rem;
}

@media (min-width: 48rem) {
  .panel {
    padding: var(--s10);
  }
}

/* The frame already delimits this block, so inner rules step down a weight. */
.panel .fees {
  border-top-color: var(--rule);
}

.panel .sub--rule {
  background-image: none;
  border-top-color: var(--rule-soft);
}

/* ---------- contact sheet ---------- */

/* Names a control's action for assistive tech without surfacing text under a cell. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sheet {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.sheet__open {
  display: block;
  width: 100%;
  padding: 3px;
  background: var(--sheet);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: border-color 120ms linear;
}

.sheet__open:hover {
  border-color: var(--red);
}

.sheet__open img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
}

/* ---------- lightbox ---------- */

.lightbox {
  /* The `* { margin: 0 }` reset above kills the UA `margin: auto` a modal centres with. */
  margin: auto;
  width: min(100% - 2rem, 76rem);
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
}

/* Scoped to [open] so it cannot override the UA `display: none` on a closed dialog. */
.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgb(22 24 26 / 0.88);
}

.lightbox__frame {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: var(--s4);
  background: var(--paper);
}

.lightbox__frame img {
  max-width: 100%;
  /* Definite value: a percentage cannot resolve against a max-height-capped parent. */
  max-height: calc(100dvh - 12rem);
  width: auto;
  border: 1px solid var(--rule);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--rule);
}

.lightbox__count {
  font-family: var(--face-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--contour);
}

.lightbox__nav {
  display: flex;
  gap: var(--s2);
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition:
    color 120ms linear,
    border-color 120ms linear;
}

.lightbox__btn:hover {
  color: var(--red);
  border-color: var(--red);
}

.lightbox__btn svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.67;
}

.lightbox__prev svg {
  transform: rotate(180deg);
}

/* ---------- sections ---------- */

.band {
  padding: var(--s16) var(--s6);
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .band {
    padding: var(--s20) var(--s10);
  }
}

.band[id] {
  scroll-margin-top: calc(var(--bar) + 1px);
}

@media (min-width: 64rem) {
  .band[id] {
    scroll-margin-top: 0;
  }
}

.band--timber {
  background: var(--timber-soft);
  border-top-color: var(--timber-deep);
}

.band--paper {
  background: var(--paper);
}

/* Rhythm: a dense passage earns a quiet one. */
.band--tight {
  padding-top: var(--s12);
  padding-bottom: var(--s12);
}

.band--held {
  padding-top: var(--s24);
  padding-bottom: var(--s24);
}

.band--ink {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--ink);
}

.band__head {
  max-width: var(--measure);
  margin-bottom: var(--s10);
}

.band__head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.band__head p {
  margin-top: var(--s4);
  font-size: var(--fs-lg);
  color: var(--ink-2);
  max-width: 58ch;
}

.band--timber .band__head p {
  color: var(--timber-deep);
}

.band--ink .band__head p {
  color: var(--on-ink-2);
}

.sub {
  margin-top: var(--s12);
  margin-bottom: var(--s5);
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.005em;
}

.sub:first-child {
  margin-top: 0;
}

.sub--flush {
  margin-top: 0;
}

/* Element-qualified so the .stack utility cannot shrink the space above. */
h3.sub {
  margin-top: var(--s12);
  margin-bottom: var(--s5);
}

h3.sub--flush,
.sub:first-child {
  margin-top: 0;
}

.sub--rule {
  padding-top: var(--s5);
  border-top: 1px solid var(--contour-soft);
  background-image: linear-gradient(var(--contour-soft), var(--contour-soft));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 3px;
}

/* ---------- people plates ---------- */

.roster {
  display: grid;
  gap: var(--s6) var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  list-style: none;
  padding: 0;
}

.roster--board {
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: var(--s5) var(--s4);
}

.roster img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.roster__role {
  display: block;
  margin-top: var(--s3);
  font-family: var(--face-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--contour);
}

.roster__name {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.roster--board .roster__name {
  margin-top: var(--s2);
}

/* ---------- fee schedule ---------- */

.fees {
  display: grid;
  gap: var(--s6);
  border-top: 1px solid var(--ink);
}

@media (min-width: 48rem) {
  .fees {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}

.fee {
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  align-content: start;
  gap: var(--s3);
}

@media (min-width: 48rem) {
  .fee {
    padding: var(--s8) var(--s8) var(--s8) 0;
  }

  .fee + .fee {
    padding-left: var(--s8);
    padding-right: 0;
    border-left: 1px solid var(--rule);
  }
}

.fee__amount {
  font-family: var(--face-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fee__term {
  font-family: var(--face-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--contour);
}

.fee__note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 34ch;
}

.fee .btn {
  justify-self: start;
  margin-top: var(--s2);
}

/* ---------- legend (what dues buy) ---------- */

.legend {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s5);
  max-width: 44rem;
}

@media (min-width: 40rem) {
  .legend {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5) var(--s8);
  }
}

.legend li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s4);
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.legend svg {
  width: 2rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--contour);
  stroke-width: 1.25;
}

/* ---------- schedule ---------- */

.schedule {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.schedule li {
  display: grid;
  gap: var(--s2) var(--s6);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .schedule li {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.schedule__when {
  font-family: var(--face-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--contour);
}

.schedule__what {
  font-size: var(--fs-base);
  font-weight: 700;
}

.schedule__note {
  margin-top: var(--s1);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 56ch;
}

.schedule__where {
  margin-top: var(--s1);
  font-size: var(--fs-sm);
  max-width: 56ch;
  overflow-wrap: anywhere;
}

.schedule__status {
  display: block;
  margin-bottom: var(--s1);
  color: var(--ink-2);
  font-family: var(--face-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule__item--cancelled .schedule__what {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.schedule__empty {
  padding: var(--s5) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.schedule--quiet .schedule__what {
  font-weight: 600;
}

/* ---------- resource links ---------- */

.groups {
  display: grid;
  gap: var(--s10) var(--s8);
}

@media (min-width: 48rem) {
  .groups {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

.group h3 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-ui);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--timber-deep);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--timber-deep);
}

.group h3 svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  stroke-width: 1.67;
}

.group ul {
  list-style: none;
  padding: 0;
}

.group li + li {
  border-top: 1px solid rgb(47 93 58 / 0.18);
}

.group a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
}

.group a span {
  text-decoration: underline;
  text-decoration-color: var(--timber-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.group a:hover span {
  color: var(--red);
  text-decoration-color: var(--red);
}

.group a svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  color: var(--timber-deep);
  align-self: center;
  stroke-width: 2.14;
}

.group a:hover svg {
  color: var(--red);
}

/* ---------- figure ---------- */

.figure {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 48rem) {
  .figure {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: var(--s10);
    align-items: start;
  }
}

.figure figcaption {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin-top: var(--s3);
}

/* ---------- inverted band ---------- */

.band--ink a {
  color: var(--on-ink-link);
}

.band--ink a:hover {
  color: var(--on-ink-live);
  text-decoration-color: var(--on-ink-live);
}

.band--ink a.btn {
  background: transparent;
  border-color: var(--on-ink-rule-2);
  color: var(--paper);
}

.band--ink a.btn:hover {
  border-color: var(--on-ink-live);
  color: var(--on-ink-live);
}

.band--ink a.btn--live {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.band--ink a.btn--live:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.band--ink .sub {
  color: var(--sheet);
}

.band--ink .fees {
  border-top-color: var(--on-ink-rule-2);
}

.band--ink .fee {
  border-bottom-color: var(--on-ink-rule);
}

@media (min-width: 48rem) {
  .band--ink .fee + .fee {
    border-left-color: var(--on-ink-rule);
  }
}

.band--ink .fee__term,
.band--ink .tier__label {
  color: var(--on-ink-contour);
}

.band--ink .fee__note,
.band--ink .note,
.band--ink .center-note {
  color: var(--on-ink-2);
}

.band--ink .legend svg {
  color: var(--on-ink-contour);
}

.band--ink .legend li {
  color: var(--paper);
}

.band--ink .sub--rule {
  border-top-color: var(--on-ink-rule);
  background-image: linear-gradient(var(--on-ink-rule), var(--on-ink-rule));
}

/* ---------- footer ---------- */

.sheetfoot {
  background: var(--ink);
  color: var(--on-ink-2);
  padding: var(--s10) var(--s6);
  border-top: 1px solid var(--on-ink-rule);
  background-image: linear-gradient(var(--on-ink-rule), var(--on-ink-rule));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 3px;
  font-size: var(--fs-sm);
}

@media (min-width: 48rem) {
  .sheetfoot {
    padding: var(--s10);
  }
}

.sheetfoot ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

.sheetfoot a {
  color: var(--on-ink-soft);
}

.sheetfoot a:hover {
  color: var(--on-ink-live);
}

/* ---------- supporters ---------- */

.supporters {
  display: grid;
  gap: var(--s10);
  max-width: 68rem;
}

.tier__label {
  font-family: var(--face-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--contour);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--contour-soft);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin-top: var(--s5);
}

.tier li {
  break-inside: avoid;
  margin-bottom: var(--s2);
}

.tier--present li {
  font-family: var(--face-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.tier--major ul {
  columns: 2;
  column-gap: var(--s8);
}

.tier--major li {
  font-family: var(--face-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  font-stretch: 86%;
  line-height: 1.2;
}

.tier--support ul {
  columns: 2;
  column-gap: var(--s8);
}

.tier--support li {
  font-size: var(--fs-base);
  font-weight: 600;
}

.tier--contrib ul,
.tier--friends ul {
  columns: 18rem;
  column-gap: var(--s8);
}

.tier--contrib li {
  font-size: var(--fs-sm);
}

.tier--friends li {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ---------- utility ---------- */

.stack > * + * {
  margin-top: var(--s4);
}

.note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 64ch;
}

.center-note {
  margin-top: var(--s5);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 48ch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
