/* Soul Pet Memorials
   One warm, quiet palette. Serif for names and headlines, sans for everything
   the reader has to work with. The memorial page is the product; the app
   chrome deliberately stays out of its way. */

:root {
  --ink:            #2b2622;
  --ink-soft:       #5d554e;
  --ink-faint:      #8b8177;
  --paper:          #fbf8f4;
  --paper-raised:   #ffffff;
  --paper-sunk:     #f3ede5;
  --line:           #e6ddd1;
  --line-strong:    #d5c8b8;
  --accent:         #8a5a44;
  --accent-deep:    #6d442f;
  --accent-wash:    #f4e9e1;
  --gold:           #b08a53;
  --success:        #3f6b4f;
  --success-wash:   #e6f0e8;
  --danger:         #9b3d33;
  --danger-wash:    #f8e7e4;
  --radius:         14px;
  --radius-lg:      22px;
  --shadow:         0 1px 2px rgba(43, 38, 34, .05), 0 8px 24px rgba(43, 38, 34, .06);
  --shadow-lift:    0 2px 4px rgba(43, 38, 34, .06), 0 18px 44px rgba(43, 38, 34, .12);
  --font-display:   'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --measure:        66ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- chrome */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 244, .88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em;
  white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: .93rem; flex: none; }
/* Nav labels must never wrap: a two-line pill in the header reads as a
   rendering fault, and at ~800px it was clipping. */
.site-nav a, .site-nav button { white-space: nowrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.inline-form { display: inline; }

.site-footer {
  margin-top: 5rem; padding: 3rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line); background: var(--paper-sunk);
  text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1.05rem; }
.footer-note { color: var(--ink-soft); margin-top: .3rem; }
.footer-legal { color: var(--ink-faint); font-size: .84rem; margin-top: 1.2rem; }

.app-main { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); }
body.narrow .app-main { max-width: 620px; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 500; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.button:hover { background: var(--accent-deep); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button-large { padding: .85rem 1.7rem; font-size: 1.02rem; }
.button-small { padding: .4rem .85rem; font-size: .87rem; }
.button-block { width: 100%; }
.button-ghost { background: transparent; color: var(--accent-deep); border-color: var(--line-strong); }
.button-ghost:hover { background: var(--accent-wash); }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; font-size: .88rem;
  color: var(--accent-deep); cursor: pointer; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.link-button.danger { color: var(--danger); }
.inline-link { color: var(--accent-deep); }

/* ---------------------------------------------------------------- landing */

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--ink-faint); font-weight: 600;
}
.eyebrow a { color: inherit; text-decoration: none; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem); margin-top: .8rem; letter-spacing: -.03em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lede { margin-top: 1.3rem; font-size: 1.13rem; color: var(--ink-soft); max-width: 44ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-footnote { margin-top: 1.1rem; font-size: .87rem; color: var(--ink-faint); }

.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-frame {
  position: absolute; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  background: linear-gradient(148deg, #efe3d6, #d9c6b2 55%, #c4ab92);
}
.hero-frame-1 { inset: 6% 22% 30% 4%; transform: rotate(-5deg); }
.hero-frame-2 { inset: 22% 4% 12% 30%; transform: rotate(4.5deg);
  background: linear-gradient(148deg, #e7dbcd, #c8b39c 60%, #ab8f74); }
.hero-frame-3 { inset: 44% 34% 4% 16%; transform: rotate(-1.5deg);
  background: linear-gradient(148deg, #f2e8dc, #ddcab4); }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line);
}
.feature h3 { font-size: 1.22rem; }
.feature p { margin-top: .6rem; color: var(--ink-soft); }

.section-title {
  font-size: 1.5rem; margin-bottom: 1.4rem;
}
.showcase { padding-top: 2rem; border-top: 1px solid var(--line); }
.showcase-grid, .dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem;
}

.memorial-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.memorial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.memorial-card-image { aspect-ratio: 4 / 3; background: var(--paper-sunk); }
.memorial-card-image img { width: 100%; height: 100%; object-fit: cover; }
.memorial-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(140deg, var(--paper-sunk), var(--accent-wash));
}
.memorial-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.memorial-card-body h3 { font-size: 1.28rem; }
.memorial-card-dates { color: var(--ink-faint); font-size: .88rem; margin-top: .15rem; }
.memorial-card-line { color: var(--ink-soft); margin-top: .5rem; font-size: .95rem; }

/* ---------------------------------------------------------------- forms */

.card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 1.9rem);
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.card h2 { font-size: 1.3rem; margin-bottom: .4rem; }

.auth-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); margin-top: 2rem;
}
.auth-card h1 { font-size: 1.85rem; }
.auth-lede { color: var(--ink-soft); margin-top: .5rem; }
.auth-alt { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); text-align: center; }

.stack-form { display: flex; flex-direction: column; gap: 1.15rem; }
.stack-form.card { gap: 1.15rem; }
.form-intro { color: var(--ink-soft); font-size: .95rem; max-width: var(--measure); }
.field { display: flex; flex-direction: column; gap: .38rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { font-size: .89rem; font-weight: 600; color: var(--ink); }
.field-optional { font-weight: 400; color: var(--ink-faint); font-size: .84em; }
.field-hint { font-size: .84rem; color: var(--ink-faint); }
.field-error { font-size: .85rem; color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: .66rem .8rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; line-height: 1.62; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
  linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-chip { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); font-size: .92rem; transition: border-color .15s, background .15s; }
.radio-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.pronoun-hint { color: var(--ink-faint); font-size: .85em; }

.radio-stack { display: flex; flex-direction: column; gap: .7rem; }
.radio-card { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.radio-card strong { display: block; font-weight: 600; font-size: .96rem; }
.radio-card em { display: block; font-style: normal; color: var(--ink-soft); font-size: .87rem; margin-top: .1rem; }

.checkbox-row { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .95rem; }

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.flash { padding: .8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .94rem; border: 1px solid; }
.flash-success { background: var(--success-wash); border-color: #c4dccb; color: var(--success); }
.flash-error { background: var(--danger-wash); border-color: #ecc7c1; color: var(--danger); }
.flash-info { background: var(--accent-wash); border-color: var(--line-strong); color: var(--accent-deep); }

/* ---------------------------------------------------------------- dashboard */

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.page-lede { color: var(--ink-soft); margin-top: .4rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.status-pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em; border: 1px solid; }
.status-draft     { background: var(--paper-sunk); border-color: var(--line-strong); color: var(--ink-soft); }
.status-published { background: var(--success-wash); border-color: #c4dccb; color: var(--success); }
.status-unlisted  { background: #fdf3e0; border-color: #ecd8ae; color: #7d5f21; }
.status-archived, .status-suspended { background: var(--danger-wash); border-color: #ecc7c1; color: var(--danger); }

.dashboard-card { background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dashboard-card-image { aspect-ratio: 16 / 10; background: var(--paper-sunk); }
.dashboard-card-image img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.dashboard-card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.dashboard-card-head h2 { font-size: 1.25rem; }
.dashboard-card-meta { color: var(--ink-faint); font-size: .87rem; }
.dashboard-card-actions { display: flex; align-items: center; gap: .6rem; margin-top: auto; flex-wrap: wrap; }
.muted-note { color: var(--ink-faint); font-size: .87rem; }

.empty-state { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
  background: var(--paper-raised); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state.small { padding: 2.2rem 1.5rem; }
.empty-state h1, .empty-state h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.empty-state p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.5rem; }

/* ---------------------------------------------------------------- editor */

.editor-tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem; padding-bottom: 0; scrollbar-width: thin; }
.editor-tab { padding: .65rem 1rem; text-decoration: none; color: var(--ink-soft); font-size: .93rem;
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.editor-tab:hover { color: var(--ink); }
.editor-tab[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }

.upload-card { display: flex; flex-direction: column; gap: 1rem; }
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
  padding: 2.4rem 1.5rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.upload-drop:hover, .upload-drop.is-dragging { border-color: var(--accent); background: var(--accent-wash); }
.upload-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 34px; height: 34px; color: var(--accent); }
.upload-icon svg { width: 100%; height: 100%; }
.upload-title { font-weight: 600; }
.upload-hint { font-size: .85rem; color: var(--ink-faint); max-width: 40ch; }
.upload-selected { font-size: .89rem; color: var(--accent-deep); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.2rem; }
.photo-tile { margin: 0; background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-tile.is-hero { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash), var(--shadow); }
.photo-tile-image { position: relative; aspect-ratio: 1 / 1; background: var(--paper-sunk); }
.photo-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.video-badge, .pending-badge, .hero-badge {
  position: absolute; padding: .18rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: rgba(43, 38, 34, .78); color: #fff; letter-spacing: .02em;
}
.video-badge { top: .5rem; left: .5rem; }
.pending-badge { bottom: .5rem; left: .5rem; background: rgba(176, 138, 83, .92); }
.hero-badge { top: .5rem; right: .5rem; background: var(--accent); }
.photo-tile figcaption { padding: .7rem .8rem .85rem; }
.photo-tile-form { display: flex; flex-direction: column; gap: .5rem; }
.photo-tile-form input[type="text"] { font-size: .87rem; padding: .45rem .6rem; }
.photo-tile-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.generate-card p { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 1rem; }
.draft-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.draft-origin { font-size: .82rem; color: var(--ink-faint); }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.history-list li { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.history-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.history-excerpt { color: var(--ink-soft); font-size: .9rem; margin: .35rem 0 .5rem; }

.slide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; counter-reset: slide; }
.slide-list li { display: flex; align-items: center; gap: .8rem; counter-increment: slide; font-size: .9rem; }
.slide-list li::before { content: counter(slide); width: 22px; color: var(--ink-faint); font-size: .8rem; }
.slide-list img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--paper-sunk); }

.share-url { display: flex; gap: .5rem; margin: .9rem 0 1.1rem; }
.share-url input { font-size: .9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.share-channels { display: flex; flex-wrap: wrap; gap: .55rem; }
.share-chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); text-decoration: none; color: var(--ink); font-size: .89rem; }
.share-chip:hover { border-color: var(--accent); background: var(--accent-wash); }

/* ---------------------------------------------------------------- memorial page */

.memorial-hero { position: relative; min-height: min(74vh, 640px); display: flex; align-items: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 4rem); overflow: hidden; }
.memorial-hero.no-image { background: linear-gradient(150deg, #3a322c, #241f1b); min-height: 42vh; }
.memorial-hero-image { position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.03); }
.memorial-hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 17, .88) 0%, rgba(24, 20, 17, .45) 45%, rgba(24, 20, 17, .12) 100%); }
.memorial-hero-copy { position: relative; color: #fff; max-width: 40ch; }
.memorial-species { text-transform: uppercase; letter-spacing: .17em; font-size: .74rem;
  font-weight: 600; opacity: .8; }
.memorial-hero-copy h1 { font-size: clamp(2.8rem, 9vw, 5.2rem); margin-top: .5rem; letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.memorial-dates { font-family: var(--font-display); font-size: 1.15rem; opacity: .9; margin-top: .5rem; }
.memorial-headline { margin-top: 1rem; font-size: 1.1rem; opacity: .93; }

.memorial > section:not(.memorial-hero) {
  max-width: 940px; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem);
}
.memorial-obituary { max-width: 720px !important; }
.obituary-headline { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1.4rem; text-align: center; }
.obituary-body { font-size: 1.12rem; line-height: 1.78; color: var(--ink); }
.obituary-body p + p { margin-top: 1.25rem; }
.obituary-body p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.3em; float: left; line-height: .82;
  padding: .06em .09em 0 0; color: var(--accent);
}

.memorial-presentation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slideshow { position: relative; aspect-ratio: 16 / 10; background: #17130f; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lift); }
.slideshow-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--transition-ms, 1200ms) ease; }
.slideshow-slide.is-active { opacity: 1; }
.slideshow-slide img, .slideshow-slide video { width: 100%; height: 100%; object-fit: cover; }
.slideshow-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1.2rem;
  color: #fff; font-size: .95rem; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.transition-cut .slideshow-slide { transition: none; }
.transition-fade-black .slideshow-slide { transition: opacity var(--transition-ms, 1600ms) ease; }
.transition-slide .slideshow-slide { transition: opacity var(--transition-ms, 900ms) ease, transform var(--transition-ms, 900ms) ease; transform: translateX(3%); }
.transition-slide .slideshow-slide.is-active { transform: translateX(0); }
.ken-burns .slideshow-slide.is-active img { animation: kenburns var(--slide-ms, 5000ms) linear both; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.2%, -1%); } }
.slideshow-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.slideshow-button { padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper-raised); font: inherit; font-size: .93rem; cursor: pointer; }
.slideshow-button:hover { border-color: var(--accent); background: var(--accent-wash); }
.slideshow-track { font-size: .87rem; color: var(--ink-faint); }

.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.gallery-item { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius);
  overflow: hidden; background: var(--paper-raised); box-shadow: var(--shadow); }
.gallery-item img, .gallery-item video { width: 100%; height: auto; display: block; }
.gallery-item figcaption { padding: .6rem .8rem .8rem; font-size: .88rem; color: var(--ink-soft); }

.memorial-nonprofit { text-align: center; background: var(--paper-sunk); border-radius: var(--radius-lg); }
.nonprofit-message { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 1.4rem; font-size: 1.03rem; }
.nonprofit-note { margin-top: 1rem; font-size: .84rem; color: var(--ink-faint); max-width: 46ch; margin-inline: auto; }

.memorial-share { text-align: center; }
.share-lede { color: var(--ink-soft); margin-bottom: 1.2rem; }
.memorial-share .share-url { max-width: 480px; margin-inline: auto; }
.memorial-share .share-channels { justify-content: center; }

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

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .features { grid-template-columns: 1fr; gap: 1.8rem; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 180px; }
}

@media (max-width: 560px) {
  .site-header { padding: .9rem 1rem; }
  .brand-text { font-size: .98rem; }
  .site-nav { gap: .8rem; font-size: .88rem; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .page-head { align-items: flex-start; }
  .gallery-grid { columns: 1; }
  .share-url { flex-direction: column; }
  .memorial-hero { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
  .ken-burns .slideshow-slide.is-active img { animation: none; }
}

@media print {
  .site-header, .site-footer, .memorial-share, .slideshow-controls, .memorial-presentation { display: none; }
  body { background: #fff; }
}

/* At phone widths the brand and the two nav items compete for ~340px of usable
   space. Since nothing may wrap (a two-line pill reads as broken), everything
   shrinks together instead. */
@media (max-width: 480px) {
  .site-header { padding: .8rem .9rem; gap: .5rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand { gap: .45rem; }
  .brand-text { font-size: .9rem; }
  .site-nav { gap: .7rem; font-size: .82rem; }
  .memorial-hero-copy h1 { font-size: clamp(2.4rem, 15vw, 3.4rem); }
  .memorial-headline { font-size: 1rem; }
}
