:root {
  --ink: #2d201a;
  --muted: #74655c;
  --paper: #fffdf8;
  --cream: #f5efe4;
  --brown: #3f281d;
  --brown-light: #6d4936;
  --gold: #c68c3e;
  --green: #315f54;
  --line: #dfd2c0;
  --shadow: 0 18px 55px rgba(54, 34, 22, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, 'Times New Roman', serif; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--brown); color: white; border-bottom: 4px solid var(--gold); }
.header-inner { width: min(1180px, calc(100% - 2rem)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { display: block; width: 210px; max-height: 60px; }
.site-header nav { display: flex; gap: 1.4rem; font-family: Arial, sans-serif; font-size: .9rem; }
.site-header nav a { text-decoration: none; color: #f9eee2; }
.site-header nav a:hover { color: white; text-decoration: underline; }

main { overflow: hidden; }
.hero { position: relative; padding: clamp(2rem, 4vw, 3.75rem) max(1rem, calc((100vw - 940px) / 2)) clamp(1.75rem, 3vw, 3rem); background: radial-gradient(circle at 86% 18%, rgba(198,140,62,.14), transparent 26%), linear-gradient(135deg, #f8f1e6, #fffdf9 70%); }
.hero::after { content: '“'; position: absolute; right: max(1rem, calc((100vw - 1120px) / 2)); top: -.25rem; color: rgba(63,40,29,.045); font-size: min(18vw, 12rem); line-height: 1; }
.eyebrow, .section-kicker, .content-type { margin: 0 0 .7rem; color: var(--green); font: 700 .75rem/1.2 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { position: relative; z-index: 1; max-width: 850px; margin: 0; font-size: clamp(2.75rem, 6vw, 5.4rem); line-height: .92; letter-spacing: -.05em; }
h1 span { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; min-height: 1.6em; margin: 1rem 0 0; color: var(--brown-light); font-size: clamp(1rem, 1.7vw, 1.22rem); transition: opacity .2s ease; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { padding: .75rem 1.05rem; border: 1px solid var(--brown); border-radius: 99px; font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button-primary { color: white; background: var(--brown); }
.button-ghost { background: transparent; }
.numbers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 700px; margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.numbers div { padding-right: 1rem; }
.numbers dt { font-size: 2rem; font-weight: 700; }
.numbers dd { margin: 0; color: var(--muted); font: .8rem/1.4 Arial, sans-serif; }

.archive-tools, .timeline, .historical-note { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
h2 { margin: 0; font-size: clamp(2.1rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.search { max-width: 780px; margin-top: 2.2rem; }
.search label { display: block; margin-bottom: .5rem; color: var(--muted); font: .8rem Arial, sans-serif; }
.search-row { display: flex; padding: .35rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search input { min-width: 0; flex: 1; padding: .85rem; border: 0; background: transparent; outline: 0; }
.search button { padding: .75rem 1.2rem; border: 0; border-radius: 10px; color: white; background: var(--green); cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.filters label { color: var(--muted); font: .78rem Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.filters select { display: block; min-width: 150px; margin-top: .35rem; padding: .7rem 2rem .7rem .75rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.prototype-note { max-width: 760px; margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--gold); color: var(--muted); font-size: .92rem; }
.date-list { max-width: 920px; margin-top: 1.5rem; }
.date-month + .date-month { margin-top: 1.6rem; }
.date-month h3 { margin: 0 0 .65rem; color: var(--brown); font-size: 1.05rem; line-height: 1.2; text-transform: capitalize; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .45rem; }
.date-list button { min-height: 50px; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; color: var(--brown); background: white; cursor: pointer; font-family: Arial, sans-serif; }
.date-list button:hover, .date-list button:focus-visible { border-color: var(--green); outline: 2px solid rgba(49,95,84,.2); }
.date-list button.active { color: white; border-color: var(--green); background: var(--green); }
.date-list small { display: block; margin-top: .05rem; font-size: .58rem; letter-spacing: .08em; opacity: .75; }
.special-reading { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; color: #f8efe5; background: var(--brown); }
.special-reading .section-kicker { color: #e4b46f; }
.special-reading h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.06; }
.special-reading-copy > p:last-child { margin: 1rem 0 0; color: #e6d6c9; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: .55rem; }
.chapter-grid button { min-height: 64px; padding: .55rem; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff7ee; background: rgba(255,255,255,.06); cursor: pointer; font: 700 .82rem/1.2 Arial, sans-serif; }
.chapter-grid button:hover, .chapter-grid button:focus-visible { border-color: #e4b46f; background: rgba(228,180,111,.16); outline: 2px solid rgba(228,180,111,.3); }
.chapter-grid button.active { color: var(--brown); border-color: #e4b46f; background: #e4b46f; }
.chapter-grid small { display: block; margin-top: .25rem; font-size: .65rem; font-weight: 400; opacity: .8; }

.daily-edition { width: min(940px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3.5rem, 6vw, 5rem); }
.edition-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.edition-header h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.02em; }
.edition-number { margin: 0; color: var(--muted); font: italic .85rem Georgia, serif; }
.day-navigation { display: grid; grid-template-columns: 1fr auto 1fr; gap: .65rem; margin: .65rem 0 1rem; }
.day-navigation-bottom { margin: 1rem 0 0; }
.day-navigation button { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--brown); background: white; cursor: pointer; font: 700 .82rem Arial, sans-serif; }
.day-navigation button:first-child { text-align: left; }
.day-navigation button:last-child { text-align: right; }
.day-navigation button:disabled { cursor: not-allowed; opacity: .35; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tabs button { padding: 1rem; border: 1px solid var(--line); border-radius: 14px 14px 0 0; color: var(--muted); background: var(--cream); cursor: pointer; font: 700 .9rem Arial, sans-serif; }
.tabs button span { font-weight: 400; }
.tabs button[aria-selected='true'] { color: white; border-color: var(--brown); background: var(--brown); }
.reading-card { padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); border-top: 5px solid var(--gold); background: white; box-shadow: var(--shadow); }
.reading-card + .reading-card { margin-top: 1.5rem; }
.reading-card[hidden] { display: none; }
.reading-card h3 { max-width: 760px; margin: .5rem auto 2rem; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.02; text-align: center; }
.prose { max-width: 680px; margin: auto; color: #45352c; font-size: clamp(1.06rem, 2vw, 1.25rem); }
.prose p:first-child::first-letter { float: left; margin: .08em .1em 0 0; color: var(--gold); font-size: 4.4em; line-height: .72; }
.poem { text-align: center; }
.reading-card footer { max-width: 680px; margin: 3rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-family: Arial, sans-serif; font-size: .84rem; }
.reading-card footer p { margin: .35rem 0; }
.source-note { font-style: italic; }
.attribution { max-width: 680px; margin: 2.25rem auto 0; color: var(--green); text-align: center; font: 700 .92rem/1.55 Arial, sans-serif; }
.publication-count { margin: 0 0 1rem; color: var(--muted); text-align: center; font: .75rem Arial, sans-serif; }
.unavailable { color: var(--muted); text-align: center; }
.reading-card footer a { display: inline-block; margin-top: .65rem; color: var(--green); font-weight: 700; }

.timeline { border-top: 1px solid var(--line); }
.years { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.years button { min-width: 76px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 99px; color: var(--brown); background: transparent; cursor: pointer; }
.years button.active { color: white; border-color: var(--green); background: var(--green); }
.years button:disabled { cursor: not-allowed; opacity: .42; text-decoration: line-through; }
.recovery-summary { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: var(--cream); }
.recovery-intro { max-width: 780px; }
.recovery-intro h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
.recovery-intro > p:last-child { margin: 1rem 0 0; color: var(--muted); }
.recovery-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 2rem 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.recovery-numbers div { padding: 1.25rem; background: var(--paper); }
.recovery-numbers dt { color: var(--brown); font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; line-height: 1; }
.recovery-numbers dd { margin: .45rem 0 0; color: var(--muted); font: .75rem/1.35 Arial, sans-serif; }
.yearly-recovery { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.yearly-recovery summary { padding: 1.25rem 0 .15rem; color: var(--green); cursor: pointer; font: 700 .88rem Arial, sans-serif; }
.yearly-recovery summary:focus-visible { outline: 2px solid rgba(49,95,84,.35); outline-offset: 4px; }
.yearly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.5rem; margin-top: 1.1rem; }
.yearly-grid p { display: grid; grid-template-columns: 3.5rem 1fr; gap: .65rem; margin: 0; padding: .65rem 0; border-bottom: 1px solid rgba(116,101,92,.18); }
.yearly-grid strong { color: var(--brown); }
.yearly-grid span { color: var(--muted); font: .78rem/1.5 Arial, sans-serif; }
.yearly-grid .year-unavailable span { font-style: italic; }
.recovery-note { margin: 1rem 0 0; color: var(--muted); font-size: .85rem; font-style: italic; }
.historical-note { margin-bottom: 6rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; color: #f8efe5; background: var(--brown); }
.historical-note .section-kicker { color: #e4b46f; }
.historical-note p:last-child { max-width: 780px; color: #e6d6c9; font-size: 1.05rem; }

.site-footer { padding: 3rem 1rem; color: #eadfd5; background: #2b1b14; text-align: center; font-family: Arial, sans-serif; font-size: .8rem; }
.site-footer img { width: 190px; }
.site-footer p { margin: .4rem; }

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .site-header nav { flex-wrap: wrap; gap: .8rem 1.1rem; }
  .numbers { grid-template-columns: 1fr; gap: 1rem; }
  .numbers div { display: grid; grid-template-columns: 60px 1fr; align-items: center; }
  .edition-header { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .tabs { grid-template-columns: 1fr; }
  .tabs button { border-radius: 12px; }
  .day-navigation { grid-template-columns: 1fr 1fr; }
  .day-navigation button[data-action='mes'] { grid-column: 1 / -1; grid-row: 2; }
  .search-row { flex-direction: column; }
  .search button { width: 100%; }
  .filters label, .filters select { width: 100%; }
  .special-reading { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recovery-numbers, .yearly-grid { grid-template-columns: 1fr; }
  .recovery-numbers div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: .75rem; }
  .recovery-numbers dd { margin: 0; }
}
