*, *::before, *::after { box-sizing: border-box; }
button, summary { cursor: pointer; }
:root {
  --ink: #3a2a22;
  --soft: #6d5648;
  --cream: #fff8f0;
  --line: rgba(90, 58, 40, 0.16);
  --gold: #c9854a;
}

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

body {
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  background: #1b140f;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #c9a27a;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.page {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7vh 0 2rem;
}

.page header {
  text-align: center;
  margin-bottom: 18px;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff8ef;
  margin: 0 0 8px;
  text-shadow: 0 1px 8px rgba(40, 22, 12, 0.45);
}

h1,
h2,
blockquote {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6.4vw, 3.7rem);
  line-height: 1.02;
  color: #fffaf4;
  text-shadow: 0 2px 18px rgba(40, 22, 12, 0.4);
}

.lead {
  margin: 14px auto 0;
  max-width: 36rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 2.7vw, 1.45rem);
  line-height: 1.35;
  color: #fffaf4;
  text-shadow: 0 2px 12px rgba(40, 22, 12, 0.5);
}

.lead em {
  font-style: italic;
  color: #ffe7c2;
}

.day-card,
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(40, 22, 12, 0.22);
}

.day-card {
  padding: 22px 24px 18px;
}

.label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
}

.ref {
  margin: 12px 0 0;
  color: var(--soft);
  font-weight: 700;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

button {
  appearance: none;
  border: 0;
  font: inherit;
}

.actions button,
.actions a,
.again {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #201813;
  color: #fff8f1;
  font-weight: 700;
  text-decoration: none;
  display: grid;
  place-items: center;
  text-align: center;
}

.actions a.help-link {
  grid-column: 1 / -1;
  background: #8a4e24;
}

.actions button:hover,
.actions a:hover,
.again:hover {
  background: #46362c;
}

.actions button:focus-visible,
.actions a:focus-visible,
.close:focus-visible,
.again:focus-visible,
.thought summary:focus-visible {
  outline: 3px solid #e7b15a;
  outline-offset: 2px;
}

.tagline {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 8px 16px 40px;
  overflow: hidden;
  pointer-events: none;
}

.tagline p {
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-family: Fraunces, Georgia, serif;
  font-size: min(3.5rem, calc((100vw - 40px) / 25.2));
  line-height: 1.25;
  color: #fffaf4;
  text-shadow: 0 2px 10px rgba(28, 16, 10, 0.65);
}

.tagline .walk-line {
  margin-top: 8px;
  font-style: italic;
  font-size: min(2.85rem, calc((100vw - 40px) / 30.4));
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(28, 18, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
}

.panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(80vh, 740px);
  padding: 22px 22px 26px;
  color: var(--ink);
  overflow: auto;
}

.panel h2 {
  margin: 4px 36px 12px 0;
  font-size: 1.7rem;
}

.saying {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.saying p {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.saying span {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.verse-box {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.4;
}

.note {
  color: var(--soft);
  font-size: 0.95rem;
}

.downloads {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.downloads a,
.again {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
}

.downloads a {
  background: #fff;
  color: #8a4e24;
  font-weight: 700;
  border: 1px solid var(--line);
}

.again {
  margin-top: 16px;
  text-align: center;
  width: 100%;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3e6d8;
  color: var(--ink);
  font-size: 1.4rem;
}

.placeholder {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed var(--line);
}

.help-page {
  width: min(760px, calc(100% - 32px));
  padding-bottom: 4rem;
}

.back {
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
}

.back a {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 16px;
  background: #8a4e24;
  color: #fff8f1;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(40, 22, 12, 0.28);
}

.back a:hover {
  background: #46362c;
}

.back a:focus-visible {
  outline: 3px solid #e7b15a;
  outline-offset: 2px;
}

.thoughts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.thought {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(40, 22, 12, 0.12);
}

.thought summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.thought summary::-webkit-details-marker {
  display: none;
}

.thought summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-family: Nunito, sans-serif;
  font-weight: 700;
}

.thought[open] summary::after {
  content: "–";
}

.thought-body {
  padding: 0 18px 16px;
}

.thought-body h3 {
  margin: 14px 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Nunito, sans-serif;
  font-weight: 700;
}

.thought-body p,
.thought-body li {
  margin: 0;
  line-height: 1.5;
}

.thought-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.thought-body li + li {
  margin-top: 4px;
}

.thought-body .verse-box {
  font-size: 1.15rem;
}

.walk {
  width: min(880px, calc(100vw - 32px));
  margin: 22px 0 8px;
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.walk article {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 16px;
  box-shadow: 0 18px 50px rgba(40, 22, 12, 0.18);
}

.walk h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}

.walk ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.walk li {
  line-height: 1.45;
}

.walk li strong {
  display: block;
  margin-bottom: 2px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .actions {
    gap: 8px;
  }
  .actions button {
    min-height: 64px;
    padding: 10px 8px;
    font-size: 0.92rem;
    line-height: 1.2;
  }
  .page {
    padding-top: 5vh;
    padding-bottom: 1.5rem;
  }
  .walk {
    grid-template-columns: 1fr;
  }
  .scene img {
    object-position: center 70%;
  }
}

.backdrop[hidden] { display: none; }
