:root {
  --ink: #191713;
  --muted: #69635b;
  --paper: #f7f4ed;
  --paper-deep: #ece6d9;
  --line: #d8d0c2;
  --rust: #a8442d;
  --moss: #5a6954;
  --blue: #29475c;
  --amber: #c7953f;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(31, 27, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(25, 23, 19, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 23, 19, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  font-family:
    ui-serif,
    "Iowan Old Style",
    "Songti SC",
    "Noto Serif CJK SC",
    Georgia,
    serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 208, 194, 0.8);
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 43%, var(--rust) 44%, var(--rust) 56%, transparent 57%),
    linear-gradient(45deg, transparent 49%, var(--blue) 50%, transparent 53%);
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.1;
}

.brand strong {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand em {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.92rem;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--rust);
  color: var(--ink);
}

.text-link {
  border-bottom: 1px solid rgba(168, 68, 45, 0.45);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(56px, 8vw, 106px) clamp(20px, 5vw, 72px) 44px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.98;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #454039;
  font-size: clamp(1.13rem, 2vw, 1.55rem);
  line-height: 1.75;
}

.weather-panel {
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--ink);
  background:
    radial-gradient(circle at 22% 20%, rgba(168, 68, 45, 0.14), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(41, 71, 92, 0.16), transparent 31%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(236, 230, 217, 0.86));
  box-shadow: var(--shadow);
}

.weather-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.weather-map {
  position: relative;
  height: 360px;
  margin: 38px 0 24px;
  border-top: 1px solid rgba(25, 23, 19, 0.2);
  border-bottom: 1px solid rgba(25, 23, 19, 0.2);
  background:
    linear-gradient(90deg, rgba(25, 23, 19, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 23, 19, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.line,
.dot {
  position: absolute;
  display: block;
}

.line {
  height: 2px;
  transform-origin: left center;
}

.line-a {
  top: 26%;
  left: 8%;
  width: 74%;
  background: var(--rust);
  transform: rotate(10deg);
}

.line-b {
  top: 58%;
  left: 4%;
  width: 88%;
  background: var(--blue);
  transform: rotate(-16deg);
}

.line-c {
  top: 76%;
  left: 18%;
  width: 62%;
  background: var(--moss);
  transform: rotate(4deg);
}

.dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.dot-a {
  top: 21%;
  left: 34%;
}

.dot-b {
  top: 53%;
  left: 72%;
  background: var(--amber);
}

.dot-c {
  top: 72%;
  left: 18%;
  background: var(--rust);
}

.weather-panel p {
  margin: 0;
  color: #39342e;
  font-size: 1.04rem;
}

.pathways,
.sections,
.drafts,
.longform,
.page-hero,
.article-index,
.about-preview {
  padding: 72px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 520;
  line-height: 1.08;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.pathway {
  grid-column: span 2;
  min-height: 232px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.pathway:hover,
.pathway:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: var(--white);
}

.pathway.primary {
  grid-column: span 3;
  background: var(--ink);
  color: var(--paper);
}

.pathway.quiet {
  grid-column: span 3;
  background: var(--paper-deep);
}

.pathway-number {
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pathway.primary .pathway-number {
  color: var(--amber);
}

.pathway h3 {
  margin: 32px 0 12px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 560;
  line-height: 1.15;
}

.pathway p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.pathway.primary p {
  color: rgba(247, 244, 237, 0.76);
}

.statement {
  padding: 72px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.statement p {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  font-weight: 430;
  line-height: 1.45;
}

.section-list {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.section-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.row-kicker {
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
}

.section-row h3 {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 520;
  line-height: 1.2;
}

.section-row p {
  margin: 0;
  color: #514b43;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

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

.draft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.draft-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(25, 23, 19, 0.18);
  background: var(--white);
}

.draft-grid span {
  color: var(--blue);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.draft-grid h3 {
  margin: 44px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 520;
  line-height: 1.16;
}

.draft-grid p {
  margin: 0;
  color: var(--muted);
}

.draft-feature a {
  border-bottom: 1px solid rgba(168, 68, 45, 0.45);
}

.draft-feature a:hover,
.draft-feature a:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(64px, 9vw, 118px);
  padding-bottom: 52px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 520;
  line-height: 0.98;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 26px 0 0;
  color: #454039;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.8;
}

.article-index {
  background: var(--paper-deep);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.article-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(25, 23, 19, 0.18);
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: #fffaf0;
}

.article-card span {
  color: var(--blue);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.article-card h3 {
  margin: 54px 0 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-weight: 520;
  line-height: 1.12;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.longform {
  scroll-margin-top: 110px;
  background: var(--white);
}

.longform-header,
.longform-body,
.license-note {
  max-width: 860px;
  margin: 0 auto;
}

.longform-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.longform-header h1,
.longform-header h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 5rem);
  font-weight: 520;
  line-height: 1.08;
}

.back-link {
  display: inline-block;
  margin: 0 0 22px;
  color: var(--muted);
  border-bottom: 1px solid rgba(105, 99, 91, 0.45);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.9rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
}

.longform-body {
  padding-top: 30px;
}

.longform-body p {
  margin: 0 0 1.25em;
  color: #39342e;
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.95;
}

.license-note {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.license-note h2,
.license-note h3 {
  margin: 0 0 16px;
  color: var(--rust);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 560;
}

.license-note p {
  margin: 0 0 0.95em;
  color: #514b43;
  font-size: 1rem;
}

.about-preview {
  background:
    linear-gradient(90deg, rgba(25, 23, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

.about-frame {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.about-frame h2 {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 520;
  line-height: 1.08;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.about-columns p {
  margin: 0;
  color: #464038;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .weather-panel {
    min-height: 420px;
  }

  .weather-map {
    height: 270px;
  }

  .section-heading,
  .section-row {
    grid-template-columns: 1fr;
  }

  .pathway,
  .pathway.primary,
  .pathway.quiet {
    grid-column: span 3;
  }

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

  .article-card-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero,
  .pathways,
  .sections,
  .drafts,
  .longform,
  .page-hero,
  .article-index,
  .statement {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.3rem);
  }

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

  .pathway,
  .pathway.primary,
  .pathway.quiet {
    grid-column: auto;
    min-height: 190px;
  }

  .weather-panel {
    min-height: 360px;
    padding: 18px;
  }

  .weather-map {
    height: 220px;
    margin: 28px 0 20px;
  }

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