/* 말씀 Bible 4.5 — Immersive Book / cinematic editorial system */
:root{
 --bg:#e5dfd2; --paper:#faf7f0; --text:#21313c; --muted:#7a7f7e; --faint:#a6a29a;
 --line:#e7e0d4;--panel:#f0ebe0;--accent:#173c4e;--accent2:#2f6877;
 --gold:#b9945d;--accentSoft:#e6eff0;--shadow:0 18px 46px rgba(22,41,54,.09);
}
html[data-theme=dark]{--bg:#101d25;--paper:#172a34;--text:#f3ecdf;--muted:#b3b1a9;--faint:#8d948e;--line:#304651;--panel:#1d333e;--accent:#d9b87d;--accent2:#bbdfdc;--gold:#dfbe88;--accentSoft:#294653}
html,body{overscroll-behavior-x:none}
body{background:#ddd7cc}
html[data-theme=dark] body{background:#09151c}
.app-shell{box-shadow:0 20px 80px rgba(6,25,36,.17)}
/* Dark nav and immersive masthead set the brand language across the whole app. */
.topbar{background:#112934;color:#f6f0e7;border-bottom:1px solid #c1a16c40;padding-left:21px;padding-right:21px;height:calc(66px + env(safe-area-inset-top,0px));}
.brand-mini{color:#fffaf0;gap:12px;font-size:22px}
.brand-mark{height:36px;width:36px;color:#efcd91;background:#d2b07c13;border:1px solid #dcc18d69;font-size:21px}
.brand-word small{color:#c7a77d;letter-spacing:2.1px}
.header-actions .icon-btn{color:#eae5d9}
.header-actions .icon-btn:active{background:#ffffff26}
.header-language{color:#ebd7b8!important;border:1px solid #ffffff30!important;background:#ffffff12!important}
.header-language span{color:#e6c68b}
.bottombar{background:#102a37;border:0;box-shadow:0 -9px 33px rgba(20,41,46,.18);height:calc(67px + env(safe-area-inset-bottom,0px));}
.nav-btn{color:#99b0ba;font-size:10px;letter-spacing:.3px;gap:4px}
.nav-btn svg{width:20px;height:20px}
.nav-btn.active{color:#f2cf92;background:linear-gradient(180deg,#c19d6147,#122c3600 88%)}
.nav-btn.active:before{height:3px;width:38%;left:31%;background:#dcb776}
.nav-btn.active span{font-weight:800}
.nav-btn:not(.active):hover{color:white}
/* Immersive full-bleed cinematic cover. The photo is only used for its actual matching Bible scene. */
.content.reader-content.v45-reader{background:var(--paper);padding:0 0 42px;max-width:none}
.v45-cover{height:330px;position:relative;overflow:hidden;background:#0b202c;color:#fff;isolation:isolate}
.v45-cover-photo{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:52% center;transform:scale(1.015)}
.v45-cover.v45-mark .v45-cover-photo{background-image:url('./media/galilee-poster.jpg');background-position:54% 50%}
.v45-cover.v45-creation .v45-cover-photo{background-image:radial-gradient(circle at 74% 23%,#d4a76685 0,transparent 17%),linear-gradient(170deg,#6f8b91 0%,#152e3a 50%,#080f1d 100%)}
.v45-cover.v45-david .v45-cover-photo{background-image:radial-gradient(ellipse at 62% 84%,#ad88588f 0,transparent 52%),linear-gradient(140deg,#20202a,#46555c 45%,#102735 85%)}
.v45-cover.v45-generic .v45-cover-photo{background-image:radial-gradient(circle at 68% 35%,#caa57755 0%,transparent 18%),radial-gradient(ellipse at 68% 78%,#366071,transparent 56%),linear-gradient(135deg,#102734,#254253 70%,#152d3b)}
.v45-cover-wash{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(4,19,29,.44) 0%,rgba(5,19,29,.10) 26%,rgba(4,18,27,.47) 50%,rgba(3,16,25,.94) 100%)}
.v45-cover.v45-generic .v45-cover-wash{background:radial-gradient(ellipse at 15% 85%,rgba(5,21,27,.1),transparent),linear-gradient(180deg,#0b1b2a5c,#071c2fe8)}
.v45-cover.v45-generic:after,.v45-cover.v45-creation:after,.v45-cover.v45-david:after{content:'✧';position:absolute;right:20px;top:35px;color:#e2bb7852;font:210px/.9 Georgia,serif;transform:rotate(-18deg);z-index:-1}
.v45-cover-content{position:relative;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:17px 23px 26px}
.v45-cover-top{display:flex;align-items:center;justify-content:space-between;color:#f6e4c4b9;letter-spacing:2.1px;font:700 9px/1.4 system-ui,sans-serif}
.v45-small-star{color:#dbb473;font-size:17px;vertical-align:middle;margin-right:4px}
.v45-cover-number{font:500 11px Georgia,serif;letter-spacing:1px;color:#e6c48f}.v45-cover-number span{color:#ffffff55;padding:0 4px}
.v45-cover-bottom{max-width:600px}
.v45-cover-kicker{font-size:10px;color:#e7c493;letter-spacing:2.3px;font-weight:750;margin:0 0 10px;text-shadow:0 1px 4px #07111d}
.v45-cover-kicker span{margin:0 5px;opacity:.5}
.v45-cover h1{font:600 clamp(34px,8.7vw,51px)/1.25 'Iowan Old Style','AppleMyungjo','Noto Serif KR',Georgia,serif;letter-spacing:-2px;color:#fff9ef;margin:0;text-shadow:0 3px 10px rgba(0,0,0,.4)}
.v45-cover-bottom>p{font-size:13px;color:#e2dfd6;margin:8px 0 15px;letter-spacing:-.15px;text-shadow:0 1px 4px #001}
.v45-cinema-action{display:flex;align-items:center;text-align:left;gap:10px;border-radius:13px;border:1px solid #d5bc906c;background:rgba(12,38,46,.76);color:#fff;min-height:63px;padding:8px 12px;max-width:390px;width:100%;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 10px 24px #06172266}
.v45-cinema-action:active{background:rgba(37,72,81,.92)}
.v45-action-icon{height:42px;width:42px;border-radius:50%;display:grid;place-items:center;border:1px solid #e2c18a;background:#d7b47820;flex:none;color:#f0d5a3}
.v45-action-icon svg{height:20px;width:20px}
.v45-action-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.v45-action-copy strong{font-size:13px;font-weight:750;color:white}
.v45-action-copy small{font-size:10px;color:#cdbfa8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v45-action-copy small span{opacity:.5}
.v45-action-arrow{color:#e9c99b;font-size:18px}
.v45-cover-caption{display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.6px;color:#d9c7a9;margin-bottom:15px}
.v45-caption-rule{width:21px;height:1px;background:#d6b57d}
/* The chapter tray sits in the same physical layer as the reader: tactile, not another card wall. */
.v45-chapter-tray{position:relative;z-index:4;display:flex;align-items:center;gap:10px;min-height:68px;margin:-1px 0 0;padding:10px 22px 7px;background:var(--paper);box-shadow:0 -10px 24px #07192722}
.v45-tray-label{white-space:nowrap;color:var(--gold);font:800 9px/1.45 system-ui,sans-serif;letter-spacing:1.3px;max-width:60px}
.v45-reader .chapter-controls{display:flex;flex:1;min-width:0;max-width:none;border:1px solid var(--line);background:var(--paper);padding:2px 3px;margin:0;border-radius:10px;box-shadow:none}
.v45-reader .chapter-controls .choosebook{justify-content:flex-start;padding-left:9px;font-size:12px}
.v45-reader .chapter-controls .choosechapter{font-size:12px}
.v45-reader .chapter-arrows{border-left:1px solid var(--line);margin-left:0;padding-left:2px}
.v45-reader .chapter-arrows button{min-width:32px;width:34px;min-height:40px}
.v45-reader-toolbar{display:flex;flex-direction:column;gap:0;padding:5px 22px 9px;background:var(--paper)}
.v45-reader-toolbar .reader-options{gap:6px;justify-content:space-between;}
.v45-reader-toolbar .reader-options .pill{border:0;background:#ece5d9;color:#37525d;font-size:10px;min-height:34px;padding:7px 10px;border-radius:8px;font-weight:730}
.v45-reader-toolbar .reader-options .pill.on{background:#e0e8e7;color:#1c4553}
html[data-theme=dark] .v45-reader-toolbar .reader-options .pill{background:#28414d;color:#eee5db}
.v45-reader-toolbar .font-button{background:none;border:0;padding:0 4px;min-height:38px;min-width:34px;border-radius:8px}
.v45-reader-toolbar .reader-audio-fold{background:transparent;border:0;border-top:1px solid var(--line);margin:5px 0 0;border-radius:0;overflow:visible}
.v45-reader-toolbar .reader-audio-fold summary{min-height:39px;padding:3px 2px;gap:9px}
.v45-reader-toolbar .reader-audio-fold summary strong{font-size:11px}.v45-reader-toolbar .reader-audio-fold summary small{font-size:9px}
.v45-reader-toolbar .audio-summary-icon{height:27px;width:27px;border-radius:50%;background:#204856;color:#f7ecd7}
.v45-reader-toolbar .audio-summary-icon svg{width:13px;height:13px}
.v45-reader-toolbar .audio-summary-chevron{font-size:14px}
.v45-reader-toolbar .reader-audio-inner{padding:0 0 9px}
/* Reading section is a distinctive magazine spread with big issue number and subtle left note. */
.v45-reading-heading{position:relative;display:flex;align-items:center;padding:18px 22px 12px;border-top:1px solid var(--line);gap:14px;background:var(--paper)}
.v45-reading-index{font:italic 51px/.93 Georgia,serif;letter-spacing:-3px;color:#c5a676;opacity:.8;min-width:57px}
.v45-reading-meta{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.v45-reading-meta span{font:800 9px/1.4 system-ui;letter-spacing:2px;color:var(--gold)}
.v45-reading-meta strong{font:650 18px/1.4 'Iowan Old Style','AppleMyungjo',Georgia,serif;color:var(--text)}
.v45-reading-meta small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v45-reading-emblem{font-size:28px;color:#c9b69c;opacity:.8}
.v45-reader .scripture-leaf{background:var(--paper);border:0;border-top:1px solid var(--line);border-radius:0;margin:0 16px;box-shadow:none}
.v45-reader .scripture-leaf:before{display:none}
.v45-reader .verses{padding:8px 0 30px;margin:0}
.v45-reader .verse{padding:14px 6px 14px 3px;border-bottom:1px solid #c4b69d2e;border-radius:0;align-items:flex-start;gap:16px;line-height:1.9}
.v45-reader .verse:hover{background:transparent}
.v45-reader .verse.selected{background:linear-gradient(90deg,#d5bd8b22,transparent 85%);border-radius:8px}
.v45-reader .verse-num{padding:3px 2px 0 0;min-width:24px;font:italic 16px Georgia,serif;color:#a68150}
.v45-reader .verse-body{font-family:'AppleMyungjo','Iowan Old Style','Noto Serif KR','Batang','Nanum Myeongjo',Georgia,serif;font-weight:400;line-height:2.0;letter-spacing:-.55px;word-break:keep-all;font-size:var(--reader-font,19px)}
.v45-reader .verse-en{font-family:Georgia,serif;line-height:1.75;letter-spacing:0}
.v45-reader .verse-dock{margin:21px 18px;padding:17px;border:1px solid #c4ae855d;border-radius:12px;background:var(--panel)}
.v45-reader .end-chapter{margin:21px 16px 0}
.v45-reader .reader-legal{padding:10px 16px 25px}
/* Pages use deeper hierarchies than before, with immersive dark covers. */
.editorial-page .page-heading{border:0;background:radial-gradient(circle at 80% 27%,#5f718166,transparent 38%),linear-gradient(125deg,#102b3a,#1d4654 63%,#133444);margin:-24px -22px 30px;padding:46px 24px 40px;overflow:hidden;position:relative;color:#fff}
.editorial-page .page-heading:after{content:'✧';position:absolute;right:-11px;top:-58px;font:normal 235px/.9 Georgia,serif;color:#d2af7442;transform:rotate(21deg);pointer-events:none}
.editorial-page .page-heading .eyebrow{color:#dfbb83;letter-spacing:2.6px;font-size:10px;position:relative;z-index:1}
.editorial-page .page-heading h1{color:#fff8ee;font:650 33px/1.3 'Iowan Old Style','AppleMyungjo',Georgia,serif;letter-spacing:-1px;position:relative;z-index:1}
.editorial-page .page-heading .page-intro{color:#c7d5d2;line-height:1.8;max-width:390px;position:relative;z-index:1;font-size:12px;margin-top:8px}
.library-page .stats-grid{gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--paper);box-shadow:0 7px 25px #122b340b}
.library-page .stat{border:none;border-right:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:20px 7px}
.library-page .stat:last-child{border-right:0}
.library-page .stat strong{font-size:32px;color:var(--accent);font-weight:600}
.editorial-page .section-heading h2{font-size:19px}
.editorial-page .research-card,.editorial-page .reflect-card,.editorial-page .note-card,.editorial-page .lib-item{box-shadow:0 7px 20px #122b3409;border-radius:12px}
/* Keep film itself cinematic, not reskinned by reader styles */
@media(min-width:721px){.v45-cover{height:390px}.v45-cover-content{padding:23px 36px 30px}.v45-cover h1{font-size:54px}.v45-chapter-tray,.v45-reader-toolbar,.v45-reading-heading{padding-left:34px;padding-right:34px}.v45-reader .scripture-leaf{margin:0 27px}.editorial-page .page-heading{margin-left:-22px;margin-right:-22px}}
@media(max-width:400px){.v45-cover{height:310px}.v45-cover-content{padding:15px 18px 20px}.v45-cover h1{font-size:35px}.v45-chapter-tray{padding-left:13px;padding-right:13px;gap:6px}.v45-tray-label{font-size:8px;max-width:48px}.v45-reader .chapter-controls .choosebook{padding-left:5px;padding-right:5px}.v45-reader .chapter-controls .choosechapter{padding-left:4px;padding-right:4px}.v45-reader-toolbar,.v45-reading-heading{padding-left:15px;padding-right:15px}.v45-reader .scripture-leaf{margin:0 10px}.v45-reading-index{font-size:43px;min-width:47px}.v45-reading-emblem{font-size:23px}.editorial-page .page-heading{margin-left:-16px;margin-right:-16px;padding-left:17px;padding-right:17px}}
@media(max-width:345px){.v45-cover{height:285px}.v45-cover h1{font-size:32px}.v45-cover-bottom>p{font-size:11px}.v45-cinema-action{min-height:55px}.v45-action-icon{width:35px;height:35px}.v45-action-copy small{font-size:9px}.v45-tray-label{display:none}.v45-reader .chapter-controls .choosebook{font-size:11px}.v45-reader .chapter-controls .choosechapter{font-size:11px}.v45-reader .chapter-arrows button{min-width:30px;width:30px}.v45-reader-toolbar .reader-options .pill{font-size:9px;padding:7px 6px}}
@media(prefers-reduced-motion:reduce){.v45-cover-photo{transform:none}}

/* A quiet, text-first reading page. */
.book-reader { max-width: 760px; margin-inline: auto; }
.book-reader .book-chapter-nav { margin: 14px clamp(12px, 4vw, 32px) 0; }
.book-reader .book-heading { text-align: center; padding: 26px 12px 12px; }
.book-reader .book-heading h1 {
  margin: 0 0 6px;
  color: var(--ink, var(--text));
  font: 600 clamp(28px, 7vw, 44px)/1.24 'AppleMyungjo', 'Batang', Georgia, serif;
  letter-spacing: -.025em;
}
.book-reader .book-heading span { font-size: 12px; color: var(--muted); }
.book-reader .book-actions {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: .15rem .8rem; margin: 0 16px 10px;
}
.book-reader .book-actions > button,
.book-reader .book-settings > summary {
  border: 0; padding: 8px; min-height: 44px; background: none; color: inherit;
  font: inherit; font-size: 13px; cursor: pointer; text-underline-offset: .24em;
}
.book-reader .book-settings[open] { width: 100%; }
.book-reader .book-settings[open] > summary { text-align: center; }
.book-reader .book-settings .v45-reader-toolbar { margin: 0; }
.book-reader .scripture-leaf { margin-top: 0; }

.home-page { width: min(100%, 960px); margin-inline: auto; padding: 14px clamp(14px, 4vw, 36px) 24px; }
.home-hero { min-height: clamp(235px, 43vw, 390px); position: relative; isolation: isolate; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; color: #fff9ed; background: #172a2b; }
.home-hero > img, .home-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.home-hero > img { object-fit: cover; object-position: center 55%; }
.home-hero::after { content: ''; background: linear-gradient(12deg,#091c20ed 5%,#091c20b8 33%,transparent 78%); }
.home-hero-copy { padding: clamp(19px,5vw,42px); }
.home-hero h1 { max-width: 15ch; font: 600 clamp(28px,6vw,49px)/1.14 AppleMyungjo,Batang,Georgia,serif; margin: 0 0 14px; letter-spacing: -.035em; }
.home-hero-watch { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #e5d0ad; background: #ede0bf; color: #192924; font-weight: 670; cursor: pointer; }
.home-resume { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 66px; margin-top: 15px; padding: 11px 15px; text-align: start; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.home-resume strong, .home-resume small, .home-film-card strong, .home-film-card small { display: block; }
.home-resume small, .home-film-card small { color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
.home-resume-icon { color: var(--accent); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accentSoft); }
.home-arrow { margin-inline-start: auto; }
.home-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.home-links button { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); cursor: pointer; font-size: .79rem; }
.home-page svg { width: 17px; height: 17px; flex-shrink: 0; }
.home-featured { margin-top: 25px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.home-section-heading h2 { font-family: AppleMyungjo,Batang,Georgia,serif; font-size: clamp(21px,4.5vw,27px); margin: 0; }
.home-section-heading button { min-height: 44px; border: 0; padding: .3rem; background: none; color: var(--accent); font-size: .78rem; cursor: pointer; }
.home-film-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.home-film-card { display: flex; flex-direction: column; text-align: start; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; background: var(--paper); color: var(--text); cursor: pointer; min-width: 0; }
.home-film-card > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.home-film-card > span { display: grid; gap: 5px; padding: 10px; }
.home-film-card strong { font-size: .87rem; line-height: 1.3; overflow-wrap: anywhere; }
.home-film-card small { line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 440px) {
  .home-film-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-film-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .home-film-card:last-child > img { width: calc(50% - 5px); }
}
