/* In loving memory of Denise G. Cheramy
   Colours drawn from her portrait: warm amber backdrop, soft aqua blouse. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #fbf7f0;
  --paper-warm: #f5ecdf;
  --card: #fffdf9;
  --ink: #36261a;
  --ink-soft: #6b5747;
  --amber: #a86a2e;
  --amber-deep: #8a5321;
  --aqua: #6fa9a6;
  --teal: #2e6b69;
  --teal-deep: #234f4e;
  --line: #e6d8c4;
  --danger: #9b2c2c;
  --sage-wash: #e9f0ec;   /* behind her calendar pages */
  --page-white: #fffefb;
  --staple: #b3aca2;

  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --text: "Source Serif 4", "Georgia", serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(54 38 26 / 6%), 0 8px 28px rgb(54 38 26 / 8%);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.1875rem; } }

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

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-deep); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap--text { max-width: 44rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 240 / 92%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem;
}
.site-header__name {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }

@media (max-width: 719px) {
  .site-header__name { display: none; }
  .site-header__inner { justify-content: center; min-height: 3rem; }
  .site-nav { gap: 0 0.75rem; justify-content: center; }
  .site-nav a { font-size: 0.875rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgb(168 106 46 / 10%), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgb(111 169 166 / 12%), transparent 55%),
    var(--paper);
}
.hero__inner { display: grid; gap: 2rem; align-items: center; justify-items: center; text-align: center; }

@media (min-width: 860px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; justify-items: start; text-align: left; }
}

.portrait {
  margin: 0;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  justify-self: center;
}
.portrait::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  border-radius: 999px 999px calc(var(--radius) - 6px) calc(var(--radius) - 6px);
  background: var(--paper-warm);
}

.eyebrow {
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-deep); margin: 0 0 0.75rem;
}
.hero__name {
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.hero__dates {
  margin: 1rem 0 0;
  font-size: 1.1rem; color: var(--ink-soft); letter-spacing: 0.04em;
}
.hero__line {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--amber-deep);
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line);
  max-width: 28rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; justify-content: center; }
@media (min-width: 860px) { .hero__actions { justify-content: flex-start; } }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.6rem 1.5rem;
  font: 600 1rem/1.2 var(--text);
  color: #fff; background: var(--teal);
  border: 2px solid var(--teal); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.button--quiet { background: transparent; color: var(--teal); }
.button--quiet:hover { background: rgb(46 107 105 / 8%); color: var(--teal-deep); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Quilt strip ---------- */

.quilt-strip {
  height: 24px;
  background: url("/images/quilt-strip.svg") repeat-x center / 48px 24px;
  border-block: 3px solid var(--paper-warm);
  opacity: 0.9;
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section--warm { background: var(--paper-warm); }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.section-title {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-title::after {
  /* a row of quilting stitches */
  content: "";
  display: block;
  width: 6rem;
  margin: 0.9rem auto 0;
  border-top: 2px dashed var(--amber);
  opacity: 0.7;
}
.section-intro {
  text-align: center; color: var(--ink-soft);
  max-width: 38rem; margin: -1rem auto 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
@media (min-width: 768px) { .card { padding: 2rem; } }

/* ---------- Story ---------- */

.lead {
  font-size: 1.2em;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}
.lead::first-letter {
  font-family: var(--display); font-weight: 600;
  float: left; font-size: 4.2em; line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  color: var(--amber);
}

.story-para { display: grid; gap: 0.5rem 1.5rem; margin-bottom: 2rem; }
.story-para p { margin: 0; }
.story-icon { width: 2.75rem; height: 2.75rem; color: var(--amber); }
@media (min-width: 640px) {
  .story-para { grid-template-columns: 3rem 1fr; align-items: start; }
  .story-icon { width: 3rem; height: 3rem; margin-top: 0.25rem; }
}

/* ---------- Through her lens (her calendar photographs) ---------- */

.section--lens { background: var(--sage-wash); }
.section--lens cite { font-style: italic; }
.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.75rem;
  align-items: start;
}
.calendar-page {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0.9rem 0.9rem 0;
  background: var(--page-white);
  border: 0; border-radius: 3px;
  box-shadow: 0 1px 2px rgb(54 38 26 / 10%), 0 12px 28px rgb(54 38 26 / 10%);
  font: inherit; color: inherit; text-align: left;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* two staples, like the tops of her calendars */
.calendar-page::before,
.calendar-page::after {
  content: "";
  position: absolute; top: 0.3rem;
  width: 1.1rem; height: 2px; border-radius: 1px;
  background: var(--staple);
}
.calendar-page::before { left: calc(50% - 2.4rem); }
.calendar-page::after { right: calc(50% - 2.4rem); }
.calendar-page:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(54 38 26 / 10%), 0 18px 36px rgb(54 38 26 / 14%); }
.calendar-page__photo { display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--paper-warm); }
.calendar-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.calendar-page__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  padding: 0.75rem 0.1rem 0.9rem;
}
.calendar-page__bird { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.calendar-page__month { font-weight: 300; font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; }
.lens-note { text-align: center; color: var(--ink-soft); margin: 2.25rem auto 0; max-width: 34rem; }
@media (prefers-reduced-motion: reduce) {
  .calendar-page { transition: none; }
  .calendar-page:hover { transform: none; }
}

/* ---------- Family ---------- */

.family { display: grid; gap: 1.25rem; }
@media (min-width: 860px) {
  .family { grid-template-columns: 1fr 1.6fr 1fr; align-items: start; }
}
.family__group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.family__group h3 {
  font-size: 1.35rem;
  color: var(--amber-deep);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed var(--line);
}
.names { list-style: none; margin: 0; padding: 0; }
.names li { padding: 0.2rem 0; }
.names--columns { columns: 2 13rem; column-gap: 1.5rem; }
.names--columns li { break-inside: avoid; }
.spouse { color: var(--ink-soft); }
.family__note { margin: 0.9rem 0 0; color: var(--ink-soft); font-style: italic; }
.family__closing {
  text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.35;
  color: var(--amber-deep);
  max-width: 36rem;
  margin: 2.5rem auto 0;
}

/* ---------- Service ---------- */

.service { text-align: center; }
.service > p { margin: 0 auto 1rem; max-width: 34rem; }
.service__when {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.4rem); line-height: 1.1;
  color: var(--amber-deep);
  margin-bottom: 0.75rem !important;
}
.notify-form { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 2px dashed var(--line); text-align: left; }
.notify-form__fields { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .notify-form__fields { grid-template-columns: 1fr 1fr; } }
.notify-form .button { width: 100%; margin-top: 1.25rem; }
.fine-print { font-size: 0.875rem; color: var(--ink-soft); text-align: center; margin: 0.25rem 0 0; }
.service__details { display: grid; gap: 1rem; margin: 0; text-align: left; }
.service__details div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; }
.service__details dt { font-weight: 600; color: var(--amber-deep); }
.service__details dd { margin: 0; }
.service__actions { margin: 1.5rem 0 0; }
.service__donations { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px dashed var(--line); }
.service__donations h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service__donations p { margin: 0; }

/* ---------- Photos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.gallery__item {
  margin: 0; padding: 0; border: 0; background: var(--card);
  border-radius: 10px; overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: left;
  font: inherit; color: inherit;
}
.gallery__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item span { display: block; padding: 0.6rem 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
}
.lightbox::backdrop { background: rgb(28 20 14 / 92%); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 80rem); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #f3e6d3; margin-top: 0.75rem; font-size: 1rem; }
.lightbox button {
  position: fixed; background: rgb(255 255 255 / 12%); color: #fff; border: 0;
  width: 3rem; height: 3rem; border-radius: 999px; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 24%); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox[data-single] .lightbox__nav { display: none; }

/* ---------- Memories ---------- */

.memories { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .memories { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; }
  .memory-form { position: sticky; top: 5rem; }
}

.memory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.memory {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.memory:nth-child(even) { border-left-color: var(--amber); }
.memory__message { margin: 0 0 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.memory__by { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.memory__by strong { color: var(--ink); font-weight: 600; }
.memories__empty {
  margin: 0; color: var(--ink-soft); font-style: italic; text-align: center;
  padding: 2.5rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius);
}

.memory-form h3 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.memory-form .button { margin-top: 1.5rem; width: 100%; }

/* ---------- Forms (shared) ---------- */

form label { display: block; font-weight: 600; font-size: 0.95rem; margin: 1rem 0 0.35rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid #d9c7ae; border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
form textarea { resize: vertical; min-height: 5.5rem; line-height: 1.6; }
#m-message { min-height: 9rem; }
form input:focus,
form textarea:focus { outline: 3px solid rgb(111 169 166 / 45%); outline-offset: 0; border-color: var(--teal); }

.choices { border: 0; margin: 1.25rem 0 0; padding: 0; }
.choices legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 0.35rem; }
.choices label,
.check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-weight: 400; font-size: 1rem; margin: 0.4rem 0; cursor: pointer;
}
.choices input,
.check input { width: 1.15rem; height: 1.15rem; margin: 0.3rem 0 0; flex: none; accent-color: var(--teal); }

.form-status { margin: 1rem 0 0; min-height: 1.5em; font-size: 0.95rem; }
.form-status:empty { margin: 0; min-height: 0; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="ok"] { color: var(--teal-deep); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Photo upload ---------- */

.upload-form { max-width: 52rem; margin: 0 auto; }
.upload-form__intro { display: grid; gap: 0.5rem 1.25rem; }
.upload-form__intro h3 { font-size: 1.75rem; }
.upload-form__intro p { margin: 0.35rem 0 0; color: var(--ink-soft); }
@media (min-width: 640px) { .upload-form__intro { grid-template-columns: 3rem 1fr; } }
.upload-form__grid { display: grid; gap: 0 1rem; margin-top: 0.5rem; }
@media (min-width: 700px) { .upload-form__grid { grid-template-columns: 1fr 1fr; } }

.dropzone {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  margin: 1.25rem 0 0 !important; padding: 2rem 1rem;
  border: 2px dashed #d3bd9f; border-radius: var(--radius);
  background: var(--paper);
  text-align: center; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.dropzone:hover,
.dropzone.is-over { background: #f0f7f6; border-color: var(--aqua); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--aqua); outline-offset: 2px; }
.dropzone__title { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--teal); }
.dropzone__hint { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }

.file-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.92rem; padding: 0.45rem 0.75rem;
  background: var(--paper); border-radius: 8px;
}
.file-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list__state { color: var(--ink-soft); white-space: nowrap; }
.file-list li[data-state="done"] .file-list__state { color: var(--teal-deep); }
.file-list li[data-state="error"] .file-list__state { color: var(--danger); white-space: normal; text-align: right; }
.upload-form .check { margin-top: 1.25rem; }
.upload-form .button { margin-top: 1.25rem; width: 100%; }
@media (min-width: 700px) { .upload-form .button { width: auto; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-warm); text-align: center; color: var(--ink-soft); }
.site-footer__inner { padding: 2.5rem 1rem 3rem; }
.site-footer p { margin: 0.25rem 0; }
.site-footer__heart {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.75rem; color: var(--amber-deep);
}
.site-footer__small { font-size: 0.9rem; }

/* ---------- Admin ---------- */

.admin { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.admin h1 { font-size: 2.4rem; margin-bottom: 0.25rem; }
.admin__sub { color: var(--ink-soft); margin: 0 0 2rem; }
.admin__notice { color: var(--danger); }
.admin__who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.admin__bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.admin__row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; margin: 1.5rem 0 1rem; }
.admin__row .admin__help { margin: 0; flex: 1 1 22rem; }
.admin h2 { font-size: 1.75rem; margin: 2.5rem 0 0.5rem; }
.admin__help { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.admin .memory[data-status="pending"] { border-left-color: var(--amber); background: #fffaf2; }
.admin .memory[data-status="private"] { border-left-color: var(--ink-soft); }
.admin .memory__by { margin-bottom: 1rem; }
.admin__meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin__empty { color: var(--ink-soft); font-style: italic; }

.button--small { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: 0.95rem; }
.button--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.button--confirm { display: inline-grid; place-items: center; }
.button--confirm > span { grid-area: 1 / 1; }
.button--confirm > span + span,
.button--confirm.is-armed > span:first-child { visibility: hidden; }
.button--confirm.is-armed > span + span { visibility: visible; }
.button.is-armed { background: var(--danger); border-color: var(--danger); color: #fff; }
.admin__emails { display: block; width: 100%; margin: 0 0 1rem; padding: 0.6rem; font: 0.95rem/1.4 var(--text); }
.admin__emails[hidden] { display: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tab {
  font: 600 1rem/1.2 var(--text); color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 999px;
  padding: 0.6rem 1rem; cursor: pointer;
}
.tab:hover { color: var(--ink); background: var(--paper-warm); }
.tab[aria-selected="true"] { color: #fff; background: var(--teal); }
.tab__count:not(:empty) {
  display: inline-block; margin-left: 0.25rem; padding: 0 0.45rem;
  font-size: 0.8rem; border-radius: 999px; background: rgb(168 106 46 / 18%); color: var(--amber-deep);
}
.tab[aria-selected="true"] .tab__count { background: rgb(255 255 255 / 22%); color: #fff; }

.admin-photos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.admin-photo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.admin-photo__frame {
  aspect-ratio: 4 / 3; background: var(--paper-warm); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.admin-photo__frame img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.admin-photo__noprev { padding: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.admin-photo__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.admin-photo__body p { margin: 0; }
.admin-photo__from { overflow-wrap: anywhere; font-size: 0.95rem; }
.admin-photo__note { font-size: 0.95rem; white-space: pre-line; }
.admin-photo .admin__actions { margin-top: auto; padding-top: 0.5rem; }
.admin-photo__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.badge {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--paper-warm); color: var(--amber-deep);
}

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.signups { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.signups th, .signups td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.signups th { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.signups tr:last-child td { border-bottom: 0; }
.signups td:last-child { text-align: right; }

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