:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17202a;
  --muted: #5f6c7b;
  --line: rgba(23, 32, 42, 0.12);
  --brand: #0f3d5e;
  --brand-2: #b56b36;
  --accent: #154f79;
  --shadow: 0 24px 60px rgba(23, 32, 42, 0.12);
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 107, 54, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(21, 79, 121, 0.16), transparent 24rem),
    var(--bg);
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brand-2); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 240, 232, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #27698f);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 61, 94, 0.25);
  font-size: 0.9rem;
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; }

.site-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(15, 61, 94, 0.09);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.site-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: 2rem;
}

.hero-copy h1,
.article-header h1,
.archive h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-lede,
.article-description,
.archive-description {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.hero-media {
  justify-self: center;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 11% -10% -8% 8%;
  border-radius: 42% 58% 54% 46%;
  background: rgba(181, 107, 54, 0.18);
}

.hero-media img {
  position: relative;
  width: min(320px, 70vw);
  border-radius: 38% 62% 50% 50%;
  box-shadow: var(--shadow);
}

.content-card {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.article-content,
.page-content,
.archive,
.not-found { max-width: 900px; margin: 0 auto; }

.article-header { margin-bottom: clamp(1.5rem, 4vw, 3rem); }

.article-header.compact { margin-bottom: 1rem; }

.article-header h1,
.archive h1,
.not-found h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }

.article-hero-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin-top: 2rem;
  border: 1px solid var(--line);
}

.prose { font-size: 1.06rem; }

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 2rem 0 0.85rem;
}

.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.prose h4 { font-size: 1.08rem; letter-spacing: 0; }

.prose p,
.prose li { color: #27313d; }

.prose ul,
.prose ol { padding-left: 1.3rem; }

.prose li + li { margin-top: 0.35rem; }

.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--brand-2);
  background: rgba(181, 107, 54, 0.09);
  border-radius: 16px;
}

.prose figure { margin: 2rem 0; }

.prose img {
  border-radius: 18px;
  border: 1px solid var(--line);
}

.prose .lcp_catlist,
.home-content ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
  list-style: none;
}

.prose .lcp_catlist li,
.home-content ul li {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.post-grid { display: grid; gap: 1rem; margin-top: 2rem; }

.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.post-card-image {
  display: block;
  min-height: 118px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 61, 94, 0.08);
}

.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-card h2 { margin: 0.2rem 0 0.4rem; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.12; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { margin: 0; color: var(--muted); }
.post-card-meta { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: rgba(255, 253, 248, 0.62);
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
}

.footer-inner p { margin: 0; }

@media (max-width: 800px) {
  .nav-shell { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 64px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .hero-media { order: -1; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-image { min-height: 180px; }
}
