:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716c;
  --paper: #f7f2e8;
  --card: #fffdf8;
  --line: #d9d2c5;
  --accent: #b84c2b;
  --green: #214d3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.hero { max-width: 760px; margin-bottom: 48px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.035em; }
.hero-copy { max-width: 620px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card,
.editor-note,
.preview-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 35px rgba(38, 31, 21, .05);
}

.post-card { min-height: 270px; padding: 24px; display: flex; flex-direction: column; }
.post-card h2 { margin: 24px 0 10px; font-size: 1.65rem; line-height: 1.12; }
.post-card p { color: var(--muted); line-height: 1.6; }
.post-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .78rem; }
.read-more { margin-top: auto; color: var(--green); font-weight: 700; font-size: .85rem; }

.editor-note {
  margin-top: 24px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
}
.editor-note p { color: var(--muted); }
.editor-note a { color: var(--accent); font-weight: 800; }

.preview-shell { width: min(820px, 100%); margin: 0 auto; }
.preview-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 8px 12px;
  border: 1px solid #e7b6a6;
  background: #fff2ed;
  color: #8c351f;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.preview-card { min-height: 380px; padding: clamp(28px, 6vw, 64px); }
.preview-card h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.preview-card .post-meta { margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.summary { margin: 32px 0 18px; color: var(--muted); font-size: 1.15rem; font-style: italic; line-height: 1.7; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.85; }
.loading { color: var(--muted); }
.preview-help { color: var(--muted); font-size: .88rem; }

.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { margin-bottom: 32px; }

footer {
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 800px) {
  .post-grid { grid-template-columns: 1fr; }
  .editor-note { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 0; }
  nav { gap: 16px; }
  .page-shell { padding-top: 48px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
