@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("vendor/fonts/literata-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("vendor/fonts/literata-latin-600.woff2") format("woff2");
}

:root {
  --pico-font-family: "Literata", Georgia, serif;
  --pico-font-size: 100%;
  --pico-line-height: 1.7;
  --pico-background-color: #11120f;
  --pico-color: #eeeae1;
  --pico-muted-color: #a6a49b;
  --pico-primary: #e0bd75;
  --pico-primary-hover: #f0d28f;
  --pico-primary-focus: rgba(224, 189, 117, 0.25);
  --pico-primary-inverse: #17150e;
  --pico-card-background-color: #1a1c18;
  --pico-card-border-color: #35372f;
  --pico-form-element-background-color: #1a1c18;
  --pico-form-element-border-color: #4a4b41;
}

html {
  background: #11120f;
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(67, 70, 47, 0.5),
      transparent 40rem
    ),
    #11120f;
}

.container {
  width: min(100% - 2.5rem, 52rem);
  margin-inline: auto;
  padding: 0;
}

.hero {
  padding: 3.25rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.eyebrow,
.section-kicker {
  margin-bottom: 1rem;
  color: var(--pico-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

h2,
p {
  margin-top: 0;
}

button.period-toggle {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  margin: 0;
  padding: 0.25rem 0;
  color: var(--pico-primary);
  background: transparent;
  border: 0;
  box-shadow: none;
}

button.period-toggle:hover {
  color: var(--pico-primary-hover);
  background: transparent;
}

.period-toggle .eyebrow {
  margin-bottom: 0;
  text-decoration: underline dotted rgba(224, 189, 117, 0.6);
  text-underline-offset: 0.35em;
}

.source-note {
  color: var(--pico-muted-color);
  font-size: 0.8rem;
}

.local-time {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0;
  padding: 0.45rem 0.75rem;
  color: #c1c0b7;
  border: 1px solid rgba(238, 234, 225, 0.15);
  border-radius: 999px;
  font-size: 0.78rem;
}

.local-time time {
  color: var(--pico-color);
  font-weight: 600;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--pico-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(224, 189, 117, 0.12);
}

.prayer-panel {
  overflow: hidden;
  background: rgba(26, 28, 24, 0.88);
  border: 1px solid #35372f;
  border-radius: 1.1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.35rem;
  border-bottom: 1px solid #35372f;
}

.panel-heading .section-kicker {
  margin-bottom: 0.7rem;
}

.panel-heading h2 {
  margin-bottom: 0;
  color: var(--pico-color);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.prayer-number {
  color: rgba(224, 189, 117, 0.42);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.prayer-body {
  padding: 1.65rem 1.6rem 1.85rem;
}

.prayer-body,
.poetic-text,
.instruction,
.invocation,
blockquote,
blockquote p,
.closing {
  color: #e4e1d8;
  font-size: clamp(1.06rem, 2.5vw, 1.18rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.8;
}

.instruction {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.invocation {
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.inline-prayers {
  margin: 2rem 0 2.25rem;
  padding: 1.25rem;
  background: rgba(224, 189, 117, 0.035);
  border: 1px solid rgba(224, 189, 117, 0.18);
  border-radius: 0.85rem;
}

.invocation,
.closing {
  padding: 1.25rem;
  background: rgba(224, 189, 117, 0.035);
  border: 1px solid rgba(224, 189, 117, 0.18);
  border-radius: 0.85rem;
}

.inline-prayers h3 {
  margin-bottom: 0.85rem;
  color: var(--pico-primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.poetic-text {
  color: #e4e1d8;
}

.poetic-text p {
  margin-bottom: 1.5rem;
}

.poetic-text p:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 1.75rem 0 1.6rem;
  padding: 0;
  border: 0;
}

blockquote p {
  margin-bottom: 0;
}

.closing {
  margin-bottom: 0;
  font-style: normal;
}

.source-note {
  margin: 1.2rem 0 4.5rem;
  text-align: center;
}

.source-note a {
  color: var(--pico-primary);
  text-decoration-color: rgba(224, 189, 117, 0.45);
  text-underline-offset: 0.2em;
}

.source-note a:hover {
  color: var(--pico-primary-hover);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(224, 189, 117, 0.8);
  outline-offset: 3px;
}

@media (max-width: 40rem) {
  .container {
    width: min(100% - 2rem, 52rem);
  }

  .hero {
    padding: 2.5rem 0 1.25rem;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .local-time {
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .panel-heading {
    padding: 1.25rem 1.15rem 1.15rem;
  }

  .prayer-number {
    font-size: 2.1rem;
  }

  .prayer-body {
    padding: 1.4rem 1.15rem 1.5rem;
  }

  .inline-prayers {
    margin-inline: -0.15rem;
    padding: 1rem;
  }

  .invocation,
  .closing {
    padding: 1rem;
  }

  .prayer-body,
  .poetic-text,
  .instruction,
  .invocation,
  blockquote,
  blockquote p,
  .closing {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .source-note {
    margin-bottom: 3.5rem;
  }
}

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