/* ---------- The small pages: thanks.html and giveaway-rules.html ----------
   Same tokens, base and marks as the launch page. No scripts: the entrances run on load. */

.page-bar {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-6);
  padding: var(--s-6) var(--gutter);
}
.page-bar .wordmark {
  font: var(--w-strong) var(--t-sm)/1 var(--font-sans); text-decoration: none;
  transition: color var(--m-ui) var(--ease-ui);
}
.page-bar .wordmark:hover { color: var(--accent); }
.page-bar .link, .page-foot .link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- thanks.html: one screen, the pass in hand ---------- */

.thanks {
  min-height: calc(100svh - 62px); align-content: center; row-gap: var(--s-16);
  padding: var(--s-16) var(--gutter) var(--s-24);
}
.thanks-main { grid-column: 1 / 7; }
.thanks-title { font-size: var(--t-2xl); font-weight: var(--w-strong); line-height: 0.85; letter-spacing: -0.04em; }
.thanks-title .mask { padding-bottom: 0.08em; }
.thanks-facts { margin-top: var(--s-8); max-width: 46ch; }
.thanks-facts li {
  padding: var(--s-3) 0; font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em;
  border-top: var(--border); /* taste-skill-ignore: design.md 1px lines */
}
.thanks .actions { margin-top: var(--s-8); }
.thanks .actions .link { text-decoration: underline; text-underline-offset: 3px; }
.thanks-note { margin-top: var(--s-4); max-width: 46ch; }
/* a yearbook page: the varsity WILD VII patch in the first slot, the krew's own pictures in the rest */
.thanks-main { align-self: center; }
.yearbook { grid-column: 7 / -1; align-self: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.yearbook > * { aspect-ratio: 4 / 5; }
.yearbook .patch { display: grid; place-items: center; padding: var(--s-4); }
.yearbook img { object-position: 50% 35%; }
.js :is(.yearbook, .rules-pics) [data-open], .js :is(.yearbook, .rules-pics) [data-open] img { animation-duration: var(--m-reveal); }

@media (max-width: 1023px) {
  .thanks { align-content: start; }
  .thanks-main, .yearbook { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .thanks { min-height: 0; row-gap: var(--s-8); padding: var(--s-8) var(--gutter) var(--s-16); }
  .thanks-title { font-size: var(--t-xl); }
}

/* ---------- giveaway-rules.html: plain text, the heading held at the left ---------- */

.rules { row-gap: var(--s-16); padding: var(--s-16) var(--gutter) var(--s-32); }
.rules-head { grid-column: 1 / 5; grid-row: 1; align-self: start; }
.rules-title { font-size: var(--t-2xl); font-weight: var(--w-strong); line-height: 0.85; letter-spacing: -0.04em; }
.rules-head .lead { margin-top: var(--s-6); max-width: 32ch; }
.rules-head .facts { margin-top: var(--s-8); grid-template-columns: auto 1fr; }
.rules-list { grid-column: 6 / -1; grid-row: 1 / 3; counter-reset: rule; }
/* the prize, in the krew's own pictures, closing the left column under the heading */
.rules-pics { grid-column: 1 / 5; grid-row: 2; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.rules-pics .photo { aspect-ratio: 1; }
.rules-pics img { object-position: 50% 35%; }
.rules-list li {
  display: grid; grid-template-columns: 4ch minmax(0, 1fr); column-gap: var(--s-6);
  padding: var(--s-6) 0; border-top: var(--border); /* taste-skill-ignore: design.md 1px lines */
}
.rules-list li::before {
  counter-increment: rule; content: counter(rule, decimal-leading-zero); grid-row: 1 / 3; padding-top: 0.35em; /* taste-skill-ignore: design.md mono numbers on a real ol */
  font: var(--w-regular) var(--t-xs)/1.2 var(--font-mono); color: var(--muted); /* taste-skill-ignore: design.md mono labels */
}
.rules-list h2 { font-size: var(--t-md); font-weight: var(--w-strong); line-height: 1.3; letter-spacing: -0.02em; }
.rules-list p { margin-top: var(--s-2); max-width: 60ch; }
.rules-list a, .rules-head a { text-underline-offset: 2px; transition: color var(--m-ui) var(--ease-ui); }
.rules-list a:hover { color: var(--accent); }

.page-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6);
  padding: var(--s-6) var(--gutter); font-size: var(--t-sm); color: var(--muted);
  border-top: var(--border); /* taste-skill-ignore: design.md 1px lines */
}
.page-foot .link { color: var(--fg); }

@media (max-width: 1023px) {
  .rules-head, .rules-list, .rules-pics { grid-column: 1 / -1; grid-row: auto; }
  .rules-pics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rules { row-gap: var(--s-8); padding: var(--s-8) var(--gutter) var(--s-16); }
  .rules-title { font-size: var(--t-xl); }
  .rules-pics { grid-template-columns: 1fr 1fr; }
  .page-foot { flex-direction: column; gap: var(--s-3); }
}
