:root {
  --paper: #edf2f1;
  --leaf: #f9fbfa;
  --ink: #14232b;
  --ink-soft: #4a5c66;
  --red: #9e1b1b;
  --sea: #1d5c7a;
  --gold: #b9962e;
}

* { box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100svh;
  display: flex;
  justify-content: center;
}

.page {
  width: min(44rem, 100%);
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stale-warning {
  display: none;
  width: min(32rem, 100%);
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cfae3d;
  background: #fff7db;
  color: var(--ink);
  font-size: 0.9375rem;
}

.is-stale .stale-warning { display: block; }

/* Masthead */

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
}

.question {
  margin: 0.75rem 0 0;
  font-family: "Cinzel", "Spectral", serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 0.06em;
}

.date-line {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.date-line::first-letter { text-transform: uppercase; }

/* Answer */

.answer {
  margin: clamp(1.5rem, 5vh, 3rem) 0;
  padding: 0 1rem;
  position: relative;
}

.answer::before,
.answer::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 1px;
  margin: 0 auto;
  background: var(--gold);
}

.verdict {
  margin: 1.5rem 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(6rem, 26vw, 11rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.state-da .verdict { color: var(--red); }
.state-nu .verdict { color: var(--ink); }

.explain {
  margin: 0 0 1.5rem;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  max-width: 32rem;
}

/* Week strip — a row of calendar leaves */

.week { width: 100%; }

.week-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(0.25rem, 1.2vw, 0.5rem);
}

.day {
  background: var(--leaf);
  border: 1px solid #d3ddda;
  border-radius: 2px;
  padding: 0.5rem 0.15rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  box-shadow: 0 1px 0 rgba(20, 35, 43, 0.06);
}

.dow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.num {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  line-height: 1.1;
}

.mark {
  height: 1rem;
  display: flex;
  align-items: center;
}

.day.has-fish {
  border-color: var(--sea);
  background: #eef4f6;
}

.day.has-fish .num { color: var(--sea); }

.day.is-today {
  border: 2px solid var(--red);
  box-shadow: 0 2px 6px rgba(158, 27, 27, 0.15);
}

.day.is-today .dow { color: var(--red); }

/* Fish glyph */

.fish {
  width: 1.5rem;
  height: 1.125rem;
  display: inline-block;
}

.fish path {
  fill: none;
  stroke: var(--sea);
  stroke-width: 5;
  stroke-linecap: round;
}

.fish-small {
  width: 1.25rem;
  height: 0.9375rem;
  vertical-align: -0.15em;
}

.legend {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Footer */

.footnote {
  margin-top: auto;
  padding-top: clamp(2rem, 6vh, 3.5rem);
}

.footnote p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  max-width: 30rem;
}

@media (prefers-reduced-motion: no-preference) {
  .verdict {
    animation: surface 0.5s ease-out both;
  }
  @keyframes surface {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: none; }
  }
}
