:root {
  --bg-1: #2a1603;
  --bg-2: #6e4b17;
  --bg-3: #8a6a32;
  --glass: rgba(20, 12, 6, 0.56);
  --text-primary: #f4efe6;
  --text-secondary: #ded2bf;
  --text-muted: #c2b49b;
  --card: #e8e1c9;
  --card-accent: #cfad42;
  --current-color: #ffffff;
  --current-dark-color: #c8a951;
  --current-dot-border: #8a6a32;
  --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.2);
}
  .saint-feast {
    margin: 8px 0 0;
    color: #f7ead0;
    font-size: clamp(0.88rem, 2.6vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
  }

  #saint-feast[hidden] {
    display: none !important;
  }

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 220, 145, 0.18), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255, 194, 102, 0.14), transparent 34%),
    linear-gradient(150deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.easter-white-theme {
}

body.easter-white-theme .reflection {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(248, 240, 220, 0.88));
  border-color: rgba(199, 168, 92, 0.5);
}

body.easter-white-theme .reflection p {
  color: #5f4a1d;
}

body.easter-white-theme .reading-heading {
  color: #4a3916;
}

body.easter-white-theme .liturgia-button {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(247, 235, 205, 0.92));
  color: #7a5e1f;
  border-color: rgba(184, 148, 67, 0.6);
}

body.easter-white-theme .liturgia-button:hover {
  border-color: rgba(160, 126, 51, 0.75);
  box-shadow: 0 14px 28px rgba(74, 44, 10, 0.28);
}

body.easter-white-theme .side-nav-panel {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97), rgba(233, 206, 146, 0.92));
  border-left-color: rgba(153, 116, 38, 0.35);
}

body.easter-white-theme .side-nav-title {
  color: #6e541d;
}

body.easter-white-theme .side-nav-link {
  color: #705623;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(168, 130, 55, 0.35);
}

body.easter-white-theme .side-nav-link:hover {
  background: rgba(255, 255, 255, 0.9);
}

body.easter-white-theme .top-logo-button {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(235, 208, 152, 0.94));
  border-color: rgba(157, 124, 57, 0.5);
}

.top-logo-button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(245, 239, 213, 0.24);
  background: linear-gradient(130deg, rgba(20, 12, 6, 0.9), rgba(74, 41, 12, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 140;
}

.top-logo-button:focus-visible {
  outline: 2px solid rgba(245, 239, 213, 0.72);
  outline-offset: 2px;
}

.top-logo-icon {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.side-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 1, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 120;
}

.side-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 320px);
  height: 100dvh;
  padding: 24px 20px;
  background: linear-gradient(170deg, rgba(16, 9, 4, 0.97), rgba(54, 31, 11, 0.95));
  border-left: 1px solid rgba(245, 239, 213, 0.2);
  box-shadow: -22px 0 44px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 130;
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-nav-title {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  color: #f5efd5;
}

.side-nav-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.side-nav-link {
  display: block;
  text-decoration: none;
  color: #f5efd5;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: 1px solid rgba(245, 239, 213, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.side-nav-link:hover {
  background: rgba(245, 239, 213, 0.12);
  transform: translateX(-2px);
}

.side-nav-link:focus-visible {
  outline: 2px solid rgba(245, 239, 213, 0.7);
  outline-offset: 2px;
}

.nav-open .side-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-open .side-nav-panel {
  transform: translateX(0);
}

.page-shell {
  position: relative;
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 38px 16px 24px;
  display: grid;
  gap: 20px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  z-index: -1;
}

.page-shell::before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 120px;
  background: rgba(255, 212, 134, 0.18);
}

.page-shell::after {
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: 100px;
  background: rgba(62, 28, 2, 0.28);
}

.brand {
  text-align: center;
}

.brand-kicker {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.24rem;
  letter-spacing: 0.42rem;
  font-weight: 700;
}

.brand-rule {
  width: 82px;
  height: 2px;
  margin: 12px auto 0;
  background: rgba(247, 238, 220, 0.45);
}

.hero {
  text-align: center;
  width: 100%;
}

.app-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--current-dark-color);
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.26);
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.45rem, 5.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  overflow-wrap: anywhere;
}

.hero h2 {
  margin: 6px 0 10px;
  max-width: 100%;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.8rem, 2.9vw, 1.08rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.season-end {
  margin: 0 0 10px;
  font-size: clamp(0.72rem, 2.2vw, 0.95rem);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.color-line {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(0.92rem, 3.5vw, 1.2rem);
  font-weight: 700;
}

.color-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--current-color);
  box-shadow: inset 0 0 0 2px var(--current-dot-border);
}

.date {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.76rem, 2.5vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.saint-feast {
  margin: 8px 0 0;
  color: #f7ead0;
  font-size: clamp(0.88rem, 2.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.reflection {
  padding: 20px 18px 12px;
  border-radius: 22px;
  background: linear-gradient(110deg, rgba(20, 12, 6, 0.68), var(--glass));
  border: 1px solid rgba(247, 238, 220, 0.13);
  box-shadow: var(--shadow-strong);
}

.reflection p {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  line-height: 1.38;
  color: #ece4d6;
}

.reading-heading {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.95rem, 2.7vw, 1.3rem);
  letter-spacing: 0.08rem;
  color: #d7c9ac;
}

.reading-body {
  white-space: pre-line;
  font-size: clamp(0.78rem, 1.8vw, 1.08rem) !important;
  line-height: 1.32;
}

.widget-area {
  display: grid;
  place-items: center;
  margin-top: 0;
}

.page-actions {
  display: grid;
  place-items: center;
}

.liturgia-button {
  display: inline-block;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 213, 0.28);
  background: linear-gradient(120deg, rgba(18, 10, 5, 0.84), rgba(56, 31, 8, 0.8));
  color: #f5efd5;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.liturgia-button:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 239, 213, 0.45);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.liturgia-button:focus-visible {
  outline: 2px solid rgba(245, 239, 213, 0.72);
  outline-offset: 3px;
}

.widget-card {
  width: min(300px, 100%);
  border-radius: 30px;
  padding: 22px 18px 20px;
  text-align: center;
  background: var(--card);
  color: #6f5a20;
  box-shadow: var(--shadow-soft);
}

.widget-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  display: block;
  object-fit: contain;
}

.widget-brand {
  margin: 6px 0 8px;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.26rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--card-accent);
}

.widget-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 4.8vw, 2rem);
  font-weight: 800;
  color: #c5a036;
}

.widget-color {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 4vw, 1.72rem);
  font-weight: 700;
  color: #c5a036;
}

.widget-color::before {
  content: "•";
  margin-right: 0.42rem;
  color: #ceb05f;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.75s cubic-bezier(0.18, 0.72, 0.24, 1) forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.34s;
}

.delay-4 {
  animation-delay: 0.48s;
}

.delay-5 {
  animation-delay: 0.58s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .top-logo-button {
    width: 20px;
    height: 20px;
    top: 6px;
    right: 6px;
    border-radius: 8px;
  }

  .top-logo-icon {
    width: 16px;
    height: 16px;
  }

  .side-nav-panel {
    width: min(80vw, 220px);
    padding: 14px 12px;
    gap: 8px;
  }

  .side-nav-title {
    font-size: 0.94rem;
    letter-spacing: 0.06rem;
  }

  .side-nav-link {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .page-shell {
    width: min(100%, 430px);
    max-width: 430px;
    padding: 16px 10px 12px;
    gap: 10px;
  }

  .brand-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14rem;
  }

  .brand-rule {
    width: 56px;
    margin-top: 8px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: clamp(1rem, 4.6vw, 1.45rem);
    line-height: 1.08;
  }

  .hero h2 {
    font-size: clamp(0.66rem, 2.9vw, 0.82rem);
    letter-spacing: 0.06rem;
    margin: 2px 0 6px;
  }

  .color-line {
    font-size: clamp(0.76rem, 2.8vw, 0.92rem);
    gap: 6px;
  }

  .color-dot {
    width: 13px;
    height: 13px;
  }

  .date {
    margin-top: 6px;
    font-size: clamp(0.64rem, 2.2vw, 0.78rem);
  }

  .reflection {
    padding: 10px 9px 8px;
    border-radius: 12px;
  }

  .reflection p {
    font-size: clamp(0.74rem, 2.9vw, 0.88rem);
    line-height: 1.35;
  }

  .liturgia-button {
    font-size: 0.74rem;
    padding: 7px 10px;
    letter-spacing: 0.03em;
  }

  .widget-card {
    width: min(180px, 100%);
    border-radius: 14px;
    padding: 10px 10px;
  }

  .widget-card h3 {
    font-size: clamp(0.82rem, 3.4vw, 1rem);
  }

  .widget-color {
    font-size: clamp(0.72rem, 3vw, 0.88rem);
    margin-top: 4px;
  }
}

@media (max-width: 740px) {
  .top-logo-button {
    width: 18px;
    height: 18px;
    top: 5px;
    right: 5px;
    border-radius: 8px;
  }

  .top-logo-icon {
    width: 14px;
    height: 14px;
  }

  .page-shell {
    width: min(100%, 390px);
    max-width: 390px;
    padding: 14px 8px 10px;
    gap: 8px;
  }

  .brand-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.12rem;
  }

  .app-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }

  .reflection {
    border-radius: 10px;
    padding: 9px 8px 7px;
  }

  .widget-card {
    width: min(170px, 100%);
    border-radius: 12px;
    padding: 9px 8px;
  }
}

@media (max-width: 480px) {
  .top-logo-button {
    width: 17px;
    height: 17px;
    top: 4px;
    right: 4px;
    border-radius: 7px;
  }

  .top-logo-icon {
    width: 13px;
    height: 13px;
  }

  .side-nav-panel {
    width: min(90vw, 250px);
    padding: 16px 14px;
    gap: 10px;
  }

  .side-nav-title {
    font-size: 0.95rem;
    letter-spacing: 0.06rem;
  }

  .side-nav-link {
    font-size: 0.76rem;
    padding: 8px 9px;
  }

  .page-shell {
    width: min(100%, 350px);
    max-width: 350px;
    padding: 12px 7px 9px;
    gap: 8px;
  }

  .brand-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
  }

  .brand-rule {
    width: 56px;
    margin-top: 8px;
  }

  .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: clamp(0.94rem, 4.4vw, 1.24rem);
  }

  .hero h2 {
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
    letter-spacing: 0.05rem;
    margin: 2px 0 6px;
  }

  .color-line {
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    gap: 5px;
  }

  .color-dot {
    width: 12px;
    height: 12px;
  }

  .date {
    margin-top: 4px;
    font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  }

  .reflection {
    padding: 14px 12px 10px;
    border-radius: 14px;
  }

  .reflection p {
    font-size: clamp(0.68rem, 2.8vw, 0.84rem);
    line-height: 1.34;
  }

  .liturgia-button {
    font-size: 0.68rem;
    padding: 7px 9px;
    letter-spacing: 0.04em;
  }

  .widget-card {
    width: min(160px, 100%);
    border-radius: 11px;
    padding: 8px 7px;
  }

  .widget-card h3 {
    font-size: clamp(0.74rem, 3vw, 0.92rem);
  }

  .widget-color {
    font-size: clamp(0.66rem, 2.7vw, 0.84rem);
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .side-nav-overlay,
  .side-nav-panel,
  .liturgia-button,
  .side-nav-link {
    transition: none;
  }
}
