/* WorkGlory.com · direction C, "Evening blue".
   Tokens with three-state theming (auto, light, dark); layout from container queries on .frame,
   so the Phone / Tablet / Desktop toggle can force any layout on any screen.
   Palette is blue, amber, and slate only (colorblind-safe). */

@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage-grotesque-normal.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(/assets/fonts/nunito-sans-normal.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(/assets/fonts/nunito-sans-italic.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-normal.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

/* Static instances for PDF output only. Chrome embeds variable fonts as Type 3; static TrueType prints smaller and sharper. */
@font-face { font-family: "WG Print Display"; src: url(/assets/fonts/print/bricolage-grotesque-600.ttf) format("truetype"); font-weight: 600; font-style: normal; }
@font-face { font-family: "WG Print Display"; src: url(/assets/fonts/print/bricolage-grotesque-700.ttf) format("truetype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "WG Print Display"; src: url(/assets/fonts/print/bricolage-grotesque-800.ttf) format("truetype"); font-weight: 800; font-style: normal; }
@font-face { font-family: "WG Print Sans"; src: url(/assets/fonts/print/nunito-sans-400.ttf) format("truetype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "WG Print Sans"; src: url(/assets/fonts/print/nunito-sans-700.ttf) format("truetype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "WG Print Sans"; src: url(/assets/fonts/print/nunito-sans-800.ttf) format("truetype"); font-weight: 800; font-style: normal; }
@font-face { font-family: "WG Print Serif"; src: url(/assets/fonts/print/newsreader-400.ttf) format("truetype"); font-weight: 400; font-style: normal; }

:root {
  --bg: #f7f3ea; --surface: #fffdf8; --surface-2: #f1ead9; --ink: #1f2b38; --ink-2: #46505c; --muted: #5b6470; --line: #e1d9c6;
  --heading: #163b63; --band: #163b63; --band-deep: #0f2d4f; --on-band: #f7f3ea; --on-band-2: #d5dde8; --on-band-muted: #b7c3d2;
  --amber: #e4b04a; --amber-ink: #1b2430; --amber-text: #8a5e14; --glow: rgba(228, 176, 74, .26);
  --focus: #163b63; --solid: #163b63; --on-solid: #f7f3ea; --desk: #e4ddce; --shadow: 0 22px 50px rgba(22, 59, 99, .16);
  --display: "Bricolage Grotesque", "Trebuchet MS", Arial, sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a2b; --surface: #15243a; --surface-2: #1b2d47; --ink: #ece6d9; --ink-2: #c7ced8; --muted: #9eaaba; --line: #2a3b5b;
    --heading: #f3eee3; --band: #10284a; --band-deep: #0a1d38; --on-band: #f3eee3; --on-band-2: #c9d3e0; --on-band-muted: #a7b6c9;
    --amber: #e2b155; --amber-ink: #14202c; --amber-text: #e8bd6a; --glow: rgba(226, 177, 85, .17);
    --focus: #e2b155; --solid: #2c4f7c; --on-solid: #f3eee3; --desk: #070f1a; --shadow: 0 22px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a2b; --surface: #15243a; --surface-2: #1b2d47; --ink: #ece6d9; --ink-2: #c7ced8; --muted: #9eaaba; --line: #2a3b5b;
  --heading: #f3eee3; --band: #10284a; --band-deep: #0a1d38; --on-band: #f3eee3; --on-band-2: #c9d3e0; --on-band-muted: #a7b6c9;
  --amber: #e2b155; --amber-ink: #14202c; --amber-text: #e8bd6a; --glow: rgba(226, 177, 85, .17);
  --focus: #e2b155; --solid: #2c4f7c; --on-solid: #f3eee3; --desk: #070f1a; --shadow: 0 22px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.sheet { display: none; }

/* ---------- frame and view modes ---------- */
.frame { container: frame / inline-size; min-height: 100vh; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 5cqi, 64px); }
.narrow { max-width: 44rem; }
html[data-view] body { background: var(--desk); }
html[data-view="phone"] .frame { width: 430px; margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 30px; overflow: clip; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
html[data-view="tablet"] .frame { width: 834px; margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 22px; overflow: clip; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
html[data-view="desktop"] .frame { min-width: 1240px; }
html[data-view="tablet"] body, html[data-view="desktop"] body { overflow-x: auto; }
@media (max-width: 470px) { html[data-view="phone"] .frame { width: 100%; margin: 0; border-radius: 0; box-shadow: none; min-height: 100dvh; } }

/* ---------- top bar ---------- */
.topbar { background: var(--band); color: var(--on-band); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; color: var(--on-band); min-height: 44px; }
.wordmark .mark { width: 30px; height: 30px; flex: none; }
.dotcom { color: var(--amber); }
.controls { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .16); }
.seg button { appearance: none; border: 0; margin: 0; background: transparent; color: var(--on-band-2); font: 700 .8125rem/1 var(--body); min-width: 38px; height: 38px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.seg button:hover { color: var(--on-band); background: rgba(255, 255, 255, .08); }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }
.seg .lbl { display: none; }
@container frame (min-width: 980px) { .seg .lbl { display: inline; } .seg button { padding: 0 12px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 24px; border-radius: 14px; font: 800 1.0625rem/1.15 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; text-align: left; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn small { font-weight: 600; font-size: .8125rem; opacity: .8; margin-left: 2px; }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.btn-secondary { background: transparent; color: var(--on-band); border-color: rgba(247, 243, 234, .55); }
.btn-secondary:hover { border-color: var(--on-band); background: rgba(255, 255, 255, .06); }
.btn-solid { background: var(--solid); color: var(--on-solid); }
.btn-outline { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-small { min-height: 46px; padding: 8px 16px; font-size: 1rem; }
.btn .i { flex: none; }

/* ---------- bands and heroes ---------- */
.band { background: radial-gradient(85% 75% at 92% 0%, var(--glow), transparent 64%), linear-gradient(180deg, var(--band), var(--band-deep)); color: var(--on-band); }
.eyebrow { font: 800 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.lede { font-size: clamp(1.0625rem, 2.3cqi, 1.3rem); line-height: 1.55; color: var(--on-band-2); max-width: 36em; margin: 0 0 22px; }
.hero { padding-block: clamp(18px, 4cqi, 64px) clamp(40px, 7cqi, 96px); }
.hero-grid { display: grid; gap: 36px; }
@container frame (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; } }
.hero h1, .page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.15rem, 7.4cqi, 4.2rem); line-height: 1.02; letter-spacing: -.032em; margin: 0 0 18px; max-width: 16ch; }
.week-chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .9375rem; line-height: 1.35; color: var(--on-band); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); padding: 7px 14px 7px 12px; border-radius: 999px; margin: 0 0 22px; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(228, 176, 74, .22); flex: none; }
.ctas { display: flex; flex-direction: column; gap: 12px; }
.ctas .btn { width: 100%; }
@container frame (min-width: 560px) { .ctas { flex-direction: row; flex-wrap: wrap; align-items: center; } .ctas .btn { width: auto; } }
.reassure { font-size: .9375rem; color: var(--on-band-muted); margin: 16px 0 0; }
.page-hero { padding-block: clamp(22px, 5cqi, 64px) clamp(30px, 6cqi, 72px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .ctas { margin-top: 24px; }

/* the preview card on the home page is the product itself */
.preview { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.preview-card { display: block; background: var(--surface); color: var(--ink); border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(-1.2deg); transition: transform .25s ease; }
.preview-card:hover { transform: rotate(0deg) translateY(-3px); }
.pv-top { display: grid; background: radial-gradient(80% 90% at 100% 0%, var(--glow), transparent 60%), var(--band-deep); color: var(--on-band); padding: 20px 22px 22px; position: relative; }
.pv-motif { position: absolute; right: 14px; top: 12px; width: 76px; height: 76px; color: var(--amber); }
.pv-meta { font: 800 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.pv-title { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 4px; }
.pv-passage { font-weight: 700; font-size: .9375rem; color: var(--on-band-2); }
.pv-body { display: grid; gap: 6px; padding: 18px 22px 22px; }
.pv-label { font: 800 .68rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-text); margin-top: 6px; }
.pv-lead { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.pv-verses { font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; max-height: 7.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.preview figcaption { text-align: center; font-size: .875rem; color: var(--on-band-muted); margin-top: 16px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(40px, 8cqi, 88px); }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 4.8cqi, 2.6rem); line-height: 1.08; letter-spacing: -.025em; color: var(--heading); margin: 0 0 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 24px; }
.section-sub { color: var(--ink-2); margin: 0; max-width: 42em; }
.section-sub strong { color: var(--ink); }
.coverage { color: var(--ink-2); margin: 28px 0 0; max-width: 46em; }
.narrow h2 { font-size: clamp(1.35rem, 3.6cqi, 1.75rem); margin-top: 36px; }
.narrow h2:first-child { margin-top: 0; }

.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@container frame (min-width: 640px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@container frame (min-width: 1040px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.day-card a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.day-card a:hover { border-color: var(--amber); transform: translateY(-2px); }
.day-card .i-arrowR { color: var(--muted); }
.dc-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--amber-text); }
.dc-motif { width: 34px; height: 34px; }
.dc-text { display: grid; gap: 1px; min-width: 0; }
.dc-day { font: 800 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); display: flex; gap: 8px; align-items: center; }
.dc-date { color: var(--muted); letter-spacing: .06em; }
.dc-today { display: none; background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 2px 8px; letter-spacing: .08em; }
.dc-title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--heading); }
.dc-passage { font-size: .875rem; color: var(--muted); }
.day-card.is-today a { border: 2px solid var(--amber); box-shadow: 0 0 0 4px rgba(228, 176, 74, .2); }
.day-card.is-today .dc-today { display: inline-block; }
.days.weeks-list { grid-template-columns: minmax(0, 1fr); }
.all-weeks { margin: 22px 0 0; }
.week-pager { margin: 28px 0 0; }

.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
@container frame (min-width: 760px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; }
@container frame (min-width: 760px) { .steps li { grid-template-columns: 1fr; row-gap: 8px; } }
.step-n { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--band); color: var(--on-band); font: 800 1.05rem var(--display); }
.step-label { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--heading); }
.step-text { color: var(--ink-2); font-size: 1rem; }

.promise-grid { display: grid; gap: 28px; }
@container frame (min-width: 900px) { .promise-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; } }
.promise-card { background: radial-gradient(90% 90% at 100% 0%, var(--glow), transparent 60%), var(--band); color: var(--on-band); border-radius: 24px; padding: clamp(24px, 4cqi, 40px); }
.promise-card h2 { color: var(--amber); }
.promise-card p { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.8cqi, 1.5rem); line-height: 1.35; margin-bottom: 22px; }
.promise-card .btn-solid { background: var(--amber); color: var(--amber-ink); }
.trust { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.trust li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.trust .i { color: var(--amber-text); margin-top: 3px; }
.maker-line { color: var(--ink-2); }
.maker-line a { font-weight: 700; color: var(--heading); }

/* ---------- scripture links (open in Gospel Library) ---------- */
.sref { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--amber-text) 60%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.sref:hover { text-decoration-color: var(--amber-text); }
.band .sref { text-decoration-color: rgba(228, 176, 74, .7); }
.band .sref:hover { text-decoration-color: var(--amber); }
.verses figcaption .sref { text-decoration-thickness: 1px; }
.sheet a { color: inherit; text-decoration: none; }

/* ---------- day page ---------- */
.day-hero { position: relative; overflow: hidden; padding-block: clamp(20px, 4cqi, 48px) clamp(26px, 5cqi, 56px); }
.hero-motif { position: absolute; right: -6px; top: 8px; width: clamp(112px, 30cqi, 300px); height: auto; color: var(--amber); opacity: .42; pointer-events: none; }
@container frame (min-width: 720px) { .hero-motif { opacity: .92; right: 4%; top: 18px; } }
.day-meta { font: 800 .8125rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; max-width: calc(100% - 110px); }
.day-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 11cqi, 5rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 14px; max-width: 11ch; }
.day-passage { font: 800 1.125rem var(--body); margin: 0 0 2px; }
.day-week { color: var(--on-band-muted); font-size: .9375rem; margin: 0; }
.day-manual { margin: 12px 0 0; }
.manual-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; color: var(--amber); text-decoration: underline; text-decoration-color: rgba(228, 176, 74, .5); text-underline-offset: .22em; }
.manual-link:hover { text-decoration-color: var(--amber); }
.day-dots { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.day-dots a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 .8125rem var(--body); color: var(--on-band-2); border: 1.5px solid rgba(255, 255, 255, .28); text-decoration: none; position: relative; }
.day-dots a:hover { border-color: var(--amber); color: var(--on-band); }
.day-dots a[aria-current="page"] { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.day-dots a.is-today::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--amber); }

.day-layout { display: grid; gap: 32px; }
@container frame (min-width: 1100px) { .day-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; } }
.lesson { width: 100%; max-width: 40rem; margin: 0 auto; padding-block: 30px 24px; }
.beat { margin: 0 0 36px; }
.beat-label { display: flex; align-items: center; gap: 12px; font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-text); margin: 0 0 16px; }
.beat-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.beat-label .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--amber-text); letter-spacing: 0; font-size: .78rem; flex: none; }
.lesson p { font-size: clamp(1.0625rem, 2.2cqi, 1.1875rem); line-height: 1.68; text-wrap: pretty; }
.lesson .lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 4.6cqi, 1.8rem); line-height: 1.3; letter-spacing: -.012em; margin: 0; color: var(--heading); }
.verses { margin: 20px 0; padding: 18px 20px 16px; background: var(--surface-2); border-radius: 18px; }
.verses figcaption { font: 800 .72rem var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--amber-text); margin: 0 0 8px; }
.lesson .verses p { font-family: var(--serif); font-size: clamp(1.18rem, 2.7cqi, 1.32rem); line-height: 1.64; margin: 0; font-optical-sizing: auto; }
.vn { font: 800 .6em/0 var(--body); color: var(--amber-text); vertical-align: .5em; margin: 0 .22em 0 .1em; }
.lord { font-variant-caps: small-caps; letter-spacing: .03em; }
.quote { position: relative; margin: 26px 0; padding: 26px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.quote .i-quote { position: absolute; top: -15px; left: 18px; color: var(--amber); background: var(--bg); border-radius: 8px; padding: 2px; }
.lesson .quote-lead { font-size: 1rem; color: var(--ink-2); margin: 0 0 6px; }
.quote blockquote { margin: 0; }
.lesson .quote blockquote p { font-family: var(--serif); font-size: clamp(1.22rem, 3cqi, 1.42rem); line-height: 1.5; margin: 0; color: var(--ink); }
.quote figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.talk { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 24px; }
.lesson .question { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 3.8cqi, 1.6rem); line-height: 1.35; margin: 0; color: var(--heading); }
.share { background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%), var(--amber); color: var(--amber-ink); border-radius: 22px; padding: 22px 22px 26px; }
.share .beat-label { color: var(--amber-ink); }
.share .beat-label::after { background: rgba(20, 32, 44, .25); }
.share .beat-label .n { background: rgba(20, 32, 44, .12); color: var(--amber-ink); }
.lesson .share p { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 4.2cqi, 1.75rem); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.note, .today-banner { display: flex; gap: 10px; background: var(--surface); border: 1.5px solid var(--amber); border-radius: 14px; padding: 12px 16px; margin: 0 0 28px; font-weight: 700; font-size: 1rem !important; line-height: 1.45 !important; }
.today-banner a { color: var(--heading); }
.lesson-actions { display: grid; gap: 10px; margin: 10px 0 26px; }
@container frame (min-width: 640px) { .lesson-actions { grid-template-columns: 1fr 1fr; } }
.lesson-actions .btn { justify-content: flex-start; flex-wrap: wrap; row-gap: 0; }
.lesson-actions .btn small { flex-basis: 100%; margin-left: 30px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.pager a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--heading); min-height: 64px; }
.pager a:hover { border-color: var(--amber); }
.pager small { display: block; font: 800 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 2px; }
.pager-next { justify-content: flex-end; text-align: right; }
.week-aside { display: none; }
@container frame (min-width: 1100px) {
  .week-aside { display: block; position: sticky; top: 24px; margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
  .week-aside ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
  .week-aside li a { display: grid; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
  .week-aside li a:hover { background: var(--surface-2); }
  .week-aside li a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--amber); }
  .aside-label, .aside-day { font: 800 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); }
  .aside-label { margin: 0 0 8px 10px; }
  .aside-title { font-family: var(--display); font-weight: 700; color: var(--heading); }
  .aside-pdf { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--heading); padding: 8px 10px; }
}

/* ---------- feedback ---------- */
.feedback { display: grid; gap: 12px; }
.feedback-compact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.feedback-heading { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--heading); margin: 0; }
.lesson .feedback-text { font-size: .9375rem; color: var(--muted); margin: 0; }
.field { display: grid; gap: 8px; font-weight: 700; }
.field textarea { width: 100%; min-height: 96px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; font-size: 1.0625rem; line-height: 1.5; resize: vertical; }
.field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(228, 176, 74, .35); }
.feedback-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { margin: 0; font-weight: 700; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.today-list { padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--band-deep); color: var(--on-band-muted); font-size: .9375rem; line-height: 1.55; padding-block: 34px 40px; }
.footer-inner p { max-width: 60em; margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-bottom: 18px; font-weight: 700; color: var(--on-band); }
.footer-links a { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .soon { color: var(--on-band-muted); font-weight: 600; }
.game-link { gap: 8px; color: var(--amber); font-family: "Courier New", monospace; letter-spacing: .02em; }
.game-link .pixel { image-rendering: pixelated; }
.site-footer .maker { color: var(--on-band); font-weight: 700; margin-top: 14px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .preview-card { transform: none; } }

/* ---------- the printable sheet: one lesson per Letter page ----------
   Sizes are in em so build/fit can scale each sheet's type to fill exactly one page. */
.sheet { --display: "WG Print Display", "Bricolage Grotesque", Arial, sans-serif; --body: "WG Print Sans", "Nunito Sans", Arial, sans-serif; --serif: "WG Print Serif", "Newsreader", Georgia, serif;
  display: none; flex-direction: column; width: 7.5in; height: 9.96in; overflow: hidden; background: #fff; color: #1f2b38; font-family: var(--body); font-size: var(--fs, 10.6pt); line-height: 1.42; }
.page-print .sheet { display: flex; margin: 0 auto 24px; }
.sh-head { display: flex; justify-content: space-between; font-size: 7.6pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6470; border-bottom: 1.2pt solid #e4b04a; padding-bottom: 5pt; }
.sh-brand { font-family: var(--display); font-weight: 800; color: #163b63; letter-spacing: 0; text-transform: none; font-size: 9.6pt; }
.sh-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16pt; margin: 1.1em 0 .75em; }
.sh-title .sh-h1 { font-family: var(--display); font-weight: 800; font-size: 2.64em; line-height: 1; letter-spacing: -.03em; color: #163b63; margin: 0 0 .2em; }
.sh-meta { font-size: .85em; font-weight: 700; color: #5b6470; margin: 0; }
.sh-manual { font-size: .78em; color: #5b6470; margin: .35em 0 0; }
.sh-manual a { color: #8a5e14 !important; font-weight: 800; }
.sh-motif { width: .72in; height: .72in; color: #c9921f; flex: none; }
.sh-note { font-size: .9em; font-weight: 700; border: 1pt solid #e4b04a; border-radius: 6pt; padding: .45em .8em; margin: 0 0 .8em; }
.sheet h2 { font-family: var(--body); font-weight: 800; font-size: .72em; letter-spacing: .16em; text-transform: uppercase; color: #8a5e14; margin: 0 0 .5em; break-after: avoid; }
.sh-start { margin-bottom: 1em; }
.sh-start p { font-family: var(--display); font-weight: 600; font-size: 1.27em; line-height: 1.28; color: #163b63; margin: 0; }
.sh-cols { column-count: 2; column-gap: .32in; column-fill: balance; flex: 1 1 auto; min-height: 0; }
.sh-cols section { margin: 0 0 1.05em; }
.sh-cols p { margin: 0 0 .6em; }
.sh-verses { margin: .6em 0 .8em; padding: .7em .85em; background: #f6f1e5; border-radius: 6pt; }
.sh-verses .sh-ref { font-weight: 800; font-size: .7em; letter-spacing: .14em; text-transform: uppercase; color: #8a5e14; margin: 0 0 .2em; }
.sh-verses p:not(.sh-ref) { font-family: var(--serif); font-size: 1.06em; line-height: 1.45; margin: 0; }
.sheet .vn { font-size: .58em; color: #8a5e14; }
.sh-quote { break-inside: avoid; border-top: 1pt solid #d8cfbb; border-bottom: 1pt solid #d8cfbb; padding: .55em 0; margin: .55em 0 .8em; }
.sh-quote p { font-family: var(--serif); font-size: 1.04em; line-height: 1.4; margin: 0 0 .25em; }
.sh-quote .sh-cite { font-family: var(--body); font-size: .74em; color: #5b6470; margin: 0; }
.sh-talk, .sh-share { break-inside: avoid; border-radius: 7pt; padding: .75em .95em .85em; }
.sh-talk { border: 1.2pt solid #163b63; }
.sh-talk p { font-family: var(--display); font-weight: 600; font-size: 1.13em; line-height: 1.3; color: #163b63; margin: 0; }
.sh-share { background: #fbf1da; border: 1.2pt solid #e4b04a; }
.sh-share p { font-family: var(--display); font-weight: 700; font-size: 1.18em; line-height: 1.25; margin: 0; }
.sh-foot { display: flex; justify-content: space-between; gap: 16pt; font-size: 7pt; color: #5b6470; border-top: .8pt solid #d8cfbb; padding-top: 5pt; margin-top: 8pt; }
.sh-url { font-weight: 800; color: #163b63; white-space: nowrap; }

/* ---------- print ---------- */
@media print {
  @page { size: letter; margin: .5in; }
  html, body { background: #fff !important; }
  .frame { display: block; min-height: 0; width: auto !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: #fff; }
  .frame > :not(.sheet) { display: none !important; }
  .sheet, .page-print .sheet { display: flex !important; margin: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  a { text-decoration: none; }
}
