:root {
  /* Inherited from new_styles.css */
  --bg: #1d4caa;
  --ink: #ffffff;
  --muted: #a1acc3;
  --line: rgba(255, 255, 255, 0.15);

  --blue-900: #eaf1ff;
  --blue-700: #4e82ff;
  --blue-600: #3a7cff;
  --blue-500: #2a6bff;

  --blue-100: #1a243a;
  --blue-050: #0f172a;

  --card: rgba(30, 41, 59, 0.7);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 15% 8%, rgba(42, 107, 255, 0.15), transparent 60%),
    radial-gradient(900px 420px at 85% 18%, rgba(31, 92, 255, 0.12), transparent 55%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: white;
  color: #1d4caa;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

/* ---------- Top nav (Modernized) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #9e75ee;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 200px;
}

.brand .mark {
  width: 18px;
  height: 32px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue-700), rgba(31, 92, 255, .15));
  box-shadow: 0 10px 20px rgba(31, 92, 255, .18);
}

.brand .title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
  margin: 0;
  line-height: 1.05;
  color: white;
}

.site-logo {
  display: block;
  height: 75px;
  width: auto;
}

.brand .sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
}

.navlinks a {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  background: rgba(42, 107, 255, .15);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: flex-end;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .1);
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: rgba(30, 41, 59, 0.95);
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 10px;
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Typography ---------- */
main {
  padding: 40px 0;
}

.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.95;
  margin: 0 0 14px;
}

.p {
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  max-width: 65ch;
  margin-top: 0;
}

.section {
  margin-top: 40px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* ---------- Cards & Glassmorphism ---------- */
.card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-inner {
  padding: 28px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 800;
  margin: 0 0 20px 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
}

/* ---------- Timeline (Modernized) ---------- */
.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-700), rgba(255, 255, 255, .1));
}

.t-item {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
  margin-bottom: 16px;
  transition: transform .2s ease;
}

.t-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, .05);
}

.t-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--blue-700);
  box-shadow: 0 0 0 6px rgba(42, 107, 255, .1);
  border: 2px solid var(--bg);
}

.t-item .year {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.t-item .title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  margin: 4px 0;
  color: white;
}

.t-item .notes {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-700), var(--blue-600));
  color: white;
  border: 1px solid var(--blue-500);
  box-shadow: 0 10px 20px rgba(42, 107, 255, .2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(42, 107, 255, .3);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tiny {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
}