/* The Magpie's Tale: site stylesheet.
   Paper, ink and the sheen on a magpie's tail: a soft teal-to-purple
   shimmer, used for anything you can press and the one dark colour block. Newsreader carries every word the shop
   says; Schibsted Grotesk carries the furniture (nav, dates, prices, buttons).
   Shape rule: anything you can press is a pill, anything that holds content
   has a 6px corner, images of drawings have no box at all. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-var.woff2') format('woff2');
}

:root {
  --paper: #f1f1ec;
  --paper-2: #e7e7e0;
  --ink: #141618;
  --ink-2: #50555a;
  --rule: #d3d4cc;
  --accent: #4a4f8f;
  --on-accent: #ffffff;
  --shimmer: linear-gradient(110deg, #2d6e6c 0%, #3e5592 30%, #5c4a8e 50%, #3e5592 70%, #2d6e6c 100%);
  --glow: 74 79 143;
  --block: #181d36;
  --block-bg: linear-gradient(125deg, #132a2c 0%, #181d36 52%, #251a3a 100%);
  --block-ink: #eef0f4;
  --block-ink-2: rgba(238, 240, 244, 0.72);
  --shadow: 26 28 44;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ink-filter: none; /* line drawings are dark ink; flipped in dark mode */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121415;
    --paper-2: #1b1e20;
    --ink: #ecebe4;
    --ink-2: #a7aba9;
    --rule: #2c3032;
    --accent: #a9b0ee;
    --on-accent: #12131f;
    --shimmer: linear-gradient(110deg, #86c6c1 0%, #9eaae4 30%, #b9a1e0 50%, #9eaae4 70%, #86c6c1 100%);
    --glow: 169 176 238;
    --block: #12152a;
    --block-bg: linear-gradient(125deg, #0e2022 0%, #12152a 52%, #1c1330 100%);
    --shadow: 0 0 0;
    --ink-filter: invert(1);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.site { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ink { filter: var(--ink-filter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Type ──────────────────────────────────────────────────────────── */
.display {
  font-weight: 360; letter-spacing: -0.028em; line-height: 1.02;
  font-size: clamp(46px, 6.6vw, 96px);
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 330; padding-right: 0.04em; }
.h2 {
  font-weight: 380; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(34px, 4.2vw, 56px);
  text-wrap: balance;
}
.h2 em { font-style: italic; }
.lead { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.meta { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.005em; }
.prose p + p { margin-top: 1em; }
.prose { text-wrap: pretty; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: var(--on-accent); background-color: var(--accent);
  background-image: var(--shimmer); background-size: 250% 100%; background-position: 0% 50%;
  transition: background-position 1.1s var(--ease), box-shadow 0.5s var(--ease), transform 0.25s var(--ease);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 10px 26px -12px rgb(var(--glow) / 0.75);
}
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.text-link {
  font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-head.is-scrolled { border-bottom-color: var(--rule); }
.site-nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-word {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 23px; font-weight: 420; letter-spacing: -0.01em; white-space: nowrap;
}
.site-word img { width: 30px; height: 30px; filter: var(--ink-filter); }
.site-links { display: flex; gap: 4px; margin-left: auto; font-family: var(--sans); font-weight: 500; font-size: 15px; }
.site-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-links a:hover { color: var(--ink); background: var(--paper-2); }
.site-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.menu-toggle { display: none; }
.site-links .menu-contact { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-art { position: relative; margin-right: calc(var(--gutter) * -0.4); }
.hero-art img { width: 100%; filter: var(--ink-filter); }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .text-link { margin-left: auto; margin-bottom: 10px; }

/* Page header for inner pages */
.page-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px; align-items: end;
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.page-head .lead { margin-top: 22px; }
.page-head-art { justify-self: end; max-width: 300px; }
.page-head-art img { filter: var(--ink-filter); max-height: 240px; width: auto; }
.page-head-art .art-slot { width: 300px; }
.page-head-art.is-large { max-width: 560px; }
.page-head-art.is-large img { max-height: none; width: 100%; }
/* A photo uploaded in the admin (Page headers): shown as it is, never inverted. */
.page-head-art.is-photo { max-width: 460px; }
.page-head-art.is-photo img { filter: none; border-radius: 6px; max-height: 340px; }
.wrap:has(> .page-head) + .wrap > .section { padding-top: clamp(40px, 5vw, 72px); }
.wrap:has(> .page-head) + .find-band { margin-top: -1px; }

/* ── Events ────────────────────────────────────────────────────────── */
.events-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.events-side { position: sticky; top: 112px; }
.events-side .text-link { display: inline-block; margin-top: 22px; }
.events-art { margin-top: 44px; width: 78%; max-width: 240px; }
.event {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 28px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.event:last-child { border-bottom: 1px solid var(--rule); }
.event-date { display: grid; justify-items: start; line-height: 1; font-family: var(--sans); }
.event-date .day { font-family: var(--serif); font-size: 64px; font-weight: 320; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: lining-nums; }
.event-date .mon { margin-top: 10px; font-size: 14px; font-weight: 600; }
.event-date .dow { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.event h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 420; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.event .when { margin-top: 8px; }
.event p.summary { margin-top: 10px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.event-action { padding-top: 6px; }
.event-flag { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 12px; white-space: nowrap; }

/* ── Picks: featured book + the rest ───────────────────────────────── */
.picks-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.feature-book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.feature-book .book-t { font-size: clamp(32px, 3vw, 44px); }
.feature-book .book-n { font-size: 19px; max-width: 46ch; }
.feature-book .cover-wrap { aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.book-t { font-style: italic; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.book-sub { display: block; margin-top: 6px; font-style: normal; font-size: 0.5em; line-height: 1.35; letter-spacing: 0; color: var(--ink-2); }
.book-a { margin-top: 8px; font-size: 19px; color: var(--ink-2); }
.book-n { margin-top: 18px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.book-f { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.book-f b { color: var(--ink); font-weight: 600; font-size: 16px; font-family: var(--serif); font-size: 19px; }

.book-list { display: grid; gap: 0; }
.book-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--rule); }
.book-row:first-child { border-top: 0; padding-top: 0; }
.book-row .book-t { font-size: 24px; }
.book-row .book-n { margin-top: 10px; font-size: 17px; }
.book-row .book-f { margin-top: 12px; }

/* A cover as an object: spine shading, a tinted shadow, a small lift. */
.cover {
  position: relative; display: block; border-radius: 2px 4px 4px 2px;
  box-shadow: 0 1px 1px rgb(var(--shadow) / 0.12), 0 12px 24px -8px rgb(var(--shadow) / 0.35), 0 30px 60px -30px rgb(var(--shadow) / 0.45);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  overflow: hidden;
}
.cover img { width: 100%; height: auto; }
.cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.22) 0, rgb(255 255 255 / 0.18) 2.5%, rgb(0 0 0 / 0.08) 5%, transparent 9%);
}
.feature-book .cover { height: 78%; }
.feature-book .cover img { height: 100%; width: auto; }
@media (hover: hover) {
  .book:hover .cover { transform: perspective(1000px) rotateY(-9deg) translateY(-6px); box-shadow: 0 1px 1px rgb(var(--shadow) / 0.12), 18px 22px 36px -12px rgb(var(--shadow) / 0.4), 0 40px 70px -30px rgb(var(--shadow) / 0.45); }
}

/* Books page: a shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 72px 0; }
.shelf .book { padding-right: 44px; }
.shelf .book > :not(.cover-stage) { margin-right: 0; }
.shelf .book { display: flex; flex-direction: column; }
.shelf .cover-stage { height: 320px; display: flex; align-items: flex-end; justify-content: center; padding: 0 22px 0 0; border-bottom: 3px solid var(--ink); margin: 0 -44px 24px 0; }
.shelf .cover { transform-origin: 50% 100%; }
.shelf .cover { max-height: 282px; width: auto; }
.shelf .cover img { max-height: 282px; width: auto; }
.shelf .book-t { font-size: 25px; }
.shelf .book-n { font-size: 17px; margin-top: 12px; }
.shelf .book-f { margin-top: auto; padding-top: 16px; }

.reading-now { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.reading-now li { padding: 22px 24px; background: var(--paper-2); border-radius: 6px; }
.reading-now em { display: block; font-size: 22px; line-height: 1.2; }
.reading-now .by { font-size: 17px; color: var(--ink-2); }
.reading-now .who { display: block; margin-top: 14px; }

/* ── Welcome: the shop in its own words ────────────────────────────── */
.welcome { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.welcome.art-right { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.welcome.art-right .welcome-art { order: 2; }
.welcome-art img { width: 100%; max-width: 440px; margin: 0 auto; }
.welcome-art .art-slot { max-width: 440px; }
.welcome-art img.photo { border-radius: 6px; max-width: none; }
.welcome .h2 { margin-bottom: 28px; }
.welcome .prose { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.34; font-weight: 360; letter-spacing: -0.012em; }
.welcome .prose p + p { margin-top: 0.8em; }
.welcome-sign { margin-top: 30px; }

/* ── Team: a contents page ─────────────────────────────────────────── */
.team-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contents li { padding: 26px 0; border-top: 1px solid var(--rule); }
.contents li:last-child { border-bottom: 1px solid var(--rule); }
.contents .line { display: flex; align-items: baseline; gap: 16px; }
.contents h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 350; font-style: italic; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.contents .leader { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--rule); transform: translateY(-8px); }
.contents .role { white-space: nowrap; }
.contents p.bio { margin-top: 8px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.contents .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; align-self: center; }
.team-art { margin-top: 44px; width: 72%; max-width: 240px; }

/* ── Reading group ─────────────────────────────────────────────────── */
.group-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 40px; align-items: center;
  padding: clamp(32px, 4vw, 56px); background: var(--paper-2); border-radius: 6px;
}
.group-card .prose { margin-top: 18px; font-size: 20px; max-width: 52ch; }
.group-art { width: 100%; max-width: 240px; justify-self: center; }
.group-art img { width: 100%; height: auto; filter: var(--ink-filter); }
/* A photo uploaded in the admin (Reading group): shown as it is, never inverted. */
.group-art.is-photo { max-width: 320px; }
.group-art.is-photo img { filter: none; border-radius: 6px; }
.group-next { margin-top: 24px; display: grid; gap: 4px; }
.group-next .book-t { font-size: 28px; }

/* ── Find us: the one colour block ─────────────────────────────────── */
.find-band {
  background: var(--block) var(--block-bg); color: var(--block-ink);
  --ink-2: var(--block-ink-2); --rule: rgba(238, 240, 244, 0.18); --accent: #eef0f4; --on-accent: #1b1e38; --glow: 185 170 235;
  --shimmer: linear-gradient(110deg, #e9f3f1 0%, #e7e9f7 30%, #efe6f7 50%, #e7e9f7 70%, #e9f3f1 100%);
}
.find-band .ink { filter: invert(1); }
.find-grid, .find-below { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
/* The street drawing under the address, the map beside it under the hours. */
.find-below { align-items: center; margin-top: clamp(48px, 5vw, 72px); }
.find-addr { margin-top: 28px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; font-weight: 360; letter-spacing: -0.012em; }
.find-addr span { display: block; }
.find-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.find-art { width: 100%; max-width: 420px; }
.find-band .btn-quiet { color: var(--block-ink); border-color: rgba(238, 240, 244, 0.35); }
.find-band .btn-quiet:hover { border-color: var(--block-ink); }
.hours { display: grid; gap: 0; font-variant-numeric: lining-nums; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 19px; }
.hours div:last-child { border-bottom: 1px solid var(--rule); }
.hours dt { font-weight: 420; }
.hours dd { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink-2); text-align: right; }
.hours .is-today dt::after { content: 'Today'; margin-left: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--block-ink); color: var(--block); vertical-align: 3px; }
.getting-here { margin-top: 32px; display: grid; gap: 14px; }
.getting-here p { font-size: 18px; line-height: 1.5; display: flex; gap: 14px; }
.getting-here p::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.5; margin-top: 0.8em; flex: none; }
.find-map { border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 2; background: rgba(0, 0, 0, 0.2); position: relative; }
.find-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05) brightness(1.02); }
.find-church { position: absolute; right: var(--gutter); bottom: 100%; width: 150px; opacity: 0.9; pointer-events: none; }
.find-band .section { position: relative; }

/* ── Order band (every page) ───────────────────────────────────────── */
.order-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; }
.order-art { width: clamp(130px, 13vw, 180px); }
.order-band h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 380; letter-spacing: -0.018em; line-height: 1.1; text-wrap: balance; }
.order-band p { margin-top: 10px; font-size: 19px; color: var(--ink-2); max-width: 48ch; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); padding: clamp(56px, 6vw, 88px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-word { white-space: nowrap; font-size: clamp(30px, 2.7vw, 40px); font-weight: 350; letter-spacing: -0.025em; line-height: 1; }
.foot-word em { font-style: italic; }
.foot-art { width: 190px; margin-top: 28px; }
.foot-col h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.foot-col li, .foot-col p { font-size: 17px; line-height: 1.55; }
.foot-col li + li { margin-top: 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); }
.foot-base a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s ease; }
.foot-base a:hover { color: var(--ink); }

/* ── Contact dialog ────────────────────────────────────────────────── */
.contact-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border: 1px solid var(--rule); border-radius: 6px; padding: clamp(24px, 4vw, 40px);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(var(--shadow) / 0.45);
}
.contact-dialog[open] { animation: dialog-in 0.4s var(--ease); }
.contact-dialog::backdrop { background: rgb(12 14 15 / 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.contact-dialog h2 { font-size: 34px; font-weight: 380; letter-spacing: -0.02em; line-height: 1.1; }
.contact-dialog .hint { margin-top: 8px; }
.dialog-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dialog-close:hover { background: var(--paper-2); color: var(--ink); }
.contact-dialog form { position: relative; }
.contact-dialog .dialog-close { top: -8px; right: -8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-top: 20px; display: grid; gap: 8px; }
.field label { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px;
  font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--paper-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--paper); }
.field textarea { resize: vertical; min-height: 120px; }
.dialog-actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-status { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.contact-status.is-success { color: var(--accent); font-weight: 600; }
.contact-status.is-error { color: #b3261e; }
@media (prefers-color-scheme: dark) { .contact-status.is-error { color: #ff8a80; } }

/* ── Empty states ──────────────────────────────────────────────────── */
.empty { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 0; }

.empty p { font-size: 21px; color: var(--ink-2); max-width: 44ch; }

/* ── Artwork slots (awaiting Mark's drawings) ──────────────────────── */
.art-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; padding: 16px; border-radius: 6px;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}
.art-slot span { max-width: 18ch; font-style: italic; font-size: 16px; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.group-card .art-slot { background: color-mix(in srgb, var(--paper) 50%, transparent); }
.empty .art-slot span { font-size: 14px; }

/* ── Motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-art { animation: settle 1.4s var(--ease) 0.1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(-0.6deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .picks-feature { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { font-size: 18px; }
  .site-nav { height: 64px; gap: 12px; }
  .site-word { font-size: 21px; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent;
    color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .menu-toggle .bars { width: 14px; height: 8px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 6.5px; }
  .menu-open .menu-toggle .bars::before { top: 3.25px; transform: rotate(45deg); }
  .menu-open .menu-toggle .bars::after { top: 3.25px; transform: rotate(-45deg); }
  .site-links, .site-nav > .btn { display: none; }
  .menu-open .site-links {
    display: grid; position: absolute; left: 0; right: 0; top: 64px; gap: 0; margin: 0;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--rule);
    font-family: var(--serif); font-size: 30px; font-weight: 380;
  }
  .menu-open .site-links a { padding: 10px 0; border-radius: 0; background: none; color: var(--ink); }
  .menu-open .site-links a[aria-current="page"] { font-style: italic; }
  .menu-open .site-links .menu-contact { display: block; margin-top: 16px; }

  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { order: -1; margin: 0 -8px; max-width: 520px; }
  .hero-actions { margin-top: 32px; }
  .page-head { grid-template-columns: 1fr; gap: 24px; }
  .page-head-art { justify-self: start; max-width: 200px; order: -1; }
  .page-head-art img { max-height: 150px; }
  .page-head-art .art-slot { width: 200px; }
  .page-head-art.is-large { max-width: 420px; }
  .page-head-art.is-photo { max-width: 100%; }
  .page-head-art.is-photo img { max-height: 260px; }
  .events-layout, .team-layout, .welcome, .welcome.art-right, .find-grid, .find-below, .group-card { grid-template-columns: 1fr; }
  .events-side { position: static; }
  .events-art, .team-art, .find-art { display: none; }
  .welcome-art { max-width: 300px; }
  .welcome.art-right .welcome-art { order: 0; }
  .event { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
  .event-date .day { font-size: 46px; }
  .event-action, .event-flag { grid-column: 2; padding-top: 0; }
  .feature-book { grid-template-columns: 1fr; }
  .feature-book .cover-wrap { justify-self: stretch; }
  .book-row { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
  .contents h3 { white-space: normal; }
  .contents .leader { display: none; }
  .contents .line { flex-wrap: wrap; row-gap: 4px; }
  .contents .role { width: 100%; }
  .group-art { max-width: 160px; justify-self: start; order: -1; }
  .group-art.is-photo { max-width: 100%; }
  .find-map { aspect-ratio: 4 / 3; }
  .find-church { display: none; }
  .order-band { grid-template-columns: 1fr; gap: 20px; }
  .order-art { width: 150px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-base { flex-direction: column; margin-top: 44px; }
  .empty { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
  .section-head { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .shelf .book { padding-right: 0; }
  .shelf .cover-stage { margin-right: 0; padding-right: 0; }
  .hours div { font-size: 18px; }
}
