/* Rill shop theme. One stylesheet for every page. */

:root {
  --paper: #ede9e2;
  --bone: #e4ded2;
  --stone: #dcd5c9;
  --night: #2b3230;
  --ink: #272d2b;
  --pearl: #ede8de;
  --muted: #5f5c56;
  --body: #4a4843;
  --text-soft: #3b3936;
  --pale: #bcbab2;
  --moss: #46564b;
  --moss-fg: #e9ecdf;
  --tide: #3a5061;
  --tide-fg: #e4eaee;
  --clay: #8a5c4c;
  --clay-fg: #f4e8df;
  --dusk: #56495e;
  --dusk-fg: #eee7ee;
  --line: rgba(39, 45, 43, 0.16);
  --line-strong: rgba(39, 45, 43, 0.3);
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 40px;
}

@media (max-width: 749px) {
  :root { --gutter: 24px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--moss); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--night); color: var(--pearl); border-radius: 22px; }
.skip-link:focus { left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.03; font-weight: 500; letter-spacing: -.025em; }
.h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.015em; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
.lead { font-size: 18px; line-height: 1.6; color: var(--body); }
.copy { font-size: 16px; line-height: 1.6; color: var(--body); }
.small { font-size: 14px; color: var(--muted); }
.numeral { font-family: 'Rill Stream', var(--sans); line-height: 1; font-weight: 400; }
.chapter-no { font-family: 'Rill Stream', var(--sans); font-size: 96px; line-height: .9; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 30px; border: 0; border-radius: 28px; font-size: 16px; font-weight: 500; cursor: pointer; text-align: center; white-space: nowrap; }
.btn--dark { background: var(--night); color: var(--pearl); }
.btn--dark:hover { background: var(--ink); color: var(--pearl); }
.btn--line { background: none; box-shadow: inset 0 0 0 1px rgba(39, 45, 43, .35); color: var(--ink); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.btn--pearl { background: var(--pearl); color: var(--ink); }
.btn--pearl:hover { background: #fff8ee; color: var(--ink); }
.btn--ghost-light { background: none; box-shadow: inset 0 0 0 1px rgba(237, 232, 222, .35); color: var(--pearl); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn .dot { opacity: .55; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; font-weight: 500; box-shadow: inset 0 -1px 0 currentColor; align-self: flex-start; }
.icon-arrow { width: 18px; height: 12px; flex: 0 0 auto; }

/* Cards: the real card art (with print bleed cropped away) and the CSS mini card */
.card { position: relative; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 6.15% / 4.4%; box-shadow: 0 0 0 1px rgba(242, 238, 230, .85), 0 10px 28px rgba(39, 45, 43, .16); }
.card img { position: absolute; width: 109.6%; max-width: none; height: auto; left: -4.8%; top: -3.43%; }

.mc { position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 7% / 5%; container-type: inline-size; background: var(--c-bg, var(--moss)); color: var(--c-fg, var(--moss-fg)); box-shadow: 0 0 0 1px rgba(242, 238, 230, .85), 0 8px 20px rgba(39, 45, 43, .14); }
.mc__n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Rill Stream', var(--sans); font-size: 48px; font-size: 70cqw; line-height: 1; }
.mc__i, .mc__j { position: absolute; font-family: 'Rill Index', var(--sans); font-size: 11px; font-size: 13cqw; line-height: 1; }
.mc__i { left: 13%; top: 9%; }
.mc__j { right: 13%; bottom: 9%; transform: rotate(180deg); }
.c-moss { --c-bg: var(--moss); --c-fg: var(--moss-fg); }
.c-tide { --c-bg: var(--tide); --c-fg: var(--tide-fg); }
.c-clay { --c-bg: var(--clay); --c-fg: var(--clay-fg); }
.c-dusk { --c-bg: var(--dusk); --c-fg: var(--dusk-fg); }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.wordmark { font-family: 'Rill Index', var(--sans); font-size: 17px; letter-spacing: .42em; color: var(--ink); }
.site-nav { display: flex; gap: 36px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -1px 0 var(--ink); padding-bottom: 4px; }
.bag-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; }
.bag-count { display: inline-flex; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--stone); align-items: center; justify-content: center; font-size: 12px; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu__panel { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 32px; background: var(--paper); box-shadow: 0 24px 40px rgba(39, 45, 43, .12); display: flex; flex-direction: column; }
.mobile-menu__panel a { padding: 14px 0; font-size: 24px; font-weight: 500; box-shadow: inset 0 -1px 0 var(--line); }

@media (max-width: 989px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-nav { display: none; }
  .mobile-menu { display: block; order: -1; margin-left: -10px; }
  .wordmark { font-size: 15px; }
  .bag-link .bag-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 64px; font-size: 14px; color: var(--muted); box-shadow: inset 0 1px 0 rgba(39, 45, 43, .12); }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .wordmark { font-size: 15px; }
@media (max-width: 749px) {
  .site-footer { flex-direction: column; align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; width: 100%; }
}

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.hero__text { flex: 1 1 440px; max-width: 520px; display: flex; flex-direction: column; gap: 28px; }
.hero__heading { font-size: clamp(44px, 4.6vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; }
.hero__text .btn-row { padding-top: 8px; }
.fan { position: relative; flex: 1 1 520px; min-width: 0; aspect-ratio: 1.08; max-height: 560px; }
.fan .card { position: absolute; }
.fan .card:nth-child(1) { width: 33%; left: 3%; top: 25%; transform: rotate(-15deg); }
.fan .card:nth-child(2) { width: 35%; left: 17%; top: 15%; transform: rotate(-7deg); }
.fan .card:nth-child(3) { width: 36.5%; left: 32%; top: 9%; }
.fan .card:nth-child(4) { width: 36.5%; left: 47%; top: 11%; transform: rotate(8deg); }
.fan .card:nth-child(5) { width: 34.5%; left: 61%; top: 20%; transform: rotate(16deg); }
@media (max-width: 749px) {
  .hero { padding-top: 28px; padding-bottom: 64px; gap: 20px; }
  .hero__text { gap: 20px; }
  .hero__text .eyebrow { font-size: 11px; }
  .hero__text .lead { font-size: 16px; }
  .hero__text .btn-row { order: 3; flex-direction: column; }
  .hero__text .btn-row .btn, .hero__text .btn-row form { width: 100%; }
  .fan { flex-basis: 100%; }
}

/* Home: colours */
.colours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.colours > div { height: 136px; padding: 0 40px 40px; display: flex; align-items: flex-end; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 749px) {
  .colours > div { height: 88px; padding: 0 0 18px 14px; font-size: 11px; font-weight: 500; }
}

/* Home: the ten digits on the stream */
.digits { padding-top: 104px; padding-bottom: 40px; }
.digits__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.digits__row { position: relative; height: 300px; margin-top: 8px; }
.digits__row svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.digits__nums { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); height: 260px; align-items: center; font-family: 'Rill Stream', var(--sans); font-size: clamp(40px, 9vw, 128px); line-height: 1; text-align: center; }
.digits__nums span { transform: translateY(calc(var(--y) * var(--wave, 1px))); }
@media (max-width: 749px) {
  .digits { padding-top: 64px; padding-bottom: 16px; }
  .digits__row { height: 120px; margin: 6px -8px 0; }
  .digits__nums { height: 108px; --wave: .34px; }
}

/* Home: steps */
.steps { display: flex; flex-direction: column; gap: 72px; padding-top: 96px; padding-bottom: 120px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; }
.split-head > :first-child { max-width: 560px; }
.split-head > p { max-width: 400px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; box-shadow: inset 0 1px 0 rgba(39, 45, 43, .18); }
.step__no { font-family: 'Rill Index', var(--sans); font-size: 80px; line-height: 1; }
@media (max-width: 749px) {
  .steps { gap: 32px; padding-top: 56px; padding-bottom: 72px; }
  .steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 18px; row-gap: 6px; padding-top: 22px; }
  .step__no { font-size: 48px; flex: 0 0 40px; }
  .step > div { flex: 1 1 200px; }
}

/* Bands */
.band-bone { background: var(--bone); }
.band-night { background: var(--night); color: var(--pearl); }
.band-night a:not(.btn) { color: var(--pearl); }
.band-night .eyebrow, .band-night .muted-light { color: var(--pale); }

/* Home: in the box */
.box { display: flex; flex-wrap: wrap; gap: 80px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.box .card { flex: 0 0 300px; transform: rotate(-3deg); }
.box__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 36px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; font-size: 16px; line-height: 1.5; }
.specs dt { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; }
@media (max-width: 749px) {
  .box { flex-direction: column; gap: 36px; padding-top: 72px; padding-bottom: 72px; }
  .box .card { flex: 0 0 auto; width: 190px; }
  .box__text { flex: 1 1 auto; align-self: stretch; gap: 22px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 15px; }
  .specs dt { font-size: 11px; }
}

/* Home: play online */
.online { position: relative; overflow: hidden; }
.online__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.online__inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; min-height: 600px; padding-top: 112px; }
.online__text { flex: 1 1 440px; max-width: 540px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 112px; }
.online__text h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.015em; }
.online__text .btn { align-self: flex-start; margin-top: 16px; }
.online__phone-area { position: relative; flex: 1 1 400px; min-width: 0; height: 488px; }
.phone { position: absolute; left: 22%; top: -8px; width: 276px; height: 588px; padding: 9px; border-radius: 44px; background: #1d2220; box-shadow: 0 0 0 1px rgba(237, 232, 222, .12), 0 40px 80px rgba(0, 0, 0, .35); transform: rotate(-7deg); }
.phone__screen { height: 100%; border-radius: 35px; overflow: hidden; background: #ece8e1; }
.phone__screen img { width: 100%; height: auto; }
@media (max-width: 749px) {
  .online__inner { min-height: 0; padding-top: 80px; gap: 0; }
  .online__text { padding-bottom: 0; gap: 18px; }
  .online__text .btn { margin-top: 8px; height: 52px; padding: 0 24px; }
  .online__phone-area { flex-basis: 100%; height: 330px; margin-top: 44px; }
  .phone { left: auto; right: 24px; top: 0; width: 212px; height: 452px; padding: 7px; border-radius: 34px; }
  .phone__screen { border-radius: 27px; }
}

/* Product */
.product { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; padding-top: 24px; padding-bottom: 120px; }
.gallery { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery__main { background: var(--bone); border-radius: 28px; height: 640px; display: flex; align-items: center; justify-content: center; }
.gallery__main .card { width: 330px; max-width: 64%; transform: rotate(-2deg); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; height: 380px; border-radius: 24px; }
.tile .card { position: absolute; }
.tile--fan { background: var(--night); }
.tile--fan .card { width: 26%; top: 27%; }
.tile--fan .card:nth-child(1) { left: 12%; transform: rotate(-14deg); top: 30%; }
.tile--fan .card:nth-child(2) { left: 29%; transform: rotate(-5deg); top: 25%; }
.tile--fan .card:nth-child(3) { left: 46%; transform: rotate(5deg); top: 25%; }
.tile--fan .card:nth-child(4) { left: 62%; transform: rotate(14deg); top: 30%; }
.tile--pair { background: var(--stone); }
.tile--pair .card { width: 33%; }
.tile--pair .card:nth-child(1) { left: 14%; top: 24%; transform: rotate(-6deg); }
.tile--pair .card:nth-child(2) { left: 48%; top: 19%; transform: rotate(5deg); }
.tile--stream { background: var(--bone); }
.tile--stream .card { width: 30%; }
.tile--stream .stone { left: 42%; top: 33%; transform: rotate(90deg); }
.tile--stream .pile-1 { left: 18%; top: 23%; transform: rotate(-3deg); }
.tile--stream .pile-2 { left: 19%; top: 22%; transform: rotate(-1deg); }
.tile--stream .pile-3 { left: 20%; top: 21%; transform: rotate(1deg); }
.tile--moss { background: var(--moss); }
.tile--moss .card { width: 30%; }
.tile--moss .card:nth-child(1) { left: 20%; top: 22%; transform: rotate(-8deg); }
.tile--moss .card:nth-child(2) { left: 46%; top: 26%; transform: rotate(7deg); }
.tile--photo { background: var(--bone); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile__label { position: absolute; left: 24px; bottom: 20px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.buy { flex: 1 1 380px; max-width: 460px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }
.buy__title { font-size: 52px; line-height: 1.04; font-weight: 500; letter-spacing: -.02em; }
.buy__price { font-size: 22px; font-weight: 500; }
.buy__desc { font-size: 17px; line-height: 1.6; color: var(--body); }
.buy__desc p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.facts > div { padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); }
.facts > div:nth-last-child(-n + 2) { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.facts dd { font-size: 16px; font-weight: 500; }
.buy__form { display: flex; gap: 12px; align-items: center; }
.buy__form .btn { flex: 1 1 auto; }
.qty { display: flex; align-items: center; height: 56px; border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.qty button { width: 52px; height: 56px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty input { width: 28px; border: 0; background: none; text-align: center; font-size: 16px; font-weight: 500; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.accordion details { box-shadow: inset 0 1px 0 var(--line); padding: 22px 0; }
.accordion details:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.accordion summary { cursor: pointer; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; color: var(--muted); }
.accordion details[open] summary::after { content: '\2212'; }
.accordion .rte { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--body); }
.try-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 18px; background: var(--bone); }
.try-card span span { display: block; }
.try-card strong { display: block; font-size: 15px; font-weight: 500; }
@media (max-width: 989px) {
  .buy { position: static; max-width: none; }
}
@media (max-width: 749px) {
  .product { padding-top: 8px; gap: 32px; padding-bottom: 72px; }
  .gallery { flex-basis: 100%; margin: 0 calc(var(--gutter) * -1 + 16px); }
  .gallery__main { height: 420px; border-radius: 24px; }
  .gallery__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
  .gallery__grid .tile { flex: 0 0 86%; height: 360px; scroll-snap-align: center; }
  .buy { gap: 20px; padding-top: 0; }
  .buy__title { font-size: 40px; }
}

/* Product: what beats what */
.beats { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; padding-top: 112px; padding-bottom: 120px; }
.beats__text { flex: 1 1 340px; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.beats__grid { flex: 999 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.beat { display: flex; flex-direction: column; gap: 20px; }
.beat__cards { position: relative; height: 230px; }
.beat__cards .mc { position: absolute; width: 112px; }
.beat__cards .mc:first-child { left: 8%; top: 10px; }
.beat__cards .mc:nth-child(2) { left: 30%; top: 44px; transform: rotate(7deg); }
.beat--no .beat__cards .mc:first-child { left: 4%; }
.beat--no .beat__cards .mc:nth-child(2) { left: 50%; top: 26px; transform: rotate(4deg); opacity: .55; }
.beat figcaption { display: flex; flex-direction: column; gap: 6px; }
.beat figcaption strong { font-size: 17px; font-weight: 500; }
@media (max-width: 749px) {
  .beats { gap: 28px; padding-top: 64px; padding-bottom: 56px; }
  .beats__grid { grid-template-columns: 1fr; gap: 12px; }
  .beat { flex-direction: row; align-items: center; gap: 20px; }
  .beat__cards { flex: 0 0 140px; height: 150px; }
  .beat__cards .mc { width: 80px; }
  .beat__cards .mc:first-child, .beat--no .beat__cards .mc:first-child { left: 0; top: 4px; }
  .beat__cards .mc:nth-child(2) { left: 40px; top: 28px; }
  .beat--no .beat__cards .mc:nth-child(2) { left: 58px; top: 16px; }
}

/* Details table */
.details { display: flex; flex-wrap: wrap; gap: 72px; padding-top: 120px; padding-bottom: 120px; }
.details__head { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.details dl { flex: 999 1 560px; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; }
.details dl > div { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--line); }
.details dl > div:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.details dt { flex: 0 0 180px; color: var(--muted); }
.details dd { flex: 1 1 280px; }
@media (max-width: 749px) {
  .details { gap: 20px; padding-top: 64px; padding-bottom: 32px; }
  .details dl > div { flex-direction: column; gap: 4px; padding: 14px 0; }
  .details dt { flex: 0 0 auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
}

/* Post cards (Facts) */
.posts { display: flex; flex-direction: column; gap: 40px; padding-top: 0; padding-bottom: 120px; }
.posts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card__art { height: 260px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-family: 'Rill Stream', var(--sans); font-size: 132px; line-height: 1; background: var(--t-bg, var(--moss)); color: var(--t-fg, var(--moss-fg)); overflow: hidden; }
.post-card__title { font-size: 22px; line-height: 1.25; font-weight: 500; }
.post-card__excerpt { font-size: 16px; line-height: 1.55; color: var(--body); }
.t-moss { --t-bg: var(--moss); --t-fg: var(--moss-fg); }
.t-tide { --t-bg: var(--tide); --t-fg: var(--tide-fg); }
.t-clay { --t-bg: var(--clay); --t-fg: var(--clay-fg); }
.t-dusk { --t-bg: var(--dusk); --t-fg: var(--dusk-fg); }
.t-night { --t-bg: var(--night); --t-fg: var(--pearl); }
.t-bone { --t-bg: var(--bone); --t-fg: var(--ink); }
.t-stone { --t-bg: var(--stone); --t-fg: var(--tide); }
@media (max-width: 989px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .posts { padding-bottom: 64px; gap: 24px; }
  .post-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .post-grid .post-card { flex: 0 0 250px; scroll-snap-align: start; }
  .post-card__art { height: 190px; font-size: 96px; border-radius: 18px; }
  .post-card__title { font-size: 17px; }
  .post-card__excerpt { display: none; }
}

/* Facts blog page */
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.blog-head > div { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.blog-head > p { max-width: 420px; }
.tag-filter { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 48px; }
.tag-filter a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 500; }
.tag-filter a[aria-current='page'] { background: var(--night); color: var(--pearl); box-shadow: none; }
.featured-post { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-bottom: 72px; }
.featured-post__art { position: relative; flex: 1 1 560px; height: 440px; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Rill Stream', var(--sans); font-size: clamp(140px, 18vw, 240px); line-height: 1; background: var(--t-bg, var(--night)); color: var(--t-fg, var(--pearl)); }
.featured-post__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-post__art span { position: relative; }
.featured-post__text { flex: 1 1 380px; max-width: 500px; display: flex; flex-direction: column; gap: 18px; }
.featured-post__text .h2 { font-size: clamp(30px, 3.2vw, 40px); }
.pagination { display: flex; gap: 16px; padding-bottom: 96px; font-size: 15px; }
@media (max-width: 749px) {
  .blog-head { padding-top: 32px; }
  .featured-post__art { height: 300px; flex-basis: 100%; }
  .blog .post-grid { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; }
  .blog .post-card__excerpt { display: block; }
}

/* Article */
.article-head { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 56px; }
.article-head h1 { max-width: 920px; }
.article-head .lead { max-width: 680px; font-size: 20px; line-height: 1.55; }
.article-art { position: relative; height: 460px; border-radius: 32px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Rill Stream', var(--sans); font-size: clamp(160px, 20vw, 280px); line-height: 1; background: var(--t-bg, var(--night)); color: var(--t-fg, var(--pearl)); }
.article-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-art span { position: relative; }
.article-body { padding-top: 96px; padding-bottom: 120px; }
.rte { font-size: 19px; line-height: 1.7; color: var(--text-soft); }
.rte > * + * { margin-top: 24px; }
.rte h2 { margin-top: 56px; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.rte h3 { margin-top: 40px; font-size: 22px; font-weight: 500; color: var(--ink); }
.rte ul, .rte ol { padding-left: 22px; }
.rte li + li { margin-top: 10px; }
.rte blockquote { font-size: 30px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.rte a { box-shadow: inset 0 -1px 0 currentColor; }
.article-body .rte { max-width: 700px; margin-left: calc(50% - 350px + 140px); }
@media (max-width: 1239px) { .article-body .rte { margin-left: auto; margin-right: auto; } }
@media (max-width: 749px) {
  .article-art { height: 280px; border-radius: 24px; }
  .article-body { padding-top: 56px; padding-bottom: 72px; }
  .rte { font-size: 17px; }
}

/* Generic page and cart */
.page-head { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.page-body { padding-bottom: 120px; }
.page-body .rte { max-width: 700px; }
.cart { padding-top: 48px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 24px; align-items: center; padding: 24px 0; box-shadow: inset 0 1px 0 var(--line); flex-wrap: wrap; }
.cart-line:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.cart-line .card { width: 72px; flex: 0 0 72px; }
.cart-line__info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.cart-line__info a.remove { font-size: 14px; color: var(--muted); box-shadow: inset 0 -1px 0 currentColor; align-self: flex-start; }
.cart-line__total { font-size: 17px; font-weight: 500; min-width: 90px; text-align: right; }
.cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cart-foot__total { font-size: 22px; font-weight: 500; }
.cart-empty { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding: 40px 0 80px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field input, .form-field textarea { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bone); font-size: 16px; }
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.notice { padding: 16px 20px; border-radius: 14px; background: var(--bone); font-size: 15px; }

/* Skeleton templates kept for search, collections and 404 */
.block-container { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) 96px; display: flex; flex-direction: column; gap: 20px; text-align: var(--text-align, left); }
.block-container h1 { font-size: 40px; font-weight: 500; letter-spacing: -.015em; }
.block-container input[type='search'], .block-container input[type='password'] { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bone); max-width: 100%; }
.block-container button { height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: var(--night); color: var(--pearl); cursor: pointer; }
.template-password main { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* How it plays */
.how-hero { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; }
.river-map { position: relative; height: 460px; border-radius: 32px; background: var(--bone); overflow: hidden; }
.river-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.river-map__label { position: absolute; top: 32px; display: flex; flex-direction: column; gap: 6px; max-width: 220px; }
.river-map__label strong { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.river-map__label span { font-size: 14px; line-height: 1.45; color: var(--body); }
.river-map .card, .river-map .mc { position: absolute; }
.chapter { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; padding-top: 140px; padding-bottom: 120px; }
.chapter--band { padding-top: 120px; }
.chapter__text { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.chapter__text .copy { font-size: 17px; }
.chapter__side { flex: 999 1 540px; min-width: 0; }
.chapter--stack { flex-direction: column; align-items: stretch; gap: 56px; }
.spreads { display: flex; flex-direction: column; gap: 14px; }
.spread { display: flex; align-items: center; gap: 20px; }
.spread > span { flex: 0 0 52px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spread__cards { display: flex; }
.spread__cards .mc { flex: 0 0 68px; width: 68px; margin-right: -28px; }
.spread:nth-child(2) { margin-left: 24px; }
.spread:nth-child(3) { margin-left: 48px; }
.spread:nth-child(4) { margin-left: 72px; }

.quiz { display: flex; flex-direction: column; gap: 28px; background: var(--paper); border-radius: 28px; padding: 40px; }
.quiz__top { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.quiz__top .mc { flex: 0 0 92px; width: 92px; transform: rotate(-3deg); }
.quiz__top > div { display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; }
.quiz__ask { font-size: 24px; line-height: 1.25; font-weight: 500; }
.quiz__hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 18px; }
.quiz__pick { display: flex; flex-direction: column; gap: 14px; }
.quiz__pick button { display: block; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.quiz__pick button .mc { width: 100%; }
.quiz__pick.is-yes button { transform: translateY(-16px); }
.quiz__pick.is-yes .mc { box-shadow: 0 0 0 2px var(--ink), 0 16px 30px rgba(39, 45, 43, .22); }
.quiz__pick.is-no button { opacity: .45; }
.quiz__verdict { display: none; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; animation: rill-in .3s ease-out; }
.quiz__verdict strong { font-weight: 500; }
.quiz__pick.is-yes .quiz__verdict, .quiz__pick.is-no .quiz__verdict { display: flex; }
.quiz__pick.is-no .quiz__verdict strong { color: var(--muted); }
.quiz__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; box-shadow: inset 0 1px 0 rgba(39, 45, 43, .14); }
.quiz__foot p { font-size: 15px; font-weight: 500; }
.quiz__foot button { height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: none; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 500; cursor: pointer; }
.swatch-line { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--body); }
.swatch-line::before { content: ''; flex: 0 0 16px; height: 16px; border-radius: 4px; background: var(--moss); }

.setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; list-style: none; padding: 0; }
.setup li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; box-shadow: inset 0 1px 0 rgba(39, 45, 43, .18); }
.setup li strong { font-size: 19px; font-weight: 500; }
.setup li span:last-child { font-size: 16px; line-height: 1.6; color: var(--body); }

.round { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.table { --cw: 76px; --bw: 34px; flex: 999 1 620px; min-width: 0; position: relative; height: 580px; border-radius: 28px; background: var(--bone); color: var(--ink); overflow: hidden; }
.table > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seat { position: absolute; top: 24px; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seat--ines { left: 16%; }
.seat--tomas { left: 58%; }
.seat__name { font-size: 14px; font-weight: 500; }
.seat__role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seat__backs { display: flex; padding: 10px 0 0 22px; height: 58px; }
.seat__backs .card { flex: 0 0 var(--bw); width: var(--bw); margin-left: -22px; box-shadow: 0 0 0 1px rgba(242, 238, 230, .85), 0 4px 10px rgba(39, 45, 43, .14); }
.seat__backs .card:first-child { margin-left: 0; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 12px; background: var(--night); color: var(--pearl); box-shadow: 0 0 0 2px var(--pearl); font-size: 11px; font-weight: 500; letter-spacing: .16em; margin-top: 6px; }
.zone-label { position: absolute; top: 176px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.table .stream-card { position: absolute; width: calc(var(--cw) - 2px); }
.field { position: absolute; left: 30%; right: 24%; top: 208px; height: 150px; display: flex; justify-content: center; gap: 44px; }
.field__stack { position: relative; flex: 0 0 78px; width: 78px; height: 150px; animation: rill-in .35s ease-out; }
.field__stack .mc { position: absolute; left: 0; top: 0; width: 78px; }
.field__stack .mc + .mc { left: 20px; top: 28px; transform: rotate(8deg); animation: rill-in .35s ease-out; }
.slot { display: block; width: 78px; aspect-ratio: 5 / 7; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(39, 45, 43, .22); }
.ocean { position: absolute; left: 80%; top: 212px; width: 100px; height: 140px; }
.ocean .card { position: absolute; width: 70px; animation: rill-in .4s ease-out; }
.you { position: absolute; left: 4%; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hand { position: absolute; left: 0; right: 0; bottom: 0; height: 172px; }
.hand .mc { position: absolute; width: var(--cw); }
.round__side { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.round__caption { display: flex; flex-direction: column; gap: 16px; }
.round__no { display: flex; align-items: baseline; gap: 16px; }
.round__no .numeral { font-size: 72px; }
.round__title { font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.round__text { font-size: 17px; line-height: 1.6; color: #d9d6ce; }
.round__dots { display: flex; gap: 2px; flex-wrap: wrap; }
.round__dots button { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.round__dots span { display: block; width: 8px; height: 6px; border-radius: 3px; background: rgba(237, 232, 222, .3); transition: width .2s ease; }
.round__dots button[aria-current='step'] span { width: 22px; background: var(--pearl); }
.round__buttons { display: flex; gap: 12px; }
.round__buttons .btn--pearl { flex: 1 1 auto; }
.aside-note { padding: 22px 24px; border-radius: 20px; background: rgba(237, 232, 222, .07); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; }
.aside-note strong { font-weight: 500; }
.aside-note span { color: var(--pale); }

.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.frame { display: flex; flex-direction: column; gap: 18px; }
.frame__art { position: relative; height: 280px; border-radius: 24px; background: var(--bone); display: flex; align-items: center; justify-content: center; gap: 18px; overflow: hidden; }
.frame__art .mc { width: 104px; }
.frame figcaption { display: flex; flex-direction: column; gap: 6px; }
.frame figcaption strong { font-size: 18px; font-weight: 500; }
.places { flex: 999 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.places li { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.places .numeral { font-size: 44px; height: 44px; }
.places li > span:last-child strong { display: block; font-size: 16px; font-weight: 500; }
.words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.words > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; box-shadow: inset 0 1px 0 rgba(237, 232, 222, .18); }
.words dt { font-size: 22px; font-weight: 500; }
.words dd { font-size: 15px; line-height: 1.5; color: var(--pale); }
.end-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 140px; padding-bottom: 140px; }
.end-cta > div:first-child { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.end-cta h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; }

@media (max-width: 989px) {
  .quiz__hand { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .river-map { height: 360px; border-radius: 24px; }
  .river-map__label { top: 20px; max-width: 30%; }
  .river-map__label span { display: none; }
  .chapter { gap: 28px; padding-top: 80px; padding-bottom: 72px; }
  .chapter-no { font-size: 64px; }
  .spread__cards .mc { flex-basis: 40px; width: 40px; margin-right: -14px; }
  .spread > span { flex-basis: 40px; font-size: 10px; }
  .spread:nth-child(n) { margin-left: 0; }
  .quiz { padding: 24px 18px; gap: 20px; }
  .quiz__verdict span { display: none; }
  .setup { grid-template-columns: 1fr; gap: 24px; }
  .table { --cw: 54px; --bw: 24px; height: 500px; flex-basis: 100%; }
  .seat { width: 110px; }
  .seat--ines { left: 4%; }
  .seat--tomas { left: auto; right: 4%; }
  .seat__backs { padding-left: 14px; height: 46px; }
  .seat__backs .card { margin-left: -15px; }
  .zone-label { top: 150px; }
  .field { left: 26%; right: 18%; top: 186px; gap: 26px; }
  .field__stack { flex-basis: 56px; width: 56px; }
  .field__stack .mc, .slot { width: 56px; }
  .field__stack .mc + .mc { left: 14px; top: 20px; }
  .ocean { left: 78%; top: 190px; }
  .ocean .card { width: 50px; }
  .hand { height: 150px; }
  .you { display: none; }
  .round__text { font-size: 16px; }
  .frames { grid-template-columns: 1fr; }
  .frame__art { height: 220px; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .words { grid-template-columns: 1fr; gap: 24px; }
  .end-cta { padding-top: 80px; padding-bottom: 80px; }
}

/* Why Rill */
.why-hero { display: flex; flex-direction: column; gap: 28px; padding-top: 72px; padding-bottom: 96px; }
.why-hero h1 { max-width: 960px; }
.why-hero .lead { max-width: 560px; }
.ledger { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.ledger__col { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.ledger__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.ledger__out li { color: #6f6b63; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--ink); }
.ledger__rule { flex: 0 0 1px; align-self: stretch; background: rgba(39, 45, 43, .18); }
.ledger__kept { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; }
.ledger__kept .card { flex: 0 0 190px; transform: rotate(-3deg); }
.ledger__kept > div { display: flex; flex-direction: column; gap: 28px; }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; padding: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 24px 0 0; box-shadow: inset 0 1px 0 rgba(39, 45, 43, .25); }
.timeline li::before { content: ''; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 5px; background: var(--ink); }
.timeline li:last-child { box-shadow: inset 0 1px 0 var(--ink); padding-right: 0; }
.timeline li:last-child::before { top: -6px; width: 13px; height: 13px; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.timeline .numeral { font-size: 44px; }
.timeline .numeral small { font-family: var(--sans); font-size: 18px; }
.timeline li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--body); }
.essay { display: flex; flex-direction: column; gap: 72px; padding-top: 96px; padding-bottom: 120px; }
.essay section { display: flex; flex-wrap: wrap; gap: 24px 72px; }
.essay h2 { flex: 1 1 260px; max-width: 320px; font-size: 24px; line-height: 1.25; font-weight: 500; }
.essay .rte { flex: 999 1 520px; max-width: 680px; }
.essay .rte > * + * { margin-top: 20px; }
.quote-band { position: relative; overflow: hidden; }
.quote-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-band blockquote { position: relative; padding-top: 140px; padding-bottom: 140px; padding-left: max(var(--gutter), 18%); }
.quote-band p { max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.maker { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.maker__photo { flex: 0 1 380px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--paper); }
.maker__photo img { width: 100%; height: 100%; object-fit: cover; }
.maker__text { flex: 1 1 420px; max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 989px) {
  .ledger__rule { display: none; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 749px) {
  .why-hero { padding-top: 32px; padding-bottom: 56px; }
  .ledger { gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .ledger__rule { display: none; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essay { gap: 48px; padding-top: 56px; padding-bottom: 72px; }
  .quote-band blockquote { padding-top: 88px; padding-bottom: 88px; }
  .maker { gap: 32px; padding-top: 64px; padding-bottom: 64px; }
}

@keyframes rill-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.post-card[hidden], [data-featured][hidden] { display: none; }
