/* Website pages. Loaded after style.css, which holds the inks, the typeface, buttons, dice and cards. */

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* Paper pages are blush stock with plum ink. The home page also opens on a flood of tomato. */
html:has(body.paper) { color-scheme: light; }
body.paper { --focus: var(--plum); background: var(--blush); color: var(--plum); }
body.paper .lede { color: rgba(42, 10, 53, 0.82); }
body.paper .fine { color: rgba(42, 10, 53, 0.72); }
body.paper::after { opacity: 0.09; }
body.home { background: var(--tomato); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.7rem 1rem; border-radius: 10px; background: var(--plum); color: var(--blush); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Header and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: min(100% - 2rem, 72rem); margin-inline: auto; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font: 800 1.7rem / 1 var(--font); font-stretch: 82%; letter-spacing: -0.03em; }
.brand .mark { width: 1.2rem; height: 2.9rem; margin-block: -0.2rem; transform: rotate(16deg); flex: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: inherit; font-weight: 600; font-size: 0.98rem; text-decoration: none; opacity: 0.82; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a[aria-current="page"]:not(.btn) { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tomato); text-underline-offset: 7px; }
body.home .nav a[aria-current="page"]:not(.btn) { text-decoration-color: var(--plum); }
body.home .nav .btn { background: var(--plum); color: var(--blush); }
body.home .nav .btn:hover { background: var(--plum-2); }
@media (max-width: 40rem) { .nav a:not(.nav-play) { display: none; } }

.site-footer { position: relative; overflow: hidden; margin-top: 0; padding: 3.2rem 0 0; background: var(--plum); color: var(--blush); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-about p { margin: 0.9rem 0 0; max-width: 24rem; line-height: 1.5; font-size: 0.95rem; opacity: 0.85; }
.footer-about .footer-18 { font-size: 0.85rem; opacity: 0.7; }
.footer-head { margin: 0 0 0.7rem; font-weight: 800; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.site-footer li a { color: inherit; opacity: 0.8; font-size: 0.95rem; text-decoration: none; }
.site-footer li a:hover, .site-footer li a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-copy { margin: 2rem auto 0; font-size: 0.85rem; opacity: 0.55; }
.footer-big { margin: 0; padding-top: 1rem; font: 800 clamp(5rem, 24vw, 19rem) / 0.78 var(--font); font-stretch: 75%; letter-spacing: -0.06em; color: var(--plum-2); white-space: nowrap; text-align: center; user-select: none; transform: translateY(0.16em); }

/* The game owns the whole screen while a round is on. */
body:has(#game:not([hidden])) .site-header,
body:has(#game:not([hidden])) .site-footer { display: none; }

/* Bands of colour, edge to edge */
.band { padding-block: clamp(3rem, 8vw, 6.5rem); }
.band-tomato { background: var(--tomato); color: var(--plum); }
.band-plum { background: var(--plum); color: var(--blush); }
.band-blush { background: var(--blush); color: var(--plum); }
.band-pink { background: var(--pink); color: var(--plum); }
.band h2 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-stretch: 82%; letter-spacing: -0.03em; text-wrap: balance; }
.band-lede { max-width: 36rem; margin: 1rem 0 0; font: 500 clamp(1.1rem, 2.6vw, 1.3rem) / 1.45 var(--font); }

/* Home: hero */
.hero { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: center; padding-block: clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 58rem) { .hero { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin: 0 0 1.3rem; font-size: clamp(3.1rem, 9vw, 6.6rem); line-height: 0.92; font-stretch: 80%; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lede { max-width: 31rem; margin-bottom: 1.8rem; color: rgba(42, 10, 53, 0.9); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }
.hero-cta .btn { padding: 1.1rem 2rem; font-size: 1.15rem; }
.hero-cta .link { color: var(--plum); }
.hero-note { margin: 1.4rem 0 0; font-weight: 600; font-size: 0.92rem; }

.demo { position: relative; display: grid; justify-items: center; gap: 1.4rem; padding: 2.2rem 1.4rem 1.6rem; border-radius: 26px; background: var(--plum); color: var(--blush); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3); transform: rotate(1.3deg); }
.demo .stage { margin: 0; }
.demo .card { width: 100%; max-width: 27rem; min-height: 15rem; margin: 0; }
.demo .card-q { font-size: clamp(1.4rem, 4.2vw, 1.8rem); }
.sticker { position: absolute; top: -1.5rem; right: 0.3rem; display: grid; place-items: center; width: 5.4rem; height: 5.4rem; border-radius: 50%; background: var(--mustard); color: var(--plum); text-align: center; font: 800 1.5rem / 0.9 var(--font); font-stretch: 80%; letter-spacing: -0.03em; transform: rotate(14deg); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
.sticker small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; }

/* A ticker of real cards, running along the seam between hero and page */
.ticker { overflow: hidden; background: var(--plum); color: var(--blush); padding: 0.95rem 0; }
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 75s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 1.2rem; padding-right: 1.2rem; font: 600 1.05rem / 1 var(--font); white-space: nowrap; }
.ticker-item::after { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--tomato); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.6 5.6C18.8 4.2 21.4 6.6 20.5 10 19 16.2 13 21.6 4.8 21.6 3.3 21.6 2.9 20.1 4.2 19.5 8.8 17.3 12 13.8 12.9 9.7 13.2 7.9 14.2 6.3 15.6 5.6ZM15.3 5.9C14.5 4.4 15.2 2.8 17 2.2 17.9 1.9 18.5 2.7 18 3.4 17.3 3.7 17 4.3 17.2 5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.6 5.6C18.8 4.2 21.4 6.6 20.5 10 19 16.2 13 21.6 4.8 21.6 3.3 21.6 2.9 20.1 4.2 19.5 8.8 17.3 12 13.8 12.9 9.7 13.2 7.9 14.2 6.3 15.6 5.6ZM15.3 5.9C14.5 4.4 15.2 2.8 17 2.2 17.9 1.9 18.5 2.7 18 3.4 17.3 3.7 17 4.3 17.2 5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 48rem) { .sticker { right: -0.9rem; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Home: how a round works. The step numbers are dice faces. */
.steps { display: grid; gap: 2.4rem; margin: 3rem 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; align-items: start; } .steps li:nth-child(2) { margin-top: 2.6rem; } .steps li:nth-child(3) { margin-top: 5.2rem; } }
.face { display: block; width: 4.6rem; height: 4.6rem; margin-bottom: 1.1rem; border-radius: 16px; background-color: var(--tomato); box-shadow: 0 5px 0 rgba(42, 10, 53, 0.9); }
.face-1 { transform: rotate(-5deg); background-image: radial-gradient(circle at 50% 50%, var(--plum) 0 9px, transparent 10px); }
.face-2 { transform: rotate(3deg); background-color: var(--pink); background-image: radial-gradient(circle at 28% 28%, var(--plum) 0 8px, transparent 9px), radial-gradient(circle at 72% 72%, var(--plum) 0 8px, transparent 9px); }
.face-3 { transform: rotate(-2deg); background-image: radial-gradient(circle at 24% 24%, var(--plum) 0 7.5px, transparent 8.5px), radial-gradient(circle at 50% 50%, var(--plum) 0 7.5px, transparent 8.5px), radial-gradient(circle at 76% 76%, var(--plum) 0 7.5px, transparent 8.5px); }
.steps h3 { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-stretch: 80%; }
.steps p { margin: 0; max-width: 22rem; font-size: 1.1rem; line-height: 1.5; }

/* Home: the heat scale. One match, five stages. */
.scale { position: relative; margin: 3.6rem 0 1.8rem; }
.scale-track { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--t0), var(--t1), var(--t2), var(--t3), var(--t4)); }
.scale-head { position: absolute; left: -9px; top: -7px; width: 30px; height: 30px; border-radius: 50%; background: var(--tomato); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.28); }
.scale-flame { position: absolute; right: -10px; top: -44px; width: 48px; height: 48px; transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite; }
.heat { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .heat { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; } }
.heat li { padding-top: 1rem; border-top: 8px solid var(--t); }
.heat h3 { font-size: 2rem; font-stretch: 80%; }
.heat .heat-what { display: block; margin: 0.35rem 0 0; font-size: 0.92rem; font-weight: 500; opacity: 0.8; }
@media (min-width: 52rem) { .heat .heat-what { min-height: 2.9em; } }
.heat .kind { display: inline-block; margin-top: 1rem; padding: 0.22rem 0.5rem; border-radius: 5px; background: var(--blush); color: var(--plum); font-weight: 800; font-size: 0.78rem; }
.heat blockquote { margin: 0.55rem 0 0; font: 600 1.05rem / 1.3 var(--font); }
.t0 { --t: var(--t0); } .t1 { --t: var(--t1); } .t2 { --t: var(--t2); } .t3 { --t: var(--t3); } .t4 { --t: var(--t4); }
.band-lede .text-link, .band-lede a { color: inherit; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.scale-more { margin: 2.2rem 0 0; }

/* Home: ways to play */
.ways { display: grid; gap: 2.2rem; margin-top: 2.6rem; }
@media (min-width: 48rem) { .ways { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; } }
.ways h3 { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 3vw, 2.2rem); font-stretch: 80%; }
.ways p { margin: 0; font-size: 1.1rem; line-height: 1.5; max-width: 24rem; }

/* FAQ */
.faq { margin-top: 2.4rem; max-width: 48rem; }
.faq details { border-top: 3px solid var(--plum); }
.faq details:last-child { border-bottom: 3px solid var(--plum); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 700 clamp(1.2rem, 2.8vw, 1.45rem) / 1.2 var(--font); font-stretch: 90%; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tomato); color: var(--plum); font: 800 1.5rem / 1 var(--font); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; max-width: 40rem; font-size: 1.1rem; line-height: 1.55; }
.faq a { color: inherit; font-weight: 700; }

.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; max-width: 14ch; font-size: clamp(3rem, 9vw, 6.2rem); line-height: 0.92; font-stretch: 80%; letter-spacing: -0.03em; }
.cta-band .btn { margin-top: 2rem; padding: 1.2rem 2.6rem; font-size: 1.25rem; }

/* Inner pages */
.page { width: min(100% - 2rem, 46rem); margin-inline: auto; padding-block: clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem); }
.crumbs { margin: 0 0 1.4rem; font-size: 0.92rem; font-weight: 600; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a { color: inherit; text-underline-offset: 3px; }

.page h1 { margin: 0 0 1.1rem; font-size: clamp(2.8rem, 8.6vw, 4.8rem); font-stretch: 82%; letter-spacing: -0.03em; line-height: 0.94; text-wrap: balance; text-shadow: 0.04em 0.04em 0 var(--pink); }
.page .lede { max-width: none; margin-bottom: 1.2rem; font-weight: 500; }
.updated { margin: 0 0 1rem; font-size: 0.9rem; font-weight: 600; opacity: 0.75; }

.prose h2 { margin: 3rem 0 0.8rem; font-size: clamp(1.9rem, 5vw, 2.5rem); font-stretch: 82%; }
.prose h3 { margin: 1.9rem 0 0.5rem; font-size: 1.5rem; font-stretch: 85%; letter-spacing: -0.02em; }
.prose p, .prose li { font-size: 1.1rem; line-height: 1.65; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--tomato); font-weight: 800; }
.prose a { color: inherit; font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 2px; }

.note { margin: 1.8rem 0; padding: 1.2rem 1.4rem; border-left: 8px solid var(--tomato); border-radius: 0 14px 14px 0; background: #fff; }
.note p { margin: 0; }
.note p + p { margin-top: 0.8rem; }

.qlist { display: grid; gap: 0.7rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.prose .qlist li { margin: 0; padding: 0.85rem 1.1rem; border-left: 8px solid var(--t); border-radius: 0 12px 12px 0; background: #fff; font: 600 1.15rem / 1.35 var(--font); letter-spacing: -0.01em; }
.tier-title { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.tier-title small { font: 600 0.9rem var(--font); opacity: 0.7; }

.page-cta { margin-top: 3.2rem; padding: 2.2rem 1.6rem; border-radius: 20px; background: var(--plum); color: var(--blush); text-align: center; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); }
.page-cta h2 { margin: 0 0 0.6rem; font-size: clamp(2.1rem, 6vw, 3rem); font-stretch: 80%; }
.page-cta p { margin: 0 0 1.3rem; font-size: 1.1rem; opacity: 0.88; }
.page-cta .cta-extra { margin-left: 1.2rem; color: var(--blush); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link { color: inherit; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.not-found { text-align: center; padding-block: clamp(2rem, 8vw, 5rem); }
.not-found .hero-cta { justify-content: center; }
.not-found .btn { padding: 1.1rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .scale-flame { animation: none; }
  .faq summary::after { transition: none; }
}
