*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Noto Sans SC', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: #1A1A1A; background: #F8F8F8; -webkit-font-smoothing: antialiased; }

:root {
  --color-bg: #F8F8F8;
  --color-text: #1A1A1A;
  --color-text-secondary: #555;
  --color-accent: #B22222;
  --color-accent-light: #E63946;
  --color-gold: #D4AF37;
  --color-gold-light: #F0D060;
  --color-surface: #FFF;
  --color-border: #E0E0E0;
  --color-shadow: rgba(0,0,0,0.08);
  --color-header-bg: #0B1D3A;
  --color-header-text: #F0F0F0;
  --color-footer-bg: #0B1D3A;
  --color-footer-text: #CCC;
  --font-heading: 'Noto Serif SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --base-size: 16px;
  --nav-height: 60px;
}

.skip-link {
  position: absolute; top: -40px; left: 0; z-index: 9999;
  background: #B22222; color: #fff; padding: 8px 16px; text-decoration: none; font-size: 0.9rem; border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--color-header-bg); color: var(--color-header-text);
  height: var(--nav-height); display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-heading); font-weight: 700; font-style: italic;
  font-size: 1.4rem; color: var(--color-gold); text-decoration: none; letter-spacing: 2px;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--color-header-text);
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2px; background: currentColor; transition: all 0.3s; position: relative;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-list { display: flex; list-style: none; gap: 8px; }
.nav-link {
  display: inline-block; padding: 8px 18px; border-radius: 50px;
  color: var(--color-header-text); text-decoration: none; font-size: 0.9rem;
  border: 1px solid transparent; transition: all 0.25s;
  font-weight: 500;
}
.nav-link:hover, .nav-link:focus-visible {
  border-color: var(--color-accent-light); background: rgba(255,255,255,0.05);
}
.nav-link[aria-current="page"] {
  border-color: var(--color-gold); background: var(--color-accent); color: #fff;
}

/* mobile navigation */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--color-header-bg); padding: 16px 24px;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .site-header[data-open] .nav {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; text-align: center; }
}

/* footer */
.site-footer {
  background: var(--color-footer-bg); color: var(--color-footer-text);
  padding: 48px 24px 24px; margin-top: 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-style: italic; font-size: 1.2rem; color: var(--color-gold); display: block; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: var(--color-gold-light); text-decoration: none; font-size: 0.9rem; }
.footer-link:hover { text-decoration: underline; }
.footer-info { font-size: 0.85rem; line-height: 1.8; }
.footer-info p { margin-bottom: 4px; }
.footer-statement { max-width: 1200px; margin: 32px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.8rem; color: #999; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
}

/* base components */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); transition: color 0.2s; }
a:hover { color: var(--color-accent-light); }
.btn {
  display: inline-block; padding: 10px 28px; border-radius: 50px;
  background: var(--color-accent); color: var(--color-gold); font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.2s;
  font-size: 0.95rem;
}
.btn:hover { background: var(--color-accent-light); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

.section-number {
  font-family: var(--font-heading); font-weight: 700; font-style: italic;
  font-size: 4rem; color: var(--color-accent); line-height: 1;
  opacity: 0.3; margin-bottom: -0.5rem;
}
.card-archive {
  background: var(--color-surface); border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 12px var(--color-shadow); border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-archive:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: var(--color-gold); width: 0%; transition: width 0.1s linear;
}

/* accessibility */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* image placeholder base */
.image-frame {
  background: #e8e8e8; border-radius: 8px; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #888; font-size: 0.85rem;
}
