:root {
  color-scheme: light; --ink: #183438; --muted: #536666; --teal: #1f5557; --deep: #10292e;
  --paper: #f7f6f0; --white: #fffefa; --line: #dfe3d8; --gold: #eed18f;
  --radius: 22px; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.035em; }
h3 { line-height: 1.3; }
a { color: var(--teal); }
button, textarea, select, input { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #207874; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--gold); }
.shell { width: min(1136px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -8rem; padding: .5rem 1rem; z-index: 2; background: var(--white); }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.mast-row, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mast-row { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.brand-mark { width: 38px; height: 38px; display: block; position: relative; overflow: hidden; flex: none; border-radius: 8px; }
.brand-mark img { position: absolute; top: -9%; left: 50%; height: 156%; width: auto; transform: translateX(-50%); }
.footer .brand-mark { width: 28px; height: 28px; }
.mast-row nav { display: flex; gap: clamp(12px, 3vw, 30px); }
.mast-row nav a { color: var(--muted); font-weight: 650; font-size: .92rem; text-decoration: none; padding: .55rem 0; }
.mast-row nav a:hover, .mast-row nav a[aria-current] { color: var(--teal); box-shadow: 0 2px var(--teal); }
main { min-height: 58vh; padding-block: 32px 12px; }
.hero { border-radius: 32px; color: var(--white); background: radial-gradient(ellipse at 90% 10%, #305b59 0%, transparent 53%), var(--deep); display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: clamp(22px, 4vw, 64px); padding: clamp(24px, 6vw, 68px); }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .13em; color: var(--teal); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin: 16px 0 19px; }
.hero .lede { max-width: 39ch; color: #e1e8e2; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.button, .icon-button { display: inline-flex; gap: .5em; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-size: .93rem; font-weight: 700; padding: .68rem 1rem; text-decoration: none; min-height: 44px; }
.button:hover, .icon-button:hover { filter: brightness(.95); }
.primary { color: white; background: var(--teal); border-color: var(--teal); }
.gold { color: var(--deep); background: var(--gold); border-color: var(--gold); }
.text-link { color: var(--teal); font-size: .92rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.light { color: var(--gold); }
.hero-preview { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 13px; position: relative; overflow: hidden; border: 1px solid #ffffff38; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); background: linear-gradient(155deg, #d0d9b817, #0b292d65); }
.hero-preview h2 { color: var(--white); }
.hero-preview p:not(.eyebrow) { color: #e1e8e2; }
.preview-mark { color: var(--gold); width: clamp(70px, 12vw, 108px); margin-bottom: auto; padding-bottom: 14px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.feature, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 34px); }
.feature { display: grid; align-content: start; gap: 12px; text-decoration: none; color: var(--ink); }
.feature:hover { border-color: #8ca8a4; }
.feature p, .page-heading > p:last-child, .install p:last-child { color: var(--muted); }
.feature-number { color: var(--teal); font-size: .8rem; font-weight: 800; padding: .4rem .65rem; border-radius: 9px; justify-self: start; background: #e8efea; }
.install, .app-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.install { margin-top: 18px; }
.install h2 { margin: 7px 0; }
.app-banner { position: relative; margin-top: 16px; padding: 12px 56px 12px 15px; background: #e8efea; border: 1px solid #cddad1; border-radius: 16px; gap: 8px 12px; }
.app-banner span { display: block; color: var(--muted); font-size: .87rem; }
.icon-button { min-width: 44px; padding: .2rem; font-size: 1.5rem; line-height: 1; }
.dismiss { position: absolute; top: 9px; right: 8px; background: transparent; border-color: transparent; }
.page-heading { padding: 14px 0 24px; }
.page-heading h1 { margin: 8px 0; font-size: clamp(2.7rem, 6vw, 4.4rem); }
.study-grid { display: grid; grid-template-columns: minmax(200px, 265px) minmax(0, 1fr); gap: 18px; align-items: start; }
.lesson-nav { padding: 18px; }
.lesson-nav .eyebrow { margin: 20px 0 7px; }
label { font-size: .89rem; font-weight: 720; display: block; margin-bottom: 5px; }
select, textarea, input:not([type="file"]) { width: 100%; padding: .6rem .7rem; min-height: 44px; background: var(--white); border: 1px solid #acbbb1; border-radius: 9px; color: var(--ink); }
textarea { resize: vertical; }
input[type="file"] { display: block; width: 100%; max-width: 100%; }
#days { display: grid; gap: 5px; }
#days a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 9px; line-height: 1.25; color: var(--ink); }
#days a:hover, #days a[aria-current] { background: #e9f0eb; color: var(--teal); }
#days a span { display: block; font-size: .77rem; color: var(--muted); padding-top: 4px; }
.lesson h2, .community-stack h2 { margin-block: 6px 10px; }
.lesson h3 { margin-block: 6px 10px; }
.lesson .prose, .reply-text, .question-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson .prose { max-width: 75ch; line-height: 1.72; }
.lesson-top { padding-bottom: 18px; }
.lesson-top .actions { margin-top: 14px; }
.key-message { background: #eef2e9; padding: 15px 18px; margin-bottom: 20px; border-radius: 12px; }
.key-message p + p { margin-top: 5px; }
details.lesson-extra { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
details.lesson-extra summary { cursor: pointer; font-weight: 760; color: var(--teal); }
details[open] summary { margin-bottom: 12px; }
audio { display: block; width: 100%; margin-block: 10px; }
.quiz { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.quiz-option { display: block; width: 100%; text-align: left; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 9px; margin-top: 7px; }
.quiz-option:hover:not(:disabled), .quiz-option.correct { background: #e7f2e7; border-color: #749d85; }
.quiz-option.incorrect { background: #faeeea; border-color: #c18b79; }
.quiz-option:disabled { opacity: 1; cursor: default; }
.quiz-feedback { margin-top: 12px; }
.notice { border: 1px solid var(--line); background: #eef2e9; border-radius: 11px; padding: 12px 14px; margin-bottom: 14px; }
.inline-ref { border: 0; color: var(--teal); background: none; text-decoration: underline; text-underline-offset: .15em; font-weight: 650; padding: 0; }
.scripture-dialog { width: min(590px, calc(100% - 32px)); max-height: 85vh; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 20px; padding: 22px; }
.scripture-dialog::backdrop { background: #10292ebc; }
.dialog-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 16px; }
#scripture-verses p { margin-top: 12px; }
.verse-number { color: var(--teal); font-size: .8rem; font-weight: 760; margin-right: .45em; }
.community-stack { display: grid; gap: 14px; max-width: 780px; }
.account-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.community-stack form { display: grid; gap: 11px; }
.community-stack form .button { justify-self: start; }
.form-status { color: #8e382b; overflow-wrap: anywhere; }
.post { display: block; color: var(--ink); text-decoration: none; }
.post:hover { border-color: #8ca8a4; }
.metadata { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.reply { padding-block: 14px; border-top: 1px solid var(--line); }
.reply:last-child { padding-bottom: 0; }
.footer { margin-top: 26px; padding-block: 20px; border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); }
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .hero, .study-grid { grid-template-columns: 1fr; }
  .hero { border-radius: 22px; }
  .hero-preview { gap: 8px; }
  .preview-mark { display: none; }
  main { padding-top: 18px; }
  #days { display: flex; overflow-x: auto; padding-bottom: 4px; }
  #days a { flex: 0 0 auto; max-width: 140px; }
  #days a span { display: none; }
}
@media (max-width: 430px) {
  .mast-row { min-height: 60px; gap: 8px; }
  .mast-row .brand { gap: 6px; font-size: .93rem; }
  .mast-row .brand-mark { width: 31px; height: 31px; border-radius: 7px; }
  .mast-row nav a { font-size: .85rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; gap: 4px; }
}


.archive { margin-top: 18px; }
.archive ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.archive li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; }
.archive li a { color: var(--teal); font-weight: 750; }
.archive li span { color: var(--muted); font-size: .9rem; }
.archive-link { display: block; margin: 16px 10px 0; }
.lesson-top { position: relative; isolation: isolate; overflow: hidden; }
.lesson-cover { position: absolute; inset: 0 0 auto auto; width: min(68%, 420px); height: 100%; object-fit: cover; z-index: -1; opacity: .17; mask-image: linear-gradient(90deg, transparent, #000 45%); border-radius: 14px; }
.lesson .prose, .quiz { margin-top: 18px; }

.archive-year { margin-top: 18px; }
.archive-quarter { margin-top: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; }
.archive-quarter summary { color: var(--teal); font-weight: 750; cursor: pointer; }
.archive-quarter summary span { color: var(--muted); font-size: .88rem; font-weight: 500; }
.archive-quarter ul { margin-top: 11px; }

.lesson-extra > .quiz { margin-top: 0; padding-top: 0; border-top: 0; }
