:root {
  --navy: #0e2138;
  --navy-2: #16324f;
  --navy-3: #1d4165;
  --gold: #c9a227;
  --gold-soft: #e4c25a;
  --cream: #f7f4ec;
  --cream-2: #efe9db;
  --paper: #ffffff;
  --ink: #1a2430;
  --muted: #5d6a77;
  --line: #ddd5c4;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --radius: 3px;
  --shadow: 0 18px 40px -28px rgba(14, 33, 56, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--gold); }
.logo:hover { color: var(--navy); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav > a,
.dropdown > summary {
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav > a:hover,
.dropdown > summary:hover { border-bottom-color: var(--gold); color: var(--navy); }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: "+"; font-size: 0.95rem; color: var(--gold); }
.dropdown[open] > summary::after { content: "\2212"; }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: grid;
  z-index: 60;
}
.dropdown-menu a {
  padding: 0.55rem 0.7rem;
  color: var(--navy);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 6px solid var(--gold);
  overflow: hidden;
  background-image:
    radial-gradient(60rem 30rem at 88% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy) 100%);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero-inner { max-width: 34rem; }

.hero .kicker {
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero .kicker::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.hero h1 {
  color: #fbf8f1;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.8vw, 3.65rem);
}

.hero .lede {
  color: #d8dde4;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  max-width: 31rem;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold);
  pointer-events: none;
}
.hero-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.btn-lg { padding: 0.85rem 1.6rem; font-size: 0.86rem; }

.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }

/* Sections */
.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section .wrap > h2 { margin-bottom: 0.3em; }
.section-sub { color: var(--muted); max-width: 42rem; margin-bottom: 2rem; }

.section.values { background: var(--cream-2); }

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.cat-tile:hover {
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--gold);
  transform: translateY(-2px);
}
.cat-name {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.cat-desc { font-size: 0.86rem; color: var(--muted); }
.cat-tile:hover .cat-name { color: var(--gold-soft); }
.cat-tile:hover .cat-desc { color: #c8d0da; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(14, 33, 56, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-media { display: block; overflow: hidden; background: var(--navy); }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream-2);
  border-bottom: 2px solid var(--gold);
  padding: 0.25rem 0.55rem;
  text-decoration: none;
}
.badge:hover { color: var(--navy); background: var(--gold-soft); }

.card-title { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--gold); }

.card-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
}
.card-body .btn:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* Blog featured */
.grid.featured { margin-bottom: 2.5rem; }

/* Values */
.values .grid { margin-top: 2rem; }
.value {
  background: var(--paper);
  border-top: 4px solid var(--gold);
  padding: 1.5rem 1.4rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.value p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* Breadcrumb */
.breadcrumb { margin: 1.8rem 0 1.4rem; font-size: 0.82rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: #b3a889; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* Page head */
.page-head {
  padding-bottom: 1.6rem;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 2rem;
}
.page-head .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.page-head .lede { color: var(--muted); max-width: 46rem; margin-bottom: 0; }

/* Category intros */
.intro-2 { margin-bottom: 1.2rem; }
.subtopics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}
.subtopics li {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  color: var(--navy);
}
.other-cats { margin-top: 1rem; }

/* Article */
.article-wrap { padding-bottom: 3rem; }
.article-head { padding-bottom: 1.6rem; border-bottom: 3px solid var(--navy); margin-bottom: 2rem; }
.article-head h1 { margin: 0.6rem 0 0.7rem; }
.article-head .lede { color: var(--muted); font-size: 1.08rem; margin-bottom: 1rem; }
.meta { font-size: 0.84rem; color: var(--muted); margin: 0; }

.prose { max-width: 74ch; }
.prose h2 {
  margin-top: 2.4em;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--gold);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.prose h3 { margin-top: 1.8em; }
.prose ul li::marker { color: var(--gold); }
.prose a { color: var(--navy-3); text-decoration-color: var(--gold); font-weight: 500; }
.prose a:hover { color: var(--gold); }

.article-figure { margin: 2rem 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* FAQ */
.faq { margin: 3rem 0 2.5rem; max-width: 74ch; }
.faq h2 { border-bottom: 2px solid var(--gold); padding-bottom: 0.3rem; }
.faq details {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Author */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  max-width: 74ch;
}
.author-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.05rem;
}
.author-box h2 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.author-box p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Related */
.related { margin-top: 2.5rem; }
.related > h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Info / simple pages */
.updated { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c8d2dd;
  margin-top: 3rem;
  border-top: 6px solid var(--gold);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}
.site-footer h3 {
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d7dee6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-logo {
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.2rem;
  font-size: 0.8rem;
  color: #9fb0c1;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
  .hero-inner { max-width: 40rem; }
  .hero-art { max-width: 34rem; }
  .hero-art::before { inset: 10px -10px -10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 1.6rem, var(--max)); }
  .header-inner { min-height: 64px; }
  .logo { font-size: 1.4rem; }
  .nav { gap: 0.9rem; font-size: 0.72rem; letter-spacing: 0.06em; }
  .nav > a[href$="blog/index.html"] { display: none; }
  .dropdown-menu { right: auto; left: 0; }
  .hero h1 { font-size: 2.15rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .grid, .grid.three, .related .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 110px 1fr; }
  .card-media img { height: 100%; aspect-ratio: auto; }
  .card-body { padding: 0.9rem 1rem; gap: 0.4rem; }
  .card-title { font-size: 1.02rem; }
  .card-body p { display: none; }
  .card-body .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
