:root {
  color-scheme: light;
  --ink: #17211f;
  --ink-soft: #4c5c58;
  --paper: #f7f4ec;
  --paper-deep: #ede4d5;
  --line: rgba(23, 33, 31, 0.16);
  --teal: #1d6764;
  --teal-deep: #124a49;
  --brass: #b77a32;
  --red: #a44a3f;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(23, 33, 31, 0.12);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: rgba(11, 18, 17, 0.62);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 253, 248, 0.35);
  background: rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  color: #f7d8a6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
  color: rgba(255, 253, 248, 0.84);
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  padding: 132px clamp(20px, 7vw, 92px) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("./assets/hero-story-notes.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.92) 0%, rgba(8, 13, 12, 0.74) 38%, rgba(8, 13, 12, 0.22) 76%),
    linear-gradient(180deg, rgba(8, 13, 12, 0.1) 0%, rgba(8, 13, 12, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #e7c58d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9em;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  margin: 26px 0 0;
  max-width: 660px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
}

.button-primary {
  background: var(--brass);
  color: #17110a;
}

.button-secondary {
  border-color: rgba(255, 253, 248, 0.32);
  color: var(--white);
  background: rgba(255, 253, 248, 0.1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-meta {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 42px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(42px, 6vw, 76px);
  background: var(--ink);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.about-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid p:last-child {
  margin: 2px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.9;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.03);
}

.note-card:nth-child(2) {
  border-top-color: rgba(29, 103, 100, 0.5);
}

.note-card:nth-child(3) {
  border-top-color: rgba(164, 74, 63, 0.45);
}

.note-card:nth-child(4) {
  border-top-color: rgba(183, 122, 50, 0.55);
}

.note-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.note-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.note-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.timeline-section {
  background: var(--paper-deep);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
  display: block;
  margin: 0;
}

.sticky-heading p:last-child {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.path-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-list li {
  position: relative;
  padding: 26px 28px 26px 82px;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.path-list li::before {
  counter-increment: path;
  content: counter(path, decimal-leading-zero);
  position: absolute;
  top: 26px;
  left: 26px;
  color: var(--red);
  font-weight: 800;
}

.path-list span {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.path-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.latest-section {
  background: var(--white);
}

.compact-heading {
  margin-bottom: 22px;
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 30px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.article-date {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.article-row strong {
  min-width: 0;
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.3;
}

.article-arrow {
  color: var(--brass);
  font-size: 24px;
  text-align: right;
}

.article-row:hover strong,
.article-row:focus-visible strong {
  color: var(--teal-deep);
}

.about-section {
  background: var(--paper);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-panel p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.9;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 64px);
  background: #101715;
  color: rgba(255, 253, 248, 0.68);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 96px;
  }

  .hero {
    min-height: 84vh;
    padding-top: 150px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .intro-grid,
  .two-column,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    padding-inline: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 82vh;
    padding: 146px 16px 42px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 13, 12, 0.92) 0%, rgba(8, 13, 12, 0.68) 100%),
      linear-gradient(180deg, rgba(8, 13, 12, 0.1) 0%, rgba(8, 13, 12, 0.72) 100%);
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta span {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .section {
    padding-inline: 16px;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 220px;
  }

  .note-number {
    margin-bottom: 34px;
  }

  .path-list li {
    padding: 24px 20px 24px 66px;
  }

  .path-list li::before {
    left: 20px;
  }

  .article-row {
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }

  .article-date {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: column;
  }
}
