/* sorikostekmist.com — calçada portuguesa: limestone and basalt cubes in sand, one red stone.
   Tokens and sizes from the mockup (refs/figma/lib.js + pages.js). Desktop frame 1368, mobile 360. */
:root {
  --ink: #1C1D1F; --basalt: #1C1D1F; --basalt2: #2B2C2F;
  --lime: #EEE8DC; --paper: #F4F0E7; --sand: #A8966F;
  --soft: #4F4B43; --on: #EEE8DC; --onsoft: #CFC9BC; --rule: #4A4840; --red: #9E3B2A;
  --disp: 'Jersey 15', 'Courier New', monospace;
  --text: 'Rosario', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 20px;
  --k: 4px;                                   /* KERB: one row of basalt kerb stones (lib.js: 6 desktop / 4 mobile) */
  --wrap: max(var(--pad), calc(50% - 628px)); /* 1256 content width = 1368 − 2 × 56 */
  /* hard sun from upper left — lib.js sun(lvl): offset 2·lvl / 3·lvl, blur 2·lvl, basalt 24 % */
  --sun1: 2px 3px 2px rgba(28, 29, 31, .24);
  --sun2: 4px 6px 4px rgba(28, 29, 31, .24);
  /* Tile hover frame: «160 ms ease-out» */
  --hover-t: 160ms; --hover-ease: cubic-bezier(0, 0, .58, 1);
}
@media (min-width: 1024px) { :root { --pad: 56px; --k: 6px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); overflow-x: hidden; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: #1C1D1F; color: #EEE8DC; }          /* note: «Выделение текста: фон #1C1D1F, текст #EEE8DC» */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }  /* note: «фокус — красный бордюр #9E3B2A» */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--basalt); color: var(--on); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 { font: 400 40px/.96 var(--disp); letter-spacing: 0; }
.h3 { font: 400 28px/1 var(--disp); }
.h2--on, .h3--on { color: var(--on); }
.p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.p--ink { color: var(--ink); }
.p--on { color: var(--onsoft); }
.p--15 { font-size: 15px; }
.p--16 { font-size: 16px; }
.p--lead { font-size: 17px; color: var(--ink); max-width: 760px; }
@media (min-width: 1024px) {
  .h2 { font-size: 64px; }
  .h3 { font-size: 34px; }
  .p { font-size: 17px; }
  .p--15 { font-size: 15px; } .p--16 { font-size: 16px; }
  .p--lead { font-size: 20px; }
}

/* ---------- world pieces ---------- */
.cube { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--basalt); }
.cube--r { background: var(--red); }
.cube--l { background: var(--on); width: 6px; height: 6px; border-radius: 1px; }
.ground--lime { background: var(--paper) url(/assets/img/tile-lime.webp) 0 0 / 288px; }
.ground--basalt { background: var(--basalt) url(/assets/img/tile-basalt.webp) 0 0 / 288px; }
@media (min-width: 1024px) { .ground--lime, .ground--basalt { background-size: 196px; } }   /* tiled scale .34 / .5 */
.slab { background: var(--lime); border: var(--k) solid var(--basalt); border-radius: 4px; box-shadow: var(--sun1); }
.slab--paper { background: var(--paper); }
.slab--dark { background: var(--basalt); border-color: var(--lime); }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border: 2px solid var(--basalt); border-radius: 4px; background: var(--paper);
  font: 700 12px/1.3 var(--text); color: var(--ink); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; border: 0; border-radius: 4px; background: var(--basalt); color: var(--on);
  font: 600 15px/1.2 var(--text); text-decoration: none; box-shadow: var(--sun1); cursor: pointer;
  transition: box-shadow var(--hover-t) var(--hover-ease), transform var(--hover-t) var(--hover-ease); }
.btn:hover { box-shadow: var(--sun2); transform: translateY(-1px); }
.btn--line { background: var(--paper); color: var(--ink); border: 3px solid var(--basalt); box-shadow: none; padding: 10px 16px; }
@media (min-width: 1024px) { .btn { padding: 15px 22px; font-size: 16px; } .btn--line { padding: 9px 15px; font-size: 15px; } }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.linkish:hover { text-decoration: underline; }
/* marker = cube with a cross of joints (plus) or one joint when open (lib.js plusSq) */
.pm { position: relative; flex: none; width: 22px; height: 22px; border-radius: 4px; background: var(--basalt); }
.pm::before, .pm::after { content: ''; position: absolute; background: var(--lime); }
.pm::before { left: 6px; right: 6px; top: calc(50% - 1.5px); height: 3px; }
.pm::after { top: 6px; bottom: 6px; left: calc(50% - 1.5px); width: 3px; }
details[open] > summary .pm { background: var(--red); }
details[open] > summary .pm::after { display: none; }
@media (min-width: 1024px) { .pm { width: 26px; height: 26px; } }

/* ---------- header: sticky index list (axis 7) ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--k) solid var(--basalt); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1 var(--disp); color: var(--ink); }
.logo img { width: 26px; height: 26px; border-radius: 3px; }
.logo--light { color: var(--on); }
.index { position: relative; }
.ix-b { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; border-radius: 4px; background: var(--basalt); color: var(--on);
  font: 600 14px/1.2 var(--text); cursor: pointer; }
.ix-b .cube { width: 6px; height: 6px; border-radius: 1px; }
.ix-list a { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.2; }
.ix-list .cube { background: var(--sand); }
.ix-list a[aria-current] { font-weight: 700; }
.ix-list a[aria-current] .cube { background: var(--red); }
.ix-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023.98px) {
  html.js .ix-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; display: none; flex-direction: column; gap: 4px; padding: 10px 14px;
    background: var(--basalt); border: 3px solid var(--lime); border-radius: 4px; box-shadow: var(--sun2); }
  html.js .index.is-open .ix-list { display: flex; }
  .ix-list a { color: var(--on); padding: 8px 0; }
  .ix-list .cube { background: var(--onsoft); }
  html:not(.js) .ix-b { display: none; }
  html:not(.js) .ix-list { display: flex; gap: 14px; }
  html:not(.js) .ix-list a { color: var(--ink); }
}
@media (min-width: 1024px) {
  .top-in { padding: 20px var(--pad); }
  .logo { font-size: 27px; } .logo img { width: 30px; height: 30px; }
  .ix-b { display: none; }
  .ix-list { display: flex; gap: 28px; align-items: center; }
}
/* home: the index floats over the pavement as two stones (logo slab, dark nav slab) and stays on scroll */
.top--over { height: 0; background: none; border: 0; }
.top--over .top-in { pointer-events: none; }
.top--over .top-in > * { pointer-events: auto; }
.top--over .top-logo { background: var(--lime); border: 3px solid var(--basalt); border-radius: 4px; padding: 6px 10px; box-shadow: var(--sun1); }
.top--over .logo { font-size: 22px; }
@media (min-width: 1024px) {
  .top--over .top-logo { padding: 8px 14px; } .top--over .logo { font-size: 27px; }
  .top--over .ix-list { gap: 26px; padding: 12px 18px; background: var(--basalt); border: 3px solid var(--lime); border-radius: 4px; box-shadow: var(--sun1); }
  .top--over .ix-list a { color: var(--on); }
  .top--over .ix-list .cube { background: var(--onsoft); }
  .top--over .ix-list a[aria-current] .cube { background: var(--red); }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 14px var(--pad) 0; padding-left: var(--wrap); padding-right: var(--wrap); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--sand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) { .crumbs { padding-top: 22px; } }

/* ---------- hero: split-image, the headline laid into the stones ---------- */
.hero { position: relative; background: var(--basalt); }
.hero-pic { position: relative; overflow: hidden; aspect-ratio: 360 / 1008; }
.hero-pic picture, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 50%; }
/* scroll-driven-reveal (note «волна в hero перекатывается на один ряд кубиков»): the rolled stones are shown
   row by row (desktop) or column by column (mobile) up to --wv, set from scroll in script.js */
.hp-roll { -webkit-mask: linear-gradient(to right, #000 var(--wv, 0px), transparent var(--wv, 0px)); mask: linear-gradient(to right, #000 var(--wv, 0px), transparent var(--wv, 0px)); }
.hero-slab { position: absolute; left: 16px; right: 16px; top: 40.68%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-width: 3px; }
.hs-p { font-size: 15px; line-height: 1.5; }
.hero-slab .btn { align-self: flex-start; }
.hs-list { border-top: 3px solid var(--basalt); padding-top: 12px; }
.hs-h { font: 400 22px/1.1 var(--disp); }
.hs-list a { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1.5px solid var(--sand); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.25; }
.hs-list li:last-child a { border-bottom: 0; }
.hl-t { flex: 1; }
.hs-list a:hover .hl-t { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 600px) {
  .hero { padding-bottom: 40px; background: var(--basalt) url(/assets/img/tile-basalt.webp) 0 0 / 42.1vw; }  /* 24 cubes per tile = the hero's cube size (24 px at 1368) */
  .hero-pic { aspect-ratio: 1368 / 840; }
  .hp-roll { -webkit-mask: linear-gradient(to bottom, #000 var(--wv, 0px), transparent var(--wv, 0px)); mask: linear-gradient(to bottom, #000 var(--wv, 0px), transparent var(--wv, 0px)); }
  .hero-slab { position: relative; top: auto; left: auto; right: auto; width: min(520px, calc(100% - 2 * var(--pad))); max-width: none; margin: -48px var(--pad) 0 auto; }
}
/* desktop composition from 1280: below it the slab would sit on «SET IN» */
@media (min-width: 1280px) {
  .hero { padding: 0; height: min(61.4vw, 960px); }
  .hero-pic { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-slab { position: absolute; margin: 0; top: 17.86%; right: max(3.8%, calc(50% - 632px)); width: 380px; gap: 18px; padding: 26px 26px 28px; border-width: 4px; }
  .hs-p { font-size: 18px; }
  .hs-list { order: 1; } .hero-slab .btn { order: 2; }
  .hs-h { font-size: 26px; }
  .hs-list a { padding: 9px 0; font-size: 16px; }
}

/* ---------- G: fan-stack of six slabs ---------- */
.sec-hd { display: flex; flex-direction: column; gap: 14px; }
.gsec { padding: 52px var(--wrap) 56px; border-top: var(--k) solid var(--basalt); display: flex; flex-direction: column; gap: 24px; }
.fan { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 24px; padding: 22px 6px 40px; border: var(--k) solid var(--basalt); border-radius: 4px; }
.fan .card:nth-child(even) { margin-top: 18px; }
@media (min-width: 600px) and (max-width: 1023.98px) { .fan { grid-template-columns: repeat(3, 1fr); column-gap: 16px; padding: 28px 16px 44px; } .fan .card:nth-child(even) { margin-top: 0; } .fan .card:nth-child(3n+2) { margin-top: 18px; } }
@media (min-width: 1024px) {
  .gsec { padding: 88px var(--wrap) 96px; gap: 40px; }
  .sec-hd { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 14px; }
  .sec-hd .h2 { max-width: 640px; } .sec-hd .p { max-width: 420px; }
  /* six slabs of 208 overlapping by 12 (step 196) across the 1256 field, dropped by FAN_Y (pages.js) */
  .fan { display: flex; justify-content: center; align-items: flex-start; height: 520px; padding: 0 34px; }
  .fan .card { flex: 0 0 calc((100% + 60px) / 6); max-width: 208px; margin: var(--dy) 0 0 -12px !important; }
  .fan .card:first-child { margin-left: 0 !important; }
}

/* ---------- card: image-top, Tile hover ---------- */
.card { position: relative; background: var(--lime); border: var(--k) solid var(--basalt); border-radius: 4px; box-shadow: var(--sun1); transform: rotate(var(--rot, 0deg));
  transition: transform var(--hover-t) var(--hover-ease), box-shadow var(--hover-t) var(--hover-ease), border-color var(--hover-t) var(--hover-ease); }
.card .cv { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cd-t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 10px 12px; border-top: var(--k) solid var(--basalt); transition: border-color var(--hover-t) var(--hover-ease); }
.cd-h { font: 400 22px/1 var(--disp); }
.cd-a { text-decoration: none; }
.cd-a::after { content: ''; position: absolute; inset: calc(-1 * var(--k)); z-index: 1; }
.cd-p { font-size: 15px; line-height: 1.45; color: var(--ink); }
.cd-l, .mc-l { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; transition: color var(--hover-t) var(--hover-ease); }
.cd-l .ar { display: inline-block; margin-left: 4px; text-decoration: none; }
@media (min-width: 1024px) { .card:not(.card--s) .cd-t { padding: 14px 14px 16px; gap: 8px; } .card:not(.card--s) .cd-h { font-size: 26px; } }
@media (max-width: 1023.98px) { .fan .cd-p { display: none; } }
/* hover / focus: «the slab straightens (tilt to 0 deg), lifts with a longer sun shadow, the kerb turns vermelho red and
   the link takes the red underline. 160 ms ease-out. Focus ring = the same red kerb, 3 px offset» */
.card:hover, .card:focus-within, .mcard:hover, .mcard:focus-within { border-color: var(--red); }
.card:hover, .card:focus-within { transform: rotate(0deg) translateY(-3px); box-shadow: var(--sun2); z-index: 2; }
.card:hover .cd-t, .card:focus-within .cd-t, .mcard:hover .mc-t, .mcard:focus-within .mc-t { border-top-color: var(--red); }
.card:hover .cd-l, .card:focus-within .cd-l, .mcard:hover .mc-l, .mcard:focus-within .mc-l { color: var(--red); }
.card:focus-within, .mcard:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.card .cd-a:focus-visible, .mcard .cd-a:focus-visible { outline: 0; }

/* ---------- N: what changed on Poki ---------- */
.band { display: block; height: 72px; background: var(--basalt) url(/assets/img/band-wave.webp) 0 0 / 684px 72px repeat-x; }
.band--inv { background-image: url(/assets/img/band-wave-inv.webp); }
@media (min-width: 1024px) { .band { height: 36px; background-size: 342px 36px; } }
.nsec { position: relative; overflow: hidden; padding: 44px var(--wrap) 52px; }
.rose { position: absolute; right: -50px; top: -90px; width: 240px; }
.n-slab { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 820px; padding: 16px 14px 18px; background: var(--basalt); border-radius: 4px; box-shadow: var(--sun1); }
.n-tb { padding: 4px 14px; border: 3px solid var(--onsoft); border-radius: 4px; }
.n-tb table { width: 100%; border-collapse: collapse; }
.n-tb tr { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 2px dashed var(--rule); }
.n-tb tr:last-child { border-bottom: 0; }
.n-tb th[scope=row] { text-align: left; font: 400 24px/1 var(--disp); color: var(--on); }
.n-g { font-weight: 600; font-size: 15px; color: var(--on); }
.n-g a { text-decoration: none; } .n-g a:hover { text-decoration: underline; }
.n-n { font-size: 14px; color: var(--onsoft); }
.n-fn { font-size: 13px; color: var(--onsoft); }
@media (min-width: 1024px) {
  .nsec { padding: 80px var(--wrap) 96px; }
  .rose { right: calc(var(--wrap) - 226px); top: -36px; width: 600px; opacity: .6; }
  .n-slab { gap: 22px; padding: 28px; }
  .n-slab > .p { max-width: 620px; }
  .n-tb { padding: 8px 24px; }
  .n-tb tr { flex-direction: row; align-items: center; gap: 24px; padding: 14px 0; }
  .n-tb th[scope=row] { flex: 0 0 130px; font-size: 28px; }
  .n-g { flex: 0 0 230px; font-size: 17px; }
  .n-n { flex: 1; font-size: 15px; }
}

/* ---------- F: accordion with plus-square markers ---------- */
.faq { display: flex; flex-direction: column; gap: 24px; padding: 48px var(--wrap) 56px; }
.faq-l { display: flex; flex-direction: column; gap: 14px; }
.faq-l .p { font-size: 15px; }
.faq-l a { text-decoration: none; } .faq-l a:hover { text-decoration: underline; }
.acc { flex: 1; border-top: var(--k) solid var(--basalt); }
.qa { border-bottom: 2px solid var(--basalt); padding: 16px 0 18px; }
.qa summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.qa .p { margin-top: 12px; max-width: 680px; font-size: 15px; }
@media (min-width: 1024px) {
  .faq { flex-direction: row; gap: 72px; padding: 88px var(--wrap) 100px; }
  .faq-l { flex: 0 0 420px; }
  .qa { padding: 20px 0 22px; }
  .qa summary { font-size: 19px; }
  .qa .p { font-size: 17px; }
}

/* ---------- inner pages: inlaid word + intro ---------- */
.word { margin-top: 14px; }
.word img { width: 100%; height: 120px; object-fit: cover; object-position: 0 50%; }
.intro { display: flex; flex-direction: column; gap: 12px; padding: 24px var(--wrap) 4px; }
.intro--split .p { max-width: 460px; }
.upd { font-size: 14px; color: var(--soft); }
@media (min-width: 700px) { .word img { height: auto; aspect-ratio: 1368 / 234; min-height: 160px; } }
@media (min-width: 1024px) {
  .word { margin-top: 24px; }
  .intro { padding: 40px var(--wrap) 8px; gap: 14px; }
  .intro--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px; }
  .intro--split .h2 { max-width: 660px; }
}

/* ---------- games: masonry of slabs ---------- */
.masonry { display: flex; flex-direction: column; gap: 22px; padding: 24px var(--wrap) 56px; margin-top: 20px; }
.m-col { display: contents; }
.mcard { position: relative; overflow: hidden; transition: border-color var(--hover-t) var(--hover-ease); }
.mcard .cv { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mc-t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 18px; border-top: var(--k) solid var(--basalt); transition: border-color var(--hover-t) var(--hover-ease); }
.mc-dl { align-self: stretch; }
.mc-dl div { display: flex; gap: 10px; padding-top: 6px; margin-top: 4px; border-top: 1.5px solid var(--sand); }
.mc-dl dt { flex: 0 0 82px; font-weight: 700; font-size: 13px; line-height: 1.5; }
.mc-dl dd { flex: 1; font-size: 14px; color: var(--soft); }
.mc-l { font-size: 15px; padding-top: 6px; }
@media (min-width: 700px) {
  .masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .mcard:nth-child(even) { margin-top: 0; }
}
@media (min-width: 1024px) {
  .masonry { display: flex; flex-direction: row; align-items: flex-start; gap: 28px; padding: 40px var(--wrap) 96px; margin-top: 40px; }
  .m-col { display: flex; flex-direction: column; gap: 28px; flex: 1; min-width: 0; }
  .m-col--1 { padding-top: 72px; } .m-col--2 { padding-top: 28px; }
  .mc-t { padding: 18px 20px 22px; }
}

/* ---------- game page ---------- */
.gtop { margin-top: 14px; padding: 24px var(--wrap) 32px; border-bottom: var(--k) solid var(--basalt); }
.gt-in { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.gt-cv { width: min(316px, 100%); box-shadow: var(--sun2); }
.gt-cv .cv { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gt-t { align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.h1g { font: 400 48px/.92 var(--disp); }
.gt-sum { font-size: 16px; line-height: 1.55; }
.meta { font-size: 14px; color: var(--soft); }
.facts { display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--basalt); padding-top: 6px; }
.facts div { padding: 8px 12px 8px 0; }
.facts dt { font-weight: 700; font-size: 12px; color: var(--soft); }
.facts dd { font-size: 15px; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .gtop { margin-top: 22px; padding: 48px var(--wrap) 56px; }
  .gt-in { flex-direction: row; gap: 56px; }
  .gt-cv { flex: 0 0 432px; transform: rotate(1.5deg); }
  .gt-t { flex: 1; min-width: 0; padding: 32px 36px 34px; }
  .h1g { font-size: 76px; }
  .gt-sum { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 300px)); }
}
/* tabs: every panel is in the HTML; without JS all four show one under another */
.tabs-w { padding: 24px var(--wrap) 0; }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; }
html:not(.js) .tablist { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 3px solid var(--basalt); border-bottom: 0; border-radius: 4px 4px 0 0; background: var(--paper);
  font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; }
.tab .cube { display: none; width: 8px; height: 8px; }
.tab[aria-selected=true] { background: var(--basalt); color: var(--on); }
.tab[aria-selected=true] .cube { display: inline-block; }
.tab:hover span { text-decoration: underline; text-underline-offset: 3px; }
.panel { display: flex; flex-direction: column; gap: 24px; padding: 22px 18px 24px; box-shadow: none; border-top-left-radius: 0; }
html:not(.js) .panel + .panel { margin-top: 16px; }
html.js .panel[data-off] { display: none; }
.pn-a, .pn-b, .pn-w { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pn-b .h3 + .p { margin-bottom: 10px; }
.bl { display: flex; flex-direction: column; gap: 10px; }
.bl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.bl .cube { margin-top: 6px; }
.bl--tips li { color: var(--ink); }
.keys { width: 100%; border-collapse: collapse; }
.keys tr + tr { border-top: 1.5px solid var(--sand); }
.keys th, .keys td { padding: 12px 0; text-align: left; vertical-align: middle; }
.keys th { width: 1%; white-space: nowrap; padding-right: 12px; }
.keys td { font-size: 15px; }
kbd { display: inline-block; padding: 5px 9px; border-radius: 4px; background: var(--basalt); color: var(--on); font: 700 13px/1.3 var(--text); white-space: nowrap; }
.acc--in { border-top-width: 3px; }
@media (min-width: 1024px) {
  .tabs-w { padding-top: 40px; }
  .tablist { gap: 10px; }
  .tab { padding: 12px 20px; font-size: 16px; }
  .panel { flex-direction: row; gap: 56px; padding: 40px 40px 44px; }
  .pn-a { flex: 0 0 660px; max-width: 55%; } .pn-b { flex: 1; } .pn-w { flex: 1; max-width: 900px; }
  .bl li { font-size: 16px; }
  .keys td { font-size: 17px; }
}
.low { display: flex; flex-direction: column; gap: 28px; padding: 32px var(--wrap) 56px; }
.sim { display: flex; flex-direction: column; gap: 18px; }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sim-row .sim-2 { display: none; }
.where { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px 22px; align-self: stretch; }
.where .p { font-size: 16px; }
.where-a { color: var(--on); font-weight: 600; font-size: 16px; text-underline-offset: 4px; }
.where-a:hover { color: #fff; text-decoration-thickness: 2px; }
@media (min-width: 700px) { .sim-row { grid-template-columns: repeat(3, minmax(0, 190px)); } .sim-row .sim-2 { display: block; } }
@media (min-width: 1024px) {
  .low { flex-direction: row; align-items: flex-start; gap: 56px; padding: 56px var(--wrap) 96px; }
  .where { flex: 1; padding: 32px 32px 34px; align-self: flex-start; }
}

/* ---------- about ---------- */
.ab-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 24px var(--wrap); align-items: start; }
.ab { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; box-shadow: none; }
.contact { box-shadow: var(--sun1); gap: 12px; }
.contact a { color: var(--on); }
.k-r { display: flex; flex-direction: column; gap: 8px; }
.k-r li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--on); }
.k-r .cube { width: 9px; height: 9px; }
.k-dl div { display: flex; gap: 12px; padding-top: 8px; margin-top: 8px; border-top: 1.5px solid var(--rule); }
.k-dl dt { flex: 0 0 130px; font-weight: 700; font-size: 13px; color: var(--onsoft); line-height: 1.6; }
.k-dl dd { flex: 1; min-width: 0; font-size: 15px; color: var(--on); overflow-wrap: anywhere; }
@media (min-width: 800px) { .ab-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1024px) { .ab-grid { padding: 40px var(--wrap); } .ab { padding: 26px 28px 28px; } }

/* ---------- legal ---------- */
.legal { padding: 20px var(--wrap) 56px; }
.lsec { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 20px; border-top: 2px solid var(--basalt); }
.lsec:first-child { border-top-width: var(--k); }
.h3--l { font-size: 24px; }
@media (min-width: 1024px) {
  .legal { padding: 32px var(--wrap) 96px; }
  .lsec { flex-direction: row; gap: 56px; padding: 26px 0 28px; }
  .h3--l { flex: 0 0 360px; font-size: 30px; }
  .lsec .p { flex: 1; }
}

/* ---------- footer: split contact, the brand inlaid like a doorstep ---------- */
.footer { background: var(--basalt); color: var(--on); }
.f-in { display: flex; flex-direction: column; gap: 32px; padding: 44px var(--wrap) 28px; }
.f-row { display: flex; flex-direction: column; gap: 32px; }
.f-first { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.f-line { font-size: 15px; color: var(--onsoft); }
.f-w { font-weight: 600; font-size: 14px; color: var(--onsoft); }
.f-mail { font: 400 28px/1 var(--disp); color: var(--on); text-underline-offset: 4px; overflow-wrap: anywhere; }
.f-note { font-size: 14px; color: var(--onsoft); }
.f-cols { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-h { font-weight: 700; font-size: 13px; color: var(--onsoft); }
.f-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.f-col a, .f-col .linkish { text-decoration: none; color: var(--on); }
.f-col a:hover { text-decoration: underline; }
.f-inlay img { width: 294px; max-width: 100%; }
.f-base { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--rule); font-size: 13px; color: var(--onsoft); }
.f-base p:last-child { max-width: 320px; }
@media (min-width: 700px) { .f-inlay img { width: 100%; } }
@media (min-width: 1024px) {
  .f-in { gap: 48px; padding: 72px var(--wrap) 36px; }
  .f-row { flex-direction: row; justify-content: space-between; gap: 80px; }
  .f-first { flex: 0 1 520px; }
  .f-line { font-size: 17px; }
  .f-mail { font-size: 40px; }
  .f-cols { flex-wrap: nowrap; gap: 64px; }
  .f-base { flex-direction: row; justify-content: space-between; }
  .f-base p:last-child { max-width: none; }
}

/* ---------- cookie: a limestone slab with a red stone ---------- */
.cookie { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 330px; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 22px;
  background: var(--lime); border: var(--k) solid var(--basalt); border-radius: 4px; box-shadow: var(--sun2); }
.cookie[hidden] { display: none; }
.ck-h { display: flex; align-items: center; gap: 10px; font: 400 28px/1 var(--disp); }
.ck-h .cube { width: 12px; height: 12px; }
.ck-p { font-size: 15px; line-height: 1.5; }
.ck-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ck-link { font-weight: 600; font-size: 14px; }
.ck-manage { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 2px solid var(--basalt); border-bottom: 2px solid var(--basalt); }
.ck-manage[hidden] { display: none; }
.ck-opt { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ck-opt input { width: 18px; height: 18px; accent-color: var(--basalt); }
@media (min-width: 560px) {
  .cookie { right: auto; width: 500px; max-width: calc(100% - 32px); padding: 26px 28px 28px; }
  .ck-h { font-size: 32px; }
  .ck-acts { flex-direction: row; }
}
@media (min-width: 1024px) { .cookie { left: 24px; bottom: 24px; } }

/* Reduced motion: hover = colour change only (Tile hover); the wave boundary stays static (note) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:focus-within { transform: rotate(var(--rot, 0deg)); box-shadow: var(--sun1); }
  .btn:hover { transform: none; }
  .hp-roll { display: none; }
}
.soc{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;vertical-align:middle;color:inherit;text-decoration:none}
.soc svg{width:100%;height:100%;fill:currentColor}
.soc:hover{opacity:.7}
.soc:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
