/*
 * jesseschutt.com
 *
 * One serif (Newsreader) throughout, ink on warm paper, and the photographs
 * supply the colour. Light and dark follow the visitor's system setting.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  --paper: #f6f3ed;
  --paper-2: #ece6db;
  --ink: #1f1d1a;
  --muted: #6c665e;
  --rule: #d9d1c4;
  --sumac: #a8471f;
  --print: #fcfaf6;
  --shadow: 0 1px 2px rgba(40, 30, 20, .10), 0 10px 22px -10px rgba(40, 30, 20, .30);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 32px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181614;
    --paper-2: #221f1c;
    --ink: #ece6dc;
    --muted: #a39a8e;
    --rule: #34302b;
    --sumac: #e28a5f;
    --print: #efe9df;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 28px -12px rgba(0, 0, 0, .75);
  }
}

/* -------------------------------------------------------------------- base */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--serif);
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.012em; margin: 0; }

img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--sumac); outline-offset: 2px; }

/* ------------------------------------------------------------------ header */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 15px; height: 18px; position: relative; top: 2px; }
.wordmark { white-space: nowrap; font-size: 23px; font-weight: 500; letter-spacing: -.01em; }

.site-nav { display: flex; gap: 28px; font-size: 18px; font-style: italic; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 6px; }

/* ------------------------------------------------------------------ footer */

.site-foot { margin-top: 120px; }
.treeline { display: block; width: 100%; height: 64px; color: var(--paper-2); }
.foot-inner { background: var(--paper-2); color: var(--muted); }
.foot-inner .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  padding-top: 8px;
  padding-bottom: 46px;
  font-size: 16px;
}
.signoff { font-size: 20px; font-style: italic; color: var(--ink); }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-inner a:hover { color: var(--ink); }

/* ------------------------------------------------------- shared components */

/* A book's running head: a rule, a heading, and an optional link. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.section-head h2 em { color: var(--muted); }

.more { font-style: italic; font-size: 18px; color: var(--muted); white-space: nowrap; }
.more:hover { color: var(--sumac); }

.back { display: inline-block; margin-top: 28px; font-size: 17px; font-style: italic; color: var(--muted); }
.back:hover { color: var(--sumac); }

.inline-link {
  color: var(--ink);
  text-decoration: underline 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
}
.inline-link:hover { color: var(--sumac); text-decoration-color: currentColor; }

.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.page-head h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; text-wrap: balance; }
.page-head .kicker { margin: 0 0 6px; font-style: italic; color: var(--muted); font-size: 18px; }
.page-head .dek { margin: 14px 0 0; max-width: 36em; font-size: 20px; font-style: italic; color: var(--muted); }

/* Forms: a single underline, serif throughout. */
.field { display: block; margin-bottom: 26px; text-align: left; }
.field label { display: block; margin-bottom: 6px; font-size: 16px; font-style: italic; color: var(--muted); }
.field input {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 20px var(--serif);
}
.field input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 400 18px var(--serif);
  cursor: pointer;
}
.btn:hover { background: var(--sumac); color: #fff; }

.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 2px solid var(--sumac);
  background: var(--paper-2);
  font-size: 17px;
}
.notice code { font-family: var(--mono); font-size: .85em; }

/* ----------------------------------------------------------------- mobile */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .site-head { padding: 20px 0 16px; }
  .wordmark { font-size: 20px; }
  .site-nav { gap: 16px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}

/* -------------------------------------------------------------------- home */

.intro { max-width: 760px; padding: 80px 0 104px; }
.byline { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.portrait {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px var(--print), var(--shadow);
}
.place { margin: 0; font-size: 18px; font-style: italic; color: var(--muted); }
.intro h1 { margin-bottom: 28px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; }
.lede { max-width: 34em; font-size: 21px; color: var(--muted); }
.lede p { margin: 0 0 .8em; }
.lede a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.lede a:hover { color: var(--sumac); text-decoration-color: currentColor; }

.ext { font-size: .7em; color: var(--muted); position: relative; top: -.15em; }

/* Three threads */
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 104px; }
.thread { display: flex; flex-direction: column; }
.thread-art, .thread-quote { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 2px; background: var(--paper-2); }
.thread-art { object-fit: cover; transition: opacity .2s; }
.thread:hover .thread-art { opacity: .9; }
.thread-quote { display: flex; flex-direction: column; justify-content: center; padding: 0 28px; }
.thread-quote q { font-size: 23px; line-height: 1.25; font-style: italic; }
.thread-quote small { margin-top: 10px; font-size: 15px; color: var(--muted); }
.thread h3 { margin: 14px 0 2px; font-size: 24px; }
.thread:hover h3 { color: var(--sumac); }
.thread p { margin: 0; font-size: 16px; color: var(--muted); }

/* Recent galleries: justified rows - uncropped, flush on both edges, in order */
.rows { display: flex; flex-wrap: wrap; gap: 26px 18px; margin-bottom: 104px; }
.tile { flex: var(--r) 1 calc(var(--r) * 230px); display: flex; flex-direction: column; min-width: 0; }
.frame { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.frame img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .frame img { transform: scale(1.03); }
.fresh {
  position: absolute; top: 10px; left: 10px; padding: 2px 10px 3px; border-radius: 2px;
  background: var(--print); color: #2a2622; font-size: 14px; font-style: italic;
}
.tile-title { margin-top: 10px; font-size: 20px; line-height: 1.2; text-wrap: balance; }
.tile:hover .tile-title { color: var(--sumac); }
.tile-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 3px;
  font-size: 15px; line-height: 1.45; font-style: italic; color: var(--muted);
}
.tile-meta > span { white-space: nowrap; }
.private { display: inline-flex; align-items: center; gap: 4px; }
.icon { width: 11px; height: 11px; flex: none; }

/* Writing list */
.posts { list-style: none; margin: 0; padding: 0; }
.posts a {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.posts li:first-child a { padding-top: 2px; }
.posts time { font-size: 16px; font-style: italic; color: var(--muted); }
.post-title { font-size: 23px; line-height: 1.25; }
.posts a:hover .post-title { color: var(--sumac); }
.topic { font-size: 15px; font-style: italic; color: var(--muted); }

@media (max-width: 900px) {
  .intro { padding: 48px 0 72px; }
  .threads { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .intro { padding-top: 32px; }
  .lede { font-size: 18px; }
  .posts a { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .posts time { grid-column: 1 / -1; }
  .post-title { font-size: 20px; }
}

/* ------------------------------------------------------------ writing list */

.entries { max-width: 760px; }
.entry { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.entry:first-child { padding-top: 0; }
.entry-meta { margin: 0 0 6px; font-size: 16px; font-style: italic; color: var(--muted); }
.entry-meta span { margin-left: 4px; }
.entry-title { font-size: 27px; line-height: 1.2; text-wrap: balance; }
.entry-title a:hover { color: var(--sumac); }
.entry-dek { margin: 8px 0 0; font-size: 18px; color: var(--muted); }
.entry-body { margin-top: 10px; font-size: 18px; }
.entry-body p { margin: 0 0 .7em; }
.entry-body a { text-decoration: underline 1px; text-underline-offset: 3px; text-decoration-color: var(--sumac); }
.entry-out { margin: 4px 0 0; font-size: 17px; font-style: italic; }

.pager { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px 0 0; }
.pager-count { font-size: 16px; font-style: italic; color: var(--muted); }

@media (max-width: 640px) {
  .entry-title { font-size: 23px; }
}

/* Quotations inside notes and posts */
.entry-body blockquote, .prose blockquote {
  margin: 1em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--sumac);
  font-style: italic;
}
.entry-body blockquote p, .prose blockquote p { margin: 0 0 .6em; }
.entry-body blockquote strong, .prose blockquote strong { font-weight: 500; }

/* --------------------------------------------------------------- slideshow */
/* Built by event-slideshow.js; it always sits on a dark backdrop. */
body.slideshow-is-open {
  overflow: hidden;
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(16, 16, 16, 0.96);
}

.slideshow[hidden] {
  display: none;
}

.slideshow-frame.is-loading,
.slideshow-frame.is-error {
  width: min(80vw, 900px);
  height: min(calc(100vh - 190px), 640px);
}

.slideshow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  min-width: 0;
}

.slideshow-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.slideshow-image,
.slideshow-thumb {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 2px;
}

.slideshow-image {
  background: transparent;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.slideshow-image:not([src]) {
  opacity: 0;
  width: 0;
}

/* The grid thumbnail stands in until the full size arrives. */
.slideshow-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slideshow-frame.is-loading .slideshow-thumb {
  opacity: 0.55;
}

/* Full size failed: show the thumbnail properly rather than an empty frame. */
.slideshow-frame.is-error .slideshow-thumb {
  opacity: 1;
  filter: none;
  transform: none;
  object-fit: contain;
}

.slideshow-error {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #eee;
  font-family: var(--serif);
  font-size: 0.78em;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
}

.slideshow-error[hidden] {
  display: none;
}

.slideshow-spinner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slideshow-spinner[hidden] {
  display: none;
}

.slideshow-spinner-ring {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: slideshow-spin 0.8s linear infinite;
}

.slideshow-spinner-text {
  font-family: var(--serif);
  font-size: 0.8em;
  color: #ddd;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@keyframes slideshow-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-spinner-ring {
    animation-duration: 2.4s;
  }
}

.slideshow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 0.85em;
  color: #ddd;
  text-align: center;
}

.slideshow-id {
  font-family: Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #fff;
}

.slideshow-caption {
  color: #bbb;
}

.slideshow-count {
  color: #888;
}

.slideshow-nav,
.slideshow-close {
  flex: none;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slideshow-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2em;
  line-height: 1;
}

.slideshow-nav:hover,
.slideshow-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.slideshow-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6em;
  line-height: 1;
}

.slideshow-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.slideshow-rating[hidden] {
  display: none;
}

.photo-rating.slideshow-stars {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
}

.photo-rating.slideshow-stars .star {
  color: #7a7a7a;
}

.photo-rating.slideshow-stars .star.is-on,
.photo-rating.slideshow-stars .star.is-hover {
  color: #e8a07a;
}

.photo-rating.slideshow-stars .rating-value {
  color: #ddd;
}

.slideshow-download {
  padding: 8px 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.85em;
  text-decoration: none;
}

.slideshow-download:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

@media (max-width: 700px) {
  .slideshow-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  .slideshow-image {
    max-height: calc(100vh - 230px);
  }
}

/* ------------------------------------------------------------ events index */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 22px; row-gap: 34px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card img, .card-blank { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--paper-2); transition: opacity .2s; }
.card-blank { aspect-ratio: 3 / 2; }
.card:hover img { opacity: .9; }
.card-title { margin-top: 10px; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.card:hover .card-title { color: var(--sumac); }
.card-dek { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Set by masonry.js on any [data-masonry] grid. 2px rows must match ROW there. */
[data-masonry].is-masonry { grid-auto-rows: 2px; row-gap: 0; align-items: start; }

/* ----------------------------------------------------------------- gallery */

.event-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px;
  padding: 30px 0; border-bottom: 1px solid var(--rule);
}
.event-head h1 { margin-top: 6px; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; text-wrap: balance; }
.event-date, .kicker { margin: 0; font-size: 18px; font-style: italic; color: var(--muted); }
.event-facts { margin: 0; font-size: 18px; font-style: italic; color: var(--muted); text-align: right; }

/* The slideshow needs the photos on the page; hide its link on the gates. */
.event-page:not(:has(.shots)) .event-slideshow { display: none; }

.link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-style: italic; color: var(--ink);
  text-decoration: underline 1px; text-underline-offset: 5px; text-decoration-color: var(--rule);
}
.link-button:hover { color: var(--sumac); text-decoration-color: currentColor; }
.inline-form { display: inline; margin: 0; }

.event-description { max-width: 40em; margin: 24px 0 0; font-size: 19px; color: var(--muted); }

/* Proofing: one quiet line, not a panel */
.proof {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding: 16px 0; margin: 0 0 36px; border-bottom: 1px solid var(--rule); font-size: 17px;
}
.proof strong { font-weight: 600; }
.proof .count { font-variant-numeric: lining-nums tabular-nums; }
.proof .link-button { color: var(--muted); }
.proof .hint { font-style: italic; color: var(--muted); }
.event-page > .notice { margin-top: 24px; }

/* Sort and filter by your own stars: sits just under the proofing line. */
.gallery-tools {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  margin: -18px 0 32px; font-size: 16px;
}
.gallery-tools[hidden] { display: none; }
.gallery-tools label { display: inline-flex; align-items: baseline; gap: 8px; font-style: italic; color: var(--muted); }
.gallery-tools select {
  appearance: none; padding: 2px 18px 4px 2px;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px center, right 2px center;
  background-size: 4px 4px;
  color: var(--ink); font: 400 16px var(--serif); cursor: pointer;
}
.gallery-tools select:hover, .gallery-tools select:focus-visible { border-bottom-color: var(--ink); }
.gallery-tools select:focus { outline: none; }
.gallery-tools select:focus-visible { outline: 2px solid var(--sumac); outline-offset: 3px; }
.gallery-tools option { background: var(--paper); color: var(--ink); }
.gallery-tools-count { margin-left: auto; font-style: italic; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.gallery-tools-empty { flex-basis: 100%; margin: 12px 0 0; font-size: 17px; }
.gallery-tools-empty[hidden] { display: none; }
.shot[hidden] { display: none; }

/* Password and name gates */
.gate { max-width: 440px; margin: 64px auto 24px; text-align: center; }
.gate h1, .gate h2 { margin: 6px 0 10px; font-size: 34px; line-height: 1.1; }
.gate > p { margin: 0 0 26px; font-size: 18px; color: var(--muted); }
.gate form { margin: 0; }

/* Photo grid */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 20px; row-gap: 30px; margin-top: 36px; }
.proof ~ .shots { margin-top: 0; }
.shot { margin: 0; min-width: 0; }
.shot-img { display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); cursor: zoom-in; }
.shot-img img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shot-img:hover img { transform: scale(1.025); }
.shot-meta { display: block; padding-top: 9px; font-size: 15px; }
.shot-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shot-id { min-width: 0; font-style: italic; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-id .file { font-style: normal; font-variant-numeric: lining-nums; letter-spacing: .02em; font-size: 13.5px; }
.shot-caption { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.dl {
  flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 50%; color: var(--muted); font-size: 14px; line-height: 1;
}
.dl:hover { border-color: var(--ink); color: var(--ink); }

/* Stars in the grid. The slideshow's own stars are .slideshow-stars. */
.shot .photo-rating { display: flex; margin: 4px 0 0 -3px; }
.shot .photo-rating .star {
  width: 24px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 19px; line-height: 1; transition: color .12s, transform .12s;
}
.shot .photo-rating .star.is-on, .shot .photo-rating .star.is-hover { color: var(--sumac); }
.shot .photo-rating .star:hover { transform: translateY(-1px); }
.shot .photo-rating .star[disabled] { opacity: .5; cursor: default; }
.shot .photo-rating.rating-failed .star { color: #b3261e; }

@media (max-width: 720px) {
  .event-head { grid-template-columns: 1fr; }
  .event-facts { text-align: left; }
}

@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 14px; }
  .shot .photo-rating .star { width: 22px; font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- post */

.post { max-width: 700px; margin: 0 auto; }
.post-head { padding: 34px 0; }
.post-meta { margin: 0 0 14px; font-size: 17px; font-style: italic; color: var(--muted); }
.post-meta span { margin-left: 4px; }
.post-head h1 { margin-bottom: 18px; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; text-wrap: balance; }
.post-head .dek { margin: 0; font-size: 22px; line-height: 1.5; font-style: italic; color: var(--muted); }

.prose { padding-top: 34px; border-top: 1px solid var(--rule); font-size: 21px; line-height: 1.68; }
.prose > p:first-of-type::first-letter {
  float: left; margin: .06em .09em 0 0; font-size: 4.3em; line-height: .86; color: var(--ink);
}
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose h2 { margin: 1.7em 0 .5em; font-size: 32px; line-height: 1.15; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 25px; line-height: 1.2; }
.prose a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 4px; text-decoration-color: var(--sumac); }
.prose a:hover { color: var(--sumac); }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--rule); }
.prose strong { font-weight: 600; }

/* Code is content, so it gets the one monospace face on the site. */
.prose code, .entry-body code { font-family: var(--mono); font-size: .8em; padding: .1em .35em; border-radius: 3px; background: var(--paper-2); }
.prose pre, .entry-body pre { overflow-x: auto; margin: 1.4em 0; padding: 16px 18px; border-radius: 3px; background: var(--paper-2); font-size: 16px; line-height: 1.55; }
.prose pre code, .entry-body pre code { padding: 0; background: none; font-size: inherit; }

/* Video embeds, in posts and in notes on the archive */
.prose iframe, .entry-body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.4em 0; border: 0; border-radius: 2px; }

/* Figures break out a little wider than the text, like plates in a book. */
.fig { margin: 1.6em 0 1.8em; }
.fig img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--paper-2); }
.fig figcaption { margin-top: 10px; font-size: 16px; font-style: italic; color: var(--muted); }
.fig--wide { margin-left: -60px; margin-right: -60px; }
.fig--wide figcaption { padding: 0 60px; }
.fig--hero { margin: 0 0 34px; }

.post-out { margin-top: 1.6em; }
.post-tags { margin: 2.4em 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 16px; font-style: italic; color: var(--muted); }

.after { max-width: 700px; margin: 88px auto 0; }
.after h2 { margin: 0 0 6px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 28px; }
.after h2 em { color: var(--muted); }

@media (max-width: 820px) {
  .fig--wide { margin-left: 0; margin-right: 0; }
  .fig--wide figcaption { padding: 0; }
}

@media (max-width: 640px) {
  .prose { font-size: 19px; }
  .post-head .dek { font-size: 19px; }
  .prose h2 { font-size: 27px; }
}

/* ---------------------------------------------------------- search, pages */

.search-form { display: flex; align-items: end; gap: 16px; max-width: 560px; margin-top: 18px; }
.search-form .field { flex: 1; margin: 0; }
.page-head .dek p { margin: 0; }
