@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #10233f;
  --muted: #63738a;
  --surface: #ffffff;
  --soft: #f2f7fc;
  --line: #dce7f2;
  --brand: #0b5ea8;
  --brand-dark: #084a83;
  --accent: #d69e3e;
  --shadow: 0 18px 50px rgba(16, 35, 63, .10);
}

[data-theme='dark'] {
  --ink: #edf5ff;
  --muted: #b8c8da;
  --surface: #122239;
  --soft: #0b182a;
  --line: #2a4059;
  --brand: #65b8ff;
  --brand-dark: #a1d5ff;
  --accent: #efbf67;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.65 'DM Sans', Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--surface); padding: 10px 16px; z-index: 50; }
.skip-link:focus { left: 16px; }

.topline { background: var(--ink); color: #fff; font-size: .8rem; }
.topline .container { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; font-size: .93rem; letter-spacing: .01em; }
.brand span { display: block; color: var(--muted); font-size: .72rem; }
.nav-links { display: flex; align-items: center; justify-content: end; gap: 19px; list-style: none; margin: 0; padding: 0; font-size: .86rem; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .menu-toggle { color: var(--ink); background: var(--soft); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; background: linear-gradient(130deg, #082d5a 0%, #0d66ad 55%, #77c8f5 150%); color: white; padding: 88px 0 76px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.19), transparent 28%), linear-gradient(110deg, transparent 45%, rgba(255,255,255,.08)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .77rem; }
.hero h1, .page-hero h1 { font: 700 clamp(2.45rem, 5vw, 4.5rem)/1.05 'Playfair Display', Georgia, serif; margin: 13px 0 18px; }
.hero .lead { font-size: 1.18rem; color: #d9eeff; max-width: 660px; }
.hero-photo { width: min(300px, 80%); justify-self: end; border-radius: 48% 48% 12px 12px; border: 8px solid rgba(255,255,255,.18); box-shadow: 28px 28px 0 rgba(255,255,255,.10); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; transition: transform .18s, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: white; }
.hero .btn-primary { background: white; color: #075494; }
.btn-secondary { border-color: currentColor; color: var(--ink); background: transparent; }
.hero .btn-secondary { color: white; }

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-hero h1 { font-size: clamp(2.25rem, 4vw, 3.7rem); margin-bottom: 9px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 750px; }
main section { padding: 82px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { font: 700 clamp(1.9rem, 3.2vw, 2.9rem)/1.2 'Playfair Display', Georgia, serif; margin: 6px 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .13em; color: var(--brand); font-size: .76rem; font-weight: 700; }
.section-soft { background: var(--soft); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 3px 10px rgba(16,35,63,.025); }
.card h3 { margin: 0 0 9px; font-size: 1.08rem; }
.card p { color: var(--muted); margin: 0; }
.stat-card { padding: 25px 16px; text-align: center; }
.stat-card strong { display: block; color: var(--brand); font: 700 2.55rem/1 'Playfair Display', Georgia, serif; margin-bottom: 8px; }
.stat-card span { color: var(--muted); font-size: .86rem; }
.topic { border-left: 3px solid var(--accent); }
.topic strong { display: block; margin-bottom: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; }
.feature-image { min-height: 390px; height: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, #d8efff, #1c78b9); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.copy p, .copy li { color: var(--muted); }
.list-clean { padding-left: 18px; margin: 18px 0 0; }
.list-clean li { margin: 8px 0; }
.timeline { position: relative; max-width: 940px; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 12px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 29px 47px; }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--surface); background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.timeline-item time { color: var(--brand); font-weight: 700; font-size: .84rem; }
.timeline-item h3 { margin: 4px 0; font-size: 1.12rem; }
.timeline-item p { margin: 0; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--brand); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: var(--soft); }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.pub-toolbar { display: grid; grid-template-columns: 1fr 200px 190px; gap: 12px; margin: 25px 0; }
.field { width: 100%; min-height: 46px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 7px; padding: 10px 13px; }
.pub-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 17px; align-items: start; }
.pub-year { padding-top: 2px; color: var(--brand); font-weight: 700; font-size: .88rem; }
.pub-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; }
.pub-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.tag { display: inline-block; white-space: nowrap; background: var(--soft); border: 1px solid var(--line); color: var(--brand); border-radius: 99px; padding: 3px 9px; font-size: .72rem; font-weight: 700; }
.muted-note { color: var(--muted); font-size: .88rem; }
.empty { padding: 50px 24px; border: 1px dashed var(--line); text-align: center; color: var(--muted); border-radius: 12px; }
.file-card { display: flex; gap: 15px; align-items: flex-start; }
.file-icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; background: #e7f3ff; color: var(--brand); border-radius: 9px; font-weight: 700; font-size: .75rem; }
.form-card { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
textarea.field { min-height: 130px; resize: vertical; }
.form-status { display: none; margin-top: 16px; padding: 13px; background: #e4f6eb; border-radius: 8px; color: #146c3d; }
.contact-card { border-top: 3px solid var(--brand); }
.gallery-placeholder { min-height: 280px; display: grid; place-items: center; padding: 30px; background: var(--soft); border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.notice { border-left: 4px solid var(--accent); padding: 16px 19px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 0 8px 8px 0; color: var(--muted); }
.site-footer { color: #dcecff; background: #071d36; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 36px; }
.site-footer h3 { font: 700 1.1rem 'Playfair Display', Georgia, serif; color: white; margin-top: 0; }
.site-footer p, .site-footer li { color: #a9c3dc; font-size: .88rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.copyright { margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #a9c3dc; font-size: .8rem; }

@media (max-width: 980px) {
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; justify-content: start; display: none; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 38px; }
  .hero-photo { justify-self: start; width: 235px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .topline .container { font-size: .7rem; }
  .topline .container span:last-child { display: none; }
  .brand { min-width: 0; }
  .brand span { display: none; }
  .hero { padding: 60px 0; }
  main section { padding: 58px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .pub-toolbar { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 47px 1fr; }
  .pub-card .tag { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero { padding: 47px 0 40px; }
}
