:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --surface-strong: #102538;
  --text: #132230;
  --muted: #667380;
  --line: #d9e1e8;
  --accent: #1769aa;
  --accent-strong: #0f4d7e;
  --accent-soft: #d8ebf8;
  --radius: 14px;
  --shadow: 0 24px 80px rgb(28 64 94 / 0.14);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141b;
    --surface: #131d26;
    --surface-soft: #172635;
    --surface-strong: #081019;
    --text: #e8eef3;
    --muted: #a8b5c0;
    --line: #2b3a46;
    --accent: #5ba7dd;
    --accent-strong: #91cbf2;
    --accent-soft: #18364c;
    --shadow: 0 24px 80px rgb(0 0 0 / 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 18px;
  background: var(--surface-strong);
  color: #eff7ff;
  font-size: 13px;
  text-align: center;
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--surface);
  box-shadow: 0 10px 28px rgb(23 105 170 / 0.12);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 32px);
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 22px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a[aria-current] {
  color: var(--accent);
  font-weight: 850;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) 0;
}

#issues,
#prayer {
  scroll-margin-top: 128px;
}

.hero {
  min-height: calc(100dvh - 105px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.13;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
}

.domain-meaning {
  max-width: 560px;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgb(23 105 170 / 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-strip {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.74fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 5vw, 58px) 0;
}

.current-strip h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 43px);
}

.current-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.today-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.today-copy {
  display: grid;
  align-content: center;
  min-height: 280px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 34%),
    var(--surface);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.today-copy h2 {
  max-width: 780px;
}

.today-copy p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.today-action {
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.today-action span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.today-action strong {
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.18;
}

.copy-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.rhythm-section,
.topic-section {
  border-top: 1px solid var(--line);
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.checkin-card,
.rhythm-step,
.topic-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.checkin-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent-soft) 82%, transparent), transparent 36%),
    var(--surface);
}

.checkin-card h3 {
  margin-bottom: 0;
}

.checkin-card p:not(.section-kicker):not(.copy-status) {
  color: var(--muted);
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.streak-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, var(--bg));
  padding: 14px;
}

.streak-grid strong,
.streak-grid span {
  display: block;
}

.streak-grid strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.streak-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.week-strip span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.week-strip span[data-done] {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: var(--accent);
  color: #fff;
}

.week-strip span[data-today] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rhythm-step {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: clamp(22px, 3vw, 30px);
}

.rhythm-step span {
  width: fit-content;
  margin-bottom: 42px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rhythm-step h3 {
  font-size: 23px;
}

.rhythm-step p {
  color: var(--muted);
}

.rhythm-step a {
  align-self: end;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 850;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.topic-tile {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 20px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.topic-tile:hover,
.topic-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-soft));
}

.topic-tile span {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.topic-tile strong {
  font-size: 19px;
  line-height: 1.25;
}

.topic-tile small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-heading p {
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  max-width: 690px;
}

.info-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "wide small"
    "dark image";
  gap: 18px;
}

.info-card,
.perspective,
.prayer-card,
.prayer-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.info-card {
  min-height: 250px;
  padding: clamp(24px, 4vw, 40px);
}

.info-card.wide {
  grid-area: wide;
}

.info-card.dark {
  grid-area: dark;
  background: var(--surface-strong);
  color: #f4f8fb;
}

.info-card.image-card {
  grid-area: image;
  padding: 0;
  overflow: hidden;
}

.info-card:nth-child(2) {
  grid-area: small;
  background: var(--accent-soft);
}

.info-card span,
.perspective span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.info-card.dark span {
  color: #a9d8f5;
}

.info-card p,
.perspective p,
.prayer-card p,
.prayer-tools p {
  color: var(--muted);
}

.info-card.dark p {
  color: #c7d6df;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-item {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 3vw, 30px);
}

.detail-item h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.detail-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.detail-item.emphasized {
  background: var(--accent-soft);
}

.split-section {
  border-top: 1px solid var(--line);
}

.perspective-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.perspective {
  padding: clamp(24px, 4vw, 40px);
}

.perspective.line-only {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  background: transparent;
  box-shadow: none;
}

.perspective.line-only span,
.perspective.line-only h3,
.perspective.line-only p {
  margin-bottom: 0;
}

.prayer-section {
  border-top: 1px solid var(--line);
}

.prayer-copy {
  max-width: 760px;
  margin-bottom: 36px;
}

.prayer-copy p {
  color: var(--muted);
  font-size: 18px;
}

.prayer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.prayer-layout .main-prayer {
  grid-column: 1;
  grid-row: 1;
}

.prayer-layout .prayer-tools {
  grid-column: 2;
  grid-row: 1;
}

.main-prayer {
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 58%, transparent), transparent 45%),
    var(--surface);
}

.main-prayer p {
  font-size: 18px;
}

.prayer-tools {
  padding: 28px;
}

.prayer-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.prayer-form label {
  font-weight: 800;
}

.prayer-form textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  padding: 14px 15px;
}

.prayer-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: var(--accent);
}

.local-count {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.local-count strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

.local-count span {
  color: var(--muted);
  font-size: 14px;
}

.local-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.local-list li {
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.source-section {
  border-top: 1px solid var(--line);
}

.article-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 0;
}

.article-hero {
  padding-bottom: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 860px;
}

.article-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.article-body {
  display: grid;
  gap: 28px;
  padding-top: clamp(30px, 5vw, 56px);
}

.article-body section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.article-body section.highlight {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 58%, transparent), transparent 48%),
    var(--surface);
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-prayer {
  white-space: pre-line;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  color: var(--text);
  font-weight: 750;
  transition: border-color 160ms ease, transform 160ms ease;
}

.source-list a:hover,
.source-list a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 14px 42px rgb(28 64 94 / 0.07);
}

.content-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-card h3 {
  margin: 0;
  font-size: 21px;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.library-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 34%),
    var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 56px rgb(28 64 94 / 0.08);
}

.library-tools h2 {
  margin-bottom: 8px;
  font-size: clamp(27px, 3vw, 40px);
}

.library-tools p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
}

.search-field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
}

.search-field input:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: var(--accent);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 13px;
  font: inherit;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-row button:hover,
.filter-row button:focus-visible,
.filter-row button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.empty-message {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 14px 16px;
}

[hidden] {
  display: none !important;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    inset: 105px 20px auto 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .current-strip,
  .today-panel,
  .prayer-layout,
  .rhythm-layout {
    grid-template-columns: 1fr;
  }

  .rhythm-steps,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prayer-layout .main-prayer,
  .prayer-layout .prayer-tools {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .info-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "wide"
      "small"
      "dark";
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perspective-grid {
    grid-template-columns: 1fr;
  }

  .perspective.line-only {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .notice {
    font-size: 12px;
  }

  .nav-shell,
  .section-pad,
  .current-strip,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.12;
  }

  .hero-lede {
    max-width: 30ch;
    font-size: 17px;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .rhythm-steps,
  .topic-grid,
  .streak-grid {
    grid-template-columns: 1fr;
  }

  .rhythm-step,
  .topic-tile {
    min-height: auto;
  }

  .rhythm-step span {
    margin-bottom: 24px;
  }

  .article-shell {
    width: min(100% - 28px, 920px);
  }
}
