:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --primary-dark: #a34420;
  --accent: #e0a03a;
  --line: #e7d9c4;
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, .06);
  --shadow-md: 0 8px 24px rgba(43, 33, 24, .08);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
}
h1 { font-size: 40px; }
h2 { font-size: 26px; margin-top: 44px; }
h3 { font-size: 18px; margin-top: 28px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-name { font-family: Fraunces, Georgia, serif; font-size: 19px; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 56px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}
.hero h1 { font-size: 48px; margin: 0 0 12px; letter-spacing: -.5px; }
.hero-deadline { font-size: 24px; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.hero-deadline span { display: block; font-size: 18px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.hero-sub { max-width: 60ch; color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* Timeline — the memory point */
.timeline {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.timeline-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
}
.timeline-step.is-deadline {
  border-top-color: var(--primary);
  background: #fdf0e9;
}
.timeline-date {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-step.is-deadline .timeline-date { color: var(--primary-dark); }
.timeline-label { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.timeline-note { color: var(--muted); font-size: 14px; }

/* Article / content */
.content { padding: 48px 20px 72px; }
.content > p, .content > ul, .content > ol { max-width: 70ch; }
.content table { border-collapse: collapse; width: 100%; max-width: 680px; margin: 22px 0; font-size: 15px; }
.content th, .content td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.content thead th { border-bottom: 2px solid var(--line); background: transparent; }
.content th { background: transparent; font-weight: 600; }
.content tbody tr:nth-child(even) { background: var(--card); }
.content blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-outline:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hero .btn-outline { margin-top: 18px; }

.countdown { margin: 14px 0 0; }
.countdown span {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.countdown-label { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.local-deadline {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
}

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 { margin-top: 0; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 700; color: var(--primary); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Comments */
.comments { margin-top: 48px; }
.comments h2 { margin-top: 0; }
.comments-invite { color: var(--muted); max-width: 70ch; }
.comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-head { margin: 0 0 4px; font-size: 14px; }
.comment-time { color: var(--muted); font-weight: 400; margin-left: 6px; }
.comment-text { margin: 0; }
.comment-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.comment-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.comment-field input, .comment-field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.comment-field textarea { resize: vertical; }
.comment-msg { margin: 0; color: var(--primary); font-size: 14px; }

/* Last updated */
.last-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-brand { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-nav a:hover { color: var(--primary); text-decoration: none; }
.disclaimer { color: var(--muted); font-size: 13px; max-width: 70ch; margin-bottom: 10px; }
.copyright { color: var(--muted); font-size: 13px; margin: 0; }

/* Article figures */
.content figure { margin: 36px 0; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 16px; box-shadow: var(--shadow-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.content figcaption { margin-top: 12px; padding: 0 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .hero { padding: 32px 0 30px; }
  .hero-deadline { font-size: 20px; }
  .timeline { grid-template-columns: 1fr; gap: 10px; }
  .timeline-step { padding: 12px 14px; }
  .timeline-date { font-size: 22px; }
  .header-inner { flex-wrap: wrap; min-height: auto; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 8px 14px; flex-wrap: wrap; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-sub { font-size: 15.5px; line-height: 1.55; }
  .content { padding: 32px 20px 56px; }
  .content table { font-size: 13.5px; }
  .content th, .content td { padding: 10px 8px; }
  .content figure { margin: 28px 0; padding: 10px 10px 12px; }
  .content figure img { width: 100%; min-width: 0; }
  .content figcaption { font-size: 14px; margin-top: 10px; }
}
