/* Three-Minute Daily Devotions: site styles. Matches the books: EB Garamond + Cinzel, navy + gold. */
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --navy: #23314f; --navy-deep: #18223a; --navy-ink: #111a2e;
  --gold: #9c7a35; --gold-light: #d2b06a; --gold-pale: #efe3c4;
  --paper: #faf7f0; --paper-2: #f3eee2; --ink: #1d1a16; --muted: #5d564b; --line: #e3dccb;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --max: 1120px; --radius: 6px;
  --shadow: 0 1px 2px rgba(17,26,46,.08), 0 8px 24px rgba(17,26,46,.10);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: rgba(156,122,53,.6); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--caps); color: var(--navy); font-weight: 500; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(210,176,106,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--caps); letter-spacing: .08em; font-size: 1rem; line-height: 1.15; min-height: 44px; }
.brand:hover { color: var(--gold-light); }
.brand .cross { color: var(--gold-light); font-size: 1.5rem; line-height: 1; }
.brand small { display: block; font-family: var(--serif); font-style: italic; letter-spacing: 0; font-size: .85rem; color: var(--gold-pale); text-transform: none; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: #e9e4d8; text-decoration: none; font-family: var(--caps); font-size: .82rem; letter-spacing: .1em; padding: .55rem .7rem; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
.nav a.get-link { border: 1px solid rgba(210,176,106,.55); margin-left: .4rem; }
.menu-btn { display: none; background: none; border: 1px solid rgba(210,176,106,.55); color: #fff; border-radius: 4px; padding: .55rem .9rem; min-height: 44px; min-width: 44px; font: inherit; font-size: 1rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: .5rem 1.25rem 1rem; border-bottom: 1px solid rgba(210,176,106,.35); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .2rem; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a.get-link { margin: .6rem 0 0; text-align: center; }
}

/* ---------- ornaments & buttons ---------- */
.rule { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--gold); margin: .4rem 0 1.4rem; font-size: .8rem; }
.rule::before, .rule::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .7; }
.rule.left { justify-content: flex-start; }
.eyebrow { font-family: var(--caps); font-size: .78rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--caps); font-size: .85rem; letter-spacing: .1em; text-decoration: none; padding: .8rem 1.35rem; min-height: 44px; border-radius: 4px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--navy-ink); color: var(--gold-light); }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: #82652a; color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .btn.ghost:hover { background: #fff; color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; background: #8a8376; border-color: #8a8376; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(ellipse at 70% 30%, #2b3c62 0%, var(--navy-deep) 60%, var(--navy-ink) 100%); color: #f4efe4; padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: var(--gold-light); font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: .06em; font-weight: 600; }
.hero .sub { font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--gold-pale); margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; color: #e6e0d2; }
.hero .rule { justify-content: flex-start; color: var(--gold-light); }
.hero-cover { justify-self: center; position: relative; isolation: isolate; }
.hero-cover img { width: min(340px, 70vw); border-radius: 3px; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(210,176,106,.25); transform: rotate(-2deg); }
.hero-cover img + img { position: absolute; top: 18px; left: 46px; z-index: -1; transform: rotate(5deg); filter: brightness(.8); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .rule { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-cover { order: -1; }
  .hero-cover img { width: min(230px, 58vw); }
  .hero-cover img + img { left: 30px; top: 12px; }
}

/* ---------- sections ---------- */
section.block { padding: clamp(3rem, 6vw, 5rem) 0; }
section.block.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
section.block.dark { background: var(--navy-deep); color: #ece6d8; }
section.block.dark h2 { color: var(--gold-light); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); }
.dark .section-head p { color: #cfc8b8; }
.page-head { background: var(--navy-deep); color: #ece6d8; padding: clamp(2.2rem, 5vw, 3.5rem) 0; text-align: center; border-bottom: 1px solid rgba(210,176,106,.35); }
.page-head h1 { color: var(--gold-light); margin-bottom: .3em; }
.page-head p { color: #d6cfbf; font-style: italic; font-size: 1.2rem; margin: 0 auto; max-width: 36em; }

.feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature img.cover { box-shadow: var(--shadow); border-radius: 3px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature img.cover { width: 220px; margin: 0 auto; } }

.quote { font-size: 1.3rem; font-style: italic; line-height: 1.55; border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.4rem; margin: 0 0 1rem; color: #2d2a24; }
.dark .quote { color: #f0ead9; }
.attrib { font-family: var(--caps); font-size: .85rem; letter-spacing: .12em; color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.frame { background: #fff; padding: .8rem; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 3px; }

/* ---------- book grid (series hub) ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.6rem; }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.book-card .cover-wrap { position: relative; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; background: var(--navy); }
.book-card a.cover-link:hover .cover-wrap { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(17,26,46,.1), 0 16px 34px rgba(17,26,46,.2); }
.book-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-card .vol { font-family: var(--caps); font-size: .75rem; letter-spacing: .16em; color: var(--gold); margin: 1rem 0 .15rem; }
.book-card h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.book-card h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.book-card p { font-size: 1rem; color: var(--muted); margin: 0 0 .9rem; }
.book-card .actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.book-card .actions .btn { padding: .7rem .9rem; font-size: .8rem; min-height: 44px; }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--gold); color: #fff; font-family: var(--caps); font-size: .68rem; letter-spacing: .12em; padding: .25rem .55rem; border-radius: 3px; z-index: 2; }
.badge.soon { background: rgba(255,255,255,.14); border: 1px solid rgba(210,176,106,.6); color: var(--gold-pale); }
/* drawn placeholder cover for volumes with no art yet */
.css-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.2rem;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 4px), linear-gradient(160deg, #283a60, #1a2645);
  color: var(--gold-light); }
.css-cover::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(210,176,106,.7); outline: 1px solid rgba(210,176,106,.35); outline-offset: -5px; }
.css-cover .t { font-family: var(--caps); font-weight: 600; letter-spacing: .08em; font-size: clamp(.9rem, 1.6vw, 1.05rem); line-height: 1.25; }
.css-cover .s { font-style: italic; font-size: .95rem; margin-top: .5rem; color: var(--gold-pale); }
.css-cover .x { font-size: 2rem; margin: .8rem 0; }
.css-cover .a { font-family: var(--caps); font-size: .7rem; letter-spacing: .12em; }
.book-card.soon { opacity: .9; }
.series-note { text-align: center; color: var(--muted); font-style: italic; margin-top: 2.5rem; }

/* ---------- book detail ---------- */
.book-top { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.book-top .cover img { border-radius: 3px; box-shadow: 0 20px 44px rgba(17,26,46,.28); }
.book-top h1 { margin-bottom: .2em; }
.book-top .subtitle { font-style: italic; font-size: 1.45rem; color: var(--gold); margin-bottom: .3rem; }
.book-top .byline { font-family: var(--caps); letter-spacing: .1em; font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: 1rem; color: var(--muted); margin: 0 0 1.4rem; padding: 0; list-style: none; }
.meta li::before { content: "\2726  "; color: var(--gold); }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-top: 1.6rem; }
.buy-box h3 { font-size: .95rem; letter-spacing: .14em; margin-bottom: .8rem; }
.format { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.format:first-of-type { border-top: 0; }
.format .name { font-weight: 600; }
.format .price { color: var(--muted); font-style: italic; margin-left: .4rem; }
.format .btn { padding: .55rem 1rem; font-size: .75rem; }
.get-lead { font-size: 1rem; color: var(--muted); margin: 0 0 .9rem; }
.get-actions { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; max-width: 26rem; }
.get-actions .btn { padding: .7rem 1rem; font-size: .8rem; width: 100%; text-align: center; }
.buy-box .get-actions { margin-top: .2rem; }
@media (max-width: 800px) { .book-top { grid-template-columns: 1fr; } .book-top .cover { max-width: 240px; margin: 0 auto; } }

/* sample devotions, typeset like the book */
.samples-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.samples-nav button { font: inherit; font-size: 1rem; background: #fff; border: 1px solid var(--line); color: var(--navy); border-radius: 2rem; padding: .55rem 1.1rem; min-height: 44px; cursor: pointer; }
.samples-nav button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
article.devotion { background: #fffdf8; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 3px; padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1.2rem, 6vw, 4rem); max-width: 760px; margin: 0 auto; }
article.devotion h3 { text-align: center; font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .2rem; letter-spacing: .05em; }
article.devotion .dref { text-align: center; font-variant: small-caps; letter-spacing: .08em; color: var(--gold); margin-bottom: 1rem; }
article.devotion blockquote.verse { font-style: italic; text-align: center; margin: 0 auto 1.4rem; max-width: 34em; color: #333; }
article.devotion blockquote.verse em { font-style: normal; }
article.devotion img.dart { width: min(460px, 100%); margin: 0 auto 1.6rem; mix-blend-mode: multiply; }
article.devotion p { text-align: justify; hyphens: none; text-indent: 1.4em; margin: 0 0 .25em; line-height: 1.62; }
article.devotion p.first { text-indent: 0; }
article.devotion p.first::first-letter { font-family: var(--caps); float: left; font-size: 3.3em; line-height: .85; padding: .08em .1em 0 0; color: var(--navy); }
article.devotion em.emph { font-style: italic; font-weight: 700; }
article.devotion .note { text-align: center; text-indent: 0; font-style: italic; color: var(--muted); font-size: .95rem; margin-top: 1.6rem; }
@media (max-width: 560px) { article.devotion p { text-align: left; } }

/* ---------- get the books ---------- */
.product-list { display: grid; gap: 1.4rem; max-width: 860px; margin: 0 auto; }
.product { display: grid; grid-template-columns: 140px 1fr; gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.product img { border-radius: 2px; }
.product h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.product h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.product .st { font-style: italic; color: var(--gold); margin-bottom: .5rem; }

/* ---------- watch ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video .player { position: relative; aspect-ratio: 16 / 9; background: var(--navy-ink); }
.video .player iframe, .video .player button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .player button { cursor: pointer; padding: 0; background: #000 center / cover no-repeat; }
.video .player button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(156,122,53,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; }
.video .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold-pale); text-align: center; padding: 1rem; background: linear-gradient(160deg, #283a60, #1a2645); }
.video .placeholder .x { font-size: 2rem; color: var(--gold-light); }
.video .placeholder small { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: #b9b3a5; margin-top: .4rem; }
.video h3 { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; font-weight: 600; padding: .8rem 1rem 1rem; margin: 0; color: var(--ink); }

/* ---------- about ---------- */
.about-body p { font-size: 1.2rem; }
.about-body p:first-of-type::first-letter { font-family: var(--caps); float: left; font-size: 3.4em; line-height: .85; padding: .06em .1em 0 0; color: var(--navy); }
figure { margin: 0; }
figcaption { font-style: italic; color: var(--muted); font-size: 1rem; text-align: center; margin-top: .7rem; }
.study img { mix-blend-mode: multiply; }

/* ---------- forms ---------- */
form.stack { display: grid; gap: 1rem; }
label { font-family: var(--caps); font-size: .78rem; letter-spacing: .12em; color: var(--navy); display: grid; gap: .35rem; }
input, textarea { font: inherit; font-size: 1.05rem; padding: .7rem .8rem; border: 1px solid #cfc6b1; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.hidden { position: absolute !important; left: -9999px !important; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; max-width: 520px; margin: 0 auto; }
.inline-form input { flex: 1 1 240px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-ink); color: #bdb6a6; padding: 3rem 0 2rem; font-size: 1rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--caps); color: var(--gold-light); font-weight: 500; letter-spacing: .12em; font-size: .85rem; margin: 0 0 .8rem; }
.site-footer a { color: #e5dfd1; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: #8f8879; text-align: center; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; }

/* ---------- small-screen refinements ---------- */
@media (max-width: 560px) {
  .book-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .book-card h3 { font-size: 1.05rem; }
  .book-card p { font-size: 1rem; }
  .book-card .actions .btn { flex: 1 1 100%; }
  .css-cover { padding: .7rem; }
  .css-cover .t { font-size: .72rem; }
  .css-cover .s { font-size: .78rem; }
  .css-cover .x { font-size: 1.3rem; margin: .5rem 0; }
  .css-cover .a { font-size: .55rem; }
  .badge { font-size: .58rem; top: .5rem; left: .5rem; }
  .product { grid-template-columns: 84px 1fr; gap: .9rem; padding: 1rem; }
}

/* ---------- watch: coming soon ---------- */
.soon-card { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.soon-card .x { font-size: 2.2rem; color: var(--gold); }
.soon-card [hidden], [hidden] { display: none !important; }
