/* ------------------------------------------------------------------
   haleyurbin.org
   Palette sampled from the previous site so the feel carries over,
   with the accent shifted toward teal and text darkened for contrast.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Great Vibes';
  src: url('../fonts/great-vibes-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --blue-900: #0f6b9e;   /* header base, sampled */
  --blue-800: #1572ab;
  --blue-700: #1b7fb3;   /* header top, sampled */
  --blue-500: #3fa5d6;   /* ribbon, sampled */
  --blue-100: #dcf4fe;   /* wash under the header, sampled */
  --blue-050: #f2fafe;

  --teal-800: #0a656d;
  --teal-700: #0b7a83;
  --teal-600: #0e8a94;
  --teal-400: #46bcc2;

  --ink:      #22434f;   /* body text, darkened from the original for contrast */
  --ink-soft: #4f7181;
  --heading:  #1d6a91;
  --line:     #dbe9f1;
  --paper:    #ffffff;

  --wrap:     62rem;
  --radius:   10px;
  --shadow-sm: 0 1px 2px rgba(15, 107, 158, .08);
  --shadow-md: 0 6px 24px rgba(15, 107, 158, .14);

  color-scheme: light;
}

/* The browser rule [hidden]{display:none} loses to any author display
   rule on the same element, so make it non-negotiable. */
[hidden] { display: none !important; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-700); text-underline-offset: .16em; }
a:hover { color: var(--teal-800); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -110%);
  z-index: 100; background: var(--paper); color: var(--teal-800);
  padding: .6rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; box-shadow: var(--shadow-md); transition: transform .15s;
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

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

.site-header {
  position: relative;
  background: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-800) 55%, var(--blue-900) 100%);
  color: #fff;
  padding-top: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
}

.site-header__inner { padding-bottom: clamp(1rem, 3vw, 1.75rem); }

.site-header__eyebrow {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
}

.site-header__wordmark {
  display: block;
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-size: clamp(3.1rem, 11vw, 5.5rem);
  line-height: 1.05;
  color: #fff;
  text-decoration: none;
  margin: .1em 0 .05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.site-header__wordmark:hover { color: #eaf8ff; }

.site-header__dates {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .8);
}

/* ------------------------------------------------------------------- nav */

.site-nav { background: var(--blue-500); position: relative; z-index: 2; }

.site-nav__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1rem;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
}
.site-nav__bars { position: relative; }
.site-nav__bars::before, .site-nav__bars::after { content: ''; position: absolute; left: 0; }
.site-nav__bars::before { top: -6px; }
.site-nav__bars::after  { top: 6px; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: .95rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: .01em;
  border-bottom: 3px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.site-nav__list li + li a { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28); }
.site-nav__list a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-nav__list a[aria-current="page"] {
  border-bottom-color: #fff;
  background: rgba(255, 255, 255, .12);
  font-weight: 600;
}

/* The wave replaces the old ribbon graphic. It scales instead of being a
   fixed width bitmap. */
.site-header__wave { line-height: 0; background: var(--blue-500); }
.site-header__wave svg { display: block; width: 100%; height: clamp(24px, 4vw, 46px); }
.site-header__wave path { fill: var(--blue-100); }

/* ------------------------------------------------------------------ main */

.site-main {
  background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-050) 38%, var(--paper) 72%);
  padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child  { margin-bottom: 0; }
.prose p { margin: 0 0 1.05em; }

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--heading);
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.65rem, 4.2vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); }
h3 { font-size: 1.15rem; }

/* ------------------------------------------------------------- slideshow */

.slideshow {
  position: relative;
  width: min(100% - 2.5rem, 54rem);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.slideshow__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfeef6;
  box-shadow: var(--shadow-md);
}

/* An empty SVG of the right proportions, sitting in normal flow, gives the
   frame its height. Everything else is layered on top of it. */
.slideshow__sizer { display: block; width: 100%; height: auto; }

/* Used only when the photo dimensions are not recorded, for example if a
   gallery item predates the media library. */
.slideshow__frame--fallback { aspect-ratio: 16 / 7; }

.slideshow__slide {
  margin: 0; position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
}
.slideshow__slide.is-active { opacity: 1; visibility: visible; }
/* contain, not cover: show the whole photograph rather than filling the box
   with the middle of it. */
.slideshow__slide img { width: 100%; height: 100%; object-fit: contain; }

.slideshow__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem .8rem;
  background: linear-gradient(180deg, rgba(9, 45, 66, 0) 0%, rgba(9, 45, 66, .72) 70%);
  color: #fff; font-size: .95rem; text-align: center;
}

.slideshow.is-fading .slideshow__slide { transition: opacity .5s ease, visibility 0s linear .5s; }
.slideshow.is-fading .slideshow__slide.is-active { transition: opacity .5s ease, visibility 0s; }

.slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--blue-900);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s;
}
.slideshow__arrow:hover { background: #fff; }
.slideshow__arrow--prev { left: .65rem; }
.slideshow__arrow--next { right: .65rem; }

.slideshow__dots {
  display: flex; justify-content: center; gap: .45rem; margin-top: .9rem;
}
.slideshow__dot {
  width: .7rem; height: .7rem; padding: 0;
  border: 0; border-radius: 50%;
  background: #b7d7e7; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.slideshow__dot.is-active { background: var(--teal-600); transform: scale(1.2); }

/* ----------------------------------------------------------------- story */

.story__head { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.story__head h1 { margin-bottom: .2em; }

.story__dates {
  margin: 0;
  color: var(--ink-soft);
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  letter-spacing: .04em;
}
.story__head::after {
  content: '';
  display: block;
  width: 4.5rem; height: 2px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
}

.story__body { max-width: 46rem; margin-inline: auto; }

.story__body.has-portrait {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: start;
  max-width: 56rem;
}

.story__portrait { margin: 0; }
.story__portrait img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.story__portrait figcaption {
  margin-top: .5rem; font-size: .88rem; color: var(--ink-soft); text-align: center;
}

.story__closing {
  max-width: 46rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-style: italic;
  color: var(--teal-800);
}

/* ----------------------------------------------------------------- panel */

.panel {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin: 1.5rem 0 0;
}

.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--teal-700);
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }

.button--quiet {
  background: transparent;
  color: var(--teal-800);
  border-color: #b9dde0;
}
.button--quiet:hover { background: #e6f5f6; color: var(--teal-800); }

/* -------------------------------------------------------- generic blocks */

.block { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); max-width: 46rem; }
.block__image { margin: 0 0 1.25rem; }
.block__image img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.block__image figcaption { margin-top: .5rem; font-size: .88rem; color: var(--ink-soft); }

.notice {
  max-width: 46rem;
  padding: .9rem 1.1rem;
  background: var(--blue-050);
  border: 1px dashed #b6d8ea;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: .95rem;
}

.breadcrumb { margin: 0 0 .75rem; font-size: .9rem; }
.letter { max-width: 46rem; }
.letter__author { margin: -.25em 0 1.5em; color: var(--ink-soft); font-style: italic; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--blue-050);
  padding: 1.75rem 1.25rem 2.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
}
.site-footer__mark { margin: 0 0 .35rem; }
.site-footer__mark strong { color: var(--heading); font-weight: 600; }
.site-footer__note { margin: 0; font-style: italic; opacity: .85; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 46rem) {
  .story__body.has-portrait { grid-template-columns: 1fr; }
  .story__portrait { max-width: 17rem; margin-inline: auto; }
  .slideshow__frame--fallback { aspect-ratio: 4 / 3; }

  .site-nav__toggle { display: flex; }
  .site-nav__list {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, .3);
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list a {
    text-align: center;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }
  .site-nav__list li + li a { box-shadow: none; }
  .site-nav__list a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .18); }
}

/* No JavaScript: show the menu rather than hiding it behind a button. */
.no-js .site-nav__toggle { display: none; }
@media (max-width: 46rem) {
  .no-js .site-nav__list { display: flex; }
}

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

@media print {
  .site-nav, .slideshow__arrow, .slideshow__dots, .skip-link { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .site-header { background: none; color: #000; }
  .site-header__wordmark, .site-header__eyebrow, .site-header__dates { color: #000; text-shadow: none; }
  .site-main { background: none; }
}

/* ================================================================
   Phase 3: section headers, events timeline, letters, photo grid
   and the full screen slideshow.
   ================================================================ */

.muted { color: var(--ink-soft); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.section-head h1 { margin-bottom: .35em; }
.section-head__intro { color: var(--ink-soft); }
.section-head::after {
  content: '';
  display: block;
  width: 4.5rem; height: 2px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
}
.section-head__image { margin: 0 0 1.25rem; }
.section-head__image img {
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section-head__image figcaption {
  margin-top: .5rem; font-size: .88rem; color: var(--ink-soft);
}

/* ------------------------------------------------------- timeline */

.timeline {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .4rem; top: .6rem; bottom: .6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-400), var(--blue-100));
  border-radius: 2px;
}

.timeline__year { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

.timeline__yearlabel {
  position: relative;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--teal-800);
  letter-spacing: .02em;
}
.timeline__yearlabel::before {
  content: '';
  position: absolute;
  left: -1.75rem; top: .55em;
  width: .85rem; height: .85rem;
  margin-left: -.02rem;
  border-radius: 50%;
  background: var(--teal-600);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--blue-100);
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.4rem; top: 1.6rem;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px var(--paper);
}

.timeline__date {
  margin: 0 0 .25rem;
  font-size: .85rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.timeline__title {
  margin: 0 0 .6rem;
  font-size: 1.12rem;
  color: var(--heading);
}
.timeline__body { font-size: .98rem; }

/* -------------------------------------------------------- letters */

.wrap > h2 { max-width: 46rem; margin-inline: auto; }

.letterlist, .linklist {
  list-style: none;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  padding: 0;
  max-width: 46rem;
}

.letterlist li + li { margin-top: .55rem; }
.letterlist a {
  display: block;
  padding: .9rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-400);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.letterlist a:hover { border-left-color: var(--teal-700); background: var(--blue-050); color: var(--ink); }
.letterlist__title {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.08rem;
  color: var(--heading);
}
.letterlist__author { display: block; font-size: .9rem; color: var(--ink-soft); }

.linklist li {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.linklist__date {
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: var(--ink-soft);
  min-width: 4.5rem;
}

/* ------------------------------------------------------ photogrid */

.photogrid {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .85rem;
}

.photogrid__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-050);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.photogrid__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.photogrid__button img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.photogrid__count { text-align: center; font-size: .92rem; }

/* ------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(7, 34, 48, .95);
  color: #fff;
}
.lightbox[hidden] { display: none !important; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.lightbox__caption {
  padding: .9rem 1.25rem 1.4rem;
  text-align: center;
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
  min-height: 1.5rem;
}

.lightbox__btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font: inherit;
  cursor: pointer;
  padding: .45rem 1rem;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
}
.lightbox__arrow:hover { background: rgba(255, 255, 255, .3); }
.lightbox__arrow--prev { left: .5rem; }
.lightbox__arrow--next { right: .5rem; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 34rem) {
  .photogrid { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
  .lightbox__arrow { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
}

/* ================================================================
   Phase 4: guestbook, sign form and pagination
   ================================================================ */

.alert {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  padding: .85rem 1.1rem;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: .97rem;
}
.alert p { margin: 0 0 .4rem; }
.alert p:last-child { margin-bottom: 0; }
.alert--ok    { background: #eaf6ed; border-color: #b3ddc0; color: #1d5730; }
.alert--error { background: #fdecea; border-color: #f3b8b1; color: #7a231b; }

/* -------------------------------------------------------- sign form */

.signbox {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.signbox h2 { margin-top: 0; }

.gbform label {
  display: block;
  margin: 1.1rem 0 .3rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.gbform .req {
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-left: .35rem;
}
.gbform .hint {
  display: block;
  font-size: .84rem;
  color: var(--ink-soft);
  margin-top: .3rem;
}

.gbform input[type="text"],
.gbform input[type="email"],
.gbform input:not([type]),
.gbform textarea {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfd4df;
  border-radius: 6px;
}
.gbform textarea { resize: vertical; line-height: 1.6; }
.gbform .input--short { max-width: 8rem; }

.gbform__row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 34rem) { .gbform__row { grid-template-columns: 1fr; } }

/* The honeypot. Hidden from people without using display:none, which some
   scripts check for, and kept out of the tab order and the screen reader. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- entries */

.entries { max-width: 46rem; margin-inline: auto; }
.entries > h2 { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; }
.entries > h2 .muted { font-size: .8rem; font-weight: 400; letter-spacing: .04em; }

.entry {
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
}
.entry:target { border-left-color: var(--teal-600); background: var(--blue-050); }

.entry__head { margin-bottom: .7rem; }
.entry__name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--heading);
}
.entry__meta {
  margin: .15rem 0 0;
  font-size: .85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .75rem;
  align-items: baseline;
}
.entry__where::after { content: ''; }
.entry__no { text-decoration: none; color: var(--ink-soft); }
.entry__no:hover { color: var(--teal-700); }

.entry__body p { margin: 0 0 .8em; }
.entry__body p:last-child { margin-bottom: 0; }

.entry__reply,
.entry__comment {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--blue-050);
  border-radius: 8px;
  font-size: .96rem;
}
.entry__reply { border-left: 3px solid var(--teal-600); }
.entry__replylabel,
.entry__commentmeta {
  margin: 0 0 .35rem;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-800);
}
.entry__commentmeta {
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
  color: var(--ink-soft);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.entry__reply p:last-child,
.entry__comment p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- pager */

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}
.pager__list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__list a,
.pager__current,
.pager__step {
  display: block;
  min-width: 2.25rem;
  padding: .4rem .7rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--teal-800);
  background: var(--paper);
  font-size: .95rem;
}
.pager__list a:hover, .pager__step:hover { background: var(--blue-050); }
.pager__current { background: var(--teal-700); border-color: var(--teal-700); color: #fff; font-weight: 600; }
.pager__gap { padding: .4rem .2rem; color: var(--ink-soft); }

/* --------------------------------------- photo viewer play controls */

.lightbox__barbtns { display: flex; gap: .5rem; align-items: center; }

.lightbox__btn[aria-pressed="false"] {
  background: rgba(255, 255, 255, .28);
}

/* A quiet progress hint so it is obvious the slideshow is running rather
   than the photo having simply changed on its own. */
.lightbox__bar [data-lb-count] { font-variant-numeric: tabular-nums; }
