/* =====================================================================
   Lorissa Toweel · Grimoire
   A spell book read by candlelight. Floating island menu bar, tarot-framed
   cards, fanned spreads, dotted-leader contents, illuminated initials,
   letter-style forms, candle glow and grain.
   Halo for headings (lowercase), IM Fell English for text.
   Palette: black #000000, white #fdfdfd, stone #756d67, grey #c3bebe.
   Every token below can be changed in Appearance › Customize › Grimoire theme.
   ===================================================================== */

@font-face {
  font-family: "Halo Grimoire";
  src: url("../fonts/Halo-Font-fixed.ttf") format("truetype");
  font-display: swap;
  /* Halo's own vertical metrics are broken (descender +237): re-centre it. */
  ascent-override: 136%;
  descent-override: 0%;
  line-gap-override: 0%;
}

:root {
  --black: #000000;
  --white: #fdfdfd;
  --stone: #756d67;
  --grey: #c3bebe;
  --stone-lt: color-mix(in srgb, var(--stone) 85%, var(--white));
  --line: color-mix(in srgb, var(--stone) 55%, transparent);
  --line-soft: color-mix(in srgb, var(--stone) 26%, transparent);
  --veil: color-mix(in srgb, var(--white) 3%, transparent);
  --serif: "IM Fell English", Georgia, "Times New Roman", serif;
  --sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --halo: "IM Fell English", Georgia, serif;   /* heading font (Customizer > Fonts & sizes) */
  --fs-body: 1.1875rem;
  --hs: 1;
  --h-case: lowercase;
  --h-ws: normal;
  --h-ls: -.01em;
  --h-lh: 1.08;
  --logo-h: 44px;
  --mark-h: 24px;
  --logo-h-m: 34px;
  --mark-h-m: 19px;
  --nav-r: 999px;
  --nav-px: 14px;
  --nav-py: 6px;
  --nav-gap: 36px;
  --nav-lgap: 12px;
  --logo-h-s: 44px;
  --mark-h-s: 24px;
  --nav-py-s: 4px;
  --nav-bg-s: .88;
  --logo-h-m-s: 28px;
  --mark-h-m-s: 16px;
  /* Header per device (Customizer > Header & logo). Tablet = 601-860px, mobile = up to 600px. */
  --logo-h-t: 34px; --mark-h-t: 19px; --nav-lgap-t: 8px; --nav-lgap-m: 8px; --nav-py-t: 0px; --nav-py-m: 0px;
  --nav-gap-t: 22px; --nav-gap-m: 22px; --logo-h-t-s: 28px; --mark-h-t-s: 16px; --nav-py-s-t: 4px; --nav-py-s-m: 4px;
  --e-logo: var(--logo-h); --e-mark: var(--mark-h); --e-lgap: var(--nav-lgap); --e-py: var(--nav-py); --e-gap: var(--nav-gap);
  --e-logo-s: var(--logo-h-s); --e-mark-s: var(--mark-h-s); --e-py-s: var(--nav-py-s);
  --glow-k: 1;
  --grain-o: .08;
  --store-cols: 3;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gut: clamp(16px, 4vw, 56px);
  /* page content starts below the menu bar, whatever size the logo is */
  --top: calc(max(var(--e-logo), var(--e-mark)) + 2 * var(--e-py) + 62px);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --stone-lt: #89837e; --line: rgba(117, 109, 103, .55); --line-soft: rgba(117, 109, 103, .26); --veil: rgba(253, 253, 253, .03); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top); }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--black); color: var(--grey); font: 400 var(--fs-body)/1.65 var(--serif); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--white); text-decoration-color: var(--stone); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--grey); }
::selection { background: var(--stone); color: var(--white); }
:focus-visible { outline: 1px dashed var(--grey); outline-offset: 4px; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); }

/* --- Halo: every element set in it follows the lowercase rule (Customizer can switch it off) --- */
.h1, .h2, .toc-t, .chap-t, .pager-t, .tc-name--big,
.prose h1, .prose h2, .page-text h1, .page-text h2, .column h2, .sec-body h2, .page-blocks > .wp-block-heading {
  font-family: var(--halo);
  font-weight: 400;
  text-transform: var(--h-case);
  letter-spacing: var(--h-ls);
  word-spacing: var(--h-ws);
  color: var(--white);
}
/* Per-section heading font (block setting "Heading font") */
.tf-serif, .tf-italic { font-family: var(--serif) !important; letter-spacing: -.01em !important; word-spacing: normal !important; line-height: 1.08 !important; }
.tf-italic { font-style: italic !important; }
.tf-sc { font-family: var(--sc) !important; letter-spacing: .03em !important; word-spacing: normal !important; line-height: 1.12 !important; }
.tf-halo { font-family: "Halo Grimoire", serif !important; word-spacing: -.12em !important; letter-spacing: 0 !important; line-height: 1.22 !important; }
.h1 { margin: 0; font-size: calc(clamp(2.6rem, 6vw, 5.2rem) * var(--hs)); line-height: var(--h-lh); }
.h1--xl { font-size: calc(clamp(2.8rem, 5.6vw, 5.6rem) * var(--hs)); }
.h2, .prose h2, .page-text h2, .column h2, .sec-body h2 { margin: 0; font-size: calc(clamp(2rem, 4.2vw, 3.4rem) * var(--hs)); line-height: calc(var(--h-lh) + .04); }
.prose h1, .page-text h1 { font-size: calc(clamp(2.4rem, 5vw, 4rem) * var(--hs)); line-height: var(--h-lh); margin: 0 0 .4em; }
.is-style-halo-xl { font-size: calc(clamp(2.8rem, 6vw, 5.4rem) * var(--hs)) !important; line-height: 1.2; }

.skip, .sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--white); color: var(--black); }
.center { text-align: center; margin-top: clamp(36px, 5vw, 56px); }
.small { font-size: .95rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* small-caps eyebrow pill */
.eyebrow, .is-style-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 15px 7px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 400 .8rem/1 var(--sc); letter-spacing: .22em; text-transform: var(--sc-case, lowercase); color: var(--grey);
}
p.is-style-eyebrow { width: max-content; max-width: 100%; }

/* dotted leader */
.leader { flex: 1; min-width: 18px; align-self: baseline; height: 0; border-bottom: 1px dotted color-mix(in srgb, var(--stone) 85%, transparent); transform: translateY(-.28em); }

/* =====================================================================
   Atmosphere: candle glow, vignette, grain (fixed, never scrolls)
   ===================================================================== */
.atmos { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.glow {
  position: absolute; inset: 0;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 26%), rgba(253, 253, 253, calc(.085 * var(--glow-k))), rgba(253, 253, 253, calc(.025 * var(--glow-k))) 42%, transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 6s var(--ease) infinite alternate;
}
@keyframes flicker { 0% { opacity: .82; } 28% { opacity: 1; } 52% { opacity: .9; } 76% { opacity: 1; } 100% { opacity: .86; } }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, transparent 58%, rgba(0, 0, 0, .5) 100%); }
.grain {
  position: absolute; inset: 0; opacity: var(--grain-o); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.no-glow .glow, .no-grain .grain, .no-vignette .vignette { display: none; }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

/* =====================================================================
   Floating island menu bar (double frame) + Contents overlay
   ===================================================================== */
.island {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  width: max-content; max-width: calc(100% - 24px);
  padding: 5px; border: 1px solid var(--line); border-radius: calc(var(--nav-r) + 5px); background: var(--veil);
  transform: translateX(-50%);
}
.nav-top-left .island { left: var(--gut); transform: none; }
.nav-top-right .island { left: auto; right: var(--gut); transform: none; }
.nav-bottom .island { top: auto; bottom: 16px; }
/* Fixed-width menu bar (Customizer > Menu bar > Width): logo left, cart and contents right */
.nav-fixed-width .island { width: min(var(--nav-w, 60vw), calc(100% - 24px)); }
.nav-fixed-width .island-brand { margin-right: auto; }
.nav-bottom { --top: 40px; }
.nav-bottom .contents { padding-top: 80px; padding-bottom: 120px; }
.island-in {
  display: flex; align-items: center; gap: var(--e-gap);
  padding: var(--e-py) var(--nav-px); border-radius: var(--nav-r);
  background: rgba(0, 0, 0, .76); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: padding .55s var(--ease), background .5s var(--ease);
  box-shadow: inset 0 1px 0 rgba(253, 253, 253, .08);
}
.island-brand { display: flex; align-items: center; gap: var(--e-lgap); min-width: 0; }
.island-logo { height: var(--e-logo); width: auto; transition: height .55s var(--ease), opacity .4s var(--ease); }
.island-mark { height: var(--e-mark); width: auto; transition: height .55s var(--ease), opacity .4s var(--ease); }
/* Shrinks once the page scrolls (Customizer > Menu bar when scrolling) */
html.is-scrolled .nav-shrink .island-logo { height: var(--e-logo-s); }
html.is-scrolled .nav-shrink .island-mark { height: var(--e-mark-s); }
html.is-scrolled .nav-shrink .island-in { padding-top: var(--e-py-s); padding-bottom: var(--e-py-s); background: rgba(0, 0, 0, var(--nav-bg-s)); }
html.is-scrolled .nav-shrink.mark-s-hide .island-mark { display: none; }
@media (prefers-reduced-motion: reduce) { .island-in, .island-logo, .island-mark { transition: none; } }
.island-cart { display: flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font: 400 .98rem/1 var(--sc); letter-spacing: .12em; text-transform: var(--sc-case, lowercase); }
.dot { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--stone); color: var(--white); font: 400 .85rem/1 var(--serif); letter-spacing: 0; }
.island-menu {
  display: flex; align-items: center; gap: 12px; padding: 5px 5px 5px 18px;
  border: 0; border-radius: 999px; background: var(--grey); color: var(--black);
  font: 400 .98rem/1 var(--sc); letter-spacing: .12em; text-transform: var(--sc-case, lowercase); cursor: pointer;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.island-menu:hover { background: var(--white); }
.island-menu:active { transform: scale(.97); }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--black); transition: transform .7s var(--ease); }
.island-menu:hover .ico { transform: scale(1.06) rotate(90deg); }
.lines, .lines::before, .lines::after { display: block; width: 14px; height: 1.5px; background: var(--white); transition: transform .6s var(--ease), background .3s var(--ease); }
.lines { position: relative; }
.lines::before, .lines::after { content: ""; position: absolute; left: 0; }
.lines::before { top: -5px; }
.lines::after { top: 5px; }
html.menu-open .lines { background: transparent; }
html.menu-open .lines::before { transform: translateY(5px) rotate(45deg); }
html.menu-open .lines::after { transform: translateY(-5px) rotate(-45deg); }

.contents {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto;
  padding: calc(var(--top) + 6px) var(--gut) 80px;
  background: rgba(0, 0, 0, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  visibility: hidden; opacity: 0; transition: opacity .7s var(--ease), visibility 0s .7s;
}
html.menu-open .contents { visibility: visible; opacity: 1; transition: opacity .7s var(--ease); }
.toc { max-width: 1120px; margin: 0 auto; }
.toc-main { columns: 2 380px; column-gap: 72px; margin: 0; padding: 0; list-style: none; }
.toc-main > li, .toc-app {
  break-inside: avoid; padding-bottom: 24px;
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 100ms);
}
html.menu-open .toc-main > li, html.menu-open .toc-app { opacity: 1; transform: none; }
.toc-ch { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--white); text-decoration: none; }
.toc-n { min-width: 2.4em; font: italic 1.1rem/1 var(--serif); color: var(--stone-lt); }
.toc-t { font-size: calc(clamp(2.2rem, 4.6vw, 3.6rem) * var(--hs)); line-height: 1.32; transition: color .5s var(--ease), transform .7s var(--ease); }
.toc-ch:hover .toc-t { color: var(--grey); transform: translateX(8px); }
.toc-ch[aria-current="page"]::after { content: "you are here"; margin-left: auto; font: italic 1rem/1 var(--serif); color: var(--stone-lt); }
.toc-sub { margin: 8px 0 0 calc(2.4em + 16px); padding: 0; list-style: none; }
.toc-sub a { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; color: var(--grey); text-decoration: none; font-size: 1.12rem; }
.toc-sub a:hover { color: var(--white); }
.toc-c { font: 400 .92rem/1 var(--sc); color: var(--stone-lt); }
.toc-app { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.toc-app a { color: var(--white); font: 400 1.05rem/1.4 var(--sc); letter-spacing: .08em; text-transform: var(--sc-case, lowercase); text-decoration: none; }
.toc-app a:hover { text-decoration: underline; }

/* =====================================================================
   Pills (button-in-button) + core button styles
   ===================================================================== */
.pill, .is-style-pill .wp-block-button__link, .is-style-pill-solid .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 14px; padding: 5px 5px 5px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--veil); color: var(--white);
  font: 400 1.02rem/1 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.is-style-pill .wp-block-button__link, .is-style-pill-solid .wp-block-button__link { padding: 15px 24px; }
.pill-ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  background: rgba(253, 253, 253, .08); font: 400 1rem/1 system-ui, sans-serif;
  transition: transform .7s var(--ease);
}
.pill:hover, .is-style-pill .wp-block-button__link:hover { border-color: var(--grey); }
.pill:hover .pill-ico { transform: translate(3px, -2px) scale(1.07); }
.pill:active, .wp-block-button__link:active { transform: scale(.98); }
.pill--solid, .is-style-pill-solid .wp-block-button__link { background: var(--grey); border-color: var(--grey); color: var(--black); }
.pill--solid .pill-ico { background: rgba(0, 0, 0, .12); }
.pill--solid:hover, .is-style-pill-solid .wp-block-button__link:hover { background: var(--white); border-color: var(--white); }
.pill.is-added { padding-right: 22px; background: var(--stone); border-color: var(--stone); color: var(--white); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ctas--center { justify-content: center; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.wp-block-button__link { color: var(--black); background: var(--grey); border-radius: 999px; padding: 15px 24px; text-decoration: none; font: 400 1.02rem/1 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); display: inline-block; }

/* =====================================================================
   Reveals (heavy fade-up)
   ===================================================================== */
html.reveals-on body:not(.no-reveal) [data-reveal] {
  opacity: 0; transform: translateY(48px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.reveals-on body:not(.no-reveal) [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Top-of-page pieces (hero, page opener, first plate) rise with a CSS animation that starts on first paint,
   so the largest image and the title never wait for scripts to load. */
html.reveals-on body:not(.no-reveal) [data-reveal="now"] { opacity: 1; transform: none; filter: none; transition: none; animation: grim-rise .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes grim-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.reveals-on body [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; } }

/* =====================================================================
   Tarot card (double frame) + fans + deck
   ===================================================================== */
.tc { list-style: none; perspective: 1000px; }
.tc-in {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(253, 253, 253, .045), rgba(253, 253, 253, .012)), var(--black);
  color: var(--white); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(253, 253, 253, .07);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease), border-color .6s var(--ease), box-shadow .8s var(--ease);
}
.tc-in::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line-soft); border-radius: 10px; pointer-events: none; }
a.tc-in:hover { border-color: rgba(195, 190, 190, .65); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(253, 253, 253, .1); }
.tc-num { padding: 5px 0 9px; font: 400 .95rem/1 var(--sc); letter-spacing: .16em; color: var(--stone-lt); }
.tc-art { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 8px; }
.tc-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: brightness(.86) contrast(1.04); transition: filter .7s var(--ease), transform 1.4s var(--ease); }
.tc-art img.is-placeholder { object-fit: contain; padding: 30%; background: var(--black); }
a.tc-in:hover .tc-art img { filter: brightness(1.02) contrast(1.04); transform: scale(1.035); }
.tc-series { margin-top: 12px; text-align: center; font: 400 .74rem/1.3 var(--sc); letter-spacing: .16em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.tc-name { margin-top: 3px; text-align: center; font: 400 1.14rem/1.25 var(--sc); letter-spacing: .05em; text-transform: var(--sc-case, lowercase); color: var(--white); }
.tc-name--big { margin-top: 12px; font-family: var(--halo); font-size: calc(1.9rem * var(--hs)); line-height: 1.3; letter-spacing: 0; }
.tc-price { margin-top: 5px; font-style: italic; font-size: 1rem; color: var(--grey); text-align: center; }
.tc-price del { color: var(--stone-lt); margin-right: 6px; }
.tc-price ins { text-decoration: none; }
.tc-sold { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 9px 13px 8px; border: 1.5px solid var(--white); border-radius: 0; background: var(--black); font: 700 .78rem/1 var(--shop-font); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.tc[hidden] { display: none; }

.fan { position: relative; height: clamp(420px, 40vw, 560px); margin: 0; padding: 0; list-style: none; }
.fan .tc {
  position: absolute; left: 50%; bottom: 0; z-index: var(--z);
  width: clamp(170px, 16vw, 236px);
  transform-origin: 50% 125%;
  transform: translateX(-50%) rotate(var(--r)) translateY(var(--lift, 0px));
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--k) * 70ms);
}
.fan .tc:hover { --lift: -30px; z-index: 20; transition-delay: 0s; }
html.reveals-on body:not(.no-reveal) .fan:not(.is-in) .tc { transform: translateX(-50%) rotate(0deg) translateY(30px); }
.fan--small { height: clamp(380px, 34vw, 480px); }
.fan--small .tc { width: clamp(150px, 13vw, 200px); }
.fan--large { height: clamp(460px, 46vw, 640px); }
.fan--large .tc { width: clamp(190px, 19vw, 280px); }
.fan--four .tc { width: clamp(170px, 15vw, 220px); }

.deck, ul.products { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; }
.deck .empty { grid-column: 1 / -1; text-align: center; }

/* =====================================================================
   Page furniture: openers, sections, spreads, columns, initials
   ===================================================================== */
main { display: block; padding-top: var(--top); }
.sec { padding: clamp(80px, 11vw, 150px) var(--gut) 0; }
.sec--small { padding-top: clamp(36px, 5vw, 64px); }
.sec--none { padding-top: 0; }
.sec-hd { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.text-left .sec-hd { margin-left: 0; text-align: left; max-width: 1240px; }
.sec-lede { margin: 14px 0 0; font-style: italic; color: var(--grey); }
.sec--free .sec-body { max-width: 1240px; margin: 0 auto; }

.opener { max-width: 980px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--gut) 0; text-align: center; }
.epigraph, .is-style-epigraph { max-width: 40ch; margin: 18px auto 0; font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--grey); }
blockquote.is-style-epigraph { border: 0; padding: 0; text-align: center; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 18px 0 0; font: 400 1.02rem/1.4 var(--sc); letter-spacing: .14em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.meta b { font-weight: 400; color: var(--white); }
.orn, .wp-block-separator.is-style-ornament { display: flex; align-items: center; gap: 16px; width: min(240px, 70%); margin: 30px auto 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.orn img { width: 28px; height: auto; }
.wp-block-separator.is-style-ornament { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

.spread {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
  width: min(1240px, 100% - 2 * var(--gut)); margin: 0 auto; padding-top: clamp(56px, 8vw, 110px);
}
.spread::before {
  content: ""; position: absolute; top: clamp(56px, 8vw, 110px); bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
}
.plate { position: sticky; top: calc(var(--top) + 10px); margin: 0; }
.plate--static { position: static; }
.plate-in { display: block; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--veil); box-shadow: inset 0 1px 0 rgba(253, 253, 253, .07); }
.plate-in img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; }
.plate figcaption { margin-top: 12px; text-align: center; font: 400 .95rem/1.3 var(--sc); letter-spacing: .12em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.page-text { max-width: 580px; }
.spread--flip .page-text { justify-self: end; }
.page-text p, .column p, .prose p { margin: 0 0 1.1em; }
.column { width: min(720px, 100% - 2 * var(--gut)); margin: 0 auto; padding-top: clamp(56px, 8vw, 110px); }
.column--medium { width: min(960px, 100% - 2 * var(--gut)); }
.column--wide, .column--woo { width: min(1240px, 100% - 2 * var(--gut)); }
.running, .is-style-running { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 400 .85rem/1 var(--sc); letter-spacing: .2em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.running::after, .is-style-running::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.page-text .h2, .column .h2, .page-text h2, .column h2 { margin-bottom: 18px; }
.initial::first-letter, .is-style-initial::first-letter, .care h2 + h3 + p::first-letter {
  float: left; margin: .1em .18em 0 0; padding: .12em .16em .04em;
  border: 3px double var(--stone); background: rgba(117, 109, 103, .1);
  font-family: var(--serif); font-style: normal; font-size: 3.4em; line-height: .9; color: var(--white);
}
.sig { display: block; width: min(190px, 52%); margin: 8px 0 26px; }
.sig-wrap { margin: 8px 0 26px; }
.sig-wrap .sig { margin: 0; max-width: 100%; }
.sig-wrap--center .sig { margin: 34px auto 12px; }
.roman, .is-style-roman { margin: 0 0 1.2em; padding-left: 2.2em; list-style: lower-roman; font-style: italic; color: var(--white); }
.roman li, .is-style-roman li { padding: 3px 0; }
.roman li::marker, .is-style-roman li::marker { font: 400 .95rem var(--sc); color: var(--stone-lt); }
.note { color: var(--grey); }
.has-text-align-center { text-align: center; }

/* Long-form content (pages, posts, collection prose) */
.prose h2, .column h2, .page-text h2 { margin: 1.4em 0 .5em; }
.prose h2:first-child, .column h2:first-child, .page-text h2:first-child, .page-text .running + h2 { margin-top: 0; }
.prose h3, .column h3, .page-text h3, .sec-body h3 { margin: 2em 0 .6em; font: 400 1.22rem/1.3 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--white); }
.prose h4, .column h4, .page-text h4 { margin: 1.6em 0 .4em; font: 400 1.05rem/1.3 var(--sc); letter-spacing: .12em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.prose ul, .prose ol, .column ul, .column ol, .page-text ul { padding-left: 1.3em; }
.prose li::marker, .column li::marker, .page-text li::marker { color: var(--stone); }
.prose blockquote, .column blockquote { margin: 1.5em 0; padding: 0 0 0 22px; border-left: 3px double var(--stone); font-style: italic; color: var(--white); }
.prose table, .column table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.prose th, .prose td, .column th, .column td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose th, .column th { font: 400 .9rem/1.3 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.prose figure, .column figure { margin: 1.8em 0; }
.prose figcaption, .column figcaption, .wp-element-caption { margin-top: 10px; text-align: center; font: 400 .95rem/1.3 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.wp-block-image.is-style-plate img, .wp-block-gallery.is-style-plates img { padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--veil); }
.wp-block-image.is-style-tarot { padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(253, 253, 253, .045), rgba(253, 253, 253, .012)); }
.wp-block-image.is-style-tarot img { border-radius: 8px; }
.wp-block-image img { border-radius: 8px; }
.is-style-leaders { list-style: none; padding: 0 !important; }
.is-style-leaders li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px dotted color-mix(in srgb, var(--stone) 70%, transparent); }
.alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); }
.wp-block-column { flex: 1 1 260px; min-width: 0; }
.wp-block-embed iframe, .wp-block-video video { max-width: 100%; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-gallery .wp-block-image { flex: 1 1 200px; margin: 0; }

/* =====================================================================
   Home
   ===================================================================== */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); min-height: calc(100dvh - var(--top)); padding: 0 var(--gut);
  max-width: 1440px; margin: 0 auto;
}
.lede { max-width: 34ch; margin: 22px 0 0; font-style: italic; font-size: 1.32rem; color: var(--grey); }

.slots { display: grid; grid-template-columns: repeat(var(--slots, 3), minmax(0, 250px)); justify-content: center; gap: clamp(20px, 4vw, 56px); }
.slot-label { margin: 0 0 14px; text-align: center; font: 400 1.05rem/1 var(--sc); letter-spacing: .14em; text-transform: var(--sc-case, lowercase); color: var(--grey); }
.slot-label span { font-style: italic; color: var(--stone-lt); }
.draw { display: block; width: 100%; aspect-ratio: 5 / 8.2; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; }
.draw-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.draw:not(.is-turned):hover .draw-in { transform: translateY(-12px) rotate(-1.5deg); }
.draw.is-turned .draw-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.back {
  display: block; padding: 9px;
  background:
    repeating-linear-gradient(45deg, rgba(117, 109, 103, .14) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(117, 109, 103, .14) 0 1px, transparent 1px 13px),
    var(--black);
}
.back-frame { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, .95) 30%, rgba(0, 0, 0, .55) 70%); }
.back-frame img { width: 58%; }
.front { display: flex; flex-direction: column; align-items: center; padding: 10px 12px 16px; transform: rotateY(180deg); background: linear-gradient(180deg, rgba(253, 253, 253, .05), rgba(253, 253, 253, .012)), var(--black); }
.front-num { padding: 5px 0 9px; font: 400 .95rem/1 var(--sc); letter-spacing: .16em; color: var(--stone-lt); }
.front-art { flex: 1; width: 100%; min-height: 0; overflow: hidden; border-radius: 8px; }
.front-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.front-name { margin-top: 10px; text-align: center; font: 400 1.08rem/1.25 var(--sc); letter-spacing: .05em; text-transform: var(--sc-case, lowercase); color: var(--white); }
.front-line { margin-top: 4px; text-align: center; font-style: italic; font-size: .92rem; line-height: 1.35; color: var(--grey); }
.slot-cap { min-height: 1.7em; margin: 16px 0 0; text-align: center; font-style: italic; font-size: 1.02rem; }
.slot-hint { color: var(--stone-lt); }

.arcana { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }
.arcana .tc { transition: rotate .9s var(--ease); }
.arcana .tc:nth-child(4n+1) { rotate: -2deg; }
.arcana .tc:nth-child(4n+2) { rotate: 1.5deg; }
.arcana .tc:nth-child(4n+3) { rotate: -1deg; }
.arcana .tc:nth-child(4n+4) { rotate: 2deg; }
.arcana .tc:hover { rotate: 0deg; }
.tc--tall .tc-art img { aspect-ratio: 3 / 4.3; filter: brightness(.8); }
.arcana--wide { max-width: 1400px; }

.chapters { max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.chapters a {
  display: grid; grid-template-columns: 3.2em auto minmax(24px, 1fr) auto; grid-template-areas: "n t l c" ". b b b";
  align-items: center; column-gap: 14px; padding: 22px 6px 18px;
  border-bottom: 1px solid var(--line); color: var(--white); text-decoration: none;
  transition: padding .7s var(--ease), background .7s var(--ease);
}
.chapters a:hover { padding-left: 20px; background: rgba(117, 109, 103, .08); }
.chap-n { grid-area: n; font: italic 1.2rem/1 var(--serif); color: var(--stone-lt); }
.chap-t { grid-area: t; font-size: calc(clamp(1.8rem, 4vw, 3.2rem) * var(--hs)); line-height: 1.3; }
.chapters .leader { grid-area: l; }
.chap-c { grid-area: c; font: 400 .98rem/1 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--grey); }
.chap-b { grid-area: b; margin-top: 2px; font-style: italic; color: var(--grey); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 210px; aspect-ratio: 3 / 4; object-fit: cover;
  border: 1px solid var(--line); border-radius: 12px; pointer-events: none; opacity: 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95); transition: opacity .45s var(--ease);
}
.peek.on { opacity: 1; }
.no-peek .peek { display: none; }

/* =====================================================================
   Image carousel
   ===================================================================== */
.car { position: relative; max-width: 1240px; margin: 0 auto; --per: 3; --per-m: 1; --ratio: 4 / 5; --gap: clamp(14px, 2vw, 28px); }
.car-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap); margin: 0; padding: 6px 2px 18px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; cursor: grab;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.car-track.is-dragging a { pointer-events: none; }
.car-slide { scroll-snap-align: start; min-width: 0; }
.car-frame { display: flex; flex-direction: column; align-items: center; margin: 0; height: 100%; }
.car-frame--plate { padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--veil); box-shadow: inset 0 1px 0 rgba(253, 253, 253, .07); }
.car-frame--tarot { padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(253, 253, 253, .045), rgba(253, 253, 253, .012)), var(--black); }
.car-art { display: block; width: 100%; overflow: hidden; border-radius: 11px; }
.car-art img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 1.2s var(--ease); }
.car-slide:hover .car-art img { transform: scale(1.02); }
.car-frame figcaption { margin-top: 10px; text-align: center; font: 400 .95rem/1.3 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.car-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--veil); color: var(--white); font: 400 1.1rem/1 system-ui, sans-serif; cursor: pointer; transition: border-color .5s var(--ease), transform .5s var(--ease), opacity .4s var(--ease); }
.car-btn:hover { border-color: var(--grey); }
.car-btn:active { transform: scale(.95); }
.car-btn[disabled] { opacity: .35; cursor: default; }
.car-dots { display: flex; gap: 8px; }
.car-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--stone-lt); border-radius: 50%; background: transparent; cursor: pointer; transition: background .4s var(--ease), transform .4s var(--ease); }
.car-dots button[aria-selected="true"] { background: var(--grey); border-color: var(--grey); transform: scale(1.25); }

/* =====================================================================
   FAQ (questions & answers)
   ===================================================================== */
.faq-list { padding-top: 0; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: baseline; gap: 12px; padding: 18px 4px; list-style: none; cursor: pointer; color: var(--white); font-size: 1.18rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-ico { font: 400 1.2rem/1 system-ui, sans-serif; color: var(--stone-lt); transition: transform .6s var(--ease); }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px calc(2.4em + 16px); color: var(--grey); }
.faq-a p { margin: 0 0 .8em; }
.faq-list > .small { margin-top: 18px; text-align: center; }

/* =====================================================================
   Store index + toolbar
   ===================================================================== */
.store-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; width: min(1400px, 100% - 2 * var(--gut)); margin: clamp(48px, 6vw, 80px) auto 0; }
.store-grid ul.products, .store .deck { --cols: var(--store-cols); max-width: none; }
.cat-intro { padding-top: clamp(28px, 4vw, 48px); color: var(--grey); }
.index { position: sticky; top: calc(var(--top) + 6px); max-height: calc(100vh - var(--top) - 20px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
.filters-toggle { display: none; }
.lead-group { margin: 28px 0 0; }
.legend { margin: 0 0 8px; font: 400 .86rem/1 var(--sc); letter-spacing: .2em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.lead { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 3px 0; color: var(--grey); font-size: 1.08rem; text-decoration: none; }
.lead-t::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 11px; border: 1px solid var(--line); transform: rotate(45deg); vertical-align: 3px; transition: background .4s var(--ease); }
.lead:hover .lead-t { color: var(--white); }
.lead.is-current .lead-t { color: var(--white); font-style: italic; }
.lead.is-current .lead-t::before { background: var(--grey); border-color: var(--grey); }
.lead .n { font: 400 .92rem/1 var(--sc); color: var(--stone-lt); }
.switch { position: relative; display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; cursor: pointer; }
.switch-ui { position: relative; flex: none; width: 46px; height: 26px; border: 1px solid var(--line); border-radius: 999px; transition: background .5s var(--ease), border-color .5s var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--grey); transition: transform .6s var(--ease), background .4s var(--ease); }
.switch[aria-checked="true"] .switch-ui { background: var(--stone); border-color: var(--stone); }
.switch[aria-checked="true"] .switch-ui::after { transform: translateX(20px); background: var(--white); }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.toolbar .woocommerce-ordering { margin: 0; }
.toolbar select, .sort select { padding: 9px 36px 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c3bebe'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--white); font: 400 1.02rem/1.2 var(--serif); appearance: none; -webkit-appearance: none; }
.empty { padding: 48px 0; text-align: center; }
.woocommerce-pagination { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; border: 0; }
.woocommerce-pagination .page-numbers li { border: 0; }
.woocommerce-pagination a.page-numbers, .woocommerce-pagination span.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--grey); font: 400 1rem/1 var(--sc); letter-spacing: .08em; text-decoration: none; }
.woocommerce-pagination span.current { background: var(--grey); border-color: var(--grey); color: var(--black); }
.woocommerce-pagination a.page-numbers:hover { border-color: var(--grey); color: var(--white); }

/* =====================================================================
   Product page
   ===================================================================== */
.crumbs { padding: 18px var(--gut) 0; text-align: center; font: 400 .98rem/1.4 var(--sc); letter-spacing: .12em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.crumbs a { color: var(--grey); }
.pdp-spread { padding-top: clamp(36px, 5vw, 64px); }
.pdp-spread::before { top: clamp(36px, 5vw, 64px); }
.pdp-left { position: sticky; top: calc(var(--top) + 6px); }
.tc--hero { max-width: 440px; margin: 0 auto; }
.tc--hero .tc-art img { aspect-ratio: 4 / 5; filter: none; }
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.thumbs button { position: relative; width: 66px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: none; opacity: .6; cursor: pointer; transition: opacity .5s var(--ease), border-color .5s var(--ease); }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--grey); }
.thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.thumbs span { position: absolute; bottom: -9px; left: 50%; padding: 0 5px; background: var(--black); transform: translateX(-50%); font: 400 .72rem/1.2 var(--sc); color: var(--stone-lt); }
.pdp .summary .h1 { font-size: calc(clamp(2.4rem, 4.6vw, 4rem) * var(--hs)); }
.pdp .summary .epigraph { margin-left: 0; }
.price { margin: 22px 0 8px; font-size: 1.75rem; color: var(--white); }
.price del { color: var(--stone-lt); font-size: .8em; margin-right: 8px; }
.price ins { text-decoration: none; }
.pre { color: var(--grey); white-space: normal; }
.note-handmade { color: var(--grey); }
.story { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.specs { margin: 0 0 24px; padding: 0; list-style: none; }
.specs li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.specs li > span:first-child { font: 400 .98rem/1.3 var(--sc); letter-spacing: .1em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.specs .v { color: var(--white); text-align: right; }

/* =====================================================================
   Letters (contact + commission)
   ===================================================================== */
.letter-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; width: min(1120px, 100% - 2 * var(--gut)); margin: clamp(48px, 6vw, 80px) auto 0; }
.letter { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 2.15; color: var(--white); scroll-margin-top: calc(var(--top) + 20px); }
.salute, .sign { margin: 0 0 10px; font-style: italic; }
.sign { margin-top: 18px; }
.letter-line { margin: 0 0 10px; }
.ink {
  display: inline-block; width: 9.5em; max-width: 100%; margin: 0 .2em; padding: 0 .25em;
  border: 0; border-bottom: 1px dotted var(--grey); border-radius: 0; background: transparent;
  color: var(--white); font: italic 1em/1.4 var(--serif); vertical-align: baseline;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.ink::placeholder { color: var(--stone-lt); }
.ink:focus { outline: none; border-bottom: 1px solid var(--white); background: rgba(253, 253, 253, .05); }
.ink--wide { width: 13em; }
.nw { white-space: nowrap; }
.ink--num { width: 2.6em; text-align: center; -moz-appearance: textfield; appearance: textfield; }
select.ink { width: auto; padding-right: .2em; border-radius: 0; }
select.ink option { background: var(--black); font-style: normal; }
.ink-area {
  display: block; width: 100%; margin: 14px 0 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--white); font: italic 1.1rem/1.9rem var(--serif); resize: vertical;
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.9rem - 1px), rgba(117, 109, 103, .35) calc(1.9rem - 1px) 1.9rem), rgba(253, 253, 253, .02);
  background-attachment: local;
}
.ink-area::placeholder { color: var(--stone-lt); }
.ink-area:focus { outline: none; border-color: var(--grey); }
.sent { font-size: 1.05rem; line-height: 1.6; color: var(--grey); }
.sent--error { padding-left: 14px; border-left: 3px double var(--stone); color: var(--white); }
.direct, .ring-preview { position: sticky; top: calc(var(--top) + 20px); }
.direct .specs { margin-top: 6px; }
.direct .specs .v { overflow-wrap: anywhere; }
.ring-preview { text-align: center; }
.ring { display: grid; place-items: center; padding: 24px 0 40px; }
.ring-band {
  position: relative; display: block; width: min(100%, 330px); aspect-ratio: 1.7 / 1;
  border: 26px solid transparent; border-radius: 50%;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(160deg, var(--white), var(--grey) 30%, var(--stone) 62%, var(--grey) 86%, var(--stone)) border-box;
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .95), inset 0 12px 20px rgba(0, 0, 0, .85);
}
.ring-text {
  position: absolute; left: 50%; bottom: -20px; max-width: 78%; overflow: hidden;
  transform: translateX(-50%); white-space: nowrap;
  font: 400 .95rem/1 var(--sc); letter-spacing: .16em; text-transform: var(--sc-case, lowercase);
  color: var(--black); text-shadow: 0 1px 0 rgba(253, 253, 253, .5);
}

/* =====================================================================
   Information pages (contents list, countries) + post list
   ===================================================================== */
.care-toc { margin: 0 0 12px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.care-toc a { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--white); text-decoration: none; font-size: 1.22rem; }
.care-toc a:hover { color: var(--grey); }
.care h2 { padding-top: clamp(40px, 6vw, 80px); }
.care ul { padding-left: 1.3em; }
.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; margin: 18px 0 26px; padding: 20px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.countries h4 { margin: 0 0 6px; font: 400 .92rem/1.2 var(--sc); letter-spacing: .16em; text-transform: var(--sc-case, lowercase); color: var(--stone-lt); }
.countries ul { margin: 0; padding: 0 !important; list-style: none; font-size: 1.05rem; line-height: 1.55; }
.post-list { margin-top: 0; }
.nav-links { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.nav-links a, .nav-links span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

/* =====================================================================
   Pager + footer (the ledger)
   ===================================================================== */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: min(1240px, 100% - 2 * var(--gut)); margin: clamp(80px, 10vw, 140px) auto 0; }
.pager a { display: block; padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--white); text-decoration: none; transition: border-color .6s var(--ease), background .6s var(--ease); }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--grey); background: rgba(117, 109, 103, .08); }
.pager .eyebrow { margin-bottom: 8px; }
.pager-t { display: block; font-size: calc(clamp(1.6rem, 3vw, 2.4rem) * var(--hs)); line-height: 1.3; }

/* Footer: the ledger. Lined up with the menu bar (--bar-w); lists fold on phones. */
:root { --ft-logo-h: 60px; }
.ledger { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--white) 2.5%, transparent), transparent 55%); font-family: var(--shop-font); }
.ledger-top, .ledger-base { width: min(var(--bar-w), 100% - 2 * var(--gut)); margin: 0 auto; }
.ledger-top { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(0, 2.4fr); gap: clamp(40px, 6vw, 96px); padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); }
.ledger a { text-decoration: none; transition: color .4s var(--ease); }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger-brand { display: inline-flex; align-items: center; gap: 16px; }
.ledger-logo { flex: none; width: auto; max-width: none; height: var(--ft-logo-h); }
.ledger-mark { flex: none; width: auto; max-width: none; height: calc(var(--ft-logo-h) / 2); }
.ledger-note { max-width: 32ch; margin: 22px 0 26px; font: italic 400 1.18rem/1.45 var(--serif); color: var(--grey); }
.ledger-reach { display: grid; gap: 12px; }
.ledger-reach a { display: inline-flex; align-items: center; gap: 12px; color: var(--grey); font-size: .98rem; }
.ledger-reach svg { flex: none; color: var(--white); }
.ledger-reach a:hover { color: var(--white); }
.ledger-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ledger-k { margin: 0 0 18px; font: 700 .72rem/1.2 var(--shop-font); letter-spacing: .2em; text-transform: uppercase; color: var(--stone-lt); list-style: none; pointer-events: none; }
.ledger-k::-webkit-details-marker { display: none; }
.ledger-cols ul { display: grid; gap: 10px; }
.ledger-cols a { color: var(--grey); font-size: .98rem; line-height: 1.45; }
.ledger-cols a:hover { color: var(--white); }
.ledger-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 22px 0 30px; border-top: 1px solid var(--line-soft); font: 400 .78rem/1.4 var(--shop-font); letter-spacing: .14em; text-transform: uppercase; color: var(--stone-lt); }
.ledger-base nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ledger-base a { color: var(--stone-lt); }
.ledger-base a:hover { color: var(--white); }
.nav-bottom .ledger-base { padding-bottom: 120px; }
/* Grace Face in a ring, sitting on the footer's top line */
.ledger--emblem { --g: clamp(170px, 17vw, 230px); margin-top: calc(clamp(96px, 12vw, 160px) + var(--g) / 2); border-top-color: var(--line); }
.familiar { width: var(--g); height: var(--g); margin: calc(var(--g) / -2) auto 0; }
.familiar-ring { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 1px var(--line), 0 0 0 12px var(--black), 0 0 0 13px var(--line-soft); }
.familiar-ring img { width: 92%; transform: rotate(-4deg); }
.ledger--emblem .ledger-top { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 960px) { .ledger-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ledger-cols { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
  .ledger-fold { border-bottom: 1px solid var(--line-soft); }
  .ledger-k { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 18px 0; pointer-events: auto; cursor: pointer; }
  .ledger-k::after { content: "+"; font: 400 1.3rem/1 var(--shop-font); letter-spacing: 0; color: var(--white); transition: transform .4s var(--ease); }
  .ledger-fold[open] .ledger-k::after { transform: rotate(45deg); }
  .ledger-fold ul { padding: 0 0 18px; }
  .ledger-base { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .deck, ul.products { --cols: 3 !important; }
  .store-grid ul.products, .store .deck { --cols: 2 !important; }
  .car-track { grid-auto-columns: calc((100% - (min(var(--per), 2) - 1) * var(--gap)) / min(var(--per), 2)); }
}

@media (max-width: 860px) {
  .nav-bottom { --top: 30px; }
  .island { top: 10px; width: calc(100% - 20px); left: 50%; right: auto; transform: translateX(-50%); }
  .nav-bottom .island { top: auto; bottom: 10px; }
  .nav-fixed-width .island { width: calc(100% - 20px); }
  .island-in { padding: var(--e-py) min(var(--nav-px), 14px); gap: var(--e-gap); }
  .island-brand { flex: 1 1 auto; min-width: 0; margin-right: auto; gap: var(--e-lgap); }
  .island-logo { height: var(--e-logo); width: auto; max-width: 100%; min-width: 0; object-fit: contain; object-position: left center; }
  .island-mark { height: var(--e-mark); width: auto; max-width: 100%; min-width: 0; object-fit: contain; object-position: left center; }
  html.is-scrolled .nav-shrink .island-in { padding-top: var(--e-py-s); padding-bottom: var(--e-py-s); }
  .island-t { display: none; }
  .island-menu { padding: 4px; }

  .hero, .spread, .letter-wrap, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: 24px; }
  .spread::before { display: none; }
  .spread--flip .plate { order: -1; }
  .plate, .pdp-left, .index, .direct, .ring-preview { position: static; max-height: none; }
  .plate { width: min(420px, 100%); margin: 0 auto; }

  /* fans and reading become swipeable rows: no rotation, no overlap on touch */
  .fan, .slots { display: flex; gap: 14px; height: auto; margin: 0 calc(-1 * var(--gut)); padding: 30px var(--gut) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan .tc, .fan--small .tc, .fan--large .tc, .fan--four .tc { position: relative; left: auto; flex: 0 0 min(62%, 240px); width: auto; transform: none !important; scroll-snap-align: center; }
  .slot { flex: 0 0 min(72%, 250px); scroll-snap-align: center; }
  .slots { justify-content: flex-start; }

  .arcana { --cols: 2 !important; }
  .arcana .tc { rotate: 0deg !important; }
  /* An odd card out (e.g. Objects as the fifth) runs full width under the pairs */
  .arcana--odd .tc:last-child { grid-column: 1 / -1; }
  .arcana--odd .tc:last-child .tc-art img { aspect-ratio: 3 / 2; object-position: 50% 5%; }
  .deck, ul.products, .store-grid ul.products { --cols: 2 !important; gap: 16px 12px; }
  .tc-in { padding: 7px 7px 12px; }
  .tc-name { font-size: 1rem; }
  .tc-name--big { font-size: calc(1.5rem * var(--hs)); }

  .car-track { grid-auto-columns: calc((100% - (var(--per-m) - 1) * var(--gap)) / var(--per-m)); }

  .chapters a { grid-template-columns: 2.4em minmax(0, 1fr); grid-template-areas: "n t" "n c" "n b"; }
  .chapters .leader { display: none; }

  .filters-toggle { display: inline-flex; }
  .filter-panel { display: none; padding-top: 6px; }
  html.filters-open .filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  html.filters-open .filter-panel .switch { grid-column: 1 / -1; margin-top: 18px; }
  .toolbar { justify-content: flex-start; }
  .faq-a { padding-left: 4px; }

  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a:last-child { text-align: left; }
}

@media (max-width: 520px) {
  html.filters-open .filter-panel { grid-template-columns: minmax(0, 1fr); }
  .toc-sub { margin-left: 0; }
  .ink { width: 7.2em; }
  .ink--wide { width: 10.5em; }
  .ink--num { width: 2.6em; }
  .direct .specs li { flex-wrap: wrap; gap: 0 8px; }
  .direct .specs .leader { display: none; }
  .direct .specs .v { width: 100%; text-align: left; }
  .letter { line-height: 2; }
}

/* =====================================================================
   Shop pages: plain, legible text (Customizer > Fonts & sizes > Shop text font).
   Headings keep the heading font; the menu bar, Contents and footer keep the site fonts.
   ===================================================================== */
:root { --shop-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body.is-shop-ui main { --serif: var(--shop-font); --sc: var(--shop-font); --sc-case: uppercase; font-family: var(--shop-font); font-size: .94em; line-height: 1.6; }
body.is-shop-ui main .price, body.is-shop-ui main .tc-price { font-style: normal; font-variant-numeric: lining-nums; }
body.is-shop-ui main .tc-name { font-size: .95rem; letter-spacing: .06em; }
body.is-shop-ui main .tc-series, body.is-shop-ui main .tc-num, body.is-shop-ui main .eyebrow { letter-spacing: .14em; font-size: .7rem; }
body.is-shop-ui main .price { font-size: 1.6rem; font-weight: 400; }
body.is-shop-ui main .epigraph, body.is-shop-ui main .lede { font-family: var(--shop-font); }
body.is-shop-ui main .pill, body.is-shop-ui main .button { letter-spacing: .08em; font-size: .9rem; }

/* Compact page titles on shop pages (cart, checkout, account, store) */
.shop-page .opener, .store .opener { padding-top: 8px; }
.shop-page .opener .orn, .store .opener .orn { display: none; }
.shop-page .opener .h1 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--hs)); }
.shop-page .opener .eyebrow { margin-bottom: 10px; }
.shop-page .column--woo { padding-top: clamp(24px, 3vw, 40px); }

/* Cart: the update button is a normal single-line pill (and the cart updates itself when quantities change) */
.woocommerce-cart-form .actions .button, .woocommerce-cart-form button[name="update_cart"] { flex: 0 0 auto; width: auto; white-space: nowrap; writing-mode: horizontal-tb; }
html.js .woocommerce-cart-form button[name="update_cart"] { opacity: .75; }

/* Menu bar always stays inside the screen, whatever the logo size or position */
.island { max-width: calc(100% - 2 * var(--gut)); }
.nav-fixed-width .island { width: min(var(--nav-w, 60vw), calc(100% - 2 * var(--gut))); }
.island-in { min-width: 0; }
.island-brand { flex: 0 1 auto; min-width: 0; }
.island-logo, .island-mark { min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
.island-cart, .island-menu { flex: none; }
@media (max-width: 860px) {
  .island, .nav-fixed-width .island { max-width: calc(100% - 20px); width: calc(100% - 20px); }
}

/* =====================================================================
   Cart drawer (slides in after Add to cart, or from the menu bar's Cart)
   ===================================================================== */
.cart-drawer { position: fixed; inset: 0; z-index: 70; --serif: var(--shop-font); --sc: var(--shop-font); --sc-case: uppercase; font-family: var(--shop-font); }
.cart-drawer[hidden] { display: none; }
.cd-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .45s var(--ease); }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: #0b0b0b; border-left: 1px solid var(--line); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .9); transform: translateX(100%); transition: transform .55s var(--ease); outline: none; }
html.cd-open .cd-scrim { opacity: 1; }
html.cd-open .cd-panel { transform: none; }
html.cd-open { overflow: hidden; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.cd-title { margin: 0; font: 700 1.1rem/1.2 var(--shop-font); color: var(--white); text-transform: none; letter-spacing: 0; }
.cd-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--white); font: 400 1.3rem/1 var(--shop-font); cursor: pointer; }
.cd-close:hover { border-color: var(--grey); }
.cd-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cd-body > * { flex: none; }
.cd-body ul.woocommerce-mini-cart { flex: 1 1 auto !important; min-height: 0; overflow-y: auto; margin: 0; padding: 8px 22px; list-style: none; }
.cd-body li.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--line-soft); font: 400 .92rem/1.4 var(--shop-font); color: var(--grey); }
.cd-body li.woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: var(--white); font-weight: 600; text-decoration: none; }
.cd-body li.woocommerce-mini-cart-item img { grid-row: 1 / span 3; width: 64px; height: 64px; margin: 0; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.cd-body li.woocommerce-mini-cart-item .quantity { display: block; margin-top: 2px; padding: 0; border: 0; font-size: .88rem; color: var(--stone-lt); }
.cd-body li.woocommerce-mini-cart-item dl.variation { margin: 2px 0 0; font-size: .82rem; color: var(--stone-lt); }
.cd-body li.woocommerce-mini-cart-item dl.variation :is(dt, dd, dd p) { display: inline; margin: 0; }
.cd-body a.remove { position: absolute; top: 14px; right: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--stone-lt) !important; font-size: 1.1rem; line-height: 1; text-decoration: none; }
.cd-body a.remove:hover { color: var(--white) !important; background: rgba(253, 253, 253, .08); }
.cd-body .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 18px 22px 8px; border-top: 1px solid var(--line); font: 400 1rem var(--shop-font); color: var(--white); }
.cd-body .woocommerce-mini-cart__total strong { font-weight: 400; color: var(--grey); }
.cd-body .woocommerce-mini-cart__total .amount { font-weight: 700; }
.cd-body .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 10px 22px 22px; }
.cd-body .woocommerce-mini-cart__buttons a { display: grid; place-items: center; height: 50px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--white); font: 700 .95rem/1 var(--shop-font); letter-spacing: .02em; text-transform: none; text-decoration: none; }
.cd-body .woocommerce-mini-cart__buttons a.checkout { order: 2; border-color: var(--grey); background: var(--grey); color: var(--black); }
.cd-body .woocommerce-mini-cart__buttons a:hover { border-color: var(--white); }
.cd-body .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--white); }
.cd-body .woocommerce-mini-cart__empty-message { margin: 0; padding: 40px 22px; text-align: center; font: 400 1rem var(--shop-font); color: var(--grey); }
.atc-error { flex: 1 1 100%; margin: 8px 0 0; padding-left: 12px; border-left: 3px double var(--stone); font: 400 .9rem/1.4 var(--shop-font); color: var(--white); }
.single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cd-panel, .cd-scrim { transition: none; } }
.enquire { margin: 18px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--veil); }
.enquire-t { margin: 0 0 12px; font-size: .95rem; color: var(--grey); }

/* =====================================================================
   Full-width menu bar (Customizer > Menu bar > Style). The bar runs edge to
   edge; its contents sit on the store's column (--bar-w, 1400px by default),
   so the logo lines up with the filters and Contents with the cards' right edge.
   The rules above stay for the floating pill style.
   ===================================================================== */
:root { --bar-w: 1400px; }
body.nav-bar .island {
  top: 0; right: 0; bottom: auto; left: 0; width: auto; max-width: none;
  padding: 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
  background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: none; transition: background .5s var(--ease);
}
body.nav-bar .island-in {
  width: min(var(--bar-w), 100% - 2 * var(--gut)); margin: 0 auto;
  padding: calc(var(--e-py) + 16px) 0; border-radius: 0;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
body.nav-bar .island-brand { margin-right: auto; }
body.nav-bar .island-cart,
body.nav-bar .island-menu { font: 700 .78rem/1 var(--shop-font); letter-spacing: .18em; text-transform: uppercase; }
body.nav-bar .island-cart { gap: 8px; }
body.nav-bar .dot { min-width: 22px; height: 22px; padding: 0 6px; font: 700 .7rem/1 var(--shop-font); }
body.nav-bar .island-menu { gap: 10px; padding: 6px 0; border-radius: 0; background: none; color: var(--white); }
body.nav-bar .island-menu:hover { background: none; color: var(--grey); }
body.nav-bar .ico { width: 18px; height: 14px; border-radius: 0; background: none; }
body.nav-bar .island-menu:hover .ico { transform: none; }
body.nav-bar .lines, body.nav-bar .lines::before, body.nav-bar .lines::after { width: 18px; }
html.is-scrolled body.nav-bar.nav-shrink .island { background: rgba(0, 0, 0, var(--nav-bg-s)); }
html.is-scrolled body.nav-bar.nav-shrink .island-in { padding-top: calc(var(--e-py-s) + 8px); padding-bottom: calc(var(--e-py-s) + 8px); background: transparent; }
@media (max-width: 860px) {
  body.nav-bar .island, body.nav-bar.nav-fixed-width .island { top: 0; left: 0; width: auto; max-width: none; transform: none; }
  body.nav-bar .island-in { padding: calc(var(--e-py) + 10px) 0; }
  html.is-scrolled body.nav-bar.nav-shrink .island-in { padding-top: calc(var(--e-py-s) + 6px); padding-bottom: calc(var(--e-py-s) + 6px); }
  body.nav-bar .island-menu { padding: 6px 0 6px 4px; }
}

/* Small labels above headings ("Chapter IV · Store"): small capitals between
   hairlines instead of a pill, so they don't compete with the menu bar. */
.eyebrow, .is-style-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0; border: 0; border-radius: 0; color: var(--stone-lt);
}
.eyebrow::before, .eyebrow::after, .is-style-eyebrow::before, .is-style-eyebrow::after {
  content: ""; flex: none; width: 34px; height: 1px; background: var(--line);
}
/* Left-aligned spots get a trailing rule only; the chapter pager keeps just its arrows. */
.direct .eyebrow::before, .letter-wrap .eyebrow::before, .hero-text .eyebrow::before, .toc > .eyebrow::before, .text-left .eyebrow::before { display: none; }
.pager .eyebrow::before, .pager .eyebrow::after { display: none; }
.pager .eyebrow { display: block; }

/* Cart on phones: a thin-line bag with the count on its corner (computers keep "Cart 4"). */
.cart-ico { display: none; }
@media (max-width: 860px) {
  .island-cart { position: relative; }
  .island-cart .cart-ico { display: block; flex: none; width: 24px; height: 24px; }
  .island-cart .island-t, body.nav-bar .island-cart .island-t { display: none; }
  .island-cart .dot, body.nav-bar .island-cart .dot {
    position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
    font: 700 .64rem/1 var(--shop-font); letter-spacing: 0; box-shadow: 0 0 0 2px var(--black);
  }
  body.nav-bar .island-in { gap: var(--e-gap); }
}

/* =====================================================================
   Header per device (Customizer > Header & logo): each size reads its own values.
   Desktop over 860px, tablet 601-860px, mobile up to 600px. Body classes mark-d/t/m-*
   say where the second logo sits on each: beside, below (stack) or hidden.
   ===================================================================== */
@media (max-width: 860px) {
  :root { --e-logo: var(--logo-h-t); --e-mark: var(--mark-h-t); --e-lgap: var(--nav-lgap-t); --e-py: var(--nav-py-t); --e-gap: var(--nav-gap-t);
    --e-logo-s: var(--logo-h-t-s); --e-mark-s: var(--mark-h-t-s); --e-py-s: var(--nav-py-s-t); }
}
@media (max-width: 600px) {
  :root { --e-logo: var(--logo-h-m); --e-mark: var(--mark-h-m); --e-lgap: var(--nav-lgap-m); --e-py: var(--nav-py-m); --e-gap: var(--nav-gap-m);
    --e-logo-s: var(--logo-h-m-s); --e-mark-s: var(--mark-h-m-s); --e-py-s: var(--nav-py-s-m); }
}
body { --e-brand: max(var(--e-logo), var(--e-mark)); --top: calc(var(--e-brand) + 2 * var(--e-py) + 62px); }
@media (min-width: 861px) {
  .mark-d-stack .island-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .mark-d-stack { --e-brand: calc(var(--e-logo) + var(--e-mark) + 3px); }
  .mark-d-hide .island-mark { display: none; }
  .mark-d-hide { --e-brand: var(--e-logo); }
}
@media (min-width: 601px) and (max-width: 860px) {
  .mark-t-stack .island-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .mark-t-stack { --e-brand: calc(var(--e-logo) + var(--e-mark) + 3px); }
  .mark-t-stack .island { border-radius: calc(min(var(--nav-r), 28px) + 5px); }
  .mark-t-stack .island-in { border-radius: min(var(--nav-r), 28px); }
  .mark-t-hide .island-mark { display: none; }
  .mark-t-hide { --e-brand: var(--e-logo); }
}
@media (max-width: 600px) {
  .mark-m-stack .island-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .mark-m-stack { --e-brand: calc(var(--e-logo) + var(--e-mark) + 3px); }
  .mark-m-stack .island { border-radius: calc(min(var(--nav-r), 28px) + 5px); }
  .mark-m-stack .island-in { border-radius: min(var(--nav-r), 28px); }
  .mark-m-hide .island-mark { display: none; }
  .mark-m-hide { --e-brand: var(--e-logo); }
}
body.nav-bar .island, body.nav-bar .island-in { border-radius: 0; }
