:root {
  --ink: #121820;
  --ink-soft: #3a4a5c;
  --paper: #eef1f4;
  --paper-2: #e2e7ee;
  --steel: #1a2d44;
  --steel-mid: #2c4a6e;
  --moss: #1a2d44;
  --moss-deep: #122033;
  --amber: #c4783a;
  --copper: #c4783a;
  --line: rgba(18, 24, 32, 0.12);
  --max: 1280px;
  --narrow: 720px;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(44, 74, 110, 0.16), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(196, 120, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f6f9 0%, var(--paper) 40%, #e6ebf1 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--moss);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--moss-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, 1360px);
}

.narrow {
  width: min(100% - 2rem, var(--narrow));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 240, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background:
    linear-gradient(145deg, var(--moss) 0%, var(--moss-deep) 70%),
    radial-gradient(circle at 70% 30%, var(--amber), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a.is-active,
.nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  font: inherit;
  cursor: pointer;
}

.hub-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hub-bar-inner {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.55rem 0;
  scrollbar-width: thin;
}

.hub-bar a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hub-bar a:hover,
.hub-bar a.is-active {
  background: rgba(44, 74, 110, 0.12);
  color: var(--moss-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  display: grid;
  align-items: end;
  padding: 2.25rem 0 2rem;
  overflow: hidden;
}

.hero-compact {
  min-height: 0;
  padding: 1.15rem 0 1.05rem;
  background:
    linear-gradient(120deg, rgba(26, 45, 68, 0.96) 0%, rgba(44, 74, 110, 0.88) 55%, rgba(18, 32, 51, 0.85) 100%);
}

.hero-compact .hero-inner {
  max-width: none;
  animation: none;
}

.hero-compact .hero-brand {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.hero-compact .hero-lead {
  max-width: 40rem;
  margin-top: 0.35rem;
  font-size: 0.98rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(26, 45, 68, 0.92) 0%, rgba(44, 74, 110, 0.78) 42%, rgba(18, 32, 51, 0.55) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.03) 14px 15px
    ),
    radial-gradient(ellipse at 70% 40%, rgba(196, 120, 58, 0.28), transparent 50%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

.hero-inner {
  color: #f4f7f5;
  max-width: 38rem;
  animation: hero-rise 0.9s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  opacity: 0.8;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5vw, 3.1rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0.55rem 0 0;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  max-width: 28rem;
  line-height: 1.45;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: #1a1608;
}

.btn-primary:hover {
  color: #1a1608;
  background: #d4a73b;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 3.5rem 0;
}

.section-home-articles {
  padding: 1.75rem 0 2.25rem;
}

.section-home-cats {
  padding: 1.5rem 0 2rem;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
  margin-bottom: 1.25rem;
}

.section-more {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.empty-articles {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: 0.65rem;
  color: var(--ink-soft);
}

.section-muted {
  background: rgba(255, 255, 255, 0.35);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.article-list li {
  border-top: 1px solid var(--line);
}

.article-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}

.article-list a:hover {
  padding-left: 0.35rem;
}

.article-list-hub,
.article-list-meta {
  font-size: 0.78rem;
  color: var(--moss);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.25;
}

.article-list-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.article-grid a {
  display: grid;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.article-grid a:hover {
  border-color: rgba(44, 74, 110, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 24, 32, 0.08);
}

.article-grid strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.25;
}

.article-grid .article-list-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.article-grid .is-featured a {
  padding: 1.35rem 1.4rem;
  background: #fff;
}

.article-grid .is-featured strong {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.article-grid .is-featured .article-list-excerpt {
  -webkit-line-clamp: 4;
  font-size: 1.02rem;
}

.hub-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
}

.hub-chips a:hover {
  border-color: rgba(44, 74, 110, 0.35);
}

.hub-chips em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--moss);
}

.archive-label {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hub-chips-archive a {
  background: transparent;
}

@media (min-width: 720px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid > .is-featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid > .is-featured {
    grid-column: span 2;
  }
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .hub-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hub-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hub-list a:hover {
  border-color: rgba(44, 74, 110, 0.35);
  transform: translateY(-2px);
}

.hub-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.hub-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hub-list em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--moss);
  font-weight: 600;
}

.page {
  padding: 2rem 0 3.5rem;
}

.page-head {
  margin-bottom: 1.75rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.page-lead {
  margin: 0.85rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

.article-meta {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.prose {
  font-size: 1.02rem;
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
  line-height: 1.2;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related li {
  margin-bottom: 0.85rem;
}

.related .article-list-excerpt {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #5a6570);
  line-height: 1.45;
}

.hub-back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sister-note {
  margin-top: 1.75rem;
  padding: 0.9rem 1rem;
  background: #f4f7f5;
  border-left: 3px solid var(--ink, #1c2b24);
}

.sister-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  background: var(--ink);
  color: #d7e0db;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.footer-tag,
.footer-note {
  margin: 0 0 0.6rem;
  color: #aebbb5;
  font-size: 0.92rem;
}

.footer-heading {
  margin: 0 0 0.55rem;
  color: #fff;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #c5d2cc;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8f9e97;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 3.6rem;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 30px rgba(18, 24, 32, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    align-items: center;
    padding: 1.75rem 0 1.5rem;
  }

  .hero-compact {
    padding: 1rem 0 0.9rem;
  }

  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere,
  .hero-inner,
  .article-list a,
  .hub-list a,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
