:root {
  color-scheme: dark;
  --ink: #14130f;
  --deep: #171917;
  --ivory: #f4eee1;
  --muted: #c6bda9;
  --gold: #e6c887;
  --paper: #f2ece0;
  --paper-ink: #28231a;
  --serif: "Noto Serif KR", "Batang", "바탕", "AppleMyungjo", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 16px/1.7 var(--sans); }
h1, h2, h3, p, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #be8730; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--gold); }
.shell { width: min(100% - 112px, 1220px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 10px 18px; color: var(--ink); background: var(--gold); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 1; border-bottom: 1px solid #fff1d11e; }
.header-inner, nav, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { gap: 10px; font-size: 15px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.brand img { width: 38px; }
.brand small { display: block; margin-top: 4px; color: var(--gold); font: 10px/1 Georgia, serif; letter-spacing: .16em; text-transform: uppercase; }
nav { gap: clamp(16px, 3.5vw, 48px); font-size: 13px; color: var(--muted); }
nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--gold); }
.nav-demo { padding: 8px 14px; border: 1px solid #fff1d141; border-radius: 30px; color: var(--ivory); }
.nav-demo span { margin-left: 3px; }

.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: .87fr 1.13fr; min-height: clamp(585px, 53vw, 766px); align-items: stretch; }
.hero-copy { align-self: center; z-index: 1; padding: 58px 22px 68px 0; }
.hero h1, h2, h3 { font-family: var(--serif); word-break: keep-all; }
.hero h1 { font-size: clamp(54px, 5.65vw, 91px); line-height: 1.13; letter-spacing: -.088em; font-weight: 600; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { max-width: 30ch; margin-top: 28px; color: var(--muted); font-size: clamp(15px, 1.36vw, 19px); word-break: keep-all; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; gap: 22px; min-height: 49px; border-radius: 40px; padding: 10px 20px; font-weight: 750; font-size: 14px; }
.primary { color: var(--ink); background: var(--gold); }
.primary:hover { background: #f6dfae; }
.text-link { font-size: 14px; color: var(--ivory); }
.text-link span { margin-left: 4px; color: var(--gold); }
.hero-preview { position: relative; isolation: isolate; display: grid; place-items: center end; min-width: 0; }
.hero-art { position: absolute; z-index: -1; inset: 0 min(0px, (1220px - 100vw) / 2) 0 -13%; background: linear-gradient(90deg, var(--ink), #14130f18 35%, #14130f0a 72%, #14130f8f), linear-gradient(0deg, #14130f 1%, #14130f08 30%, #14130f15 77%, #14130f69), url("assets/matthew-10.webp") 34% 8% / cover; }
.phone-link { display: block; width: clamp(215px, 22.5vw, 321px); margin: 24px clamp(12px, 3vw, 52px) 54px 0; border-radius: 30px; transform: rotate(4deg); transition: transform 220ms ease; }
.phone-link:hover, .phone-link:focus-visible { transform: rotate(0); }
.phone { padding: 7px; overflow: hidden; color: #f6f0e4; background: #141310; border: 1px solid #c5ad7f; border-radius: 29px; box-shadow: 0 28px 68px #080704c7, 0 0 0 4px #1d1b16, 0 0 0 5px #dfc89766; }
.phone-top { display: flex; justify-content: space-between; padding: 12px 11px 10px; color: #e5dbc4; font-size: 10px; letter-spacing: -.02em; }
.phone-scene { aspect-ratio: .91; object-fit: cover; object-position: center 45%; border-radius: 5px; }
.phone-passage { padding: 11px 11px 10px; }
.phone-passage > span { color: var(--gold); font-size: 10px; }
.phone-passage p { margin-top: 4px; font: 500 clamp(11px, 1.09vw, 16px)/1.52 var(--serif); word-break: keep-all; }
.phone-play { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.phone-play span:first-child { display: grid; place-items: center; width: 26px; height: 26px; padding-left: 2px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 9px; }
.phone-play span:last-child { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold) 31%, #504635 31%); }
.phone-tabs { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px 8px; border-top: 1px solid #eed39b2e; color: #c8bba2; font-size: 9px; }
.phone-tabs strong { color: var(--gold); padding: 3px 8px; background: #3c3222; border-radius: 20px; }
.hero-caption { position: absolute; bottom: 17px; right: 0; color: var(--ivory); font-family: var(--serif); font-size: 14px; }
.hero-caption span { margin-left: 9px; color: var(--muted); font: 11px var(--sans); }

.features { color-scheme: light; color: var(--paper-ink); background: var(--paper); padding-block: clamp(62px, 7.4vw, 108px); }
.section-heading { display: grid; grid-template-columns: 1fr .74fr; gap: 26px; align-items: end; }
h2 { font-size: clamp(35px, 4.4vw, 65px); font-weight: 600; letter-spacing: -.073em; line-height: 1.17; }
.section-heading p, .feature-list p { color: #665b49; word-break: keep-all; }
.section-heading p { max-width: 30ch; padding-bottom: 4px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(17px, 2.4vw, 32px); margin-top: 36px; }
.feature-list figure { overflow: hidden; border-radius: 3px; background: #beaa87; }
.feature-list img { aspect-ratio: 1.62; object-fit: cover; object-position: center 44%; }
.feature-list article:nth-child(2) img { object-position: center 43%; }
.feature-list article:nth-child(3) img { object-position: center 62%; }
.feature-list h3 { margin-top: 15px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.065em; line-height: 1.3; }
.feature-list p { max-width: 28ch; margin-top: 7px; font-size: 14px; }

.experience { background: var(--deep); border-block: 1px solid #e9d7ad31; }
.experience-inner { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(25px, 7vw, 112px); align-items: center; padding-block: clamp(62px, 8vw, 112px); }
.section-copy p { max-width: 28ch; margin-top: 20px; color: var(--muted); word-break: keep-all; }
.section-copy .edition { margin: 0 0 14px; color: var(--gold); font-size: 13px; }
.reader { position: relative; display: grid; grid-template-columns: .86fr 1.14fr; min-width: 0; border: 1px solid #e9d7ad4d; border-radius: 9px; background: #242520; overflow: hidden; }
.reader-art { position: relative; min-height: 360px; touch-action: pan-x pinch-zoom; }
.reader-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.reader-count { position: absolute; top: 13px; left: 13px; padding: 3px 10px; color: var(--ivory); background: #151310eb; border-radius: 100px; font-size: 12px; }
.reader-body { align-self: center; min-width: 0; padding: clamp(17px, 2vw, 30px); }
.passage { min-height: 177px; }
.reference { color: var(--gold); font-size: 13px; }
blockquote { margin-top: 9px; font: 500 clamp(17px, 1.65vw, 22px)/1.55 var(--serif); word-break: keep-all; }
.current-word { color: #ffdb80; }
.reader-actions, .verse-navigation { display: flex; gap: 7px; align-items: center; }
.reader-actions { justify-content: space-between; flex-wrap: wrap; margin-top: 14px; }
.reader-actions button { min-height: 43px; min-width: 43px; color: var(--ivory); background: #191a17; border: 1px solid #e9d7ad61; border-radius: 5px; }
.reader-actions button:hover:not(:disabled) { border-color: var(--gold); }
.reader-actions button:disabled { opacity: .46; cursor: default; }
.reader-actions .listen { padding-inline: 10px; color: var(--gold); font-size: 13px; }
.listen span:first-child { margin-right: 3px; }
.speech-note { color: var(--muted); margin-top: 9px; font-size: 12px; min-height: 1.75em; }

.demo { background: #231c12; border-bottom: 1px solid #e9d7ad31; }
.demo-inner { display: grid; grid-template-columns: 1fr .8fr; gap: 25px 54px; align-items: center; padding-block: clamp(48px, 6vw, 79px); }
.demo h2 { font-size: clamp(30px, 3.5vw, 48px); }
.demo p { margin-top: 12px; color: var(--muted); font-size: 15px; word-break: keep-all; }
.demo details { border-block: 1px solid #e9d7ad57; }
.demo summary { padding: 15px 7px; color: var(--gold); }
.demo ol { margin: 0; padding: 0 15px 15px 26px; color: var(--muted); font-size: 14px; }
.demo li + li { margin-top: 7px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 79px; color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { grid-template-columns: .95fr 1.05fr; }
  .hero-art { right: -36px; }
  .reader { grid-template-columns: .75fr 1.25fr; }
  .reader-art { min-height: 400px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 65px; gap: 10px; }
  .brand { gap: 6px; font-size: 13px; }
  .brand img { width: 33px; }
  .brand small { font-size: 9px; }
  nav { gap: 12px; font-size: 12px; }
  nav a[href="#app"] { display: none; }
  .nav-demo { padding: 6px 9px; }
  .hero-inner, .section-heading, .experience-inner, .demo-inner { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding: 47px 0 16px; }
  .hero h1 { font-size: clamp(49px, 11.4vw, 73px); }
  .hero-copy p { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-preview { min-height: 395px; }
  .hero-art { inset: 0 -20px 0; background-position: center, center, 40% 8%; background-image: linear-gradient(0deg, #14130f 2%, #14130f00 24%, #14130f00 75%, var(--ink)), linear-gradient(90deg, #14130f33, #14130f00 42%, #14130f55), url("assets/matthew-10.webp"); }
  .phone-link { width: clamp(169px, 46vw, 250px); margin: 22px clamp(11px, 8vw, 55px) 44px 0; }
  .hero-caption { right: 0; bottom: 12px; }
  .section-heading { gap: 10px; }
  .section-heading br, .section-copy br { display: none; }
  .feature-list { margin-top: 26px; }
  .experience-inner { gap: 24px; }
  .section-copy p { margin-top: 12px; }
  .section-copy .edition { margin: 0 0 9px; }
  .reader { grid-template-columns: .9fr 1.1fr; }
  .reader-art { min-height: 305px; }
  .passage { min-height: 144px; }
}
@media (max-width: 520px) {
  nav a[href="#experience"] { display: none; }
  .feature-list { grid-template-columns: 1fr; gap: 29px; }
  .feature-list img { aspect-ratio: 2 / 1; }
  .reader { grid-template-columns: 1fr; }
  .reader-art { min-height: 0; aspect-ratio: 1.65; }
  .reader-art img { object-position: center 42%; }
  .passage { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-link { transition: none; }
}
