/* Trad website. Ken 2026-11-14: "as simple and as modern as possible… hyper modern, hyper simple", then "use the
   font our logo's in… and a cursive font": Times New Roman everywhere (the app's and logo's font), italic Times as
   the cursive accent, spaced capitals for small labels like the inscription in St Peter's dome. Near-black ground,
   no gradients, no shadows, hairline borders, gold used sparingly. Sans only inside the store badges. */

@font-face {
  font-family: "Trad Serif Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Tinos"), local("Liberation Serif");
}

:root {
  --bg: #0A0C12;
  --surface: #13161F;
  --surface-2: #1B1F2A;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #F5F5F7;
  --text-2: #A9AEBB;
  --text-3: #737988;
  --gold: #F4D58A;
  --strike: #FF5B52;
  --paper: #F6F1E6;
  --paper-ink: #1E2647;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; /* store badges only */
  --serif: "Times New Roman", Times, "Tinos", "Liberation Serif", "Trad Serif Fallback", Georgia, serif;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark: the app's spaced TRAD */
.wordmark { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-family: var(--serif); line-height: 1.2; }
.wordmark span { display: block; }
.wordmark--nav { width: 84px; font-size: 22px; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 12, 18, .72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 17px; padding: 7px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.cart-btn:hover { background: var(--surface-2); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.cart-count[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px;
  border-radius: 999px; font-family: var(--serif); font-size: 18px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, opacity .15s ease; }
.btn--gold { background: var(--text); color: var(--bg); }
.btn--gold:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--soon { background: transparent; color: var(--text-2); border-color: var(--line-2); cursor: default; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--text-2); }
.eyebrow { display: block; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.rule { width: 40px; height: 1px; background: var(--line-2); margin: 18px auto 0; border: 0; }

/* ---------- Home: the word ---------- */
/* Ken 2026-11-14: the NIV on two lines; under the struck "teachings", the Greek word, and under that "traditions". */
.word { max-width: none; margin: 0 auto; padding: clamp(80px, 14vh, 150px) 16px clamp(90px, 14vh, 150px); text-align: center; }
.word blockquote { margin: 0; }
.word cite { display: block; font-style: normal; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: #C9CDD6; margin-top: 30px; }
.w-niv p { font-size: clamp(1.9rem, 3.05vw, 3.6rem); line-height: 1.3; margin: 0 auto; width: fit-content; max-width: 100%; text-align: left; }
@media (min-width: 1000px) { .w-niv p { padding: 0 1.2em 0 1.62em; text-indent: -.42em; } }
@media (max-width: 999px) { .w-niv p { text-align: center; text-wrap: balance; } }
.br-wide { display: none; }
@media (min-width: 1000px) { .br-wide { display: inline; } }
/* The correction: a column whose first line sits on the verse's baseline. */
.fix { display: inline-flex; flex-direction: column; align-items: center; vertical-align: baseline; line-height: 1.15; }
.fix del { position: relative; text-decoration: none; color: rgba(245, 245, 247, .42); padding: 0 .06em; }
/* Ken 2026-11-14: a straight, flat, matte bright-red line (no tilt, glow, shadow or gradient). */
.fix del::after { content: ""; position: absolute; left: -.1em; right: -.1em; top: 50%; height: .12em; margin-top: -.02em;
  background: #FF2D2D; }
/* Zero-width rows so the column is only as wide as "teachings"; the wider words spill evenly both sides. */
.fix .gk, .fix ins { width: 0; display: flex; justify-content: center; white-space: nowrap; text-indent: 0; }
.fix .gk { font-size: 1.3em; line-height: 1.05; color: #F5F5F7; margin-top: .22em; }
.fix ins { text-decoration: none; font-style: italic; font-size: 1.3em; line-height: 1.05; color: var(--gold); margin-top: .08em; }

/* ---------- Bottom of every page ---------- */
.store-band { text-align: center; padding: 88px 0 96px; border-top: 1px solid var(--line); }
.store-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-style: italic; margin: 0 auto 12px; max-width: 760px; }
.store-band p { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.badges { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; width: 200px; height: 60px; padding: 0 18px; border-radius: 13px;
  background: #000; border: 1px solid rgba(255, 255, 255, .38); color: #fff; text-decoration: none; text-align: left; position: relative; font-family: var(--sans); }
a.store-badge:hover { border-color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: 11px; letter-spacing: .02em; }
.store-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.store-badge.is-soon { opacity: .55; }

/* ---------- Shop ---------- */
.shop-hero { padding: 72px 0 24px; text-align: center; }
.shop-hero p { color: var(--text-2); max-width: 560px; margin: 0 auto; }
.notice { display: flex; gap: 10px; align-items: flex-start; max-width: 620px; margin: 26px auto 0; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; text-align: left; }
.notice svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.filters { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 30px 0 28px; }
.chip { font-family: var(--serif); font-size: 16px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; min-height: 38px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.product { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.product:hover { border-color: var(--line-2); }
.product .media { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.product .media svg, .product .media img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product .name { font-size: 19px; }
.product .sub { font-size: 15.5px; color: var(--text-2); }
.product .price { margin-top: auto; padding-top: 8px; font-size: 17px; color: var(--text-2); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--text); }
.badge--soon { background: rgba(10, 12, 18, .8); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; } }
.pdp .gallery { border-radius: var(--radius); overflow: hidden; background: var(--paper); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.pdp .gallery svg, .pdp .gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp .caption { color: var(--text-3); font-size: 13.5px; margin-top: 10px; }
.pdp h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 6px; }
.pdp .price { font-size: 1.3rem; color: var(--text-2); margin-bottom: 18px; }
.pdp .desc { color: var(--text-2); }
.pdp .desc p:last-child { margin-bottom: 0; }
.option-group { border: 0; padding: 0; margin: 22px 0 0; }
.option-group legend { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label { min-width: 52px; min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--text-2); }
.options input:checked + label { border-color: var(--text); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.options input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; height: 44px; background: transparent; border: 0; color: var(--text); font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 36px; text-align: center; font-size: 16px; }
.buy-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.buy-row .btn { flex: 1; min-width: 220px; }
.details { margin-top: 30px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; padding: 15px 0; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; color: var(--text-2); font-size: 20px; line-height: 1; }
.details details[open] summary::after { content: "–"; }
.details summary::-webkit-details-marker { display: none; }
.details .inner { padding: 0 0 16px; color: var(--text-2); font-size: 15.5px; }
.crumbs { padding-top: 24px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-3); text-decoration: none; }

/* Bag drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90; background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.25rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.drawer .lines { flex: 1; overflow-y: auto; padding: 6px 18px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--paper); }
.line .thumb svg, .line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .n { font-size: 17px; line-height: 1.25; }
.line .v { font-size: 13.5px; color: var(--text-2); }
.line .ctl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.line .ctl button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; font-size: 15px; }
.line .ctl .rm { width: auto; padding: 0 10px; font-size: 14px; color: var(--text-2); font-family: var(--serif); }
.line .p { font-size: 15px; text-align: right; }
.drawer footer { padding: 18px; border-top: 1px solid var(--line); }
.drawer .total { display: flex; justify-content: space-between; font-size: 19px; margin-bottom: 4px; }
.ship-to { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 15px; color: var(--text-2); }
.ship-to select { font-family: var(--serif); font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 7px 10px; min-height: 40px; }
mark.todo { background: rgba(244, 213, 138, .14); color: var(--gold); border: 1px dashed var(--gold); border-radius: 6px; padding: 0 6px; }
.drawer .fine { color: var(--text-3); font-size: 13.5px; margin-bottom: 14px; }
.drawer .btn { width: 100%; }
.empty { text-align: center; color: var(--text-3); padding: 50px 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 95; background: var(--text); color: var(--bg);
  padding: 11px 18px; border-radius: 999px; font-size: 17px; transition: all .25s ease; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Text pages (privacy, terms, support, credits) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 16px 90px; }
.doc h1 { margin-bottom: 8px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-bottom: 34px; }
.doc h2 { font-size: 1.45rem; margin-top: 46px; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 10px; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc .summary li { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 400; }
.doc .table-scroll { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.faq summary::after { content: "+"; color: var(--text-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { padding: 0 0 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 26px 0 10px; }
.contact-card p { margin: 0; color: var(--text); }
.contact-card .small { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; color: var(--text-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.site-footer .legal { margin: 0; line-height: 1.5; max-width: 760px; }

/* St. Peter's behind the verse (Ken 2026-11-14): photo darkened, fading into the page at the bottom. */
.word-bg { position: relative; isolation: isolate; overflow: hidden; }
.word-bg .bg, .word-bg .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.word-bg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 18, .62) 0%, rgba(10, 12, 18, .74) 55%, var(--bg) 100%); }
.word-bg .word { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }

/* ---------- Home intro animation (intro-head.js + intro.js) ---------- */
/* Before the script splits the verse: hidden. Failsafe: if intro.js never runs, show everything after 4 s. */
@keyframes intro-failsafe { to { visibility: visible; opacity: 1; transform: none; } }
.intro:not(.typing) .w-niv p { visibility: hidden; animation: intro-failsafe 0s 4s forwards; }
.intro .w-niv .ch { opacity: 0; transition: opacity .18s ease; }
.intro .w-niv .ch.on { opacity: 1; }
.intro .fix del::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.intro.struck .fix del::after { transform: scaleX(1); }
.intro .fix del { transition: color .5s ease; }
.intro:not(.struck) .fix del { color: inherit; }
.intro .fix .gk, .intro .fix ins, .intro .word cite { opacity: 0; transform: translateY(-.35em); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.intro.greek .fix .gk, .intro.trad .fix ins, .intro.cited .word cite { opacity: 1; transform: none; }
.intro .store-band { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.intro.done .store-band { opacity: 1; transform: none; }
.intro:not(.typing) .fix .gk, .intro:not(.typing) .fix ins, .intro:not(.typing) .word cite, .intro:not(.typing) .store-band { animation: intro-failsafe 0s 4s forwards; }
.intro:not(.typing) .fix del::after { animation: intro-failsafe-strike 0s 4s forwards; }
@keyframes intro-failsafe-strike { to { transform: scaleX(1); } }

/* Desktop: the correction hangs left-aligned under "teachings" (the quote marks hang into the margin). */
@media (min-width: 1000px) {
  .fix { align-items: flex-start; }
  .fix .gk, .fix ins { justify-content: flex-start; position: relative; left: -.36em; }
  .fix ins { left: -.3em; }
}
/* Phones and tablets: the correction gets its own centred lines inside the verse, so it never runs off the edge. */
@media (max-width: 999px) {
  .fix { display: flex; margin: .15em 0 .25em; }
}
