:root {
  color-scheme: light;
  --navy: #13223b;
  --navy-soft: #213656;
  --coral: #d36f6a;
  --coral-dark: #a84f4a;
  --paper: #f6f3ed;
  --surface: #ffffff;
  --ink: #1a2433;
  --muted: #657083;
  --line: #dcd7ce;
  --warning: #fff5db;
  --warning-line: #e2b855;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .75rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--navy); color: white; border-bottom: 4px solid var(--coral); }
.site-header__inner { width: min(1160px, calc(100% - 2rem)); margin: auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-name { color: white; text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; }
.site-name span { display: block; color: #c7d1df; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
.site-header nav a { color: #eaf0f7; text-decoration: none; font-size: .9rem; font-weight: 650; }
.site-header nav .app-link { padding: .55rem .85rem; border: 1px solid #76869d; border-radius: 8px; }
.archive-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 68%, #34415a 100%); color: white; padding: 4.8rem 1rem 5.2rem; }
.archive-hero__inner { width: min(960px, 100%); margin: auto; }
.eyebrow { margin: 0 0 .7rem; color: #efaaa6; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.archive-hero h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.archive-hero__lead { max-width: 760px; margin: 1.4rem 0 0; color: #d9e1eb; font-size: 1.08rem; }
.archive-main { width: min(1080px, calc(100% - 2rem)); margin: -2rem auto 5rem; }
.archive-note, .historical-note { border: 1px solid var(--warning-line); border-radius: 13px; background: var(--warning); color: #5b4717; padding: 1rem 1.15rem; }
.archive-note { box-shadow: 0 10px 30px rgba(19,34,59,.11); }
.archive-note strong, .historical-note strong { color: #3e310f; }
.archive-tools { margin: 2rem 0 1.3rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.search-field { flex: 1; max-width: 620px; }
.search-field label { display: block; margin-bottom: .4rem; color: var(--navy); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.search-field input { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid #b7b2a9; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.search-field input:focus { outline: 3px solid rgba(211,111,106,.25); border-color: var(--coral); }
.result-count { margin: 0; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-card { display: flex; flex-direction: column; min-height: 230px; padding: 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 5px 18px rgba(19,34,59,.05); }
.post-card time { color: var(--coral-dark); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { margin: .55rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.2; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--coral-dark); }
.post-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-card__more { margin-top: auto; padding-top: 1rem; font-size: .86rem; font-weight: 800; text-decoration: none; }
.empty-results { padding: 2rem; border: 1px dashed #a9a49c; border-radius: 12px; text-align: center; color: var(--muted); }
.article-main { width: min(1040px, calc(100% - 2rem)); margin: 2.2rem auto 5rem; }
.breadcrumbs { margin-bottom: 1.2rem; color: var(--muted); font-size: .88rem; }
.article { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 30px rgba(19,34,59,.07); overflow: hidden; }
.article-header { padding: clamp(1.5rem, 5vw, 4.2rem); padding-bottom: 2rem; background: linear-gradient(145deg, #fff 0%, #f5f1e9 100%); border-bottom: 1px solid var(--line); }
.article-header time { color: var(--coral-dark); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-header h1 { max-width: 870px; margin: .65rem 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.historical-note { margin: 1.4rem clamp(1.2rem, 5vw, 4.2rem) 0; }
.article-body { padding: 1rem clamp(1.2rem, 5vw, 4.2rem) 3.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2.2vw, 1.13rem); }
.article-body h2, .article-body h3, .article-body h4 { color: var(--navy); line-height: 1.2; }
.article-body h2 { margin-top: 2.8rem; font-size: 1.75rem; }
.article-body h3 { margin-top: 2.2rem; font-size: 1.38rem; }
.article-body p { margin: 1.1rem 0; }
.article-body img { display: block; width: auto; max-width: 100%; height: auto; margin: 1.2rem auto; border-radius: 7px; }
.article-body figure { max-width: 100%; margin: 1.8rem auto; }
.article-body figcaption { margin-top: -.6rem; color: var(--muted); font-family: Inter, sans-serif; font-size: .8rem; text-align: center; }
.article-body blockquote { margin: 1.5rem 0; padding: .1rem 1.2rem; border-left: 4px solid var(--coral); color: #465164; }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: Inter, sans-serif; font-size: .85rem; }
.article-body td, .article-body th { padding: .55rem; border: 1px solid var(--line); }
.article-body a { overflow-wrap: anywhere; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding: 1.2rem clamp(1.2rem, 5vw, 4.2rem) 2rem; border-top: 1px solid var(--line); }
.article-nav a { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 750; }
.article-nav a:last-child { text-align: right; }
.site-footer { padding: 2rem 1rem; background: #0e192b; color: #bac5d3; }
.site-footer > div { width: min(1080px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; font-size: .86rem; }
.site-footer a { color: #e8edf4; font-size: .83rem; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .site-header__inner, .site-footer > div, .archive-tools { align-items: flex-start; flex-direction: column; }
  .site-header__inner { padding: 1rem 0; }
  .post-list { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
}
