:root {
  --ink: #1f1f1f;
  --muted: #666666;
  --soft: #f6f3ee;
  --line: #e3ddd4;
  --accent: #6f7f52;
  --accent-text: #63734a;  /* accent, darkened to pass AA as small text */
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.page { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
/*
 * On a large monitor 1120px left ~400px of empty margin either side, which for
 * a photography site is screen the pictures could be using. Text does not get
 * wider with it — .lead, .feature p, .pg-block and .chapter-para p all cap their
 * own measure in ch — so this only grows the image grids.
 */
@media (min-width: 1400px) {
  .page { width: min(1280px, calc(100% - 72px)); }
}
.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .76rem; }
.mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); flex: 0 0 auto; }
.mark svg { width: 25px; height: 25px; }
.nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .92rem; }
/*
 * Padding, not font size. Measured at 17px tall — under the 24x24 CSS-pixel
 * minimum in WCAG 2.2 SC 2.5.8, and fiddly to hit with a trackpad. The mobile
 * rule below (<=920px) replaces this with the pill treatment, which is larger
 * still.
 */
.nav a { display: inline-block; padding: 5px 2px; text-decoration: none; }
.nav a:hover { color: var(--ink); }
/*
 * The one action in the header. An outline, not a filled button — a solid
 * block up here competes with the photograph below it, and the nav is not
 * where the page should be shouting. Sits after Contact so the reading order
 * (where am I / who are you / how do I reach you / go look) holds.
 */
.nav a.nav-cta {
  margin-left: 6px; padding: 9px 18px;
  border: 1px solid var(--ink); border-radius: 2px;
  color: var(--ink); font-weight: 700; font-size: .86rem;
  letter-spacing: .02em; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav a.nav-cta:hover { background: var(--ink); color: var(--white); }
/* On the gallery itself it points at the page you are reading. */
.nav a.nav-cta[aria-current="page"] { display: none; }
.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 54px; padding: 58px 0 42px; }
.eyebrow { margin-bottom: 16px; color: var(--accent-text); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pulse { display: none; }
h1 { margin: 0; max-width: 620px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.045em; font-weight: 700; }
.highlight { color: var(--accent); }
.subtitle { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.16rem); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.centered-actions { justify-content: center; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease; font: inherit; }
.btn:hover, button:hover { background: var(--ink); color: var(--white); }
.btn.primary, button.primary { color: var(--white); border-color: var(--ink); background: var(--ink); }
.btn.primary:hover, button.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.danger { color: #9b1c1c; border-color: #9b1c1c; }
.visual { min-height: 0; }
.photo-card { position: static; overflow: hidden; border-radius: 0; background: var(--soft); border: 1px solid var(--line); box-shadow: none; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card.main { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.photo-card.side { display: none; }
.launch-card { display: none; }
.section { padding: 54px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section h2, .section h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.035em; }
/* 760px ran a lead paragraph to ~95 characters a line. 66ch is the classic
   target; 68 leaves room for the odd long word without a ragged edge. */
.section p.lead, .lead { max-width: 62ch; color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .feature, .form-panel { border: 1px solid var(--line); background: var(--white); box-shadow: none; }
.feature { padding: 22px; }
.feature strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; }
/* Measured at 1074px / ~134 characters a line on /prints before this cap. */
.feature p { max-width: 66ch; color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.photo-tile { overflow: hidden; background: var(--white); border: none; text-align: left; padding: 0; color: inherit; display: block; text-decoration: none; }
.photo-tile:hover { background: transparent; color: inherit; text-decoration: none; }
.photo-tile a, .photo-tile h3 a { text-decoration: none; color: inherit; }
/* The title link on /prints is the card's only text target; it measured 24px
   exactly, which is the WCAG minimum rather than a comfortable one. */
.photo-tile h3 a { display: inline-block; padding: 3px 0; }
.clickable-photo { cursor: pointer; }
.clickable-photo img { transition: transform .25s ease; }
.clickable-photo:hover img { transform: scale(1.015); }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border: 1px solid var(--line); }
.photo-tile .info { padding: 12px 0 0; }
.photo-tile h3 { margin: 0 0 5px; font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; }
.photo-tile p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }
.photo-block img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border: 1px solid var(--line); }
.photo-block h3 { margin: 12px 0 5px; font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; }
.photo-block p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }
.placeholder { display: grid; place-items: center; min-height: 220px; border: 1px dashed #bbb; background: var(--soft); color: var(--muted); padding: 20px; text-align: center; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
label { color: var(--muted); font-weight: 700; font-size: .88rem; }
input, textarea, select { width: 100%; min-height: 44px; border-radius: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 11px 12px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.preview-box { border: 1px dashed #bbb; padding: 14px; min-height: 260px; display: grid; place-items: center; color: var(--muted); background: var(--soft); }
.preview-box img { max-width: 100%; }
.watermark-position-box { display: grid; gap: 10px; place-items: stretch; }
.watermark-stage { min-height: 260px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); padding: 10px; }
.watermark-stage img { max-height: 560px; width: auto; object-fit: contain; }
.watermark-controls { display: flex; gap: 8px; justify-content: center; align-items: center; }
.watermark-controls-top { order: -1; }
.watermark-controls-side { justify-self: center; }
.watermark-move-btn { min-height: 36px; padding: 0 12px; background: var(--white); }
.watermark-position-hint { text-align: center; margin: 0; font-size: .88rem; }
.status { margin-top: 14px; color: var(--muted); line-height: 1.5; }
.table { display: grid; gap: 12px; }
.admin-photo { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--white); }
.admin-photo img { width: 110px; height: 82px; object-fit: cover; }
.admin-photo-commerce { align-items: start; }
.admin-commerce-fields { display: grid; grid-template-columns: 1.2fr auto 160px; gap: 10px; align-items: end; margin-top: 12px; }
.compact-checkbox { margin: 0; align-self: center; }
.badge { display: inline-flex; padding: 4px 8px; background: var(--soft); color: var(--accent); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.landing-block-row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); color: var(--ink); }
.landing-block-row span { display: grid; gap: 3px; }
.landing-block-row small { color: var(--muted); font-weight: 500; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
/* Were 16px tall — the smallest targets on the site. Same reason as .nav a. */
.footer a { display: inline-block; padding: 5px 1px; }
.gallery-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.gallery-modal.active { display: block; }
.gallery-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.gallery-modal-card { position: relative; z-index: 2; width: min(1180px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: 16px auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--white); border: 1px solid var(--line); }
.gallery-modal-media { background: var(--ink); min-height: 520px; display: grid; place-items: center; }
.gallery-modal-media img { width: 100%; height: 100%; max-height: calc(100vh - 34px); object-fit: contain; display: block; }
.gallery-modal-content { padding: clamp(24px, 4vw, 46px); }
.gallery-modal-content h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.035em; }
.gallery-modal-content p { color: var(--muted); line-height: 1.7; }
.gallery-purchase-panel { display: grid; gap: 18px; margin-top: 24px; }
.purchase-section { padding: 18px; border: 1px solid var(--line); background: var(--soft); }
.purchase-section h3 { margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.gallery-variant-list { max-height: 310px; overflow: auto; background: var(--white); padding: 10px; }
.checkout-variant-row { align-items: center; display: grid; grid-template-columns: 1fr auto auto; }
.checkout-variant-row button { min-height: 36px; padding: 0 12px; }
.digital-section button { width: 100%; }
.landing-carousel { padding: 34px 0 18px; }
.carousel-frame { position: relative; min-height: 620px; border: 1px solid var(--line); background: var(--soft); overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; text-decoration: none; color: inherit; }
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide-link { display: block; cursor: pointer; }
.carousel-slide-link:hover { text-decoration: none; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-slide { display: grid; place-items: center; padding: clamp(24px, 6vw, 72px); background: radial-gradient(circle at 80% 20%, #e8e1d3, transparent 28%), var(--soft); }
.placeholder-slide .eyebrow { margin: 0; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 0; }
.carousel-controls button { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; flex: 1; }
.carousel-dot { width: 34px; min-height: 4px; height: 4px; padding: 0; border: 0; background: var(--line); }
.carousel-dot.active, .carousel-dot:hover { background: var(--ink); }
.brand-statement { padding: 68px 0; text-align: center; border-bottom: 1px solid var(--line); }
.brand-statement h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(3.2rem, 8vw, 7rem); line-height: .95; letter-spacing: -.055em; }
.brand-statement p { max-width: 760px; margin: 22px auto 0; color: var(--muted); line-height: 1.75; font-size: 1.08rem; }
.editorial-section { padding-top: 62px; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.blog-card { display: grid; align-content: start; gap: 12px; min-height: 310px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.blog-card span { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .72rem; }
.blog-card h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; line-height: 1.08; letter-spacing: -.03em; }
.blog-card p { color: var(--muted); line-height: 1.7; }
.blog-card a { margin-top: auto; font-weight: 800; text-decoration: none; }
.cta-card { background: var(--soft); }
.wide-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; margin: 28px 0 54px; border: 1px solid var(--line); background: var(--ink); color: var(--white); }
.wide-cta h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.04em; }
.wide-cta .eyebrow { color: #d8b56d; }
.wide-cta .btn { border-color: var(--white); color: var(--white); }
.wide-cta .btn.primary { background: var(--white); color: var(--ink); }
.shop-hero { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 36px; padding: 62px 0 30px; border-bottom: 1px solid var(--line); }
.shop-hero h1 { max-width: 720px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.shop-toolbar strong { display: block; font-size: 1rem; }
.shop-toolbar select { max-width: 240px; }
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 34px 0; }
.print-card { display: grid; border: 1px solid var(--line); background: var(--white); }
.print-card img, .print-detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.print-card-body { display: grid; gap: 20px; padding: 18px; }
.print-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; letter-spacing: -.02em; }
.print-card p { color: var(--muted); line-height: 1.55; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.print-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.print-detail { padding: 0 0 44px; }
.print-detail-card { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px; border: 1px solid var(--line); background: var(--soft); position: relative; }
.print-detail-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.03em; }
.print-detail-card p { color: var(--muted); line-height: 1.7; }
.print-detail-media img { border: 1px solid var(--line); }
.print-close { position: absolute; top: 14px; right: 14px; min-height: 34px; padding: 0 12px; background: var(--white); z-index: 3; }
.variant-list { display: grid; gap: 8px; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.variant-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.variant-row strong { color: var(--ink); }
.admin-page-body { background: var(--soft); }
.admin-page { padding-bottom: 60px; }
.admin-header { background: var(--white); }
.admin-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 34px 0 22px; border-bottom: 1px solid var(--line); }
.admin-hero h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
.admin-tools { display: grid; gap: 12px; justify-items: end; min-width: 260px; }
.admin-tabbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; padding: 12px 0; margin-bottom: 18px; background: rgba(246,243,238,.96); border-bottom: 1px solid var(--line); }
.admin-tab { background: var(--white); border-color: var(--line); color: var(--muted); }
.admin-tab.active, .admin-tab:hover { background: var(--ink); color: var(--white); }
.admin-panel { display: none; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.admin-panel.active { display: block; }
.admin-panel-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-panel h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.035em; }
.admin-panel-head p { color: var(--muted); max-width: 820px; line-height: 1.65; }
.admin-two-column.compact { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: 24px; align-items: start; }
.admin-form-card { padding: 0; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink); }
.checkbox-row input, .dev-toggle input { width: auto; min-height: auto; }
.dev-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.dev-note { display: none; color: var(--muted); line-height: 1.65; }
body.dev-mode .dev-note { display: block; }
@media (max-width: 920px) {
  /*
   * The header is two rows on a phone and eats ~110px of a 780px screen. It
   * stays on screen (the name is how you know whose photographs these are and
   * how you get home), but the row of pills folds away as you read down and
   * unfolds the moment you scroll back up. header-nav.js sets body.nav-tight.
   */
  .header {
    align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px 0;
    position: sticky; top: 0; z-index: 40;
    background: var(--white);
    transition: padding .22s ease, box-shadow .22s ease;
  }
  body.nav-tight .header { padding: 10px 0; box-shadow: 0 10px 24px -20px rgba(31, 31, 31, .55); }
  body.nav-tight .nav {
    max-height: 0; opacity: 0; margin: 0;
    overflow: hidden; pointer-events: none;
  }
  .nav { max-height: 120px; opacity: 1; transition: max-height .26s ease, opacity .18s ease; }
  /* The skip link and any in-page jump would otherwise land under the pinned
     header. */
  #main-content, .chapter, .jr-band, .sub-band { scroll-margin-top: 84px; }
  body.nav-tight .brand { font-size: .72rem; }
  body.nav-tight .mark { width: 30px; height: 30px; }
  .brand, .mark { transition: font-size .22s ease, width .22s ease, height .22s ease; }
  @media (prefers-reduced-motion: reduce) {
    .header, .nav, .brand, .mark { transition: none; }
  }
  .brand { max-width: 100%; }
  /* One row of compact pills that scrolls if it has to, rather than stretching
     to fill and orphaning the last item on a row of its own. Holds up as pages
     are added from the admin. */
  .nav {
    display: flex; width: 100%; gap: 8px; color: var(--ink);
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--soft); text-align: center; font-weight: 700; font-size: .88rem; white-space: nowrap;
  }
  .nav a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .nav a.nav-cta {
    margin-left: 0; padding: 9px 15px; border-radius: 999px;
    border-color: var(--ink); background: transparent; font-size: .88rem;
  }
  /*
   * "Browse the Gallery" beside a "Gallery" pill is the same link twice, and
   * it was the item that pushed the row onto a second line on every phone.
   * The pill stays; the CTA is desktop chrome. (2026-09-03)
   */
  .nav a.nav-cta { display: none; }
  .hero, .admin-two-column.compact, .form-grid, .landing-block-row, .shop-hero, .print-detail-card, .gallery-modal-card { grid-template-columns: 1fr; }
  .gallery-grid, .grid, .print-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .admin-hero, .shop-toolbar, .wide-cta { display: grid; }
  .admin-tools { justify-items: start; min-width: 0; }
  .admin-tabbar { overflow-x: auto; }
  .shop-toolbar select { max-width: none; }
  .carousel-frame { min-height: 560px; }
  .gallery-modal-media { min-height: 360px; }
  .admin-commerce-fields { grid-template-columns: 1fr; }
}

/*
 * Adding Field Notes made a fourth pill, and four overflowed a phone: by 41px
 * at 390 and 111px at 320, which put Contact off-screen behind a horizontal
 * swipe with no affordance at all.
 *
 * Tighter pills, and — where they still do not fit — a second row instead of a
 * scroller. The scroller was the right call when the alternative was a
 * stretched row with an orphaned last item, but a menu item you cannot see is
 * worse than one on a second line. `flex-wrap: wrap` only wraps when it has to,
 * so 390px and up still get a single row, and the menu keeps working however
 * many pages are added from the admin.
 *
 * A scroll-shadow was tried first and does not work here: each pill paints its
 * own background over the container's, so the shadow shows only in the gaps.
 */
/*
 * Revisited 2026-09-03. With the CTA pill gone (above) the row is Home,
 * Gallery, Field Notes, Contact. The brand mark is already the way home, so
 * on a phone the Home pill goes too, and the three that remain fit one row at
 * 360px. Pages added from the admin can still overflow, so the row scrolls,
 * and this time it says so: a mask fades the right edge, which works where the
 * scroll-shadow did not, because a mask clips the pills themselves rather than
 * painting behind them.
 */
@media (max-width: 460px) {
  .nav { gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { padding: 8px 12px; font-size: .84rem; }
  .nav a[href="/"] { display: none; }
  .nav {
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}

@media (max-width: 620px) {
  .page { width: min(100% - 26px, 1120px); }
  .actions { flex-direction: column; }
  .btn, button { width: 100%; }
  .admin-photo { grid-template-columns: 82px 1fr; }
  .admin-photo img { width: 82px; height: 68px; }
  .admin-photo .actions { grid-column: 1 / -1; margin-top: 0; }
  .footer { flex-direction: column; }
  .admin-panel { padding: 18px; }
  .print-card-foot { display: grid; }
  .carousel-frame { min-height: 420px; }
  .carousel-controls { display: grid; grid-template-columns: 1fr; }
  .wide-cta { padding: 24px; }
  .checkout-variant-row { grid-template-columns: 1fr; }
}

.photo-tile .info .tile-price {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.photo-product-choice .product-spec {
  color: #4a4a4a;
}

/* Contact page */
.contact-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 54px; padding: 58px 0 22px; }
.contact-hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.contact-hero-media { margin: 0; }
.contact-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); background: var(--soft); }
.contact-hero-media figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; letter-spacing: .04em; }

.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; padding-top: 34px; }
.contact-form { border: 1px solid var(--line); background: var(--white); padding: 30px; }
.contact-form .field { margin-bottom: 20px; }
.contact-form .field span { color: var(--muted); font-weight: 700; font-size: .88rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.contact-form .actions { margin-top: 26px; }
.contact-form button { min-width: 190px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 20px; }
.contact-card { border: 1px solid var(--line); background: var(--white); padding: 24px; }
.contact-card p { color: var(--muted); line-height: 1.65; margin: 0; }
.contact-card-quiet { background: var(--soft); }
.contact-email { margin: 0 0 12px !important; font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; word-break: break-word; }
.contact-email a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact-email a:hover { color: var(--accent-text); }
.contact-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.contact-list li { margin-bottom: 12px; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list strong { color: var(--ink); }

.status-ok { color: var(--accent-text); font-weight: 700; }
.status-error { color: #9b1c1c; font-weight: 700; }

@media (max-width: 900px) {
  .contact-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .contact-hero-media { order: -1; }
  /* Keep the headline above the fold on narrow screens. */
  .contact-hero-media img { aspect-ratio: auto; height: clamp(150px, 30vh, 240px); }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 22px; }
}

/* Depth parallax hero — the <img> stays as layout and fallback, canvas overlays it. */
.depth-hero { position: relative; overflow: hidden; }
.depth-hero > img { display: block; width: 100%; }
.depth-hero-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .depth-hero-canvas { display: none; } }

/* Homepage scroll sequence — replaces the timed carousel. */
.hs-section { margin: 0 calc(50% - 50vw); }
.hs-track { position: relative; }
.hs-frame {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; background: #14150f;
}
.hs-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity .55s ease;
  text-decoration: none;
}
.hs-slide.active { opacity: 1; }
.hs-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  will-change: transform;
}
/* Enough shading under the caption for white text on any photograph. */
.hs-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to top, rgba(10,11,8,.82), rgba(10,11,8,.32) 46%, transparent);
  pointer-events: none;
}

.hs-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 clamp(20px, 5vw, 68px) clamp(30px, 6vh, 62px);
  color: #fff; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.hs-caption.changing { opacity: 0; transform: translateY(7px); }
.hs-index { font-size: .78rem; font-weight: 800; letter-spacing: .14em; opacity: .8; margin-bottom: 10px; }
.hs-index-sep { margin: 0 5px; opacity: .55; }
.hs-caption h2 {
  margin: 0; max-width: 18ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; letter-spacing: -.035em;
}
.hs-price {
  margin: 14px 0 0; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #d8b56d;
}
.hs-cue {
  display: inline-block; margin-top: 22px;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  opacity: calc(.75 - var(--hs-progress, 0) * 3);
}

.hs-ticks { position: absolute; right: clamp(16px, 3vw, 34px); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 8px; }
.hs-tick { width: 2px; height: 26px; background: rgba(255,255,255,.3); transition: background .3s ease, height .3s ease; }
.hs-tick.active { background: #d8b56d; height: 40px; }

.hs-section.hs-static .hs-track { height: auto !important; }
.hs-section.hs-static .hs-frame { position: relative; height: min(76vh, 620px); }
.hs-section.hs-static .hs-slide { position: absolute; opacity: 0; }
.hs-section.hs-static .hs-slide.active { opacity: 1; }

@media (max-width: 700px) {
  .hs-caption h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hs-ticks { display: none; }
}

/* Capture data — camera, lens, and the four numbers, from the file's EXIF. */
.capture-line {
  margin: 14px 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* A tile fades up from the photograph's own average colour rather than
   flashing grey. The tint is computed at upload time. */
.photo-tile img { background: var(--tile-tint, var(--soft)); }

/* ---- Gallery: editorial grid ---- */
.gallery-toolbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 0 22px; border-bottom: 1px solid var(--line);
}
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-chip {
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.gallery-chip:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.gallery-chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
#galleryCount { margin-left: auto; color: var(--muted); font-size: .84rem; font-weight: 600; }

#galleryGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
#galleryGrid .photo-tile {
  grid-column: span var(--tile-span, 4);
  height: var(--tile-height, 330px);
  position: relative;
  overflow: hidden;
  border: none;
}
#galleryGrid .photo-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: auto; border: none;
  background: var(--tile-tint, var(--soft));
  transition: transform .5s ease;
}
#galleryGrid .photo-tile:hover img,
#galleryGrid .photo-tile:focus-visible img { transform: scale(1.035); }

.tile-veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(12,13,10,.8), rgba(12,13,10,.16) 54%, transparent);
  opacity: 0; transition: opacity .32s ease;
}
.photo-tile:hover .tile-veil,
.photo-tile:focus-visible .tile-veil { opacity: 1; }
.photo-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tile-veil h2 {
  margin: 7px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em;
  color: #fff;
}
/*
 * The Fonts panel injects, at runtime,
 *   h2, .section h2, ... { font-size: var(--enc-size-h2) !important }
 * which is a DISPLAY size (clamp(2rem, 4vw, 3.4rem) — 51px at 1280px wide).
 * A tile caption is not a display heading: at 51px a long title wrapped to
 * five lines, grew upward out of a 330px tile, and took the price line with
 * it. !important alone does not win here — the injected rule is !important
 * too — so this rule out-specifies it (id + class + class + type).
 * Family is deliberately NOT pinned: heading typeface stays the Fonts panel's
 * to choose. Only the size is taken back.
 * Reported from the live site, 2026-08-31.
 */
#galleryGrid .photo-tile .tile-veil h2 {
  font-size: clamp(1.05rem, .9rem + .55vw, 1.55rem) !important;
  line-height: 1.15 !important;
  /* Last-resort guard: a pathological title ellipsises instead of escaping
     the tile. Realistic titles never reach four lines. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.tile-veil .tile-price {
  margin: 0; color: #d8b56d;
  font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  flex: 0 0 auto;
}

/* Touch has no hover: show the caption permanently rather than hiding
   the title behind a gesture that does not exist. */
@media (hover: none) {
  .tile-veil { opacity: 1; }
}
/*
 * A phone gallery, revisited 2026-09-03. The tiles cropped every photograph to
 * a 300px band, which on a photography site is the one thing a phone should
 * not do (and the rule the homepage already kept). Now each photograph is
 * whole, at its own shape, and its label sits under it like a museum card:
 * the veil that hovers on a desktop becomes a plain caption here.
 */
@media (max-width: 900px) {
  /* One column. `gap` alone also set eleven 26–40px column gaps, which is
     wider than a phone, and every 12-span tile overflowed the screen. */
  #galleryGrid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(26px, 5vh, 40px); column-gap: 0; }
  #galleryGrid .photo-tile { grid-column: 1 / -1; height: auto; overflow: visible; }
  #galleryGrid .photo-tile img { height: auto; object-fit: contain; border: 1px solid var(--line); }
  #galleryGrid .photo-tile:hover img, #galleryGrid .photo-tile:focus-visible img { transform: none; }
  .tile-veil { position: static; opacity: 1; padding: 10px 0 0; background: none; color: var(--ink); }
  #galleryGrid .photo-tile .tile-veil h2 { color: var(--ink); margin: 4px 0 0; -webkit-line-clamp: 3; }
  .tile-veil .tile-price { color: var(--accent-text); }
  #galleryGrid .tile-veil .tile-meta { display: block; }
  .gallery-toolbar { padding: 14px 0 18px; gap: 12px; }
  .gallery-filters {
    width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-chip { flex: 0 0 auto; width: auto; }
  #galleryCount { margin-left: 0; }
}
/* The exposure line: shown under a phone caption, not on the hover veil. */
.tile-veil .tile-meta {
  display: none; margin: 6px 0 0;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
 * Chapters — the photograph beside the words, whole, and holding still.
 *
 * Three rules, from Chris, 2026-09-02:
 *   1. It has to look right at every screen size.
 *   2. A photograph never fills the desktop edge to edge.
 *   3. A photograph is never cropped on a phone.
 *
 * So the picture is an <img> at its own shape — never a background, never
 * object-fit: cover — inside the same 1120px column as everything else. On a
 * wide screen it takes the larger of two columns and is position: sticky, so
 * it holds still while the chapter's paragraphs scroll past it; the text cards
 * overlap its inner edge slightly, which is the "window" of the reference
 * without the crop. Chapters alternate sides. On a narrow screen the pin comes
 * off and it stacks: heading, photograph, text.
 * ========================================================================== */
.home-body { padding-bottom: 6px; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "media head" "media text";
  grid-template-rows: auto 1fr;
  column-gap: 0;
  align-items: start;
  padding: clamp(40px, 8vh, 96px) 0;
}
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-flip {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas: "head media" "text media";
}

.chapter-head { grid-area: head; padding: 0 0 8px 40px; }
.chapter-flip .chapter-head { padding: 0 40px 8px 0; }
.chapter-head .eyebrow { margin-bottom: 14px; }
.chapter-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 700;
}

/* The photograph. Its own shape, always. max-height keeps a portrait frame
   from running off the bottom of a short screen — it scales down, it does not
   crop (object-fit: contain, in case the box and the picture disagree). */
.chapter-media {
  grid-area: media;
  position: sticky; top: 8vh;
  margin: 0;
  align-self: start;
}
.chapter-media img {
  display: block; width: 100%; height: auto;
  max-height: 82svh; object-fit: contain; object-position: top;
  background: var(--soft);
  border: 1px solid var(--line);
}
/* The caption sits on the picture's OUTER edge, away from the cards that
   overlap its inner one, so it is never covered. */
.chapter-media figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.chapter-flip .chapter-media figcaption { text-align: right; }

/* The words. Cards pull inward over the photograph's edge by 56px — the
   scroll-over — and are spaced so the column outruns the picture, which is
   what makes the pin visible at all. */
.chapter-text { grid-area: text; position: relative; z-index: 1; margin-left: -56px; }
.chapter-flip .chapter-text { margin-left: 0; margin-right: -56px; }
.chapter-para { padding: clamp(18px, 3vh, 30px) 0; }
.chapter-para p {
  margin: 0; padding: 26px 30px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(31,31,31,.28);
  font-size: 1.05rem; line-height: 1.74; color: var(--ink);
  max-width: 44ch;
}
.chapter-cta { padding-top: 6px; }
.chapter-cta .btn { margin-left: 30px; }
.chapter-flip .chapter-cta { text-align: right; }
.chapter-flip .chapter-cta .btn { margin-left: 0; margin-right: 30px; }
.chapter-flip .chapter-para p { margin-left: auto; }
.chapter-flip .chapter-head { text-align: right; }
.chapter-flip .chapter-head h2 { margin-left: auto; max-width: 18ch; }
.chapter-flip .chapter-para p { text-align: left; }

/* No photograph (none chosen, or it was deleted): words alone, full column. */
.chapter-nomedia { grid-template-columns: 1fr; grid-template-areas: "head" "text"; }
.chapter-nomedia .chapter-head, .chapter-nomedia .chapter-text { padding-left: 0; padding-right: 0; margin: 0; text-align: left; }
.chapter-nomedia .chapter-para p { margin-left: 0; }

/* Narrow: the pin comes off, the photograph stacks between heading and text
   at full column width — whole, at its own shape. */
@media (max-width: 900px) {
  .chapter, .chapter-flip {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "text";
    grid-template-rows: auto auto auto;
    padding: clamp(34px, 6vh, 56px) 0;
  }
  .chapter-head, .chapter-flip .chapter-head { padding: 0 0 18px; text-align: left; }
  .chapter-flip .chapter-head h2 { margin-left: 0; max-width: none; }
  .chapter-media { position: static; }
  .chapter-media img { max-height: none; }
  .chapter-flip .chapter-media figcaption { text-align: left; }
  .chapter-text, .chapter-flip .chapter-text { margin: 12px 0 0; padding: 0; }
  .chapter-para { padding: 8px 0; }
  .chapter-para p { padding: 0; border: none; background: transparent; max-width: none; margin-left: 0; }
  .chapter-cta, .chapter-flip .chapter-cta { text-align: left; padding-top: 14px; }
  .chapter-cta .btn, .chapter-flip .chapter-cta .btn { margin: 0; }
}
/* Reduced motion: no pin — a stuck element counts as motion to some readers. */
@media (prefers-reduced-motion: reduce) {
  .chapter-media { position: static; }
}

/* ---- Field notes teaser ------------------------------------------------- */
.jr-band { padding: clamp(46px, 8vh, 88px) 0; border-top: 1px solid var(--line); }
.jr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 26px; }
.jr-head h2 { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; letter-spacing: -.03em; }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; }
.jr-card { padding: 24px; border: 1px solid var(--line); background: var(--soft); }
.jr-card h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.2; letter-spacing: -.02em; }
.jr-card p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.62; }
@media (max-width: 640px) {
  .jr-head { display: block; }
  .jr-head .btn { margin-top: 16px; }
}

/* ---- Journal: index, cards, post ---------------------------------------- */
.jp-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Cards size to their content. A post without a cover is then simply a
     shorter card, rather than a tall one with a hole where a photograph
     would have been. */
  align-items: start;
  gap: 26px;
  padding: clamp(30px, 6vh, 56px) 0 clamp(40px, 8vh, 80px);
}
.jp-index-compact { padding-bottom: 0; }

.jp-card {
  display: grid; align-content: start;
  border: 1px solid var(--line); background: var(--white);
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .3s ease;
}
.jp-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.jp-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.jp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.jp-card:hover .jp-card-media img { transform: scale(1.04); }
.jp-card-body { padding: 22px 22px 26px; }
.jp-card h2 {
  margin: 8px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  /* A card title, not a page heading — see the note on the gallery tiles for
     why this needs specificity rather than !important alone. */
  font-size: clamp(1.25rem, 1.6vw, 1.6rem) !important;
  line-height: 1.16; letter-spacing: -.02em;
}
.jp-card p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.62; }
/* Was .68rem — 10.9px, the smallest text on the site. Matched to .eyebrow. */
.jp-date { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.jp-more { display: inline-block; margin-top: 16px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* The breadcrumb back to the index: 15px tall before this, the last target on
   the site under the WCAG 2.2 minimum. */
.jp-post .pg-hero .eyebrow a { display: inline-block; padding: 5px 2px; color: inherit; }
.jp-cover { margin: clamp(24px, 4vh, 40px) 0 0; }
/*
 * Fixed ratio, so the cover reserves its space before it loads (no layout
 * shift) and a portrait photograph cannot push the whole article below the
 * fold. 3:2 matches the index cards.
 */
.jp-cover img { width: 100%; aspect-ratio: 3 / 2; max-height: 76vh; object-fit: cover; display: block; }
.jp-cover figcaption { margin-top: 10px; color: var(--muted); font-size: .84rem; }
.jp-post .pg-body { max-width: 680px; }

/* A journal card inside the homepage teaser band. */
.jr-card-link { display: block; color: inherit; text-decoration: none; transition: border-color .2s ease, transform .3s ease; }
.jr-card-link:hover { border-color: var(--ink); transform: translateY(-3px); }
.jr-card-link .jp-date { margin-bottom: 8px; }

/* Visually hidden, still read by screen readers. Same as the admin's .a-sr-only. */
.a-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Mailing list form ------------------------------------------------- */
.sub-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; max-width: 520px; }
.sub-form input[type="email"] { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); font: inherit; width: 100%; }
.sub-form input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.sub-form .btn { min-height: 46px; white-space: nowrap; }
.sub-form .sub-status { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: .88rem; color: #8d2f22; }
.sub-form .sub-status:empty { display: none; }
.sub-done { margin: 0; font-weight: 700; color: var(--accent-text); }
/* Honeypot: off-canvas, not display:none, so bots still "see" it. */
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Inside the journal band header the form sits where a button would. */
.sub-form-compact { max-width: 420px; }
@media (max-width: 640px) {
  .sub-form { grid-template-columns: 1fr; }
  .sub-form .btn { width: 100%; }
}

/* A full-width band version, for the "subscribe" section type. */
.sub-band {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 34px; align-items: center;
  padding: clamp(34px, 6vh, 56px) clamp(22px, 4vw, 44px); margin: clamp(34px, 6vh, 64px) 0;
  background: var(--soft); border: 1px solid var(--line);
}
.sub-band h2 { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; letter-spacing: -.03em; }
.sub-band p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; max-width: 48ch; }
.sub-band .sub-form { max-width: none; }
@media (max-width: 820px) { .sub-band { grid-template-columns: 1fr; gap: 22px; } }

/* ---- Draft preview banner ------------------------------------------------ */
.preview-banner {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 18px; background: #1f1f1f; color: #fff;
  font-size: .88rem; text-align: center;
}
.preview-banner strong { color: #d8b56d; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; margin-right: 6px; }
.preview-banner a { color: #fff; margin-left: 12px; display: inline-block; padding: 5px 4px; }

/*
 * Homepage headings are Playfair Display, whatever the Fonts panel says.
 * That panel injects `h1, .hero h1 {…} !important` and `h2 {…} !important`
 * at runtime; this out-specifies both. Chris chose the serif for this page
 * on 2026-09-02; the one dropdown in /admin → Fonts would do the same for the
 * rest of the site.
 */
main.home-page :is(h1, h2, h3) { font-family: "Playfair Display", Georgia, serif !important; }
main.home-page .hero h1 { font-size: clamp(3rem, 7vw, 5.8rem) !important; }
main.home-page .jr-band h2, main.home-page .sub-band h2 { font-size: clamp(1.9rem, 3.4vw, 3rem) !important; }
main.home-page .wide-cta h2 { font-size: clamp(2.2rem, 5vw, 4.6rem) !important; }
main.home-page .jr-card h3, main.home-page .jp-card h2 { font-size: 1.28rem !important; }

/* Stats read as a band on the homepage, not as a page block. */
.home-stats { margin: clamp(40px, 7vh, 78px) 0 0; }

/* 404 */
.notfound { padding: clamp(60px, 12vh, 130px) 0 40px; max-width: 720px; }
.notfound h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 5.6rem); }
.notfound .subtitle { margin-top: 20px; }

/* Previous / next through the published sequence. */
.photo-steps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 10px 0 0; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.photo-step {
  display: grid; gap: 6px; align-content: center;
  min-height: 104px; padding: 22px clamp(18px, 3vw, 34px);
  background: var(--white); text-decoration: none; color: inherit;
  transition: background .18s ease;
}
.photo-step:hover { background: var(--soft); }
.photo-step-next { text-align: right; }
.photo-step-empty { background: var(--white); }
.photo-step-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .17em;
  text-transform: uppercase; color: var(--accent-text);
}
.photo-step-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em;
}
@media (max-width: 620px) { .photo-step { min-height: 84px; padding: 16px; } }


/* Skip link — visible only when focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--white);
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Editable pages ---- */
.pg-hero { padding: clamp(54px, 10vh, 110px) 0 18px; border-bottom: 1px solid var(--line); }
.pg-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.pg-body { padding: 8px 0 40px; }

.pg-block { padding: clamp(30px, 6vh, 58px) 0; max-width: 780px; }
.pg-block:first-child { padding-top: clamp(26px, 5vh, 44px); }
.pg-heading h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; }
.pg-heading .lead { margin-top: 18px; }
.pg-text h3 { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; letter-spacing: -.02em; }
.pg-text p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; font-size: 1.03rem; }
.pg-text p:last-child { margin-bottom: 0; }

.pg-image { margin: 0; padding: clamp(24px, 5vh, 46px) 0; max-width: none; }
.pg-image img { width: 100%; max-height: 76vh; object-fit: cover; display: block; border: 1px solid var(--line); background: var(--soft); }
.pg-image figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; letter-spacing: .04em; }

.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; padding: clamp(26px, 5vh, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pg-stat { display: grid; gap: 6px; }
.pg-stat strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.pg-stat span { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.pg-cta { max-width: none; margin: clamp(30px, 6vh, 56px) 0 0; padding: clamp(30px, 6vw, 56px); background: var(--ink); color: var(--white); }
.pg-cta h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.pg-cta p { margin: 16px 0 0; color: rgba(255,255,255,.72); line-height: 1.7; max-width: 60ch; }
.pg-cta .btn { margin-top: 24px; border-color: var(--white); color: var(--ink); background: var(--white); }
.pg-cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pg-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Scroll reveal ----
   Elements stay visible unless reveal.js has confirmed it can animate them,
   so a script failure can never leave the page blank. */
.reveal-ready .reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal-pending.revealed { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal-pending { opacity: 1; transform: none; }
}

/* ==========================================================================
 * Scroll-linked motion.
 *
 * Everything above this line that moves on scroll is scroll-TRIGGERED: an
 * IntersectionObserver flips a class once and a 500ms transition plays. That is
 * the fallback, and it stays. What follows is scroll-LINKED: the browser ties
 * an animation's progress to the element's position in the viewport, so it
 * advances and reverses with every pixel of scroll, off the main thread, with
 * no JavaScript at all. It is the difference between things "fading in" and a
 * page that feels attached to your hand.
 *
 * Gated three ways, so nobody gets a worse page than they have today:
 *   - @supports (animation-timeline: view()) — browsers without it keep the
 *     IntersectionObserver reveal untouched.
 *   - prefers-reduced-motion: no-preference — reduced-motion readers get the
 *     static page, same as before.
 *   - Inside the block, the reveal.js transition is switched off ONLY for the
 *     elements taken over here, so nothing animates twice.
 *
 * Numbers are deliberately small. 14px of travel, a 6% scale, a wipe that is
 * done before the element reaches a third of the way up the screen. Motion on
 * a photography site should be felt, not watched.
 * ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Hand these over from reveal.js. Visible, untransformed, no transition;
       the keyframes below own them now. */
    .reveal-ready .reveal-pending:is(.chapter-head, .chapter-media, .chapter-para, .jr-card, .jp-card, .pg-image, .pg-block, .pg-stat, .wide-cta, .jr-band),
    .reveal-ready .reveal-pending.revealed:is(.chapter-head, .chapter-media, .chapter-para, .jr-card, .jp-card, .pg-image, .pg-block, .pg-stat, .wide-cta, .jr-band) {
      opacity: 1; transform: none; transition: none;
    }

    /* ---- Photographs arrive with a wipe, not a fade ---------------------- */
    @keyframes enc-unveil {
      from { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
      to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
    }
    /* The scale needs a box to be clipped by; the tile and card media already
       have one, the figures did not. */
    .pg-image, .jp-cover { overflow: hidden; }

    #galleryGrid .photo-tile img,
    .jp-card-media img,
    .pg-image img,
    .jp-cover img {
      animation: enc-unveil linear both;
      animation-timeline: view();
      /* Starts as the top edge enters, finished by the time the element is
         a third of the way up the viewport. */
      animation-range: entry 0% entry 100%;
      will-change: clip-path, transform;
    }
    /* Tiles keep their own hover scale; the wipe must not fight it. */
    #galleryGrid .photo-tile:hover img { animation-play-state: paused; }
    /* On a phone the tile is the whole photograph, so the wipe is clip only:
       the 1.06 scale would crop its edges for the length of the entrance. */
    @media (max-width: 900px) {
      @keyframes enc-wipe-only {
        from { clip-path: inset(0 0 100% 0); }
        to   { clip-path: inset(0 0 0 0); }
      }
      #galleryGrid .photo-tile img { animation-name: enc-wipe-only; }
    }

    /* ---- Text blocks rise as they arrive --------------------------------- */
    @keyframes enc-rise {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
    .jr-card, .jp-card, .pg-block, .pg-stat, .wide-cta {
      animation: enc-rise ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    /* Siblings in a row land as a sequence, not as a block: each card's window
       starts a little later than the last. Only where siblings are the same
       height — view() ranges are relative to the element's own size, so on
       the journal index (covers make cards unequal) a stagger runs backwards:
       the short card finishes first. Those cards rise together instead. */
    .jr-card:nth-child(2), .pg-stat:nth-child(2) { animation-range: entry 10% entry 80%; }
    .jr-card:nth-child(3), .pg-stat:nth-child(3) { animation-range: entry 20% entry 90%; }
    .pg-stat:nth-child(4) { animation-range: entry 30% entry 100%; }

    /* ---- Chapters --------------------------------------------------------- */
    /* Heading, then the photograph, then each card: they rise in as the
       chapter arrives. The photograph is sticky, so its view timeline stops
       advancing once it pins — the range ends at entry, so it has finished
       rising before that happens. */
    .chapter-head, .chapter-media, .chapter-para {
      animation: enc-rise ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    /* ---- Calls to action ------------------------------------------------- */
    /* Two rings leave the button as it crosses the middle of the screen, the
       second a beat behind the first. Nothing moves until it is on screen and
       nothing is left behind once it has passed. */
    .chapter-cta .btn, .hero .btn.primary, .wide-cta .btn.primary, .pg-cta .btn, .jr-head .btn, .sub-form .btn {
      view-timeline-name: --cta;
      view-timeline-axis: block;
    }
    .chapter-cta .btn::before, .hero .btn.primary::before, .wide-cta .btn.primary::before, .pg-cta .btn::before, .jr-head .btn::before, .sub-form .btn::before,
    .chapter-cta .btn::after, .hero .btn.primary::after, .wide-cta .btn.primary::after, .pg-cta .btn::after, .jr-head .btn::after, .sub-form .btn::after {
      animation: enc-cta-ring ease-out both;
      animation-timeline: --cta;
    }
    .chapter-cta .btn::before, .hero .btn.primary::before, .wide-cta .btn.primary::before, .pg-cta .btn::before, .jr-head .btn::before, .sub-form .btn::before { animation-range: cover 30% cover 64%; }
    .chapter-cta .btn::after, .hero .btn.primary::after, .wide-cta .btn.primary::after, .pg-cta .btn::after, .jr-head .btn::after, .sub-form .btn::after  { animation-range: cover 42% cover 78%; }

    @media (max-width: 640px) {
      .chapter-cta .btn::before, .hero .btn.primary::before, .wide-cta .btn.primary::before, .pg-cta .btn::before, .jr-head .btn::before, .sub-form .btn::before,
      .chapter-cta .btn::after, .hero .btn.primary::after, .wide-cta .btn.primary::after, .pg-cta .btn::after, .jr-head .btn::after, .sub-form .btn::after {
        animation-name: enc-cta-ring-v;
      }
    }
    .chapter-media { animation-range: entry 0% entry 45%; }

    /* ---- Chapters on a phone --------------------------------------------- */
    /*
     * Below 900px the photograph stops pinning — that is what keeps it from
     * being cropped, and it is not negotiable. Two things stand in for the pin:
     *
     *   The wipe. The gallery tiles and page images have had the clip-path
     *   unveil all along; the chapter photographs never got it. Applied to the
     *   <img> itself, clip-path only — the desktop version pairs it with a
     *   1.06 scale, and a scale inside a clipped box trims the edges of the
     *   frame. Not here.
     *
     *   The float. The whole figure drifts about 30px against the scroll over
     *   its pass up the screen, which reads as depth without a fixed frame.
     *   The obvious way to do this — hold the frame still and slide the image
     *   inside it — is exactly the crop we are avoiding, so the figure moves
     *   as one piece and the picture stays whole.
     *
     * The float replaces enc-rise on the figure (one transform, one
     * animation); the wipe rides the <img>, so the two never contend.
     */
    @media (max-width: 900px) {
      @keyframes enc-float {
        0%   { opacity: 0; transform: translateY(22px); }
        16%  { opacity: 1; }
        100% { opacity: 1; transform: translateY(-14px); }
      }
      @keyframes enc-wipe {
        from { clip-path: inset(0 0 100% 0); }
        to   { clip-path: inset(0 0 0 0); }
      }
      .chapter-media {
        animation-name: enc-float;
        animation-timing-function: linear;
        animation-range: cover 0% cover 100%;
      }
      .chapter-media img {
        animation: enc-wipe linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 65%;
        will-change: clip-path;
      }
    }
  }
}


/* ==========================================================================
 * Touch
 *
 * Everything interactive on this site tells you it is interactive by changing
 * under the cursor. A phone has no cursor, so on a phone nothing on the page
 * has ever answered a finger. These are the press states: the element gives
 * slightly on touch-down and settles on release.
 *
 * Scoped to (hover: none) — a pointing device never sees these rules, so a
 * desktop browser cannot apply them. A tablet with a mouse keeps the hover
 * treatment; a laptop with a touchscreen reports hover and keeps it too.
 * ========================================================================== */
@media (hover: none) {
  @media (prefers-reduced-motion: no-preference) {
    .btn, button, .nav a, .photo-tile {
      transition: transform .16s cubic-bezier(.2, .7, .3, 1), background .18s ease, color .18s ease;
    }
    /* Small numbers on purpose. A press is confirmation, not an event. */
    .btn:active, button:active { transform: scale(.972); }
    .nav a:active { transform: scale(.94); }
    .photo-tile:active { transform: scale(.985); }

    /*
     * The journal cards get a tint rather than a squeeze. They carry a
     * scroll-linked animation with `both` fill, and an animation's transform
     * beats a declared one for as long as it is applied — which here is
     * always. A press written as `transform` on these would simply never be
     * seen. Nothing animates filter, so filter is free.
     */
    .jr-card, .jp-card { transition: filter .16s ease; }
    .jr-card:active, .jp-card:active { filter: brightness(.965); }
  }
  /* Without motion, the press still has to register — colour instead. */
  @media (prefers-reduced-motion: reduce) {
    .btn:active, button:active { background: var(--ink); color: var(--white); }
  }
}

/* ==========================================================================
 * CTA pulse — a couple of thin lines stepping outward from a call to action
 * as it passes up the screen. Scroll-linked like everything else on the page:
 * the rings advance and reverse with the scroll rather than firing once, so a
 * reader who scrolls back up sees them retract. Two rings, 1px, 20px of
 * travel, gone before they are watched.
 *
 * The button declares a named view timeline; its two pseudo-elements ride it.
 * A pseudo-element cannot own a view() timeline reliably across browsers, but
 * it can name its originating element's — hence --cta rather than view().
 * ========================================================================== */
.chapter-cta .btn, .hero .btn.primary, .wide-cta .btn.primary, .pg-cta .btn, .jr-head .btn, .sub-form .btn { position: relative; }
.chapter-cta .btn::before, .hero .btn.primary::before, .wide-cta .btn.primary::before, .pg-cta .btn::before, .jr-head .btn::before, .sub-form .btn::before,
.chapter-cta .btn::after, .hero .btn.primary::after, .wide-cta .btn.primary::after, .pg-cta .btn::after, .jr-head .btn::after, .sub-form .btn::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--cta-ring, var(--accent));
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}
/* On the dark bands the accent green disappears; the gold already used for
   their eyebrow reads against ink. */
.wide-cta .btn.primary, .pg-cta .btn { --cta-ring: #d8b56d; }

@keyframes enc-cta-ring {
  0%   { inset: 0;      opacity: 0;   }
  22%  {                opacity: .55; }
  100% { inset: -20px;  opacity: 0;   }
}
/* Below 640px the buttons run the full width of the column, so a ring that
   also travels sideways pushes the page 6px wider than the screen. There it
   steps up and down only. */
@keyframes enc-cta-ring-v {
  0%   { inset: 0;         opacity: 0;   }
  22%  {                   opacity: .55; }
  100% { inset: -14px 0;   opacity: 0;   }
}

/* Paper does not scroll. Without this, anything below the first fold would
   print at whatever opacity its scroll position left it — usually zero. */
@media print {
  .jr-card, .jp-card, .pg-block, .pg-stat, .wide-cta, .chapter-head, .chapter-media, .chapter-para,
  #galleryGrid .photo-tile img, .jp-card-media img, .pg-image img, .jp-cover img, .chapter-media img {
    animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .chapter-cta .btn::before, .hero .btn.primary::before, .wide-cta .btn.primary::before, .pg-cta .btn::before, .jr-head .btn::before, .sub-form .btn::before,
  .chapter-cta .btn::after, .hero .btn.primary::after, .wide-cta .btn.primary::after, .pg-cta .btn::after, .jr-head .btn::after, .sub-form .btn::after {
    animation: none !important; display: none !important;
  }
  /* The phone-only float and wipe, likewise. */
  .chapter-media, .chapter-media img { animation: none !important; clip-path: none !important; }
  /* And the phone header does not stick to a sheet of paper. */
  .header { position: static !important; box-shadow: none !important; }
  .nav { max-height: none !important; opacity: 1 !important; }
}


/* ============================================================================
 * Thumbs up / down — photo-rate.js
 *
 * One pill, two buttons, live counts. On a gallery tile it floats over the
 * top-right corner (the veil owns the bottom); on a phone, where the tile is
 * a plain card, it sits in the caption row. On the photograph page it is a
 * larger version under the picture.
 * ========================================================================== */
.enc-rate { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.enc-rate-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 0 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em;
  cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.enc-rate-btn:hover { background: var(--soft); color: var(--ink); }
.enc-rate-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.enc-rate-btn:active { transform: scale(.94); }
.enc-rate-icon { display: inline-flex; width: 16px; height: 16px; }
.enc-rate-icon svg { width: 100%; height: 100%; fill: currentColor; }
.enc-rate-down .enc-rate-icon { transform: translateY(1px); }
.enc-rate-btn.is-on { color: #fff; }
.enc-rate-up.is-on { background: var(--accent-text, #4f5c3a); }
.enc-rate-down.is-on { background: #6b6b6b; }
.enc-rate-count:empty::before { content: "0"; }
.enc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.enc-rate-lg .enc-rate-btn { min-height: 40px; padding: 0 14px 0 12px; font-size: .88rem; }
.enc-rate-lg .enc-rate-icon { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .enc-rate-btn { transition: none; } .enc-rate-btn:active { transform: none; } }

/* The gallery cell: the tile link plus its rating, sharing one grid slot. */
#galleryGrid .tile-cell { grid-column: span var(--tile-span, 4); position: relative; min-width: 0; }
#galleryGrid .tile-cell .photo-tile { grid-column: auto; }
.tile-rate { position: absolute; top: 12px; right: 12px; z-index: 2; opacity: 0; transition: opacity .32s ease; }
.tile-cell:hover .tile-rate, .tile-cell:focus-within .tile-rate, .tile-rate.has-votes { opacity: 1; }
@media (hover: none) { .tile-rate { opacity: 1; } }
@media (max-width: 900px) {
  #galleryGrid .tile-cell { grid-column: 1 / -1; }
  .tile-rate { position: static; margin-top: 10px; }
}

/* Why the digital copy is worth it — under its button, not in a paragraph. */
.digital-why { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; color: var(--muted); font-size: .88rem; }
.digital-why li { position: relative; padding-left: 18px; }
.digital-why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--accent-text, #4f5c3a); border-bottom: 2px solid var(--accent-text, #4f5c3a); transform: rotate(-45deg); }
