.site-identity {
  --identity-line: color-mix(in srgb, var(--brand) 32%, var(--paper));
  --identity-tint: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --identity-muted: color-mix(in srgb, var(--brand) 16%, var(--surface));
  --identity-border: 1px solid var(--identity-line);
  --lead-shape: .65rem;
}
.site-identity .identity-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 0;
}
.site-identity .site-header { box-shadow: inset 0 -1px var(--identity-line); }
.site-identity .hero-copy { container-type: inline-size; min-width: 0; }
.site-identity .hero .hero-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  font-size: min(var(--heading-limit), clamp(2.1rem, 1.4rem + 6.2cqi, var(--headline-max, 5rem)));
  letter-spacing: -.048em;
  line-height: 1.03;
  text-transform: none;
}
.site-identity .hero :is(.eyebrow, .hero-description) { overflow-wrap: break-word; hyphens: manual; }
.site-identity .hero-description { text-wrap: pretty; }
.site-identity .lead-button {
  max-width: 100%;
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid color-mix(in srgb, var(--on-brand) 15%, var(--brand));
  border-radius: var(--lead-shape);
  line-height: 1.25;
  padding-block: .7rem;
}
.site-identity .lead-button span { flex: none; }
.site-identity .lead-button:focus-visible { outline-color: currentColor; box-shadow: 0 0 0 6px var(--brand); }
.site-identity .reading-lead {
  margin: 0 0 clamp(1.8rem, 4vw, 3.75rem);
  display: grid;
  gap: .48rem;
  border: var(--identity-border);
  border-inline-start: .35rem solid var(--brand);
  border-radius: var(--lead-shape);
  background: var(--identity-tint);
  padding: clamp(1rem, 3.25vw, 2.4rem);
}
.site-identity .reading-category { font-size: .82rem; font-weight: 750; color: var(--muted); }
.site-identity .reading-category a, .site-identity .reading-lead h2 a { text-underline-offset: .18em; }
.site-identity .reading-lead h2 { font-size: clamp(1.45rem, 3.4vw, 2.4rem); text-wrap: balance; max-width: 28ch; }
.site-identity .reading-summary { color: var(--muted); max-width: 68ch; }
.site-identity .hero:has(+ .reading-lead) { margin-bottom: clamp(1.1rem, 3vw, 2.6rem); }
.site-identity .section-title h2, .site-identity .card h3 { text-wrap: pretty; }
.site-identity .section-title a, .site-identity .reading-category a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-identity .article-content h1 { overflow-wrap: break-word; hyphens: manual; }

.pattern-gazette { --lead-shape: 0; --headline-max: 5.3rem; }
.pattern-gazette .reading-lead {
  border-inline: 0;
  border-block: 3px double var(--identity-line);
  background: var(--surface);
}
.pattern-gazette .reading-category { font-variant: small-caps; letter-spacing: .08em; }
.pattern-route { --lead-shape: .3rem; --headline-max: 4.65rem; }
.pattern-route .reading-lead {
  background: repeating-linear-gradient(105deg, transparent 0 20px, var(--identity-tint) 20px 22px), var(--surface);
  border-inline-start: .45rem solid var(--brand);
}
.pattern-ledger { --lead-shape: .2rem; --headline-max: 4.1rem; }
.pattern-ledger .reading-lead {
  border-inline-start: 0;
  border-block-start: .32rem solid var(--brand);
  background: var(--surface);
}
.pattern-ledger .reading-category { font-family: ui-monospace, monospace; }
.pattern-speed { --lead-shape: .08rem; --headline-max: 4.35rem; }
.pattern-speed .reading-lead {
  border-inline-start: .65rem solid var(--brand);
  background: linear-gradient(115deg, var(--identity-tint), var(--surface) 64%);
}
.pattern-speed .hero-photo { border-color: var(--brand); }
.pattern-grid { --lead-shape: .35rem; --headline-max: 4.4rem; }
.pattern-grid .reading-lead {
  background: linear-gradient(90deg, var(--identity-tint) 1px, transparent 1px),
    linear-gradient(var(--identity-tint) 1px, var(--surface) 1px);
  background-size: 22px 22px;
}
.pattern-orbit { --lead-shape: .8rem; --headline-max: 4.6rem; }
.pattern-orbit .reading-lead {
  background: repeating-radial-gradient(circle at 108% -18%, var(--surface) 0 22px, var(--identity-tint) 23px 25px);
}
.pattern-soft { --lead-shape: 1.2rem; --headline-max: 4.35rem; }
.pattern-soft .reading-lead { border-inline-start-width: 1px; background: linear-gradient(98deg, var(--identity-tint), var(--surface)); }
.pattern-soft .lead-button { border-radius: 1.7rem; padding-inline: 1.2rem; }
.pattern-ticket { --lead-shape: .5rem; --headline-max: 4.4rem; }
.pattern-ticket .reading-lead { border-inline-start: 1px dashed var(--brand); border-inline-end: 1px dashed var(--brand); }
.pattern-ticket .reading-category { letter-spacing: .055em; }
.pattern-field { --lead-shape: .45rem; --headline-max: 4.45rem; }
.pattern-field .reading-lead { box-shadow: inset 0 -.36rem var(--identity-line); }
.pattern-frame { --lead-shape: 0; --headline-max: 5.45rem; }
.pattern-frame .reading-lead { border-inline-start-width: 1px; outline: var(--identity-border); outline-offset: -7px; }
.pattern-frame .hero-photo { border-block-end: .28rem solid var(--brand); }
.pattern-stack { --lead-shape: .8rem; --headline-max: 4.25rem; }
.pattern-stack .reading-lead { border-inline-start-width: 1px; box-shadow: .38rem .38rem 0 var(--identity-line); }
.pattern-wave { --lead-shape: .65rem; --headline-max: 4.4rem; }
.pattern-wave .reading-lead { border-inline-start-width: 1px; border-bottom: .35rem solid var(--brand); }
.pattern-wave .hero-photo { border-radius: .25rem .25rem 1rem 1rem; }
.pattern-spot { --lead-shape: .18rem; --headline-max: 4.75rem; }
.pattern-spot .reading-lead { background: radial-gradient(ellipse at 88% 0, var(--identity-muted), var(--surface) 65%); }

@media (min-width: 721px) {
  .site-identity:is(.composition-inset,.composition-reverse,.composition-columns) .hero {
    direction: ltr;
    grid-template-columns: minmax(0, var(--hero-copy-width, 1fr)) minmax(0, var(--hero-art-width, 1fr));
    grid-template-areas: "copy photo" "index index";
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
  }
  .site-identity:is(.composition-inset,.composition-reverse,.composition-columns) .hero-copy {
    grid-area: copy;
    align-self: center;
    width: 100%;
    margin: 0;
    padding: clamp(.8rem, 2.25vw, 2.4rem);
  }
  .site-identity:is(.composition-inset,.composition-reverse,.composition-columns) .hero-photo {
    grid-area: photo;
    width: 100%;
    margin: 0;
  }
  .site-identity:is(.composition-inset,.composition-reverse,.composition-columns) .edition-index {
    grid-area: index;
    padding: 0 clamp(.8rem, 2.25vw, 2.4rem);
  }
  .site-identity:is(.composition-inset,.composition-reverse,.composition-columns) .edition-index ul {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .85rem;
  }
  .site-identity.composition-inset .hero { --hero-copy-width: 1.12fr; --hero-art-width: .88fr; padding: .85rem; }
  .site-identity.composition-inset .hero-photo {
    box-shadow: .55rem .55rem 0 color-mix(in srgb, var(--brand) 32%, transparent);
    clip-path: inset(0 -1rem -1rem 0 round .48rem);
  }
  .site-identity.composition-reverse .hero {
    --hero-copy-width: 1.2fr; --hero-art-width: .8fr;
    grid-template-areas: "photo copy" "index index";
  }
  .site-identity.composition-columns .hero {
    --hero-copy-width: 1.25fr; --hero-art-width: .75fr;
    align-items: start;
    border-block: 1px solid var(--identity-line);
  }
  .site-identity.composition-columns .hero-photo {
    border-inline: .4rem solid var(--brand);
    margin-block: 1rem;
  }
}

.site-identity.composition-banner .hero {
  direction: ltr;
  grid-template: "copy" auto "photo" auto "index" auto / minmax(0,1fr);
  align-items: stretch;
  gap: 0;
  margin-top: clamp(1.25rem, 3vw, 3rem);
  padding: 0;
  overflow: hidden;
  border: var(--identity-border);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--ink);
}
.site-identity.composition-banner .hero .hero-copy {
  grid-area: copy;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 3.1vw, 2.85rem);
  border: 0;
  border-block-start: .3rem solid var(--brand);
  background: var(--identity-tint);
}
.site-identity.composition-banner .hero .hero-copy h1 { --headline-max: 3.7rem; }
.site-identity.composition-banner .hero .hero-copy :is(.eyebrow,.hero-description) { color: var(--muted); }
.site-identity.composition-banner .hero .hero-photo {
  grid-area: photo;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.site-identity.composition-banner .hero .edition-index {
  grid-area: index;
  padding: 0 clamp(1.25rem, 3.1vw, 2.85rem);
}
.site-identity.composition-banner.edition-expedition .hero .hero-copy {
  background: var(--dark);
  color: #fff;
}
.site-identity.composition-banner.edition-expedition .hero .hero-copy :is(.eyebrow,.hero-description) { color: #fff; }

@media (min-width: 1000px) {
  .site-identity.composition-banner .hero {
    grid-template: "copy photo" auto "index index" auto / minmax(0, .87fr) minmax(0, 1.13fr);
  }
  .site-identity.composition-banner .hero .hero-copy {
    border-block-start: 0;
    border-inline-start: .3rem solid var(--brand);
  }
  .site-identity.composition-banner .hero .edition-index ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 901px) {
  .pattern-gazette .reading-lead, .pattern-ledger .reading-lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    column-gap: 2rem;
    align-items: baseline;
  }
  .pattern-gazette .reading-category, .pattern-ledger .reading-category { grid-column: 1 / -1; }
  .pattern-frame .reading-lead { width: min(100%, 64rem); margin-inline: auto; }
  .pattern-orbit .reading-lead, .pattern-spot .reading-lead { padding-inline-start: clamp(2rem, 7vw, 6rem); }
}
@media (max-width: 720px) {
  .site-identity .hero .hero-copy h1 {
    font-size: min(var(--heading-limit), clamp(1.9rem, 1.2rem + 6cqi, 3rem));
  }
  .site-identity .reading-lead { padding: 1rem; }
}
