/*
  The "8th Street" theme.

  Colour works here the way it does on the street in her 8th Street story:
  "The dark charcoal tones outline the outdoor dining patios, the gray marks
  the walking paths and warm tan bands designate the bike lanes."

    charcoal  where people sit and talk    the quotes
    gray      the walking path             the list of articles
    tan       the fast lane                quick facts and shortcuts

  Like that street, everything is flat: no shadows, no rounded corners, no
  bordered boxes. Zones are told apart by colour, and lines are painted lines.

  Headlines, labels and numbers are set in the sans serif. Sentences meant to
  be read, hers and the people she quotes, are set in the serif.
*/

[data-theme='street'] {
  --paper: #f7f5f0;
  --concrete: #e7e4dd;
  --joint: #c9c5bb;
  --charcoal: #232427;
  --charcoal-lift: #34353a;
  --tan: #cda57a;
  --ink: #1b1c1f;
  --ink-soft: #3c3d42;
  --muted: #5c5d63;
  --blue: #1f45b0;
  --stop: #a8231c;
  --on-dark: #f7f5f0;
  --on-dark-muted: #b7b3ab;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  /* For narrow lettering. The fallbacks are narrow too, so the page holds its shape while Archivo loads. */
  --display: 'Archivo', 'Helvetica Neue', 'Arial Narrow', 'sans-serif-condensed', Arial, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 80rem;
  --paint: 3px;
  --header: 3.25rem;

  /* What the shared rules in site.css and manage.css read. */
  --theme-color: #232427;
  --body-bg: var(--charcoal);
  --page: var(--paper);
  --panel: #fff;
  --accent: var(--blue);
  --font-ui: var(--sans);
  --font-display: var(--display);
  --font-read: var(--serif);
  --display-stretch: 84%;
  --display-weight: 700;
  --display-tracking: -0.014em;
  --btn-bg: var(--concrete);
  --btn-ink: var(--ink);
  --btn-hover-bg: var(--tan);
  --btn-hover-ink: var(--charcoal);
  --btn-solid-bg: var(--ink);
  --btn-solid-ink: var(--paper);
  --btn-radius: 0;
  --field-radius: 0;
  --box-radius: 0;
  --notice-bg: var(--concrete);
  --select-bg: var(--tan);
  --select-ink: var(--charcoal);
  --skip-bg: var(--tan);
  --skip-ink: var(--charcoal);

  /* The colours a band hands to what is inside it. These are the values outside any band. */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-muted: var(--muted);
  --hair: var(--joint);
  --block: var(--concrete);
}

/* Bands: full-width zones of flat colour. Each sets the colours used inside it. */
[data-theme='street'] .band {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-muted: var(--muted);
  --accent: var(--blue);
  --hair: var(--joint);
  --block: var(--concrete);
  --btn-bg: var(--block);
  --btn-ink: var(--fg);
  --btn-solid-bg: var(--fg);
  --btn-solid-ink: var(--bg);
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--fg);
}

[data-theme='street'] .band-concrete {
  --bg: var(--concrete);
  --block: var(--paper);
}

[data-theme='street'] .band-tan {
  --bg: var(--tan);
  --fg: var(--charcoal);
  --fg-soft: var(--charcoal);
  --fg-muted: var(--charcoal);
  --accent: var(--charcoal);
  --hair: rgb(35 36 39 / 0.35);
  --block: var(--paper);
}

[data-theme='street'] .band-charcoal {
  --bg: var(--charcoal);
  --fg: var(--on-dark);
  --fg-soft: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --accent: var(--tan);
  --hair: var(--charcoal-lift);
  --block: var(--charcoal-lift);
}

[data-theme='street'] .wrap {
  max-width: var(--max);
  margin-inline: auto;
}

[data-theme='street'] .section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* Small sign lettering: wide, capital, spaced. */
[data-theme='street'] .label {
  font-family: var(--sans);
  font-stretch: 104%;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Header: a charcoal sign bar. */
[data-theme='street'] .site-header {
  --accent: var(--tan);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-inline: var(--gutter);
  background: var(--charcoal);
  color: var(--on-dark);
}

[data-theme='street'] .site-header-inner {
  max-width: var(--max);
  min-height: var(--header);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-theme='street'] .mark {
  flex: none;
  font-family: var(--display);
  font-stretch: 88%;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
}

[data-theme='street'] .nav {
  display: flex;
  align-items: stretch;
  gap: clamp(0.85rem, 2.4vw, 1.9rem);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme='street'] .nav::-webkit-scrollbar {
  display: none;
}

[data-theme='street'] .nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--header);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  white-space: nowrap;
}

[data-theme='street'] .nav a:hover,
[data-theme='street'] .nav a[aria-current] {
  color: var(--on-dark);
}

[data-theme='street'] .nav a[aria-current] {
  box-shadow: inset 0 calc(var(--paint) * -1) 0 var(--tan);
}

[data-theme='street'] .nav a:focus-visible {
  outline-offset: -3px;
}

[data-theme='street'] .nav .n {
  color: var(--tan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Hero: her name as the sign over the door. This theme keeps her photo in About. */
[data-theme='street'] .hero-portrait {
  display: none;
}

[data-theme='street'] .hero {
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

/* "Hailey Danner" is 5.07em wide at this weight and width, so dividing the column by 5.15 fills it edge to edge. */
[data-theme='street'] .hero h1 {
  margin: 0.3em 0 0 -0.045em;
  font-stretch: 78%;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 5.15), 15.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  word-spacing: 0.06em;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

[data-theme='street'] .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-top: clamp(2rem, 4.5vw, 3.75rem);
}

[data-theme='street'] .lede {
  max-width: 31ch;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.15vw, 1.9rem);
  line-height: 1.3;
  color: var(--fg-soft);
  text-wrap: pretty;
}

/* A directory sign: each destination on its own line with an arrow. */
[data-theme='street'] .sign {
  display: flex;
  flex-direction: column;
  border-bottom: var(--paint) solid var(--fg);
}

[data-theme='street'] .sign a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.72rem 0;
  border-top: var(--paint) solid var(--fg);
  font-family: var(--display);
  font-stretch: 88%;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.12s,
    padding 0.12s;
}

[data-theme='street'] .sign a:hover,
[data-theme='street'] .sign a:focus-visible {
  padding-inline: 0.75rem;
  background: var(--tan);
}

[data-theme='street'] .sign a:focus-visible {
  outline-offset: 0;
}

[data-theme='street'] .sign .arrow {
  align-self: center;
  width: 0.8em;
  height: 0.8em;
}

/* The fast lane: figures you can read at a glance. */
[data-theme='street'] .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  margin-block: 0;
  padding-block: clamp(1.4rem, 3vw, 2.1rem);
}

[data-theme='street'] .stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
}

[data-theme='street'] .stat dd {
  margin: 0;
  font-family: var(--display);
  font-stretch: 78%;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.018em;
  word-spacing: 0.08em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

/* Section heads */
[data-theme='street'] .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

[data-theme='street'] .section-head h2 {
  font-stretch: 78%;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

[data-theme='street'] .section-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

[data-theme='street'] .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

[data-theme='street'] .filters button {
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 0;
  background: var(--block);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

[data-theme='street'] .filters button .n {
  margin-left: 0.25rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

[data-theme='street'] .filters button[aria-pressed='true'] {
  background: var(--charcoal);
  color: var(--on-dark);
}

[data-theme='street'] .filters button[aria-pressed='true'] .n {
  color: var(--tan);
}

/* The walking path: every story is a numbered stop. Phone layout first. */
[data-theme='street'] ol.stories {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-theme='street'] .story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'media'
    'meta'
    'body';
  gap: 0.9rem 0;
  align-items: start;
  padding-block: clamp(1.5rem, 2.6vw, 2rem);
  border-top: 1px solid var(--hair);
}

[data-theme='street'] .story.no-image {
  grid-template-areas:
    'no'
    'meta'
    'body';
}

@media (hover: hover) {
  [data-theme='street'] .story:hover {
    background: var(--paper);
    box-shadow:
      -1rem 0 0 var(--paper),
      1rem 0 0 var(--paper);
  }
}

/* On a phone the stop number is a plate on the photo. */
[data-theme='street'] .story-no {
  grid-area: media;
  z-index: 1;
  justify-self: start;
  padding: 0.4rem 0.55rem 0.35rem;
  background: var(--charcoal);
  color: var(--on-dark);
  font-family: var(--display);
  font-stretch: 75%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

[data-theme='street'] .story.no-image .story-no {
  grid-area: no;
}

[data-theme='street'] .story-media {
  grid-area: media;
  margin: 0;
}

[data-theme='street'] .story-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--joint);
}

[data-theme='street'] .story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme='street'] .story-img.broken img {
  display: none;
}

[data-theme='street'] .credit {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg-muted);
}

[data-theme='street'] .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 1rem;
  font-stretch: 104%;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

[data-theme='street'] .meta .sec {
  color: var(--fg);
}

[data-theme='street'] .story > .meta {
  grid-area: meta;
}

[data-theme='street'] .story-body {
  grid-area: body;
  min-width: 0;
}

[data-theme='street'] .story h3 {
  max-width: 36rem;
  font-size: clamp(1.5rem, 2.35vw, 2.1rem);
  line-height: 1.06;
}

[data-theme='street'] .story h3 a {
  text-decoration: none;
}

/* The whole row is the click target. */
[data-theme='street'] .story h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

[data-theme='street'] .story:hover h3 a,
[data-theme='street'] .story h3 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: var(--paint);
  text-underline-offset: 0.13em;
}

/* Where the browser can, draw the keyboard focus ring around the whole row. */
@supports selector(:has(a)) {
  [data-theme='street'] .story h3 a:focus-visible {
    outline: none;
  }

  [data-theme='street'] .story:has(h3 a:focus-visible) {
    outline: var(--paint) solid var(--accent);
    outline-offset: 2px;
  }
}

[data-theme='street'] .dek {
  max-width: 36rem;
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.42;
  color: var(--fg-soft);
  text-wrap: pretty;
}

[data-theme='street'] .with {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
}

[data-theme='street'] .empty-note {
  color: var(--fg-muted);
}

/* The newest story that is showing gets the big treatment. */
[data-theme='street'] .story:nth-child(1 of .story:not([hidden])) {
  padding-top: 0;
  border-top: 0;
}

[data-theme='street'] .story:nth-child(1 of .story:not([hidden])) h3 {
  max-width: none;
  font-stretch: 78%;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
}

[data-theme='street'] .story:nth-child(1 of .story:not([hidden])) .dek {
  max-width: none;
  margin-top: 1rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.34;
}

/* Tablet: number, photo, then the date line over the headline. */
@media (min-width: 681px) {
  [data-theme='street'] .story {
    grid-template-columns: 3.4rem minmax(0, 13rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'no media meta'
      'no media body';
    gap: 0 clamp(1.25rem, 2.6vw, 2.5rem);
  }

  [data-theme='street'] .story.no-image {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    grid-template-areas:
      'no meta'
      'no body';
  }

  [data-theme='street'] .story-no {
    grid-area: no;
    z-index: auto;
    padding: 0;
    background: none;
    color: inherit;
    font-size: 2.5rem;
    line-height: 0.82;
  }

  [data-theme='street'] .story h3 {
    margin-top: 0.55rem;
  }

  [data-theme='street'] .story:nth-child(1 of .story:not([hidden])) {
    grid-template-columns: 3.4rem minmax(0, 1.1fr) minmax(0, 1fr);
  }

  [data-theme='street'] .story.no-image:nth-child(1 of .story:not([hidden])) {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }

  [data-theme='street'] .story:nth-child(1 of .story:not([hidden])) h3 {
    margin-top: 0.8rem;
  }
}

/* Desktop: the date line gets its own column on the right, like a departures board. */
@media (min-width: 1001px) {
  [data-theme='street'] .story {
    grid-template-columns: 4.6rem minmax(0, 17rem) minmax(0, 1fr) auto;
    grid-template-rows: auto;
    grid-template-areas: 'no media body meta';
  }

  [data-theme='street'] .story.no-image {
    grid-template-columns: 4.6rem minmax(0, 1fr) auto;
    grid-template-areas: 'no body meta';
  }

  [data-theme='street'] .story-no {
    font-size: 3.4rem;
  }

  [data-theme='street'] .story > .meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    min-width: 8.5rem;
    text-align: right;
  }

  [data-theme='street'] .story h3 {
    margin-top: 0;
  }

  [data-theme='street'] .story:nth-child(1 of .story:not([hidden])) {
    grid-template-columns: 4.6rem minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'no media meta'
      'no media body';
  }

  [data-theme='street'] .story.no-image:nth-child(1 of .story:not([hidden])) {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    grid-template-areas:
      'no meta'
      'no body';
  }

  [data-theme='street'] .story:nth-child(1 of .story:not([hidden])) > .meta {
    flex-direction: row;
    align-items: baseline;
    gap: 0.2rem 1rem;
    min-width: 0;
    text-align: left;
  }
}

/* The patio: where the people in her stories get the last word. */
[data-theme='street'] .voices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3.5vw, 3.5rem);
}

[data-theme='street'] .voice {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding-top: 1.1rem;
  border-top: var(--paint) solid var(--tan);
}

[data-theme='street'] .voice:first-child {
  grid-column: span 4;
  grid-row: span 2;
}

[data-theme='street'] .voice blockquote {
  margin: 0;
}

[data-theme='street'] .voice blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  line-height: 1.3;
  text-wrap: pretty;
}

[data-theme='street'] .voice:first-child blockquote p {
  font-size: clamp(1.9rem, 4.5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}

[data-theme='street'] .voice blockquote a {
  color: var(--tan);
}

[data-theme='street'] .voice-from {
  margin-top: 1.1rem;
}

[data-theme='street'] .voice-from a {
  color: var(--tan);
  text-decoration: none;
}

[data-theme='street'] .voice-from a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Documents */
[data-theme='street'] .documents-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-theme='street'] .doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-top: var(--paint) solid var(--fg);
}

[data-theme='street'] .doc-info {
  flex: 1 1 18rem;
  min-width: 0;
}

[data-theme='street'] .doc-info h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

[data-theme='street'] .doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* About */
[data-theme='street'] .about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 2.25rem clamp(1.75rem, 4.5vw, 4.5rem);
  align-items: start;
}

[data-theme='street'] .portrait {
  margin: 0;
}

[data-theme='street'] .portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--concrete);
}

[data-theme='street'] .portrait figcaption {
  margin-top: 0.6rem;
}

[data-theme='street'] .bio p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--fg-soft);
  text-wrap: pretty;
}

[data-theme='street'] .bio p + p {
  margin-top: 1em;
}

[data-theme='street'] .bio p:first-child {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.24;
  color: var(--fg);
}

[data-theme='street'] .facts {
  margin: 0;
  border-bottom: var(--paint) solid var(--fg);
}

[data-theme='street'] .facts:empty {
  display: none;
}

[data-theme='street'] .facts div {
  padding: 0.7rem 0 0.95rem;
  border-top: var(--paint) solid var(--fg);
}

[data-theme='street'] .facts dt {
  font-stretch: 104%;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

[data-theme='street'] .facts dd {
  margin: 0.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
}

[data-theme='street'] .facts a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Footer, with the colour key. */
[data-theme='street'] .foot {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

[data-theme='street'] .foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

[data-theme='street'] .swatches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.9rem 0 0;
  padding: 0;
}

[data-theme='street'] .swatches li {
  padding: 0.7rem 0.85rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

[data-theme='street'] .swatches b {
  display: block;
  font-stretch: 104%;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[data-theme='street'] .swatch-charcoal {
  background: var(--charcoal);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--charcoal-lift);
}

[data-theme='street'] .swatch-gray {
  background: var(--concrete);
  color: var(--charcoal);
}

[data-theme='street'] .swatch-tan {
  background: var(--tan);
  color: var(--charcoal);
}

[data-theme='street'] .key-quote {
  margin: 1.4rem 0 0;
}

[data-theme='street'] .key-quote p {
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.34;
  text-wrap: pretty;
}

[data-theme='street'] .key-from {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

[data-theme='street'] .foot a {
  color: var(--tan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

[data-theme='street'] .foot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

[data-theme='street'] .foot-meta #footer-copy {
  color: var(--fg);
  font-weight: 600;
}

/* Story reader */
[data-theme='street'] .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.15rem;
}

[data-theme='street'] .back {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

[data-theme='street'] .back:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--paint);
  text-underline-offset: 0.2em;
}

[data-theme='street'] .story-head {
  padding-block: clamp(0.75rem, 2.5vw, 2rem) clamp(1.75rem, 4vw, 3rem);
}

[data-theme='street'] .story-head h1 {
  max-width: 21ch;
  font-stretch: 78%;
  font-size: clamp(2.3rem, 6.3vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.026em;
}

[data-theme='street'] .story-head .dek {
  max-width: 46ch;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}

[data-theme='street'] .byline {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-muted);
}

[data-theme='street'] .byline strong {
  color: var(--fg);
  font-weight: 700;
}

/* The quick way to the original. */
[data-theme='street'] .source-bar {
  display: block;
  text-decoration: none;
}

[data-theme='street'] .source-bar:focus-visible {
  outline-offset: -5px;
}

[data-theme='street'] .source-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 0.95rem;
  font-size: 0.92rem;
}

[data-theme='street'] .src-label {
  font-weight: 500;
}

[data-theme='street'] .src-go {
  font-weight: 700;
}

[data-theme='street'] .source-bar:hover .src-go {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

[data-theme='street'] .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0 clamp(1.75rem, 4.5vw, 4.5rem);
  padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(3rem, 6vw, 5rem);
}

[data-theme='street'] .story-rail {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
  align-self: start;
}

[data-theme='street'] .story-facts {
  margin: 0;
  border-bottom: var(--paint) solid var(--fg);
}

[data-theme='street'] .story-facts div {
  padding: 0.6rem 0 0.8rem;
  border-top: var(--paint) solid var(--fg);
}

[data-theme='street'] .story-facts dt {
  font-stretch: 104%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

[data-theme='street'] .story-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-stretch: 88%;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

[data-theme='street'] .photo-figure {
  max-width: 44rem;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

[data-theme='street'] .photo {
  background: var(--concrete);
}

/* Most of the photos are 3:2. Holding that shape until the photo arrives keeps the text below from jumping. */
[data-theme='street'] .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto 3 / 2;
}

[data-theme='street'] .photo.broken {
  display: none;
}

/* Her paragraphs are short, so they get room. */
[data-theme='street'] .story-text {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.45vw, 1.3rem);
  line-height: 1.56;
}

[data-theme='street'] .story-text p {
  max-width: 34rem;
  margin-bottom: 1.2em;
  text-wrap: pretty;
}

[data-theme='street'] .story-text a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* A paragraph that opens on a quote is someone else talking: a tan band marks it. */
[data-theme='street'] .story-text p.says {
  position: relative;
  text-indent: -0.42em;
}

[data-theme='street'] .story-text p.says::before {
  content: '';
  position: absolute;
  top: 0.3em;
  bottom: 0.3em;
  left: -1.6rem;
  width: 4px;
  background: var(--tan);
}

/* The closing quote gets the patio treatment. */
[data-theme='street'] .story-text p.kicker {
  max-width: 44rem;
  margin: 2.4em 0 0;
  padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.6rem, 3.2vw, 2.5rem);
  background: var(--charcoal);
  color: var(--on-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.006em;
}

/* The second content line keeps the label out of screen readers where that is supported. */
[data-theme='street'] .story-text p.kicker::before {
  content: 'The last word';
  content: 'The last word' / '';
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-stretch: 104%;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tan);
}

[data-theme='street'] .story-text p.kicker a {
  color: var(--tan);
}

[data-theme='street'] .story-attachment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 44rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--concrete);
}

[data-theme='street'] .pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-theme='street'] .pager a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  text-decoration: none;
}

[data-theme='street'] .pager .newer {
  padding-right: clamp(1rem, 3vw, 3rem);
}

[data-theme='street'] .pager .older {
  padding-left: clamp(1rem, 3vw, 3rem);
  border-left: 1px solid var(--hair);
  text-align: right;
}

[data-theme='street'] .pager .t {
  font-family: var(--display);
  font-stretch: 84%;
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

[data-theme='street'] .pager a:hover .t {
  text-decoration: underline;
  text-decoration-thickness: var(--paint);
  text-underline-offset: 0.13em;
}

/* The article preview on the Manage page shows a story in a box 46rem wide at most. It takes the
   one-column layout the story page has on a tablet, and its sizes stop growing where a window
   that wide would put them, however wide the real window is. */
[data-theme='street'] .m-preview .story-head {
  padding-block: 1.5rem 1.85rem;
}

[data-theme='street'] .m-preview .story-head h1 {
  font-size: clamp(2.3rem, 6.3vw, 2.9rem);
}

[data-theme='street'] .m-preview .story-head .dek {
  margin-top: 1rem;
  font-size: 1.25rem;
}

[data-theme='street'] .m-preview .story-layout {
  grid-template-columns: minmax(0, 1fr);
  padding-block: 1.85rem 2rem;
}

[data-theme='street'] .m-preview .story-rail {
  position: static;
  margin-bottom: 1.75rem;
}

[data-theme='street'] .m-preview .story-facts {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 0 1.25rem;
}

[data-theme='street'] .m-preview .story-facts dd {
  font-size: 1.05rem;
}

[data-theme='street'] .m-preview .photo-figure {
  margin-bottom: 1.75rem;
}

[data-theme='street'] .m-preview .story-text {
  font-size: 1.16rem;
}

[data-theme='street'] .m-preview .story-text p.says {
  text-indent: 0;
}

[data-theme='street'] .m-preview .story-text p.says::before {
  left: -0.8rem;
  width: 3px;
}

[data-theme='street'] .m-preview .story-text p.kicker {
  padding: 1.4rem 1.4rem 1.6rem;
  font-size: 1.45rem;
}

/* Tablet and down */
@media (max-width: 900px) {
  [data-theme='street'] .hero-grid,
  [data-theme='street'] .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  [data-theme='street'] .lede {
    max-width: 36ch;
  }

  [data-theme='street'] .about {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  [data-theme='street'] .about .facts {
    grid-column: 1 / -1;
  }

  [data-theme='street'] .voices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-theme='street'] .voice,
  [data-theme='street'] .voice:first-child {
    grid-column: span 1;
    grid-row: auto;
  }

  [data-theme='street'] .voice:first-child {
    grid-column: 1 / -1;
  }

  [data-theme='street'] .story-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme='street'] .story-rail {
    position: static;
    margin-bottom: 1.75rem;
  }

  [data-theme='street'] .story-facts {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
    gap: 0 1.25rem;
  }

  [data-theme='street'] .story-facts dd {
    font-size: 1.05rem;
  }

  /* The margin is too narrow here for a hanging quote mark beside the tan band. */
  [data-theme='street'] .story-text p.says {
    text-indent: 0;
  }

  [data-theme='street'] .story-text p.says::before {
    left: -0.8rem;
    width: 3px;
  }
}

/* Phone */
@media (max-width: 680px) {
  /* The Manage link is still in the footer, so it leaves the crowded bar. */
  [data-theme='street'] .nav .nav-manage,
  [data-theme='street'] .nav .n {
    display: none;
  }

  [data-theme='street'] .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-theme='street'] .section-head-side {
    align-items: flex-start;
  }

  [data-theme='street'] .voices {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme='street'] .about {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme='street'] .portrait {
    max-width: 22rem;
  }

  [data-theme='street'] .swatches {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme='street'] .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme='street'] .pager .newer {
    padding-right: 0;
  }

  [data-theme='street'] .pager .older {
    padding-left: 0;
    border-top: 1px solid var(--hair);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme='street'] .sign a {
    transition: none;
  }
}

@media (forced-colors: active) {
  [data-theme='street'] .filters button {
    border: 1px solid ButtonText;
  }
}
