:root {
  color-scheme: light dark;
  --paper: #f3ecdf;
  --paper-deep: #e8ddcd;
  --ink: #211a15;
  --muted: #706258;
  --cream: #fffaf1;
  --rust: #a74724;
  --rust-dark: #742a13;
  --sage: #66745d;
  --line: #d5c6b3;
  --shadow: 0 30px 80px rgb(55 35 20 / 14%);
  --content: 780px;
  --wide: 1160px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgb(112 80 54 / 4%) 50%, transparent 50.15%),
    radial-gradient(circle at 14% 5%, rgb(167 71 36 / 9%), transparent 24rem),
    var(--paper);
  background-size: 42px 100%, auto, auto;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  content: "";
  opacity: .2;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--rust-dark); text-underline-offset: .16em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  z-index: 20;
}
.skip-link:focus { top: 12px; }

header, footer {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand::before {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: .65rem;
  place-items: center;
  border: 1px solid var(--rust);
  border-radius: 50% 50% 42% 58%;
  background: var(--rust);
  color: #fff8ee;
  content: "K";
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 900;
  transform: rotate(-5deg);
  vertical-align: .12rem;
}

nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 64px 0 80px;
}

.home main { width: min(var(--wide), calc(100% - 48px)); }
.eyebrow {
  color: var(--rust);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
}
h1 { margin: 14px 0 24px; font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { margin: 48px 0 16px; font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { margin: 28px 0 10px; font-size: 1.3rem; }
p, li { max-width: 70ch; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.meta { color: var(--muted); font-size: .9rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  min-height: 680px;
  padding: 36px 0 72px;
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 9ch; }
.hero-copy .lede { max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--rust); background: var(--rust); color: #fffaf2; box-shadow: 0 12px 30px rgb(167 71 36 / 24%); }
.button.primary:hover { background: var(--rust-dark); color: #fff; }
.button.quiet { background: rgb(255 250 241 / 62%); color: var(--ink); }
.microcopy { color: var(--muted); font-size: .82rem; }

.hero-visual {
  position: relative;
  margin: 0;
  transform: rotate(1.4deg);
}
.hero-visual::before {
  position: absolute;
  inset: -20px 22px 24px -22px;
  border: 1px solid var(--line);
  border-radius: 46% 54% 49% 51% / 43% 44% 56% 57%;
  content: "";
  transform: rotate(-3deg);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 1.08;
  border-radius: 48% 52% 46% 54% / 52% 43% 57% 48%;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-visual figcaption {
  position: absolute;
  right: -20px;
  bottom: 28px;
  display: grid;
  min-width: 220px;
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 16px;
  background: rgb(255 250 241 / 88%);
  box-shadow: 0 18px 45px rgb(42 26 14 / 18%);
  color: var(--ink);
  backdrop-filter: blur(16px);
  transform: rotate(-1.4deg);
}
.hero-visual figcaption span { color: var(--rust); font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-visual figcaption strong { font-family: var(--display); font-size: 1.15rem; }
.hero-visual figcaption em { color: var(--sage); font-size: .78rem; font-style: normal; font-weight: 750; }

.timeline-section {
  padding: 72px 0;
  border-block: 1px solid var(--line);
}
.section-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 28px; align-items: start; }
.section-heading h2 { max-width: 16ch; margin-top: 0; }
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.timeline-strip li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 34px 18px 0 0;
  border-top: 2px solid var(--rust);
}
.timeline-strip li::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
  content: "";
}
.timeline-strip time { color: var(--rust); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.timeline-strip strong { font-family: var(--display); font-size: 1.06rem; }
.timeline-strip span { color: var(--muted); font-size: .78rem; }

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  padding: 108px 0;
}
.crumb-visual { margin: 0; }
.crumb-visual img {
  aspect-ratio: 4 / 3;
  border-radius: 10px 80px 10px 80px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.crumb-visual figcaption {
  max-width: 34ch;
  margin: 16px 0 0 auto;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  text-align: right;
}
.feature-stack { display: grid; }
.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.feature:first-child { border-top: 1px solid var(--line); }
.feature > span { color: var(--rust); font-family: var(--display); font-size: 1.8rem; font-style: italic; }
.feature h3 { margin: 0 0 8px; font-size: 1.65rem; }
.feature p { margin: 0; color: var(--muted); }

.closing-note {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 74px);
  border-radius: 12px 70px 12px 70px;
  background: var(--ink);
  color: var(--cream);
}
.closing-note::after {
  position: absolute;
  right: -60px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  content: "";
}
.closing-note h2 { max-width: 16ch; margin: 10px 0 20px; }
.closing-note p:last-child { color: #cfc4b8; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 250 241 / 64%);
}
.card h2, .card h3 { margin-top: 0; }
.notice { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--rust); background: rgb(255 250 241 / 70%); }
table { width: 100%; margin: 24px 0; border-collapse: collapse; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .86rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .65s ease both; }
  .hero-visual { animation: rise-in .8s .12s ease both; }
  .timeline-strip li { animation: rise-in .55s ease both; }
  .timeline-strip li:nth-child(2) { animation-delay: .08s; }
  .timeline-strip li:nth-child(3) { animation-delay: .16s; }
  .timeline-strip li:nth-child(4) { animation-delay: .24s; }
  .timeline-strip li:nth-child(5) { animation-delay: .32s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 54px; }
  .hero-copy h1 { max-width: 11ch; }
  .hero-visual { width: min(680px, 94%); margin-inline: auto; }
  .timeline-strip { grid-template-columns: 1fr; gap: 0; margin-left: 6px; }
  .timeline-strip li { min-height: 105px; padding: 0 0 28px 38px; border-top: 0; border-left: 2px solid var(--rust); }
  .timeline-strip li::before { top: 2px; left: -8px; }
  .editorial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  header, footer { width: min(100% - 32px, var(--wide)); align-items: flex-start; flex-direction: column; }
  header { gap: 16px; }
  nav { gap: 14px; }
  main, .home main { width: min(100% - 32px, var(--wide)); padding-top: 42px; }
  .hero { gap: 44px; padding-top: 12px; }
  .hero-visual { width: 100%; transform: none; }
  .hero-visual img { aspect-ratio: 1 / 1.08; border-radius: 34px 34px 92px 34px; }
  .hero-visual::before { display: none; }
  .hero-visual figcaption { right: 12px; bottom: 14px; min-width: 190px; }
  .section-heading { grid-template-columns: 1fr; }
  .timeline-section { padding: 60px 0; }
  .editorial-grid { padding: 72px 0; }
  .crumb-visual img { border-radius: 8px 48px 8px 48px; }
  .feature { grid-template-columns: 42px 1fr; gap: 12px; }
  .closing-note { border-radius: 8px 44px 8px 44px; }
  .card-grid { grid-template-columns: 1fr; }
  footer { gap: 8px; }
  table, tbody, tr, th, td { display: block; }
  th { padding-bottom: 0; border-bottom: 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1815;
    --paper-deep: #29221d;
    --ink: #f6eee5;
    --muted: #c2b4a7;
    --cream: #27201b;
    --rust: #e4875d;
    --rust-dark: #f3a17b;
    --sage: #a8b69c;
    --line: #493d34;
    --shadow: 0 30px 80px rgb(0 0 0 / 34%);
  }
  .hero-visual figcaption { background: rgb(39 32 27 / 88%); color: var(--ink); }
  .button.quiet, .card, .notice { background: rgb(39 32 27 / 76%); }
  .closing-note { background: #0f0d0b; }
}
