/* Tidgy site: calm, editorial, no JavaScript. Light and dark follow the system. */

@font-face { font-family: "Literata"; src: url("/fonts/Literata.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/NunitoSans.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #F3F8F6; --bg-2: #E4F1EC; --surface: #FFFFFF; --ink: #10201D; --ink-2: #3F5753;
  --line: rgba(16, 32, 29, .11); --teal: #2F6A62; --teal-deep: #0F3B36; --on-teal: #F3F8F6;
  --apricot: #B35433; --apricot-soft: #F4A98C; --mint: #D6EDE6;
  --shadow: 0 30px 60px -24px rgba(15, 59, 54, .38), 0 12px 24px -12px rgba(15, 59, 54, .22);
  --radius: 28px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1715; --bg-2: #122220; --surface: #16211F; --ink: #E9F3F0; --ink-2: #9DB3AE;
    --line: rgba(233, 243, 240, .13); --teal: #7FD6C8; --teal-deep: #0A2723; --on-teal: #E9F3F0;
    --apricot: #F4A98C; --apricot-soft: #F4A98C; --mint: #1B3330;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 440; letter-spacing: -.012em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-variation-settings: "opsz" 48; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-variation-settings: "opsz" 36; }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 20; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.eyebrow { display: inline-flex; gap: .7em; align-items: flex-start; font: 800 .74rem/1.45 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; flex: none; margin-top: .42em; width: .6em; height: .6em; border-radius: 50%; background: var(--apricot-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--apricot-soft) 28%, transparent); }
.dot { color: var(--apricot); }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 560 1.45rem/1 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 24; }
.brand img { width: 34px; height: 34px; border-radius: 22.37%; box-shadow: 0 6px 14px -6px rgba(15, 59, 54, .5); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav li a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; }
.nav li a:hover, .nav li a[aria-current="page"] { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--ink); }
.lang { margin-left: 4px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; font-size: .84rem; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.lang:hover { background: var(--surface); }
@media (max-width: 720px) { .nav ul { display: none; } .nav .lang { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .75; }
.hero::before { width: 620px; height: 620px; right: -140px; top: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 34%, transparent), transparent 70%); }
.hero::after { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--apricot-soft) 40%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 22px 0 22px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--teal); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 14px 28px -14px rgba(15, 32, 29, .6); }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface); }
.promise { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.promise span::before { content: "·"; margin-right: 10px; color: var(--apricot); font-weight: 900; }
.promise span:first-child::before { content: none; margin: 0; }

/* Phones */
.phone { --w: 280px; width: var(--w); aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * .152); padding: calc(var(--w) * .024);
  background: linear-gradient(160deg, #26332f, #0a1110 60%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .12); position: relative; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .128); background: var(--bg-2); }
.phones { position: relative; display: grid; place-items: center; min-height: 560px; }
.phones .phone { position: absolute; }
.phones .back { --w: 262px; transform: translate(-27%, 6%) rotate(-6deg); }
.phones .front { --w: 292px; transform: translate(21%, -2%) rotate(3.5deg); z-index: 2; }
@media (max-width: 900px) { .phones { min-height: 520px; } .phones .back { --w: 220px; } .phones .front { --w: 248px; } }
@media (max-width: 480px) { .phones { min-height: 440px; } .phones .back { --w: 180px; transform: translate(-30%, 6%) rotate(-6deg); } .phones .front { --w: 204px; transform: translate(24%, -2%) rotate(3.5deg); } }
.path { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }

@media (prefers-reduced-motion: no-preference) {
  .phones .back { animation: floatA 9s ease-in-out infinite; }
  .phones .front { animation: floatB 8s ease-in-out infinite; }
  @keyframes floatA { 50% { transform: translate(-27%, 3%) rotate(-6deg); } }
  @keyframes floatB { 50% { transform: translate(21%, -4%) rotate(3.5deg); } }
  .reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }

/* How it works */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: s; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; position: relative; }
.step .n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 22px; font: 520 1.45rem/1 var(--serif); color: var(--on-teal);
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--teal) 55%, white), var(--teal) 55%, var(--teal-deep)); box-shadow: 0 10px 18px -8px rgba(15, 59, 54, .6); }
.step:nth-child(3) .n { background: radial-gradient(circle at 34% 28%, #FFD6C2, var(--apricot-soft) 50%, #D9724F); color: #3a1b10; }
.step p { margin-top: 12px; color: var(--ink-2); }
.step::after { content: ""; position: absolute; right: -18px; top: 52px; width: 18px; border-top: 3px dotted color-mix(in srgb, var(--teal) 45%, transparent); }
.step:last-child::after { content: none; }
@media (max-width: 860px) { .step::after { content: none; } }

/* Bento */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; overflow: hidden; position: relative; min-height: 280px; display: flex; flex-direction: column; }
.tile p { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.t1 { grid-column: span 4; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--mint) 70%, var(--surface))); }
.t2 { grid-column: span 2; } .t3 { grid-column: span 3; } .t4 { grid-column: span 3; }
@media (max-width: 900px) { .t1, .t2, .t3, .t4 { grid-column: span 6; } }
.path-art { margin-top: auto; padding-top: 22px; } .path-art svg { width: 100%; max-width: 260px; height: auto; display: block; }
.wave { margin-top: auto; padding-top: 26px; display: flex; gap: 7px; align-items: center; height: 96px; }
.wave i { flex: 1; border-radius: 99px; background: linear-gradient(var(--teal), color-mix(in srgb, var(--teal) 45%, transparent)); height: var(--h); max-width: 14px; opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .wave i { animation: breathe 3.6s ease-in-out infinite; animation-delay: var(--d); } @keyframes breathe { 50% { transform: scaleY(.55); } } }
.t1 .shot { margin: 28px -4px -64px auto; align-self: flex-end; }
.tile.t1 { flex-direction: row; gap: 24px; align-items: stretch; }
.t1 .copy { max-width: 28em; padding-bottom: 12px; }
.stuck-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.stuck-list li { padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: .96rem; line-height: 1.4; }
.t1 .stuck-note { font-size: .9rem; margin-top: 14px; }
.t1 .phone { --w: 220px; margin-top: 8px; align-self: flex-end; margin-bottom: -90px; transform: rotate(2deg); }
@media (max-width: 900px) { .tile.t1 { flex-direction: column; } .t1 .phone { align-self: center; margin-bottom: -110px; } }
.chips { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); font-weight: 700; font-size: .9rem; color: var(--ink-2); }

/* Gallery */
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 34px; margin-inline: calc((100vw - min(1120px, 100vw - 40px)) / -2); scrollbar-width: thin; scrollbar-color: var(--teal) transparent; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery figure { margin: 0; scroll-snap-align: center; display: grid; gap: 18px; justify-items: center; }
.gallery figure:first-child { margin-left: max(0px, calc((100vw - min(1120px, 100vw - 40px)) / 2 - 20px)); }
.gallery figure:last-child { margin-right: max(0px, calc((100vw - min(1120px, 100vw - 40px)) / 2 - 20px)); }
.gallery .phone { --w: 252px; }
.gallery figcaption { font: 440 1.15rem/1.25 var(--serif); text-align: center; max-width: 11em; font-variation-settings: "opsz" 16; text-wrap: balance; }

/* Private band */
.band { background: var(--teal-deep); color: var(--on-teal); border-radius: clamp(28px, 5vw, 56px); padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 214, 200, .32), transparent 70%); }
.band h2 { color: #fff; max-width: 14em; }
.band .eyebrow { color: #b8d6d0; }
.band ul { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .band ul { grid-template-columns: 1fr; } }
.band li { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; color: #d4e6e2; }
.band li strong { display: block; color: #fff; font: 440 1.25rem/1.25 var(--serif); margin-bottom: 8px; }
.band a { color: #fff; font-weight: 800; }
.band .more { margin-top: 36px; }

/* Plus note + disclaimer */
.plus { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.plus .bead { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFE6D8, #F7B397 40%, #E88A66 80%, #CF6A47); box-shadow: 0 12px 20px -8px rgba(179, 84, 51, .55); }
.note { color: var(--ink-2); font-size: .94rem; max-width: 46em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; color: var(--ink-2); font-size: .96rem; }
.foot { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 10px; font: 800 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--ink); }
.legalline { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; }

/* Text pages */
.page { padding: clamp(40px, 6vw, 80px) 0 40px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 14px; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin: 2.4em 0 .6em; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.2rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.prose p { margin: 0 0 1em; text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; } .prose li { margin: .35em 0; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--apricot-soft); background: color-mix(in srgb, var(--apricot-soft) 14%, transparent); border-radius: 0 14px 14px 0; }
.prose code { font: 600 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: color-mix(in srgb, var(--teal) 12%, transparent); padding: .1em .4em; border-radius: 6px; }
mark.ph { background: color-mix(in srgb, #F2C14E 45%, transparent); color: var(--ink); padding: .05em .3em; border-radius: 5px; }
.banner { border: 1px solid color-mix(in srgb, var(--apricot) 55%, transparent); background: color-mix(in srgb, var(--apricot-soft) 20%, transparent); border-radius: 18px; padding: 16px 20px; margin: 0 0 32px; font-weight: 700; color: var(--ink); max-width: 46rem; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 30px 0; max-width: 46rem; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.card h3 { margin-bottom: 8px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 22px; margin: 12px 0; max-width: 46rem; }
summary { cursor: pointer; font: 440 1.15rem/1.4 var(--serif); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-variation-settings: "opsz" 16; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font: 400 1.6rem/1 var(--sans); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 18px; color: var(--ink-2); }
.mail { font-weight: 800; }
.lang + .lang { margin-left: 2px; }
/* blog */
.post-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-list .card a { color: inherit; text-decoration: none; } .post-list .card a:hover h3 { text-decoration: underline; }
.post-list .card p { margin-top: 8px; color: var(--ink-2); }
.post-meta { color: var(--ink-2); font-size: .9rem; margin: 0 0 1.6em; }
.post-list .post-meta { margin: 10px 0 0; }
.crumbs { font-size: .9rem; color: var(--ink-2); } .crumbs a { color: inherit; }
.post figure { margin: 1.6em 0; } .post figure img { display: block; width: min(100%, 320px); height: auto; border-radius: 28px; border: 1px solid var(--line); }
.post-cta { margin: 2.6em 0 1.2em; } .post-cta h3 { margin: 0; }
.post-note { margin-top: 1em; }
.related { margin-top: 3em; } .related h2 { margin-top: 0; }

/* Apps hub */
.app-cards { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; max-width: 46rem; }
.app-card { display: flex; gap: 24px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.app-card img { width: 96px; height: 96px; border-radius: 22.37%; flex: none; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.app-card h2 { font-size: 1.8rem; }
.app-card .kind { margin: 6px 0 12px; color: var(--ink-2); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.app-card p { color: var(--ink-2); }
.app-card .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; }
.app-card.app-vowen { background: #0D0D0F; border-color: rgba(227, 197, 141, .28); }
.app-card.app-vowen h2 { color: #F2F1EE; } .app-card.app-vowen p { color: #A9A8A3; } .app-card.app-vowen a { color: #E3C58D; }
@media (max-width: 520px) { .app-card { flex-direction: column; } }

/* Vowen: always dark, champagne on anthracite (the app's own palette) */
body.vowen {
  --bg: #0D0D0F; --bg-2: #18181B; --surface: #18181B; --ink: #F2F1EE; --ink-2: #A9A8A3;
  --line: rgba(242, 241, 238, .12); --teal: #E3C58D; --teal-deep: #25221C; --on-teal: #F1E4C8;
  --apricot: #E3C58D; --apricot-soft: #E3C58D; --mint: #25221C;
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
body.vowen .brand img { box-shadow: 0 6px 14px -6px rgba(227, 197, 141, .35); }
body.vowen .btn-primary { background: #E3C58D; color: #1A160D; box-shadow: 0 14px 28px -14px rgba(227, 197, 141, .55); }
body.vowen .btn-primary[aria-disabled="true"] { background: transparent; color: #E3C58D; border-color: rgba(227, 197, 141, .5); box-shadow: none; }
body.vowen .step .n, body.vowen .step:nth-child(3) .n { background: radial-gradient(circle at 34% 28%, #F7EDD6, #E3C58D 55%, #B8975A); color: #1A160D; box-shadow: 0 10px 18px -8px rgba(227, 197, 141, .45); }
body.vowen .step::after { border-top-color: rgba(227, 197, 141, .4); }
body.vowen .plus .bead { background: radial-gradient(circle at 34% 28%, #F7EDD6, #E3C58D 50%, #B8975A); box-shadow: 0 12px 20px -8px rgba(227, 197, 141, .4); }
body.vowen .band { background: #25221C; }
body.vowen .band::before { background: radial-gradient(circle, rgba(227, 197, 141, .25), transparent 70%); }
body.vowen .band .eyebrow { color: #cdbb94; } body.vowen .band li { color: #d8d3c6; }
.crest { display: grid; place-items: center; position: relative; min-height: 380px; }
.crest::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 197, 141, .28), transparent 68%); filter: blur(10px); }
.crest img { position: relative; width: min(100%, 380px); height: auto; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55)); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.rule p { margin-top: 10px; color: var(--ink-2); }
.rank-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .rank-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
.rank-grid li { display: grid; justify-items: center; gap: 4px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 10px 20px; }
.rank-grid img { width: 100%; max-width: 150px; height: auto; margin-bottom: 8px; }
.rank-grid strong { font: 440 1.15rem/1.2 var(--serif); }
.rank-grid span { color: var(--ink-2); font-size: .92rem; font-weight: 700; }

/* Japanese: the web fonts hold no kana or kanji, so name the system faces; headings break only at <wbr>. */
:lang(ja) { --serif: "Literata", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Nunito Sans", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; line-break: strict; }
html:lang(ja) body { font-family: var(--sans); line-height: 1.8; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { font-family: var(--serif); letter-spacing: 0; line-height: 1.4; }
html:lang(ja) .hero h1, html:lang(ja) .section-head h2, html:lang(ja) .band h2, html:lang(ja) .plus h3, html:lang(ja) .t1 h3, html:lang(ja) .t1 h3 + p { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) .hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.4; }
html:lang(ja) .brand { font-family: "Literata", Georgia, serif; }
html:lang(ja) .prose { overflow-wrap: anywhere; }
