/* georgiizvorski.com — homepage prototype v8 (YoungCaesar, 05.11.2026), after review round 2.
   Colour roles from the teaching's formula „Любовта иде!“: Истина = blue (text, working accent), Любов = rose (Силвина's area only),
   Мъдрост = gold (buying only). Night blue only for the videos band, the footer, the notice line and the cart sheet.
   Type: Bona Nova (headings, Bulgarian letterforms) + Sofia Sans (text, in the standard forms older readers learned at school).
   All type in rem so it follows the reader's own font size; checked at 130 %. */

:root {
  --paper: oklch(0.975 0.008 85);
  --paper-2: oklch(0.955 0.016 82);
  --paper-3: oklch(0.925 0.03 82);
  --ink: oklch(0.29 0.075 266);
  --ink-2: oklch(0.38 0.05 266);
  --muted: oklch(0.47 0.03 266);
  --line: oklch(0.87 0.016 85);
  --blue: oklch(0.42 0.14 264);
  --blue-line: oklch(0.42 0.14 264 / 0.35);
  --dawn: oklch(0.945 0.028 250);
  --dawn-line: oklch(0.86 0.04 250);
  --gold: oklch(0.82 0.13 82);
  --gold-2: oklch(0.77 0.14 77);
  --gold-soft: oklch(0.93 0.06 86);
  --rose: oklch(0.80 0.075 12);
  --rose-2: oklch(0.945 0.028 12);
  --rose-ink: oklch(0.45 0.13 8);
  --night: oklch(0.245 0.06 266);
  --night-2: oklch(0.31 0.06 266);
  --on-night: oklch(0.95 0.012 85);
  --on-night-2: oklch(0.80 0.03 266);
  --night-accent: oklch(0.80 0.07 255);

  --font-display: "Bona Nova", Georgia, serif;
  --font-text: "Sofia Sans", system-ui, sans-serif;
  /* one scale (~1.333): display 24 / 32 / 42 / 56 / 100, text 15 / 17 / 20 */
  --d1: clamp(3rem, 7vw, 6.25rem);
  --d2: clamp(2rem, 3.9vw, 3.5rem);
  --d3: clamp(2rem, 3vw, 2.625rem);
  --d4: 1.5rem;
  --t1: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  --t2: 1.0625rem;
  --t3: 0.9375rem;

  --gutter: clamp(20px, 4vw, 48px);
  --container: 1200px;
  --section: clamp(56px, 7vw, 96px);
  --section-s: clamp(40px, 5vw, 64px);
  --r-s: 12px; --r-l: 20px;
  --book-shadow: drop-shadow(0 14px 14px oklch(0.32 0.05 60 / 0.20)) drop-shadow(0 2px 2px oklch(0.32 0.05 60 / 0.22));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t1)/1.6 var(--font-text); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.videos :focus-visible, .footer :focus-visible, .notice:focus-visible, .sheet :focus-visible, .player :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.label { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--font-text); color: var(--blue); }
.label svg { width: 20px; height: 20px; flex: none; }
.h2 { font-size: var(--d2); line-height: 1.06; letter-spacing: -0.01em; margin-top: 12px; }
.lead { font-size: var(--t1); line-height: 1.55; color: var(--ink-2); margin-top: 16px; max-width: 54ch; }
.body { color: var(--ink-2); max-width: 60ch; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--t2)/1.2 var(--font-text); color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--blue-line); padding-bottom: 3px; }
.more:hover { border-bottom-color: var(--blue); }
.more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.izg { stroke-width: 1.7; }

/* buttons: gold = buying only */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 600 1.125rem/1 var(--font-text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-gold.added { background: transparent; border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--night); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-rose:hover { background: oklch(0.75 0.09 12); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 1rem; }

/* notice + header + search */
.notice { display: block; background: var(--night); color: var(--on-night); font: 500 0.9375rem/1.3 var(--font-text); text-align: center; padding: 10px var(--gutter); text-decoration: none; }
.notice:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice .dot { color: var(--gold); margin: 0 8px; }
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px oklch(0.3 0.05 266 / 0.35); }
.header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: block; color: var(--ink); line-height: 0; padding: 9px 0; }
.logo svg { height: 34px; width: auto; display: block; }
.nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 28px); }
.nav a { text-decoration: none; font: 500 1rem/1 var(--font-text); color: var(--ink); padding: 12px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue-line); }
.nav a.gifts { color: var(--blue); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 4px; }
.tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--paper-2); }
.tool .i { width: 24px; height: 24px; }
.lang { font: 600 0.875rem/1 var(--font-text); letter-spacing: .06em; width: auto; padding: 0 10px; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold);
  color: var(--ink); font: 700 0.75rem/1.25rem var(--font-text); text-align: center; transition: transform .3s var(--ease); }
.badge.bump { transform: scale(1.25); }
.menu-btn { display: none; }
.searchbar { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 10px; padding: 14px 0; }
.searchbar input, .drawer input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; border: 1.5px solid var(--ink-2); background: #fff; padding: 0 20px; font-size: 1.0625rem; }
.searchbar input::placeholder, .drawer input::placeholder, .form input::placeholder { color: var(--muted); }

/* hero: „Изгрев“ — the sun rises behind his shoulder, never around his head */
.hero { padding: clamp(20px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--d1); line-height: 1.02; letter-spacing: -0.02em; margin-top: 18px; }
.hero .lead { font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem); max-width: 34ch; margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-links { display: grid; max-width: 31rem; margin-top: 30px; border-bottom: 1px solid var(--line); }
.side-link { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: var(--t2); line-height: 1.3; text-decoration: none; }
.side-link .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-2); color: var(--rose-ink); }
.side-link.season-link .ic { background: var(--gold-soft); color: var(--ink); }
.side-link .ic .i { width: 20px; height: 20px; }
.side-link .sealmini { width: 28px; height: 28px; }
.side-link > svg { width: 20px; height: 20px; color: var(--blue); transition: transform .3s var(--ease); }
.side-link:hover > svg { transform: translateX(4px); }
.side-link:hover span:not(.ic) { text-decoration: underline; text-underline-offset: 4px; }
.arch { position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--paper-3); }
.arch .person { position: absolute; left: 50%; bottom: 0; width: 104%; max-width: none; transform: translateX(-50%); }
.hero-media .arch { max-width: 450px; margin-left: auto; }
.sunrise { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sunrise .disc { fill: var(--gold-soft); }
.sunrise .rays { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; opacity: .75; transition: opacity 1s; }
.sunrise .horizon { fill: none; stroke: var(--gold); stroke-width: .5; opacity: .9; }
.sunrise .sun { transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
.sunrise .rays path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.16, 1, .3, 1) calc(.75s + var(--i, 0) * 70ms); }
.sunrise.rise .sun, .sunrise.rise .rays path { transition: none; }
.sunrise.rise .rays path { stroke-dashoffset: 1; }
.sunrise.night .rays { opacity: .3; }

/* season: gifts on warm paper */
.season { background: var(--paper-2); }
.season-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.season .season-head p { color: var(--ink-2); margin-top: 14px; max-width: 52ch; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gift-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; color: var(--ink-2); font-size: var(--t3); line-height: 1.5; max-width: 72ch; }
.gift-note .i { color: var(--blue); margin-top: 1px; }

/* product card */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-l); color: var(--ink); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--paper-2); border-radius: var(--r-s); overflow: hidden; }
.card-media img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; filter: var(--book-shadow); transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: translateY(-5px); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 4px 4px; }
.card .virtue { font: italic 400 var(--t2)/1.3 var(--font-display); color: var(--blue); }
.card h3 { font-size: var(--d4); line-height: 1.12; margin-top: 4px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0 0 70px 0; }
.card .line { font-size: var(--t3); line-height: 1.4; color: var(--muted); margin-top: 6px; }
.card .save { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }
.card .start { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 0.875rem/1.3 var(--font-text); color: var(--blue); }
.card .start svg { width: 18px; height: 18px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; position: relative; z-index: 2; }
.price { font: 600 1.25rem/1 var(--font-text); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--ink); font: 600 0.8125rem/1 var(--font-text); padding: 7px 10px; border-radius: 999px; }
.tag.out { background: var(--ink); color: var(--paper); }
.season .card { padding: 12px; border-radius: 24px; }
.season .card-media { aspect-ratio: 4 / 3; }
.season .card-media img { inset: 8% 6%; width: 88%; height: 84%; }
.season .card-body { padding: 14px 6px 4px; }

/* shelf */
.shelf { padding-bottom: var(--section-s); }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shelf-head .h2 { margin-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 24px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid oklch(0.56 0.03 266); background: transparent; cursor: pointer;
  font: 500 1rem/1 var(--font-text); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab b { font-weight: 600; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] b { color: var(--on-night-2); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.grid .card:nth-child(n+9) { display: none; }
.grid.all .card { display: flex; }
.show-more { display: flex; justify-content: center; margin-top: 36px; }
.grid.all + .show-more, .show-more[hidden] { display: none; }
.after-more { display: none; justify-content: center; margin-top: 28px; }
.grid.all ~ .after-more { display: flex; }
.trust-line { list-style: none; margin: 48px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 36px; color: var(--ink-2); font-size: var(--t3); }
.trust-line li { display: inline-flex; align-items: center; gap: 10px; }
.trust-line .i { width: 22px; height: 22px; color: var(--blue); }
.trust-line a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* about: a real photo in the arch, no cut-out */
.about .wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; width: 100%; aspect-ratio: 4 / 4.4; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--paper-3); }
.portrait img, .arch.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait img { object-position: 50% 30%; }
.about .h2 { margin-top: 0; }
.about .body { margin-top: 18px; }
.about .body + .body { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 11rem)); column-gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 400 var(--d3)/1 var(--font-display); color: var(--ink); font-variant-numeric: lining-nums; }
.facts span { display: block; font-size: var(--t3); line-height: 1.4; color: var(--muted); margin-top: 8px; }

/* healing: Силвина, right after Георги, the only rose area */
.healing { background: var(--rose-2); }
.healing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.healing .seal-lg { display: block; width: 76px; height: 76px; color: var(--rose-ink); }
.healing .seal-lg svg { width: 100%; height: 100%; display: block; }
.healing .label { color: var(--rose-ink); margin-top: 20px; }
.healing .body { margin-top: 18px; max-width: 46ch; }
.healing .body + .body { margin-top: 12px; }
.healing .price-from { margin-top: 16px; font: 600 var(--t2)/1.3 var(--font-text); color: var(--ink); }
.arch.photo { aspect-ratio: 4 / 4.4; }
.arch.photo img { object-position: 55% 30%; }

/* videos (night band) */
.videos { background: var(--night); color: var(--on-night); }
.videos .label { color: var(--night-accent); }
.videos .h2 { color: var(--on-night); }
.videos .lead { color: var(--on-night-2); }
.vhead { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.varrows { display: flex; gap: 10px; }
.varrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid oklch(0.55 0.04 266); background: transparent; color: var(--on-night); cursor: pointer; display: grid; place-items: center; }
.varrow:hover { background: var(--night-2); }
.varrow.prev svg { transform: rotate(180deg); }
.vtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.vtab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid oklch(0.55 0.04 266); background: transparent; color: var(--on-night); font: 500 1rem/1 var(--font-text); cursor: pointer; }
.vtab:hover { border-color: var(--on-night); }
.vtab[aria-selected="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.vrail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 8px; scrollbar-width: none; }
.vrail::-webkit-scrollbar { display: none; }
.vcard { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-s); }
.vcard:focus-visible { outline-offset: -3px; }
.vthumb { order: -1; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--night-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vplay { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: oklch(0.98 0.01 85 / .92); }
.vplay::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid var(--night); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vdur { position: absolute; right: 10px; bottom: 10px; background: oklch(0.15 0.03 266 / .85); color: #fff; font: 600 0.8125rem/1 var(--font-text); padding: 5px 8px; border-radius: 6px; }
.vtitle { font: 400 1.25rem/1.25 var(--font-display); color: var(--on-night); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { font-size: var(--t3); color: var(--on-night-2); }
.vcta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.vcta .btn { background: var(--on-night); color: var(--night); }
.vcta .btn:hover { background: #fff; }
.vcta .btn .i { width: 22px; height: 22px; }
.videos .more { color: var(--on-night); border-bottom-color: oklch(0.80 0.07 255 / 0.45); }
.vquote { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--night-2); }
.vquote blockquote { text-wrap: balance; font: italic 400 clamp(1.5rem, 2.4vw, 2.125rem)/1.3 var(--font-display); color: var(--on-night); max-width: 36ch; }
.vquote figcaption { margin-top: 14px; font-size: var(--t3); color: var(--on-night-2); }
.player { position: fixed; inset: 0; z-index: 80; background: oklch(0.12 0.03 266 / .86); display: grid; place-items: center; padding: 24px; }
.player[hidden] { display: none; }
.player-box { position: relative; width: min(1100px, 100%, calc((100dvh - 140px) * 16 / 9)); }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-s); overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; right: 0; top: -56px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }

/* word: one big drop of wisdom on plain paper, the lists, the one subscription */
.word .h2 { margin-top: 12px; }
.drop { margin: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.drop .k { font: 600 1rem/1.2 var(--font-text); color: var(--muted); }
.drop blockquote { text-wrap: balance; margin-top: 14px; font: italic 400 clamp(2rem, 4.4vw, 3.75rem)/1.15 var(--font-display); color: var(--ink); max-width: 22ch; letter-spacing: -0.01em; }
.drop .src { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 20px; font-size: var(--t3); color: var(--ink-2); }
.word .grid3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.list-title { font: 600 1rem/1.3 var(--font-text); color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 0; }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list a strong { font: 400 1.25rem/1.25 var(--font-display); color: var(--ink); }
.list a small { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.list a .i { color: var(--blue); transition: transform .3s var(--ease); }
.list a:hover .i { transform: translateX(4px); }
.list-more { margin-top: 16px; }
.subscribe { background: var(--dawn); border-radius: var(--r-l); padding: 28px 26px 24px; }
.sub-h { font-size: var(--d4); line-height: 1.15; }
.sub-p { margin-top: 8px; font-size: var(--t3); line-height: 1.5; color: var(--ink-2); }
.gift { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 18px; }
.gift img { width: 56px; height: 56px; object-fit: contain; filter: var(--book-shadow); }
.gift b { display: block; font: 600 var(--t3)/1.35 var(--font-text); }
.gift span { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.form { display: grid; gap: 10px; margin-top: 18px; }
.flabel { font: 600 0.9375rem/1.3 var(--font-text); color: var(--ink); }
.form input { min-width: 0; width: 100%; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--ink-2); background: #fff; padding: 0 20px; font-size: 1.0625rem; color: var(--ink); }
.form input[aria-invalid="true"] { border-color: var(--rose-ink); }
.form .btn { width: 100%; min-height: 52px; }
.ferr { font: 600 0.875rem/1.4 var(--font-text); color: var(--rose-ink); }
.ferr[hidden], .ok[hidden], .form[hidden] { display: none; }
.ok { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-s); background: var(--paper); font: 600 var(--t2)/1.4 var(--font-text); color: var(--ink); }
.subscribe small { display: block; margin-top: 14px; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.subscribe small a { color: inherit; }
.support { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: clamp(36px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--t3); }

/* community (Facebook) */
.community { background: var(--paper-2); padding: var(--section) 0; }
.fbwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fbnum { font: 500 var(--t2)/1.3 var(--font-text); color: var(--muted); }
.fbnum b { display: block; font: 400 clamp(3.5rem, 6.5vw, 6.25rem)/1 var(--font-display); color: var(--ink); font-variant-numeric: lining-nums; margin-bottom: 6px; }
.community .h2 { margin-top: 24px; }
.community .body { margin-top: 14px; max-width: 44ch; }
.fbcta { align-items: center; gap: 14px 28px; }
.cquote { margin: 32px 0 34px; }
.cquote blockquote { text-wrap: balance; font: italic 400 1.375rem/1.4 var(--font-display); color: var(--ink); max-width: 30ch; }
.cquote figcaption { margin-top: 10px; font-size: var(--t3); color: var(--muted); }
.fbfeed { align-self: stretch; border-radius: 24px; min-height: 420px; display: grid; place-items: center; background: var(--paper); overflow: hidden; }
.fbhold { text-align: center; padding: 40px 32px; max-width: 380px; display: grid; justify-items: center; gap: 14px; }
.fbhold p { color: var(--muted); font-size: 1rem; }
.fbhold p strong { display: block; font: 400 var(--d4)/1.2 var(--font-display); color: var(--ink); margin-bottom: 6px; }
.fbicon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 2.25rem/4rem var(--font-text); }
.fbframe { display: block; max-width: 100%; }

/* footer: the whole signature, wordmark and seal */
.footer { background: var(--night); color: var(--on-night-2); padding: var(--section) 0 32px; font-size: 1rem; }
.signature { color: var(--on-night); line-height: 0; display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 44px); text-decoration: none; }
.signature .wordmark { height: clamp(56px, 10vw, 140px); width: auto; display: block; }
.signature .seal { height: clamp(52px, 8.6vw, 120px); width: auto; display: block; color: var(--rose); }
.footer .tagline { margin-top: 20px; max-width: 34ch; font: italic 400 var(--d4)/1.35 var(--font-display); color: var(--on-night); }
.footer .top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--night-2); }
.footer .fh { margin: 0 0 6px; color: var(--on-night); font: 600 0.9375rem/1.2 var(--font-text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer ul a { display: inline-block; padding: 10px 0; text-decoration: none; }
.footer a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-2); font-size: 0.875rem; }

/* cart sheet: stays until closed, shrinks to one line once you read on */
.sheet { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--night); color: var(--on-night);
  border-radius: 22px; padding: 16px; box-shadow: 0 24px 48px -20px oklch(0.15 0.05 266 / .7);
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; grid-template-areas: "img text close" "act act act"; column-gap: 14px; align-items: center;
  transform: translateY(130%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
.sheet.show { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.sheet > img { grid-area: img; width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 12px; padding: 3px; }
.sheet-text { grid-area: text; min-width: 0; }
.sheet-t { display: block; font: 600 var(--t2)/1.3 var(--font-text); }
.sheet-sub { display: block; font-size: 0.875rem; color: var(--on-night-2); }
.sheet-actions { grid-area: act; display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions .btn { flex: 1 1 0; min-height: 50px; padding: 0 14px; }
.sheet-actions .btn-line { border-color: oklch(0.55 0.04 266); color: var(--on-night); }
.sheet-actions .btn-line:hover { background: var(--night-2); }
.sheet-close { grid-area: close; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--night-2); color: var(--on-night); cursor: pointer; display: grid; place-items: center; }
.sheet.mini { grid-template-columns: 40px minmax(0, 1fr) auto 40px; grid-template-areas: "img text act close"; padding: 10px; border-radius: 18px; }
.sheet.mini > img { width: 40px; height: 40px; border-radius: 9px; }
.sheet.mini .sheet-t { font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.mini .sheet-sub, .sheet.mini .js-continue { display: none; }
.sheet.mini .sheet-actions { margin: 0; }
.sheet.mini .sheet-actions .btn { min-height: 44px; flex: none; padding: 0 16px; font-size: 1rem; }
.sheet.mini .sheet-close { width: 40px; height: 40px; }

.drawer { position: fixed; inset: 0; z-index: 70; background: oklch(0.2 0.05 266 / .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer nav { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 380px); background: var(--paper); padding: 20px 24px; transform: translateX(-100%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.drawer.open nav { transform: none; }
.drawer .dhead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.drawer .dt { font: 600 0.9375rem/1 var(--font-text); color: var(--muted); }
.drawer form { display: flex; gap: 8px; margin: 4px 0 10px; }
.drawer nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 var(--d4)/1.1 var(--font-display); }
.drawer nav a:last-child { border-bottom: 0; }

/* ---------- ≤1080: season and word reflow ---------- */
@media (max-width: 1080px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word .grid3 { grid-template-columns: 1fr 1fr; }
  .subscribe { grid-column: 1 / -1; }
  .subscribe .form { grid-template-columns: minmax(0, 1fr) auto; }
  .subscribe .form .flabel, .subscribe .form .ferr { grid-column: 1 / -1; }
  .subscribe .form .btn { width: auto; }
  .vcard { flex-basis: calc((100% - 40px) / 3); }
}
/* ---------- ≤960 (tablet): menu button, 3 books a row ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .card:nth-child(n+7) { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .about .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .healing .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
}
/* ---------- phone (≤720): the portrait first, then the name ---------- */
@media (max-width: 720px) {
  :root { --d2: 2rem; --d4: 1.375rem; }
  html { scroll-padding-top: 74px; }
  .notice { font-size: 0.875rem; padding: 9px 12px; }
  .notice .n3, .notice .n1b { display: none; }
  .header .wrap { min-height: 62px; gap: 8px; }
  .logo { justify-self: center; }
  .logo svg { height: 26px; }
  .tools .lang, .tools .account { display: none; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: 8px; }
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-media { order: -1; display: block; width: min(68vw, 270px); margin: 4px auto 18px; }
  .hero-media .arch { max-width: none; margin: 0; aspect-ratio: 4 / 4.3; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 2.875rem); line-height: 1.05; margin-top: 8px; }
  .hero .lead { margin-top: 12px; font-size: 1.125rem; }
  .cta { margin-top: 18px; }
  .cta .btn { flex: 1 1 10rem; padding-left: 12px; padding-right: 12px; font-size: 1rem; min-height: 50px; }
  .hero-links { margin-top: 18px; }
  .season-link { display: none; }
  .season-head { margin-bottom: 22px; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 14px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .card { flex: 0 0 72%; scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .grid .card:nth-child(n+5) { display: none; }
  .grid.all .card { display: flex; }
  .card .virtue { font-size: 0.9375rem; }
  .card .line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.875rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-foot .btn { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 22px calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .trust-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; gap: 14px 16px; margin-top: 36px; }
  .trust-line li { align-items: flex-start; gap: 8px; line-height: 1.35; }
  .about .wrap, .healing .wrap, .fbwrap { grid-template-columns: 1fr; }
  .portrait, .arch.photo { width: min(88vw, 360px); margin: 0 auto 8px; }
  .arch.photo { order: -1; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .facts b { font-size: 1.75rem; }
  .facts span { font-size: 0.875rem; }
  .healing .seal-lg { width: 56px; height: 56px; }
  .healing .cta .btn { flex: 1 1 12rem; }
  .vhead { display: block; }
  .varrows { display: none; }
  .vtabs { flex-wrap: nowrap; overflow-x: auto; margin: 22px calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); scrollbar-width: none; }
  .vtab { flex: none; }
  .vrail { margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; gap: 14px; scroll-padding-inline: var(--gutter); }
  .vcard { flex-basis: 78%; }
  .vtitle { font-size: 1.1875rem; }
  .vcta .btn { width: 100%; }
  .word .grid3 { grid-template-columns: 1fr; gap: 32px; }
  .subscribe { padding: 24px 20px 20px; }
  .subscribe .form { grid-template-columns: 1fr; }
  .subscribe .form .btn { width: 100%; }
  .word .list a:nth-child(n+3) { display: none; }
  .word .list.prayers a { display: grid; }
  .list a strong { font-size: 1.1875rem; }
  .fbfeed { min-height: 300px; }
  .footer .top { grid-template-columns: 1fr 1fr; gap: 28px 18px; margin-top: 36px; }
  .footer .bottom { flex-direction: column; margin-top: 36px; }
  .sheet { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .sheet.mini { padding: 8px; }
  .player { padding: 12px; }
  .player-close { top: -54px; }
}
/* phone held sideways, or any short screen: the close button sits on the video */
@media (max-height: 520px) {
  .player { padding: 8px; }
  .player-box { width: min(100%, calc((100dvh - 16px) * 16 / 9)); }
  .player-close { top: 8px; right: 8px; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
