/*
  The "Fall Semester" theme: warm and cozy.

  Her first semester of stories was reported in the fall, and the photos that
  ran with them are full of brick and turning leaves. This theme takes its
  colours from that: cream paper, brick red, coffee brown.

    her photo at the top, round
    soft serif type, rounded corners, nothing sharp
    the articles are photo cards
    the people she quotes get a coffee-brown band of note cards
*/

[data-theme='fall'] {
  --cream: #f7efe2;
  --oat: #efe3cf;
  --card: #fffaf1;
  --line: #e2d3bb;
  --ink: #33261d;
  --ink-soft: #55443a;
  --muted: #6b5a4c;
  --rust: #a4471f;
  --rust-deep: #8a3a18;
  --on-rust: #fff8ee;
  --espresso: #3a2b21;
  --mocha: #47362b;
  --peach: #f0b68c;
  --stop: #a8231c;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
  --paint: 3px;
  --header: 3.75rem;
  --round: 20px;

  /* What the shared rules in site.css and manage.css read. */
  --theme-color: #f7efe2;
  --body-bg: var(--oat);
  --page: var(--cream);
  --panel: var(--card);
  --accent: var(--rust);
  --font-ui: var(--serif);
  --font-display: var(--display);
  --font-read: var(--serif);
  --display-stretch: 100%;
  --display-weight: 600;
  --display-tracking: -0.015em;
  --btn-bg: var(--oat);
  --btn-ink: var(--ink);
  --btn-hover-bg: var(--ink);
  --btn-hover-ink: var(--cream);
  --btn-solid-bg: var(--rust);
  --btn-solid-ink: var(--on-rust);
  --btn-radius: 999px;
  --field-radius: 10px;
  --box-radius: 18px;
  --notice-bg: var(--oat);
  --select-bg: var(--peach);
  --select-ink: var(--ink);
  --skip-bg: var(--ink);
  --skip-ink: var(--cream);
}

/* The soft cut of the display face. */
[data-theme='fall'] h1,
[data-theme='fall'] h2,
[data-theme='fall'] h3,
[data-theme='fall'] h4 {
  font-variation-settings: 'SOFT' 100;
}

[data-theme='fall'] .band {
  padding-inline: var(--gutter);
}

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

/* Small brick-red capitals used for labels and for the date line of a story or document. */
[data-theme='fall'] .label,
[data-theme='fall'] .meta {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rust);
}

/* Header */
[data-theme='fall'] .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

[data-theme='fall'] .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='fall'] .mark {
  flex: none;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
}

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

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

[data-theme='fall'] .nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--header);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

[data-theme='fall'] .nav a:hover,
[data-theme='fall'] .nav a[aria-current] {
  color: var(--rust-deep);
}

[data-theme='fall'] .nav a[aria-current] {
  box-shadow: inset 0 -3px 0 var(--rust);
}

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

[data-theme='fall'] .nav .n {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--oat);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Hero: her photo, her name, and round buttons to the rest of the page. */
[data-theme='fall'] .hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}

[data-theme='fall'] .hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

[data-theme='fall'] .hero-portrait {
  width: 7rem;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--card),
    0 0 0 7px var(--line);
  object-fit: cover;
  background: var(--oat);
}

[data-theme='fall'] .hero h1 {
  margin-top: 0.3rem;
  font-size: clamp(3rem, 8.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}

[data-theme='fall'] .hero-grid {
  margin-top: 0.9rem;
}

[data-theme='fall'] .lede {
  max-width: 36rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.42;
  color: var(--ink-soft);
  text-wrap: pretty;
}

[data-theme='fall'] .sign {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

[data-theme='fall'] .sign a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--oat);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

[data-theme='fall'] .sign a:first-child {
  background: var(--rust);
  color: var(--on-rust);
}

[data-theme='fall'] .sign a:hover {
  background: var(--ink);
  color: var(--cream);
}

@media (min-width: 761px) {
  [data-theme='fall'] .hero .wrap {
    grid-template-columns: auto minmax(0, 1fr);
  }

  [data-theme='fall'] .hero-portrait {
    grid-row: 1 / span 3;
    width: clamp(9rem, 17vw, 13.5rem);
    margin-bottom: 0;
  }

  [data-theme='fall'] .hero .label,
  [data-theme='fall'] .hero h1,
  [data-theme='fall'] .hero-grid {
    grid-column: 2;
  }
}

/* A row of soft tiles for the numbers. */
[data-theme='fall'] .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 0;
}

[data-theme='fall'] .stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.1rem;
  border-radius: var(--round);
  background: var(--oat);
}

[data-theme='fall'] .stat dd {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Sections */
[data-theme='fall'] .section {
  padding-top: clamp(3rem, 7vw, 5rem);
}

[data-theme='fall'] main[data-portfolio-page='home'] {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

[data-theme='fall'] .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

[data-theme='fall'] .section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.022em;
}

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

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

[data-theme='fall'] .filters button {
  min-height: 2.25rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

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

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

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

/* The articles: photo cards. Phone layout first, one card per row. */
[data-theme='fall'] ol.stories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

[data-theme='fall'] .story {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--round);
  background: var(--card);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

@media (hover: hover) {
  [data-theme='fall'] .story:hover {
    box-shadow: 0 16px 30px -20px rgb(51 38 29 / 0.5);
    transform: translateY(-3px);
  }
}

/* The story's number, on a little round tag over the photo. */
[data-theme='fall'] .story-no {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 600;
  line-height: 1;
}

[data-theme='fall'] .story.no-image .story-no {
  position: static;
  align-self: flex-start;
  margin: 1.1rem 1.25rem 0;
  background: var(--oat);
}

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

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

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

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

[data-theme='fall'] .credit {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

[data-theme='fall'] .story .credit {
  padding-inline: 1.25rem;
}

[data-theme='fall'] .story > .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.5rem;
  padding: 1rem 1.25rem 0;
}

[data-theme='fall'] .story > .meta > * + *::before {
  content: '·';
  margin-right: 0.5rem;
}

[data-theme='fall'] .story-body {
  min-width: 0;
  padding: 0.45rem 1.25rem 1.4rem;
}

[data-theme='fall'] .story h3 {
  font-size: 1.45rem;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

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

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

[data-theme='fall'] .story:hover h3 a {
  color: var(--rust-deep);
}

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

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

[data-theme='fall'] .dek {
  margin-top: 0.55rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

[data-theme='fall'] .with {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

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

@media (min-width: 681px) {
  [data-theme='fall'] ol.stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The newest story that is showing is a wide card across the top. */
  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) {
    grid-column: 1 / -1;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .story-img {
    aspect-ratio: 2 / 1;
  }
}

/* With room for it, that wide card puts the photo and the words side by side. */
@media (min-width: 901px) {
  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      'media .'
      'media meta'
      'media body'
      'media .';
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .story-media {
    grid-area: media;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .story-img {
    aspect-ratio: 3 / 2;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .credit {
    margin-block: 0.5rem 0.7rem;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) {
    padding-block: 0;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) > .meta {
    grid-area: meta;
    padding: 0 clamp(1.5rem, 3vw, 2.5rem);
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .story-body {
    grid-area: body;
    padding: 0.6rem clamp(1.5rem, 3vw, 2.5rem) 0;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) h3 {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  [data-theme='fall'] .story:nth-child(1 of .story:not([hidden])) .dek {
    margin-top: 0.8rem;
    font-size: 1.15rem;
  }

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

  [data-theme='fall'] .story.no-image:nth-child(1 of .story:not([hidden])) .story-no {
    grid-area: no;
    margin: 1.5rem clamp(1.5rem, 3vw, 2.5rem) 0.9rem;
  }
}

@media (min-width: 1041px) {
  [data-theme='fall'] ol.stories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* The last word: a coffee-brown band of note cards. */
[data-theme='fall'] .section#last-word {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.75rem, 5vw, 3.5rem);
  background: var(--espresso);
  color: var(--cream);
  --accent: var(--peach);
}

[data-theme='fall'] #last-word .label {
  color: var(--peach);
}

[data-theme='fall'] .voices {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 17rem;
  column-gap: 1.5rem;
}

[data-theme='fall'] .voice {
  margin-bottom: 1.5rem;
  padding: 1.3rem 1.5rem 1.5rem;
  border-radius: var(--round);
  background: var(--mocha);
  break-inside: avoid;
}

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

[data-theme='fall'] .voice blockquote::before {
  content: '“';
  display: block;
  height: 1.9rem;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--peach);
}

[data-theme='fall'] .voice blockquote p {
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

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

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

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

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

/* Documents */
[data-theme='fall'] .documents-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

[data-theme='fall'] .doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--round);
  background: var(--card);
}

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

[data-theme='fall'] .doc-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}

[data-theme='fall'] .doc-info h3 {
  margin-top: 0.3rem;
  font-size: 1.5rem;
  line-height: 1.15;
}

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

/* About: her photo is at the top of the page, so this is words and facts. */
[data-theme='fall'] .about {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

[data-theme='fall'] .portrait {
  display: none;
}

[data-theme='fall'] .bio p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

[data-theme='fall'] .bio p:first-child {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink);
}

[data-theme='fall'] .facts {
  margin: 0;
  padding: 0.4rem 1.5rem 0.6rem;
  border-radius: var(--round);
  background: var(--oat);
}

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

[data-theme='fall'] .facts div {
  padding: 0.85rem 0 0.9rem;
  border-top: 1px solid var(--line);
}

[data-theme='fall'] .facts div:first-child {
  border-top: 0;
}

[data-theme='fall'] .facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rust);
}

[data-theme='fall'] .facts dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

[data-theme='fall'] .facts a,
[data-theme='fall'] .foot a,
[data-theme='fall'] .story-text a,
[data-theme='fall'] .src-go {
  color: var(--rust-deep);
  text-underline-offset: 0.18em;
}

/* Footer: small and centred. The colour key belongs to another theme. */
[data-theme='fall'] .foot {
  padding-block: 2rem 2.5rem;
  background: var(--oat);
}

[data-theme='fall'] .foot .key {
  display: none;
}

[data-theme='fall'] .foot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

[data-theme='fall'] .foot-meta #footer-copy {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* Story reader: one centred column, like a page of a magazine. */
[data-theme='fall'] main[data-portfolio-page$='story'] .wrap {
  max-width: 42rem;
}

[data-theme='fall'] .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

[data-theme='fall'] .back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--oat);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

[data-theme='fall'] .back:hover {
  background: var(--ink);
  color: var(--cream);
}

[data-theme='fall'] .story-head {
  padding-block: clamp(1rem, 3vw, 2rem) 1.75rem;
  text-align: center;
}

[data-theme='fall'] .story-head h1 {
  font-size: clamp(2.2rem, 5.7vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
}

[data-theme='fall'] .story-head .dek {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.42;
}

[data-theme='fall'] .byline {
  margin-top: 1.1rem;
  color: var(--muted);
}

[data-theme='fall'] .byline strong {
  color: var(--ink);
}

[data-theme='fall'] .source-bar {
  display: block;
  text-decoration: none;
}

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

[data-theme='fall'] .source-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 16px;
  background: var(--oat);
  font-size: 0.98rem;
  color: var(--ink-soft);
}

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

[data-theme='fall'] .source-bar:hover .src-go {
  text-decoration: underline;
}

[data-theme='fall'] .story-layout {
  padding-block: 1.75rem clamp(3rem, 6vw, 5rem);
}

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

[data-theme='fall'] .story-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  margin: 0;
  text-align: center;
}

[data-theme='fall'] .story-facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rust);
}

[data-theme='fall'] .story-facts dd {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.2rem;
  font-weight: 600;
}

[data-theme='fall'] .photo-figure {
  margin: 0 0 2.25rem;
}

[data-theme='fall'] .photo {
  overflow: hidden;
  border-radius: var(--round);
  background: var(--oat);
}

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

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

[data-theme='fall'] .photo-figure .credit {
  text-align: center;
}

[data-theme='fall'] .story-text {
  font-size: clamp(1.14rem, 1.45vw, 1.24rem);
  line-height: 1.72;
}

[data-theme='fall'] .story-text p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
}

/* A big first letter, the way a magazine opens a story. Skipped when the story opens on a quotation mark. */
[data-theme='fall'] .story-text > p:first-child:not(.says)::first-letter {
  float: left;
  margin: 0.07em 0.09em 0 0;
  font-family: var(--display);
  font-size: 3.55em;
  font-weight: 600;
  line-height: 0.8;
  color: var(--rust);
}

/* A paragraph that opens on a quote is someone else talking: it sits on its own soft block. */
[data-theme='fall'] .story-text p.says {
  margin-inline: -1rem;
  padding: 0.85em 1rem 0.9em;
  border-radius: 14px;
  background: var(--oat);
}

/* The closing quote, on brick red. */
[data-theme='fall'] .story-text p.kicker {
  margin: 2.4em -1rem 0;
  padding: 1.4rem 1.6rem 1.7rem;
  border-radius: 22px;
  background: var(--rust);
  color: var(--on-rust);
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.012em;
}

/* The second content line keeps the label out of screen readers where that is supported. */
[data-theme='fall'] .story-text p.kicker::before {
  content: 'The last word';
  content: 'The last word' / '';
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

[data-theme='fall'] .story-text p.kicker a {
  color: inherit;
}

[data-theme='fall'] .story-attachment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.3rem;
  border-radius: 18px;
  background: var(--oat);
}

[data-theme='fall'] #story-pager {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

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

[data-theme='fall'] .pager a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.35rem 1.25rem;
  border-radius: 18px;
  background: var(--card);
  text-decoration: none;
}

[data-theme='fall'] .pager a:hover {
  background: var(--oat);
}

[data-theme='fall'] .pager .older {
  align-items: flex-end;
  text-align: right;
}

[data-theme='fall'] .pager .t {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

/* The article preview on the Manage page shows a story in a box 46rem wide at most. Its sizes stop
   growing where a window that wide would put them, however wide the real window is. */
[data-theme='fall'] .m-preview .story-head {
  padding-block: 1.4rem 1.75rem;
}

[data-theme='fall'] .m-preview .story-head h1 {
  font-size: clamp(2.2rem, 5.7vw, 2.6rem);
}

[data-theme='fall'] .m-preview .story-head .dek {
  font-size: 1.15rem;
}

[data-theme='fall'] .m-preview .story-layout {
  padding-bottom: 2rem;
}

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

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

/* Tablet and down */
@media (max-width: 860px) {
  [data-theme='fall'] .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  [data-theme='fall'] .mark {
    font-size: 1.2rem;
  }

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

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

  [data-theme='fall'] .story-facts {
    gap: 0.5rem 1.5rem;
  }

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

  [data-theme='fall'] .story-text p.says {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  [data-theme='fall'] .story-text p.kicker {
    margin-inline: -0.75rem;
    padding-inline: 1.2rem;
  }

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

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

  [data-theme='fall'] .story:hover {
    transform: none;
  }
}

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