/* raro.lol: the game's own look, a blue field of printed dots, white card stock, navy ink. */
:root {
  --field: #4c9be0;
  --dots: rgba(16, 33, 63, 0.13);
  --navy: #10213f;
  --ink: #10213f;
  --ink-soft: #3b4a66;
  --red: #e8352b;
  --gold: #ffd11a;
  --card: #ffffff;
  --rule: rgba(16, 33, 63, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --field: #1d4f80;
    --dots: rgba(255, 255, 255, 0.07);
    --card: #10213f;
    --ink: #f4f6fb;
    --ink-soft: #c3cbdb;
    --rule: rgba(255, 255, 255, 0.14);
  }
}
:root[data-theme='dark'] {
  --field: #1d4f80;
  --dots: rgba(255, 255, 255, 0.07);
  --card: #10213f;
  --ink: #f4f6fb;
  --ink-soft: #c3cbdb;
  --rule: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--field);
  background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--ink);
  font: 400 17px/1.55 'Rubik', system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 16px 56px; }

.mark {
  display: inline-block;
  font-family: 'Shrikhand', cursive;
  font-size: 40px;
  line-height: 1.1;
  color: var(--red);
  text-shadow: 2.5px 2.5px 0 var(--navy);
  text-decoration: none;
  transform: rotate(-3deg);
}

/* Breadcrumbs: Raro › Prompts › Food and drink › Name a fruit. */
.crumbs { margin-top: 22px; font-size: 14px; font-weight: 700; color: #fff; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '›'; margin: 0 8px; opacity: 0.75; }
.crumbs a { color: #fff; }
.crumbs [aria-current='page'] { opacity: 0.85; }

/* Long link lists (the sitemap) in columns on wide screens. */
.columns { columns: 2 240px; column-gap: 28px; }
.columns li { break-inside: avoid; }

h1, h2, h3 { font-family: 'Alfa Slab One', Georgia, serif; font-weight: 400; color: #fff; margin: 0; }
h1 { font-size: clamp(36px, 9vw, 58px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.2; margin-top: 30px; }
h3 { font-size: 19px; line-height: 1.25; color: var(--ink); margin-top: 22px; }
.lede { color: #fff; font-size: 19px; line-height: 1.5; max-width: 34em; margin: 14px 0 0; }

.plate {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 20px;
  margin-top: 22px;
  box-shadow: 0 4px 14px rgba(16, 33, 63, 0.18);
}
.plate p, .plate li { color: var(--ink-soft); }
.plate h2 { color: var(--ink); margin-top: 0; }
.plate h2 + p { margin-top: 8px; }
.plate ul { padding-left: 20px; }
.plate li + li { margin-top: 6px; }
.small { font-size: 14px; color: var(--ink-soft); }

.button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 800 18px/1 'Rubik', system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 0 #a8211a;
}
.button.navy { background: var(--navy); box-shadow: 0 4px 0 #050c18; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Three printed cards, the rarity ladder in miniature. */
.cards { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.card {
  width: 132px;
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(16, 33, 63, 0.28);
}
.card:nth-child(1) { transform: rotate(-5deg); }
.card:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.card:nth-child(3) { transform: rotate(6deg); }
.card .art {
  flex: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font: 400 54px/1 'Alfa Slab One', Georgia, serif;
  color: #fff;
  text-shadow: 2px 2px 0 var(--navy);
}
.card .name { font: 800 13px/1.2 'Rubik', sans-serif; margin-top: 7px; }
.card .odds { font: 700 12px/1.2 'Rubik', sans-serif; color: #5a6680; }
.card.popular .art { background: #9fc7ea; }
.card.rare { background: var(--navy); color: #fff; outline: 2px solid var(--gold); outline-offset: -5px; }
.card.rare .odds { color: #c3cbdb; }
.card.rare .art { background: #5dbb63; }
.card.unique { background: linear-gradient(135deg, #fff3b0, var(--gold) 45%, #f2b705); }
.card.unique .art { background: var(--red); }

.code {
  font: 400 44px/1 'Alfa Slab One', Georgia, serif;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 10px 0 4px;
}

.legal h2 { font-size: 20px; margin-top: 26px; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }

footer { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; font-size: 15px; color: #fff; }
footer a { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.25s ease; }
  .card:hover { transform: rotate(0deg) translateY(-8px); }
}
