﻿:root {
  --navy-900: #102040;
  --navy-800: #1e3358;
  --cream-100: #f8eed8;
  --cream-200: #f0dfa8;
  --paper-100: #f7f1e8;
  --paper-200: #efe3d4;
  --panel-100: #fff9f0;
  --ink-900: #2b1f18;
  --ink-800: #3e2e24;
  --ink-700: #5e4d40;
  --brown-700: #604030;
  --brown-800: #503020;
  --line: #d5c2aa;
  --line-strong: #c5ab8d;
  --max-shell: 1180px;
  --max-prose: 790px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
  background: var(--paper-100);
  color: var(--ink-900);
}

a {
  color: var(--brown-700);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brown-800);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brown-700);
  outline-offset: 2px;
}

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

.site-shell {
  width: min(100%, var(--max-shell));
  margin: 0 auto;
  padding: 1.05rem 1rem 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.top-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

.top-nav a[aria-current="page"],
.top-nav a:hover {
  color: var(--ink-900);
}

.nav-article-link {
  white-space: normal;
}

.home {
  background:
    radial-gradient(circle at 85% 0%, rgba(240, 223, 168, 0.14) 0, transparent 42%),
    linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) 700px, var(--paper-100) 700px);
}

.home .site-header {
  border-bottom-color: rgba(240, 223, 168, 0.22);
}

.home .brand,
.home .top-nav a {
  color: var(--cream-100);
}

.home .top-nav a[aria-current="page"],
.home .top-nav a:hover {
  color: #fff5dc;
}

.home-main {
  margin-top: 0.55rem;
}

.hero-home {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.9rem;
  align-items: center;
  min-height: 470px;
  padding: 1.85rem;
  border-radius: 22px;
  border: 1px solid rgba(240, 223, 168, 0.36);
  background:
    radial-gradient(circle at 14% 2%, rgba(240, 223, 168, 0.18) 0, transparent 56%),
    linear-gradient(155deg, #243f69 0%, #102040 62%, #22365c 100%);
  box-shadow: 0 28px 54px rgba(8, 14, 29, 0.34);
}

.hero-copy {
  color: var(--cream-100);
  max-width: 480px;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream-200);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0.82rem 0 0;
  color: #f9efd9;
  font-size: 1.06rem;
}

.button-row {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.66rem 1.04rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cream-200);
  color: #2f231b;
}

.btn-primary:hover {
  background: #f5e8b9;
  color: #241912;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(240, 223, 168, 0.62);
  color: #fbf2dd;
}

.btn-secondary:hover {
  background: rgba(240, 223, 168, 0.14);
  color: #fff7e7;
}

.note {
  margin-top: 0.76rem;
  font-size: 0.88rem;
  color: rgba(248, 238, 216, 0.95);
}

.hero-visual {
  width: 100%;
  max-width: 660px;
  margin-left: auto;
  border-radius: 18px;
  border: 1px solid rgba(240, 223, 168, 0.4);
  background: rgba(9, 19, 38, 0.4);
  box-shadow: 0 26px 42px rgba(5, 10, 20, 0.34);
  padding: 0.78rem;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  border-radius: 12px;
}

.home-story {
  margin-top: 2.15rem;
  padding: 1.8rem 1.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff8ef;
}

.story-intro {
  max-width: 720px;
}

.story-intro h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.story-intro p {
  margin: 0.52rem 0 0;
  color: var(--ink-700);
}

.story-layout {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.45rem;
  align-items: start;
}

.value-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-800);
}

.value-list li {
  margin-bottom: 0.44rem;
}

.story-preview {
  max-width: 310px;
  margin: 0;
}

.story-preview img {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f1ece4;
}

.story-preview figcaption {
  margin-top: 0.52rem;
  color: #6e5b4c;
  font-size: 0.88rem;
  line-height: 1.5;
}

.story-links {
  margin: 0.85rem 0 0;
  font-size: 0.94rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.58rem;
}

.story-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #7a6454;
}

.prose-wrap {
  max-width: var(--max-prose);
  margin: 1.75rem auto 0;
}

.page-kicker {
  margin: 0 0 0.45rem;
  color: var(--brown-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.prose {
  max-width: var(--max-prose);
}

.prose h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.prose .subtitle {
  margin: 0.62rem 0 1.62rem;
  color: var(--ink-700);
  font-style: italic;
}

.prose h2 {
  margin-top: 2.35rem;
  margin-bottom: 0.66rem;
  font-size: 1.44rem;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--ink-800);
}

.prose p {
  margin: 0 0 1.02rem;
}

.prose ol,
.prose ul {
  margin: 0 0 1.05rem;
  padding-left: 1.32rem;
}

.prose li {
  margin-bottom: 0.44rem;
}

.prose strong {
  color: #2b1f18;
}

.figure {
  margin: 1.42rem 0 1.5rem;
  padding: 0.72rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf5eb;
}

.figure img {
  border-radius: 9px;
  border: 1px solid #ccb59d;
  background: #f0e8dc;
}

.figure figcaption {
  margin-top: 0.6rem;
  color: #665344;
  font-size: 0.9rem;
  line-height: 1.5;
}

.figure-wide {
  max-width: 100%;
}

.figure-compact {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .figure-compact figcaption {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--ink-700);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero-home {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    min-height: 0;
  }

  .hero-visual {
    order: -1;
    margin: 0 auto;
    max-width: 760px;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-preview {
    max-width: 330px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 0.85rem 0.88rem 2.4rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.74rem;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.42rem 0.84rem;
  }

  .top-nav a {
    font-size: 0.875rem;
    line-height: 1.24;
  }

  .top-nav .nav-article-link {
    flex-basis: 100%;
    max-width: 18.5rem;
  }

  .home {
    background:
      radial-gradient(circle at 82% 0%, rgba(240, 223, 168, 0.13) 0, transparent 44%),
      linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) 690px, var(--paper-100) 690px);
  }

  .hero-home {
    margin-top: 0.85rem;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

  .hero-copy p {
    margin-top: 0.7rem;
    font-size: 0.98rem;
  }

  .button-row {
    margin-top: 0.9rem;
    gap: 0.55rem;
  }

  .note {
    margin-top: 0.58rem;
    font-size: 0.84rem;
  }

  .home-story {
    margin-top: 1.45rem;
    padding: 1.15rem 1rem;
    border-radius: 13px;
  }

  .story-intro h2 {
    font-size: 1.35rem;
  }

  .story-layout {
    margin-top: 0.95rem;
  }

  .story-preview {
    max-width: 260px;
  }

  .story-preview figcaption {
    margin-top: 0.44rem;
    font-size: 0.85rem;
  }

  .story-note {
    font-size: 0.82rem;
  }

  .prose-wrap {
    margin-top: 1.25rem;
  }

  .prose h1 {
    font-size: clamp(1.84rem, 8vw, 2.35rem);
  }

  .prose .subtitle {
    margin-bottom: 1.3rem;
  }

  .prose h2 {
    margin-top: 1.95rem;
    font-size: 1.3rem;
  }

  .figure {
    margin: 1.15rem 0 1.28rem;
    padding: 0.55rem;
  }

  .figure figcaption {
    font-size: 0.86rem;
    margin-top: 0.5rem;
  }

  .figure-compact {
    max-width: 300px;
  }

  .article-page .figure-compact figcaption {
    max-width: 28ch;
  }
}
