:root {
  color-scheme: dark;
  --bg: #101312;
  --surface: #171b19;
  --surface-2: #202622;
  --text: #f2f0e7;
  --muted: #a7aea8;
  --line: #343c37;
  --accent: #d1a85a;
  --accent-soft: rgba(209, 168, 90, 0.14);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(209, 168, 90, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-copy {
  margin: 1.8rem 0 0;
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.section {
  padding: 3rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.status-pill {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loading,
.empty-state,
.error-state {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--muted);
}

.week-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.week-intro strong {
  color: var(--text);
  font-size: 1.08rem;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.day-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.day-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.day-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-copy { padding: 1rem 1rem 1.15rem; }

.day-position {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.day-date {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.day-reveal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.day-story { margin: 0; }
.day-symbols { margin: 0.8rem 0 0; padding-left: 1.1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.steps li > span {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.steps strong { display: block; margin-top: 0.2rem; }
.steps p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.archive-card h3 { margin: 0.2rem 0 0.45rem; }
.archive-card p { margin: 0; color: var(--muted); }
.archive-theme { margin-top: 0.85rem !important; color: var(--text) !important; }

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0; }

@media (max-width: 780px) {
  .site-header { align-items: flex-start; padding-block: 1rem; }
  .header-note { display: none; }
  .days-grid,
  .steps,
  .archive-grid { grid-template-columns: 1fr; }
  .week-intro { display: block; }
}

@media (min-width: 980px) {
  .days-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-card:first-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
