:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #6b645b;
  --accent: #8a6a3b;
  --rule: #e8e1d5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1d1a17;
    --text: #ece7dd;
    --muted: #9a9287;
    --accent: #d6b27a;
    --rule: #2c2824;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.75rem) calc(env(safe-area-inset-bottom) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100dvh;
}

.header {
  text-align: center;
  padding-top: env(safe-area-inset-top);
}

.date {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  letter-spacing: 0.01em;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status {
  margin: 0;
  color: var(--muted);
  text-align: center;
  padding: 1rem 0;
}

.verse-text {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  line-height: 1.5;
  quotes: "\201C" "\201D";
}

.verse-text::before {
  content: open-quote;
  color: var(--accent);
  margin-right: 0.05em;
}

.verse-text::after {
  content: close-quote;
  color: var(--accent);
  margin-left: 0.05em;
}

.verse-ref {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.verse-translation {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commentary {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.commentary-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.commentary p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer a {
  color: inherit;
}

@media (min-width: 700px) {
  body {
    font-size: 18px;
  }
}
