:root {
  --paper: #f5efe2;
  --paper-deep: #ebe2cf;
  --ink: #26241f;
  --ink-soft: #4a463d;
  --green: #2c4a35;
  --green-ink: #f5efe2;
  --saddle: #8a4f22;
  --rule: #cdbf9f;
  --card: #fffaf0;
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--saddle); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: var(--green-ink);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 16px; top: 8px; }

/* Header */
.site-head { background: var(--green); color: var(--green-ink); border-bottom: 4px solid var(--saddle); }
.head-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--green-ink); text-decoration: none; }
.brand img { flex: none; }
.brand strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.65rem; line-height: 1.1; letter-spacing: 0.02em; color: var(--green-ink); }
.brand small { display: block; font-size: 0.8rem; color: #d9cfb8; letter-spacing: 0.04em; }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.site-head nav a { color: var(--green-ink); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { border-bottom-color: #d9a066; color: #fff; }

/* Main */
main { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--rule); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--green); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0.2rem 0 0.4rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.05rem); margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.4rem; margin-top: 1.8rem; }
p, ul, ol, table, figure { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35rem; }

.byline { font-size: 0.9rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* Notice: the venue is closed */
.notice {
  background: var(--paper-deep); color: var(--ink);
  border-left: 5px solid var(--saddle);
  padding: 1rem 1.2rem;
}
.notice strong { color: var(--ink); }
.notice p { color: var(--ink); }

/* Fact table */
.facts { width: 100%; border-collapse: collapse; background: var(--card); color: var(--ink); font-size: 0.97rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); }
.facts th { width: 34%; font-weight: 600; color: var(--green); }
.facts caption { text-align: left; font-size: 0.9rem; color: var(--ink-soft); padding-bottom: 0.4rem; }
.table-scroll { overflow-x: auto; }

/* Timeline */
.timeline { list-style: none; padding: 0 !important; border-left: 2px solid var(--rule); margin-left: 0.4rem; }
.timeline li { position: relative; padding: 0 0 1.2rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--saddle); border: 2px solid var(--paper); }
.timeline .when { display: block; font-weight: 600; color: var(--green); }

/* Quote from the archive */
blockquote {
  margin: 1.4rem 0 !important; padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 3px solid var(--green);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.35;
  color: var(--green); font-style: italic;
}
blockquote cite { display: block; margin-top: 0.4rem; font-family: "Source Serif 4", Georgia, serif; font-size: 0.85rem; font-style: normal; color: var(--ink-soft); }

/* Diagram */
figure.plan { background: var(--card); color: var(--ink); border: 1px solid var(--rule); padding: 1rem; }
figure.plan figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* Cards on home */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; max-width: none; }
.card { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 4px solid var(--green); padding: 1rem 1.1rem; }
.card h3 { margin-top: 0; font-size: 1.3rem; }
.card p { font-size: 0.97rem; }

/* Checklist */
.check { list-style: none; padding-left: 0 !important; }
.check li { padding-left: 1.6rem; position: relative; }
.check li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--green); font-weight: 700; }

/* FAQ */
.faq .qa { border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; }
.faq .qa h3 { font-size: 1.25rem; margin-top: 1.2rem; }
.faq .qa p { margin-top: 0.4rem; }

.sources { font-size: 0.93rem; color: var(--ink-soft); }
.sources li { word-break: break-word; }

code { font-size: 0.9em; background: var(--paper-deep); color: var(--ink); padding: 0.05em 0.3em; }

/* Footer */
.site-foot { background: #1f3527; color: #e9e1cd; padding: 2rem 0 2.4rem; font-size: 0.95rem; }
.site-foot p { max-width: 46rem; color: #e9e1cd; }
.site-foot strong { color: #fff; }
.site-foot a { color: #f0c896; }
.site-foot a:hover { color: #fff; }
.foot-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.site-foot .small { font-size: 0.85rem; color: #cfc6b0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-head nav ul { gap: 0.2rem 0.9rem; }
  .facts th { width: 40%; }
}

/* Two-column layout: article + sticky sidebar on wide screens */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 3.5rem; align-items: start; }
.main-col .prose { max-width: none; }
.side { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; margin-top: 0.6rem; }
.side-box { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 4px solid var(--saddle); padding: 1rem 1.1rem; font-size: 0.93rem; line-height: 1.55; }
.side-box p { color: var(--ink); }
.side-box p + p { margin-top: 0.6rem; }
.side-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--green) !important; margin-bottom: 0.5rem !important; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 0.3rem 0; border-bottom: 1px dotted var(--rule); }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero) " "; color: var(--saddle); font-size: 0.8rem; margin-right: 0.25rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--saddle); text-decoration: underline; }
h2[id] { scroll-margin-top: 1rem; }

@media (max-width: 60rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .side { position: static; margin-top: 0; }
  .main-col .prose { max-width: var(--measure); }
}

/* Illustrations */
figure.photo { margin: 1.6rem 0 !important; }
figure.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(38, 36, 31, 0.12); }
figure.photo figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.5; }
figure.photo .ill { font-style: italic; }
