:root {
  --home-paper: #eeeee8;
  --home-ink: #10131e;
  --home-matte: #181c2a;
  --home-gold: #e3c58f;
  --home-caption: #4e5261;
  --home-patina: #6a491d;
  --home-display: Gloock, Georgia, serif;
  --home-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --home-title: clamp(2.55rem, 5.5vw, 4.95rem);
  --home-index: clamp(2rem, 4.6vw, 4.5rem);
  --home-section: clamp(1.55rem, 2.3vw, 2.25rem);
  --home-story: clamp(1.55rem, 2.2vw, 2.1rem);
  --home-body: 1rem;
  --home-deck: clamp(1rem, 1.35vw, 1.25rem);
  --home-meta: .875rem;
  --home-1: .375rem;
  --home-2: .75rem;
  --home-3: 1rem;
  --home-4: 1.5rem;
  --home-5: 2rem;
  --home-margin: clamp(1rem, 4.4vw, 4rem);
  --home-gap: clamp(1.5rem, 4vw, 4rem);
  --home-shell: 86rem;
  --home-measure: 65ch;
  --home-target: 2.75rem;
  --home-stroke: 1px;
  --home-focus: 2px;
  --home-ease: .22s;
}

body { margin: 0; background: var(--home-paper); }

.shell, .shell *, .shell *::before, .skip { box-sizing: border-box; }

.shell, .skip {
  color: var(--home-ink);
  font: 400 var(--home-body)/1.65 var(--home-sans);
}

.shell {
  max-inline-size: var(--home-shell);
  margin-inline: auto;
  padding-inline: var(--home-margin);
}

.shell :where(h1, h2, h3, h4, p) { margin: 0; }
.shell p { max-inline-size: var(--home-measure); }

.shell :where(h1, h2, h3, h4) {
  font-family: var(--home-display);
  font-weight: 400;
  letter-spacing: -.026em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.shell ::selection, .skip::selection { background: var(--home-ink); color: var(--home-paper); }

.shell a:focus-visible, .shell:focus-visible, .skip:focus-visible {
  outline: var(--home-focus) solid var(--home-patina);
  outline-offset: var(--home-focus);
}

.skip {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--home-2);
  inset-inline-start: var(--home-margin);
  min-block-size: var(--home-target);
  padding: var(--home-2) var(--home-3);
  background: var(--home-paper);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }
.skip:focus-visible { outline-color: var(--home-gold); }
.skip:is(:hover, :active) { color: var(--home-patina); }

.masthead {
  display: grid;
  grid-template-areas: "title" "proof";
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--home-gap);
  margin-block-start: clamp(1rem, 2.5vw, 2rem);
  padding: var(--home-gap);
  background: var(--home-ink);
  color: var(--home-paper);
}

.masthead-copy { grid-area: title; }
.masthead-proof { grid-area: proof; }
.masthead h1 { font-size: var(--home-title); line-height: .98; letter-spacing: -.045em; }
.masthead p { margin-block-start: var(--home-3); color: var(--home-gold); font-size: var(--home-deck); }
.masthead ::selection { background: var(--home-gold); color: var(--home-ink); }

.proof {
  position: relative;
  min-inline-size: 0;
  padding: var(--home-2) var(--home-2) var(--home-4);
  background: var(--home-matte);
}

.proof::before {
  content: "";
  position: absolute;
  inset-inline-end: var(--home-1);
  inset-block-end: var(--home-1);
  inline-size: var(--home-4);
  block-size: var(--home-2);
  border-inline-end: var(--home-stroke) solid var(--home-gold);
  border-block-end: var(--home-stroke) solid var(--home-gold);
  pointer-events: none;
}

.proof img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: var(--home-shot, 3 / 2);
  object-fit: cover;
}

.masthead-proof { --home-shot: 16 / 10; inline-size: min(100%, 29rem); justify-self: center; }
.masthead-banner { max-block-size: 16rem; }

.index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--home-gap);
  padding-block-start: clamp(2rem, 5vw, 4rem);
}

.index h2 { grid-column: 1 / -1; font-size: var(--home-index); line-height: 1.1; }

.editorial-section {
  min-inline-size: 0;
  border-block-start: var(--home-stroke) solid var(--home-caption);
  padding-block-start: var(--home-3);
}

.editorial-section h3, .about h2 { font-size: var(--home-section); line-height: 1.16; }
.section-scope, .section-empty { margin-block-start: var(--home-2); color: var(--home-caption); }
.editorial-section--empty { grid-column: 1 / -1; }
.shell .section-empty { margin-block-start: var(--home-3); font-weight: 600; }
.section-next { display: inline-flex; align-items: center; min-block-size: var(--home-target); color: var(--home-patina); text-underline-offset: .18em; }

@media (max-width: 69.999rem) {
  .kb-home .kb-top .kb-mast { display: none; }
}

.frames {
  display: grid;
  gap: var(--home-5);
  margin: var(--home-4) 0 0;
  padding: 0;
  list-style: none;
}

.frame-copy { display: grid; gap: var(--home-2); }
.frame .proof + .frame-copy { margin-block-start: var(--home-3); }
.frame h4 { font-size: var(--home-story); line-height: 1.17; }

.frame a {
  display: inline-flex;
  align-items: center;
  min-inline-size: var(--home-target);
  min-block-size: var(--home-target);
  max-inline-size: 100%;
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: var(--home-stroke);
  text-underline-offset: .18em;
  transition: color var(--home-ease);
}

.frame h4 a { text-decoration: none; }
.frame a:is(:hover, :focus-visible, :active) { color: var(--home-patina); text-decoration-line: underline; }

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--home-3);
  align-items: center;
  color: var(--home-caption);
  font-size: var(--home-meta);
}

.story-meta a { font-weight: 600; }
.story-meta time { font-variant-numeric: tabular-nums; }

.about {
  display: grid;
  gap: var(--home-2) var(--home-gap);
  border-block-start: var(--home-stroke) solid var(--home-caption);
  margin-block: var(--home-gap);
  padding-block-start: var(--home-3);
}

@media (min-width: 42rem) {
  .masthead { gap: var(--home-4) var(--home-gap); }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; }

  @supports (grid-template-rows: subgrid) {
    .editorial-section:not(.editorial-section--empty) {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      row-gap: var(--home-4);
    }

    .editorial-section .frames { margin-block-start: 0; align-content: start; }
  }
}

@media (min-width: 62rem) {
  .masthead {
    grid-template-areas: "title proof";
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .masthead-proof { inline-size: 100%; }
  .masthead-banner { max-block-size: none; }
  .index { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--home-4); }
  .editorial-section { grid-column: span 5; }
  .editorial-section:nth-of-type(4n + 1), .editorial-section:nth-of-type(4n) { grid-column: span 7; }
  .editorial-section.editorial-section--empty { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .frame a { transition: none; }
}
