/* One stylesheet for the whole site. Change the tokens below to restyle everything. */

@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Navy surfaces */
  --bg: #0a1424;
  --surface: #0f1c31;
  --line: #22344f;
  --line-strong: #364d70;
  /* Warm off-white text */
  --text: #efe9dc;
  --muted: #a7b0b8;
  /* Dark green is for fills and rules only; green that must be read uses the light tone. */
  --green-fill: #1c5a43;
  --green-fill-hover: #237052;
  --green-line: #2f8262;
  --green-text: #8fd0ae;
  --danger: #f29384;

  --serif: "Newsreader Variable", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 40rem;
  --label: 11rem;
  --gap: 2.5rem;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green-fill);
  color: var(--text);
}

.wrap {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
.lead {
  max-width: 34rem;
  font: 400 clamp(1.25rem, 2.6vw, 1.45rem) / 1.45 var(--serif);
}
.kicker,
.band-label,
legend,
.ws-section > h2 {
  margin: 0;
  color: var(--green-text);
  font: 600 0.78rem/1.5 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--green-text);
  text-decoration-color: currentColor;
}
.quiet {
  color: var(--muted);
  text-decoration-color: transparent;
}
.ext {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--green-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1;
  padding: 0.5rem 0.9rem;
  background: var(--text);
  color: var(--bg);
}
.skip:focus {
  top: 1rem;
}

/* Controls */
.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background: var(--green-fill);
  color: var(--text);
  font: 600 0.95rem/1.4 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover {
  background: var(--green-fill-hover);
  color: var(--text);
}
.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
}
.button.secondary:hover {
  border-color: var(--green-text);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

/* Header and footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}
.wordmark {
  font: 500 1.3rem/1.2 var(--serif);
  text-decoration: none;
}
.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a,
.site-header nav button {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--text);
}
.site-header nav a[aria-current] {
  box-shadow: inset 0 -2px var(--green-line);
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 5rem;
  padding-block: 1.75rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0;
}

/* Page openings */
.hero {
  padding-block: clamp(2.5rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
}
.hero h1 {
  margin-block: 0.5rem 1.25rem;
  font-size: clamp(2.9rem, 9vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero .prose {
  max-width: var(--measure);
}
.portrait {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  object-fit: cover;
}
.page-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: clamp(2rem, 7vw, 4.5rem) 2.5rem;
}
/* The kicker is written after the title for screen readers but sits above it. */
.page-title .kicker {
  order: -1;
}
.page-title .lead,
.page-title .quick {
  margin: 0;
}
.crumb {
  margin: 1.5rem 0 -1rem;
  font-size: 0.9rem;
}
.crumb a::before {
  content: "← ";
}
.crumb + .page-title,
.crumb + .ws-head {
  padding-top: 2.5rem;
}

/* Label on the left, content in a reading column */
.band,
.post {
  display: grid;
  grid-template-columns: var(--label) minmax(0, var(--measure));
  column-gap: var(--gap);
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.band-label,
.post-date {
  padding-top: 0.3rem;
}
.onward {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}
.empty {
  max-width: var(--measure);
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}

.prose {
  overflow-wrap: anywhere;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3rem;
}
.prose li {
  margin-block: 0.3em;
}
.prose li::marker {
  color: var(--green-text);
}

/* Label–value rows */
.ledger {
  margin: 0;
}
.ledger > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ledger > div:first-child {
  padding-top: 0;
}
.ledger dt {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.1rem;
}
.ledger dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ledger.contact {
  max-width: 36rem;
  font-size: 1.15rem;
}

/* Lists with hairlines */
.index,
.reading,
.entries,
.post-links,
.plain-list,
.rows,
.tiles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.index > li,
.reading > li,
.entries > li,
.post-links > li,
.plain-list > li,
.rows > li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.index > li:first-child,
.reading > li:first-child,
.entries > li:first-child,
.post-links > li:first-child,
.plain-list > li:first-child {
  padding-top: 0;
}

.index > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
}
.index-n {
  padding-top: 0.2rem;
  color: var(--green-text);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.index h3 a {
  text-decoration-color: transparent;
}
.index h3 a:hover {
  text-decoration-color: currentColor;
}
.index p {
  margin: 0.35rem 0 0;
}

.post-links > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

/* Things that open */
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  float: right;
  margin-left: 1rem;
  color: var(--green-text);
  font: 400 1.25rem/1.3 var(--sans);
}
details[open] > summary::after {
  content: "–";
}
summary:hover {
  color: var(--green-text);
}
.note {
  margin: 0.75rem 0 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--green-fill);
  color: var(--text);
  font-size: 0.98rem;
}
.reading-title {
  font: 500 1.2rem/1.3 var(--serif);
}
.reading-status {
  display: block;
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
}
.entry-org {
  margin: 0.15rem 0 0.6rem;
  color: var(--muted);
}
.entries details {
  margin-top: 0.6rem;
}
.entries summary {
  color: var(--muted);
  font-size: 0.9rem;
}
.entries .fine {
  margin-top: 0.6rem;
}

/* Posts */
.feed .post:first-child {
  border-top: 0;
  padding-top: 0;
}
.post-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.post-title {
  margin-bottom: 0.9rem;
  font-size: 1.7rem;
}
h1.post-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
}
.post-title a {
  text-decoration-color: transparent;
}
.post-title a:hover {
  text-decoration-color: currentColor;
}
.post-image,
.shots img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-image {
  max-height: 22rem;
  margin-bottom: 1.25rem;
}
.shots {
  display: grid;
  gap: 1rem;
}
.folded {
  max-height: 15rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 1.1rem;
}
.post-foot [data-expand] {
  color: var(--text);
  font-weight: 600;
}
.single {
  padding-top: 2.5rem;
}
.load-more {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Workspace */
.ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.5rem 1.25rem;
}
.ws-head h1 {
  font-size: 2.25rem;
}
.ws-head .quick {
  margin: 0;
}
.ws .lead {
  margin-bottom: 1.75rem;
  font: inherit;
  color: var(--muted);
}
.ws-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.ws-section h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--muted);
  font: 600 0.9rem/1.4 var(--sans);
  letter-spacing: 0;
}
.ws-section > .empty,
.ws-section > .plain-list,
.ws-section > .fine {
  margin-top: 1rem;
}
.notice {
  max-width: var(--measure);
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--green-line);
  background: var(--surface);
}
.error {
  color: var(--danger);
}

.stack {
  max-width: var(--measure);
}
.field {
  margin-bottom: 1.35rem;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
input:not([type="checkbox"], [type="hidden"]),
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input[aria-invalid],
textarea[aria-invalid] {
  border-color: var(--danger);
}
input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--green-line);
}
.field.check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.65rem;
}
.field.check label {
  margin: 0;
}
.field.check .help,
.field.check .error {
  grid-column: 2;
}
.help,
.field .error {
  margin: 0.35rem 0 0;
  font-size: 0.87rem;
}
.help {
  color: var(--muted);
}
fieldset {
  margin: 0 0 1rem;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
legend {
  padding: 0 0.75rem 0 0;
}
fieldset .field:first-of-type {
  margin-top: 0.75rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
}
.inline {
  display: inline;
}
.linklike,
.star {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.linklike:hover {
  color: var(--text);
}
.star {
  color: var(--green-text);
  font-size: 1.15rem;
  line-height: 1;
}
.small {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 0.82rem/1.5 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.small:hover {
  border-color: var(--green-text);
  color: var(--text);
}
.small.danger {
  color: var(--danger);
}
.small.danger:hover {
  border-color: var(--danger);
}
.rows > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.row-main {
  flex: 1 1 16rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-title {
  font-weight: 600;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
/* The app launcher is the one place boxes earn their keep. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.tiles > li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.tile-name {
  font-weight: 600;
}
.tile-foot {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.tile-foot > span {
  margin-right: auto;
}
.preview {
  max-width: calc(var(--measure) + 2.5rem);
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}
.preview .post {
  display: block;
  padding: 0.75rem 0 0;
  border: 0;
}
.signin {
  max-width: 24rem;
  padding-top: 14vh;
}
.signin h1 {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
}
.signin .button {
  width: 100%;
  margin-bottom: 1.5rem;
}

@media (max-width: 46rem) {
  .band,
  .post {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.9rem;
    padding-block: 1.9rem;
  }
  .ledger > div {
    grid-template-columns: 6.5rem 1fr;
  }
  .site-header nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Experience timeline on the home page */
.timeline {
  margin: 0;
  padding: 0 0 0 1.75rem;
  border-left: 1px solid var(--line-strong);
  list-style: none;
}
.timeline > li {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline > li:last-child {
  padding-bottom: 0.5rem;
}
.timeline > li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: calc(-1.75rem - 5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-line);
  box-shadow: 0 0 0 5px var(--bg);
}
.stop-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.2rem;
}
.stop-head .entry-org {
  margin-bottom: 0;
}
.logo {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--text);
  object-fit: contain;
}
.stat {
  margin: 1rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.stat strong {
  margin-right: 0.35rem;
  color: var(--green-text);
  font: 500 clamp(2rem, 6vw, 2.6rem) / 1 var(--serif);
  letter-spacing: -0.01em;
}
.timeline details {
  margin-top: 0.9rem;
}
.timeline summary {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
}
.timeline summary::after {
  float: none;
  margin-left: 0.5rem;
  font-size: 1rem;
  line-height: 1;
}
.timeline summary:hover {
  border-color: var(--green-text);
}
.reveal {
  padding-top: 1rem;
}
.timeline details + .fine {
  margin-top: 0.8rem;
}
.band-body > .lead {
  margin-bottom: 1.5rem;
}

/* Stops fade up as they scroll into view, and opened details fade in. Browsers without
   scroll-linked animation, and people who ask for less motion, simply see everything. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  details[open] > :not(summary) {
    animation: fade 0.35s ease both;
  }
  @supports (animation-timeline: view()) {
    .timeline > li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 1rem entry 15rem;
    }
  }
}

/* Home page opening: text on the left, photo on the right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.portrait {
  width: clamp(11rem, 27vw, 18rem);
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 8px;
}

/* Timeline, kept to one typeface: the title is the only bold line, the figure the only color. */
.timeline > li {
  padding-bottom: 1.9rem;
}
.timeline > li::before {
  top: 1.1rem;
}
.timeline h3 {
  font: 600 1.05rem/1.4 var(--sans);
  letter-spacing: 0;
}
.timeline .entry-org {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
}
.timeline > li > .prose,
.stat {
  margin: 0.7rem 0 0;
  color: var(--text);
  font-size: 1rem;
}
.stat strong {
  margin-right: 0.2rem;
  color: var(--green-text);
  font: 600 1rem/1.5 var(--sans);
  letter-spacing: 0;
}
.timeline details {
  margin-top: 0.7rem;
}
.reveal > * + * {
  margin-top: 0.9rem;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
  max-width: 46rem;
}
.photos:empty {
  display: none;
}
.photos figure {
  margin: 0;
}
.photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 30%;
}
.photos figcaption {
  margin-top: 0.4rem;
}
.band-body > .prose + .photos {
  margin-top: 1.25rem;
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .portrait {
    order: -1;
    width: 9rem;
  }
}

/* The line across the top fills as you scroll down the page. Where scroll-linked animation
   isn't available it is simply a full line, as before. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: var(--green-line);
  transform-origin: 0 50%;
}
body {
  border-top: 3px solid var(--line);
}
@keyframes progress {
  from {
    transform: scaleX(0);
  }
}
@supports (animation-timeline: scroll()) {
  body::before {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

.logo {
  background: #fff;
}
.tagline {
  margin: 0.7rem 0 0;
}
/* Opening "See more" swaps the tagline for the full story. */
.timeline > li:has(> details[open]) > .tagline {
  display: none;
}

/* Sections and photos fade up as they scroll into view, like the timeline stops. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band,
    .post,
    .photos figure,
    .index > li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 1rem entry 15rem;
    }
    .timeline > li {
      animation-range: entry 1rem entry 15rem;
    }
  }
}

.prose ul {
  list-style: disc;
}

/* Header: stays at the top, links centered. On the home page the small name fades in
   once the large one has scrolled away, so it is always visible but never twice. */
.top {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.top .site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-block: 0.9rem;
}
.top .wordmark {
  justify-self: start;
}
html {
  scroll-padding-top: 5rem;
}
@keyframes appear {
  from {
    opacity: 0;
    visibility: hidden;
  }
}
@supports (animation-timeline: scroll()) {
  .home .wordmark {
    animation: appear linear both;
    animation-timeline: scroll(root);
    animation-range: 13rem 20rem;
  }
}
@media (max-width: 46rem) {
  .top .site-header {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0.6rem;
  }
  .top nav ul {
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  /* On phones the hidden name shouldn't hold a row open. */
  @keyframes appear {
    from {
      opacity: 0;
      height: 0;
    }
    to {
      height: 1.6rem;
    }
  }
  .home .wordmark {
    overflow: hidden;
  }
}

/* Photos under "See more": at the bottom, modest in size. */
.reveal .photos {
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  max-width: 30rem;
  gap: 0.75rem;
}

/* A little more travel on the fade-ins. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2.75rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band,
    .post,
    .photos figure,
    .index > li,
    .timeline > li {
      animation-range: entry 0% entry 22rem;
    }
  }
}

/* Roles inside an entry (clubs under Mizzou): indented, on a lighter line, with smaller marks. */
.timeline .timeline {
  margin-top: 1.25rem;
  padding-left: 1.4rem;
  border-left-color: var(--line);
}
.timeline .timeline > li {
  padding-bottom: 1.35rem;
  animation: none;
}
.timeline .timeline > li:last-child {
  padding-bottom: 0;
}
.timeline .timeline > li::before {
  top: 0.9rem;
  left: calc(-1.4rem - 4px);
  width: 7px;
  height: 7px;
  background: var(--line-strong);
}
.timeline .timeline .logo {
  width: 34px;
  height: 34px;
}
.timeline .timeline h3 {
  font-size: 1rem;
}

.awards {
  margin: 0;
  padding: 0;
  list-style: none;
}
.awards > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.awards > li:first-child {
  padding-top: 0;
}
.awards p {
  flex-basis: 100%;
  margin-top: 0.15rem;
}

/* Inside the high school entry */
.sub-label {
  margin: 1.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.reveal .awards {
  font-size: 0.95rem;
}

.band-body > .lead + .photos,
.band-body > .prose + .photos {
  margin-top: 1.25rem;
}
.timeline > li > .photos {
  max-width: 30rem;
  margin-top: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

/* Posts: the opening quote as a headline, a larger first paragraph, and a photo gallery. */
.post-title {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  line-height: 1.15;
}
h1.post-title {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  margin-bottom: 1.5rem;
}
.post-main > .prose > p:first-child {
  font: 400 1.25rem/1.5 var(--serif);
}
.gallery {
  margin-top: 1.5rem;
}
.gallery-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  display: block;
  width: 100%;
  height: clamp(15rem, 62vw, 27rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: contain;
}
.gallery figcaption {
  margin-top: 0.5rem;
}
.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: -1.6rem;
}
.gallery-nav .small {
  padding: 0.2rem 0.75rem;
  font-size: 1rem;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-track {
    scroll-behavior: smooth;
  }
}

/* A post without a title opens on its first line, set as the headline. */
.post-main > .prose:first-child > p:first-child {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
