:root {
  --ink: #3b2417;
  --muted: #765a45;
  --cream: #fff8ed;
  --cream-deep: #f6e5cd;
  --paper: rgba(255, 255, 255, 0.88);
  --gold: #b66a1f;
  --brown: #6a3719;
  --green: #2f4333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 53%, #fffaf2 100%);
  font-family: Georgia, "Times New Roman", serif;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #1e88e5;
  outline-offset: 3px;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: #fffdf7;
  background: rgba(43, 58, 45, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(37, 23, 14, 0.12);
  backdrop-filter: blur(14px);
}

.mini-brand {
  font-size: 1.55rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.mini-brand span,
.brand span {
  color: #d78a34;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 30px);
  min-width: 0;
  overflow-x: auto;
  padding: 3px 0 5px;
  scrollbar-width: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-header nav::-webkit-scrollbar {
  display: none;
}

.site-header nav a {
  text-decoration: none;
  opacity: 0.92;
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-picker select {
  min-width: 110px;
  padding: 9px 34px 9px 12px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  width: min(1180px, 94%);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 0 70px;
  text-align: center;
  scroll-margin-top: 76px;
}

.brand {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.4rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: #5a2f19;
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: #4a2817;
}

.tagline {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  line-height: 1.6;
}

.family-message {
  margin: 40px 0 22px;
}

.family-message strong,
.family-message span {
  display: block;
}

.family-message strong {
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
}

.family-message span {
  margin-top: 6px;
  color: #70442b;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-style: italic;
}

.hero-art-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 226, 154, 0.95), transparent 30%),
    linear-gradient(145deg, #c2d5a1, #6e8d6f 55%, #58717a);
  box-shadow: 0 22px 48px rgba(73, 43, 23, 0.18);
}

.hero-art {
  display: block;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.art-caption {
  margin: 22px auto 26px;
  color: #77533a;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-style: italic;
}

.hero-scripture {
  width: min(760px, 100%);
  margin: 0 auto 26px;
  padding: clamp(24px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(181, 109, 32, 0.25);
  border-radius: 24px;
  box-shadow: 0 12px 38px rgba(73, 43, 23, 0.08);
}

.hero-scripture blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-style: italic;
  line-height: 1.55;
}

.hero-scripture figcaption {
  margin-top: 16px;
  color: #8c541d;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.daily-bread-proclamation {
  display: grid;
  gap: 5px;
  width: min(760px, 100%);
  margin: -8px auto 28px;
  color: #63371f;
  text-align: center;
}

.daily-bread-proclamation strong {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-style: italic;
}

.daily-bread-proclamation span {
  color: #8c541d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
}

.primary-button,
.ministry-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 26px;
  color: #fff;
  background: #7d461f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(91, 50, 27, 0.22);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover,
.ministry-card button:not(:disabled):hover {
  transform: translateY(-2px);
}

.meal-controls {
  position: sticky;
  top: 66px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(1040px, 96%);
  margin: 0 auto 8px;
  padding: 12px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(116, 77, 45, 0.18);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(73, 43, 23, 0.11);
  backdrop-filter: blur(14px);
}

.meal-controls button {
  min-height: 42px;
  padding: 9px 14px;
  color: #5a321b;
  background: #fff;
  border: 1px solid rgba(105, 65, 34, 0.22);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.meal-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.day-tabs {
  display: flex;
  gap: 5px;
}

.meal-controls .day-tabs .active {
  color: #fff;
  background: var(--brown);
  border-color: var(--brown);
}

.audio-controls {
  display: flex;
  gap: 5px;
}

.share-notice {
  width: 100%;
  min-height: 1px;
  margin: 0;
  color: #2f653a;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.meal-section {
  width: min(1040px, 94%);
  margin: 0 auto;
  padding: 72px 0 82px;
  scroll-margin-top: 128px;
  touch-action: pan-y;
}

.meal-heading {
  width: min(840px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.eyebrow,
.meal-label {
  margin: 0;
  color: #9f5d1e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meal-heading h2 {
  margin: 8px 0 0;
  color: #58301b;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
}

.meal-theme {
  margin: 18px 0 0;
  color: #745036;
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  font-weight: 700;
}

.meal-intro {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.translation-note {
  margin: 12px auto 0;
  color: #7d6b5e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
}

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

.bible-rainbow-legend {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 20px;
}

.bible-rainbow-legend span {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: #56351f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.bible-rainbow-legend i {
  display: block;
  height: 12px;
  background: var(--section-color);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(60, 35, 20, 0.14);
}

.meal-card {
  --section-color: #8c541d;
  --section-tint: #fffaf0;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(145deg, var(--section-tint), var(--paper) 38%);
  border-top: 7px solid var(--section-color);
  border-left: 9px solid var(--section-color);
  border-radius: 22px;
  box-shadow: 0 11px 32px rgba(73, 43, 23, 0.09);
}

.meal-card h3 {
  margin: 8px 0 7px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.meal-card .meal-label {
  display: inline-block;
  padding: 6px 9px;
  color: #fff;
  background: var(--section-color);
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.books {
  margin: 0 0 19px;
  color: #72533d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.verse-card {
  margin: 14px 0 0;
  padding: 18px 20px;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(112, 78, 50, 0.07);
  border-radius: 15px;
}

.verse-card p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
}

.verse-card footer {
  margin-top: 13px;
  color: #92581f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.79rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.meal-torah {
  --section-color: #c62828;
  --section-tint: #fff1f1;
}

.meal-history {
  --section-color: #ef6c00;
  --section-tint: #fff4e8;
}

.meal-poetry {
  --section-color: #d3a000;
  --section-tint: #fff9df;
}

.meal-prophets {
  --section-color: #2e7d32;
  --section-tint: #eff9f0;
}

.meal-gospels {
  --section-color: #1565c0;
  --section-tint: #edf6ff;
}

.meal-epistles {
  --section-color: #3f3b9d;
  --section-tint: #f1f0ff;
}

.meal-revelation {
  grid-column: 1 / -1;
  --section-color: #7b1fa2;
  --section-tint: #fbf0ff;
}

.legend-torah { --section-color: #c62828; }
.legend-history { --section-color: #ef6c00; }
.legend-poetry { --section-color: #d3a000; }
.legend-prophets { --section-color: #2e7d32; }
.legend-gospels { --section-color: #1565c0; }
.legend-epistles { --section-color: #3f3b9d; }
.legend-revelation { --section-color: #7b1fa2; }

.cross-scripture {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(142, 36, 170, 0.12);
  border-radius: 18px;
}

.cross-scripture > h4,
.word-of-god h4 {
  margin: 0 0 20px;
  color: #5a321b;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.teaching-note {
  margin: 18px 0;
  padding: 18px 20px;
  border: 2px solid #6f42c1;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f2ff, #eef7ff);
}

.teaching-note h4 {
  margin: 0 0 8px;
  color: #43237d;
}

.teaching-note p {
  margin: 0;
  font-weight: 650;
  line-height: 1.65;
}

.word-of-god {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(100, 59, 111, 0.16);
}

.word-of-god h4 {
  color: #612d7b;
  text-align: center;
  letter-spacing: 0.08em;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.theme-chips span {
  padding: 9px 12px;
  background: #fff;
  border: 1px solid rgba(99, 60, 31, 0.1);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.ministry-sections {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  width: min(1040px, 94%);
  margin: 0 auto;
  padding: 30px 0 90px;
}

.ministry-card {
  grid-column: span 3;
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(102, 67, 39, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(73, 43, 23, 0.08);
  scroll-margin-top: 150px;
}

.ministry-card:last-child {
  grid-column: 2 / span 4;
}

.section-icon {
  margin: 0 0 10px;
  font-size: 2.1rem;
}

.ministry-card h2 {
  margin: 0;
  color: #5b3019;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.ministry-card > p:not(.section-icon) {
  margin: 14px 0 0;
  color: #654b39;
  font-size: 1.03rem;
  line-height: 1.72;
}

.ministry-card button {
  margin-top: 22px;
}

.ministry-card button:disabled {
  color: #7c6757;
  background: #ece4db;
  box-shadow: none;
  cursor: not-allowed;
}

.mission-card {
  border-top: 7px solid #c96d24;
}

.vision-card {
  border-top: 7px solid #4a8456;
}

.share-card {
  border-top: 7px solid #2b82c8;
}

.prayer-card {
  border-top: 7px solid #6d5c95;
}

.donate-card {
  border-top: 7px solid #a94343;
}

.footer {
  padding: 40px 20px 48px;
  color: #7b624f;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .language-picker {
    justify-self: end;
  }

  .meal-controls {
    top: 104px;
  }

  .meal-section,
  .ministry-card {
    scroll-margin-top: 190px;
  }
}

@media (max-width: 700px) {
  .hero {
    width: min(94%, 620px);
    padding-top: 42px;
  }

  .hero-art-wrap,
  .hero-art {
    min-height: 230px;
  }

  .meal-controls {
    position: relative;
    top: auto;
    width: 94%;
  }

  .day-arrow {
    order: 0;
  }

  .day-tabs {
    order: 1;
  }

  .audio-controls {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .share-control {
    order: 4;
  }

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

  .meal-revelation {
    grid-column: auto;
  }

  .ministry-sections {
    grid-template-columns: 1fr;
  }

  .ministry-card,
  .ministry-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 14px;
  }

  .site-header nav {
    gap: 16px;
  }

  .brand {
    font-size: 4.6rem;
  }

  .hero-scripture,
  .meal-card,
  .cross-scripture,
  .ministry-card {
    padding: 20px;
  }
}

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

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

.subscription-card,
.prayer-card {
  grid-column: 1 / -1;
}

.subscription-form,
.prayer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  text-align: left;
}

.subscription-form label,
.prayer-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.subscription-form input,
.subscription-form select,
.prayer-form input,
.prayer-form select,
.prayer-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(106, 55, 25, 0.28);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.subscription-form .consent-row,
.prayer-form .consent-row,
.prayer-form .full-row {
  grid-column: 1 / -1;
}

.subscription-form .consent-row,
.prayer-form .consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
}

.subscription-form .consent-row input,
.prayer-form .consent-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.subscription-form button,
.subscription-form .share-notice,
.prayer-form button,
.prayer-form .share-notice {
  grid-column: 1 / -1;
}

.noscript-message {
  max-width: 760px;
  margin: 24px auto;
  padding: 16px;
  text-align: center;
}

@media (max-width: 680px) {
  .subscription-form,
  .prayer-form {
    grid-template-columns: 1fr;
  }

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