:root {
  color-scheme: light;
  --forest: #173d35;
  --forest-soft: #285a4f;
  --sage: #95a98d;
  --cream: #f5f0e6;
  --paper: rgba(255, 253, 247, 0.9);
  --gold: #b48a4a;
  --ink: #25322e;
  --muted: #6f7771;
  --shadow: 0 30px 80px rgba(31, 49, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.82) 0 5%, transparent 29%),
    radial-gradient(circle at 88% 84%, rgba(147, 171, 144, 0.28), transparent 32%),
    linear-gradient(145deg, #f7f1e7 0%, #e8eee4 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 420px;
  border: 1px solid rgba(70, 105, 83, 0.12);
  border-radius: 55% 45% 50% 48%;
  content: "";
  pointer-events: none;
  transform: rotate(28deg);
}

body::before {
  top: -250px;
  right: -110px;
}

body::after {
  bottom: -280px;
  left: -120px;
  transform: rotate(-25deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 18px 20px;
}

.salmo-card {
  position: relative;
  width: calc(100vw - 36px);
  max-width: 440px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: card-arrival 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.salmo-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--gold));
  content: "";
}

.card-header {
  padding: 36px 30px 0;
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: #e6eee4;
}

.brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.eyebrow,
.theme {
  margin: 0;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 7px 0 6px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 86px;
  margin: 25px auto 24px;
}

.ornament::before,
.ornament::after {
  height: 1px;
  flex: 1;
  background: rgba(180, 138, 74, 0.38);
  content: "";
}

.ornament span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.daily-reading {
  padding: 0 32px;
  text-align: center;
}

.theme {
  color: var(--forest-soft);
}

blockquote {
  position: relative;
  max-width: 100%;
  margin: 19px 0 16px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 6.4vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.42;
  overflow-wrap: break-word;
}

blockquote::before {
  position: absolute;
  top: -24px;
  left: -7px;
  color: rgba(180, 138, 74, 0.16);
  content: "“";
  font-size: 5.4rem;
  line-height: 1;
}

.reference {
  margin: 0 0 34px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px 14px;
  color: var(--muted);
  background: rgba(232, 238, 228, 0.62);
  font-size: 0.72rem;
}

.update-note,
.studio-credit {
  margin: 0;
  text-align: center;
}

.update-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.studio-credit {
  color: rgba(111, 119, 113, 0.76);
  font-size: 0.64rem;
}

.studio-name,
.translation-credit {
  color: var(--forest-soft);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 2px;
}

.studio-name:hover,
.translation-credit:hover,
.studio-name:focus-visible,
.translation-credit:focus-visible {
  text-decoration: underline;
}

.moon-icon {
  display: inline-flex;
}

.moon-icon svg {
  width: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.quiet-note {
  width: calc(100vw - 36px);
  max-width: 440px;
  margin: 17px 0 auto;
  color: rgba(37, 50, 46, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

@keyframes card-arrival {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-height: 700px) {
  .card-header {
    padding-top: 28px;
  }

  .brand-mark {
    margin-bottom: 14px;
  }

  .ornament {
    margin-top: 19px;
    margin-bottom: 18px;
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding: 44px 24px 30px;
  }

  .salmo-card {
    border-radius: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
