:root {
  --ink: #0c1222;
  --ink-soft: #1a2744;
  --paper: #eef2f6;
  --paper-2: #e2e8ef;
  --gold: #b8892d;
  --gold-deep: #8a671f;
  --sea: #1f6b75;
  --text: #152033;
  --muted: #556274;
  --line: rgba(21, 32, 51, 0.12);
  --shadow: 0 18px 50px rgba(21, 32, 51, 0.10);
  --radius: 18px;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -12%, rgba(31, 107, 117, 0.20), transparent 58%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 137, 45, 0.14), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, var(--paper) 45%, #e8eef4 100%);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: white; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(238, 242, 246, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand span { color: var(--gold-deep); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; justify-content: flex-end; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: var(--sea); }

.hero {
  padding: 4.5rem 0 2.5rem;
  animation: rise .7s ease both;
}
.eyebrow {
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); font-size: .78rem; margin: 0 0 .75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; margin: 0 0 1rem; color: var(--ink);
  max-width: 12ch;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.15rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-soft); color: white; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--sea); color: var(--sea); }

.cat-row { display: flex; flex-wrap: wrap; gap: .6rem; padding: .5rem 0 2rem; }
.cat-pill {
  background: white; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold-deep); }

.section-title, .page-head h1, .article-header h1 {
  font-family: var(--font-display); color: var(--ink); letter-spacing: -0.02em;
}
.section-title { font-size: 1.8rem; margin: 0 0 1.25rem; }
.page-head { padding: 3rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3.5rem;
}
.card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--ink-soft), var(--sea)); }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card-body h2 { font-family: var(--font-display); font-size: 1.2rem; margin: .2rem 0 .5rem; line-height: 1.25; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--sea); }
.meta { color: var(--muted); font-size: .85rem; margin: 0; }
.excerpt { color: var(--muted); margin: 0; font-size: .95rem; }

.article { padding: 2.5rem 0 4rem; max-width: 740px; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .35rem 0 0; line-height: 1.15; }
.article-hero { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }

.prose { font-size: 1.08rem; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display); color: var(--ink); line-height: 1.2;
}
.prose h2 { margin-top: 2rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft); font-style: italic;
}
.prose img { border-radius: 12px; margin: 1.25rem 0; }

.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: #d7dde8;
  padding: 2.5rem 0 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.4rem; color: white; margin: 0 0 .25rem;
}
.footer-tag { margin: 0 0 1rem; color: #9aa6bd; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-nav a { color: #e8edf7; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .hero { padding-top: 2.5rem; }
}
