/* Album cover carousel: stable frame, uncropped photos and touch-size controls. */
.hero-carousel-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.hero-carousel-controls .button { min-width: 44px; min-height: 44px; }
.hero-slide figcaption a { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media print { .hero-carousel-controls { display: none; } }

/* Carnival: solid colour, tactile frames and a little hometown exuberance.
   Load after site.css. No web fonts, gradients or perpetual animations. */
:root {
  --background: #fff8ef;
  --surface: #ffffff;
  --surface-alt: #f4e6ef;
  --text-primary: #20202b;
  --text-secondary: #625665;
  --border: #887888;
  --brand-primary: #a51b50;
  --brand-secondary: #472473;
  --action-primary: #a51b50;
  --action-hover: #84113e;
  --focus: #006b74;
  --success: #16664f;
  --warning: #775100;
  --error: #a12622;
  --on-action: #ffffff;
  --carnival-yellow: #ffd34e;
  --carnival-teal: #087c80;
  --carnival-mint: #d8efe7;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --container: 76rem;
  --section-gap: 4.5rem;
  --card-radius: 1.5rem;
  --offset-shadow: 5px 5px 0 #20202b;
}
body { background: var(--background); line-height: 1.65; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
h3 { font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.2; }
h1 em, h2 em { font-style: normal; font-weight: inherit; }
a { text-decoration-thickness: 2px; }
::selection { background: var(--carnival-yellow); color: var(--text-primary); }
.container, .reading, .hero > *, .section-heading > *, .header-top > * { min-width: 0; }
.eyebrow { font-weight: 800; letter-spacing: .09em; font-size: .78rem; }
.lead, .hero-lead { line-height: 1.6; }
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  vertical-align: -.22em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button, .menu-toggle, .photo-expand, .file-list button {
  border: 2px solid var(--text-primary);
  border-radius: 999px;
  font-weight: 750;
  transition: translate 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.button {
  min-height: 50px;
  padding: .8rem 1.4rem;
  gap: .65rem;
  box-shadow: 3px 3px 0 var(--text-primary);
}
.button:hover {
  border-color: var(--text-primary);
  translate: 0 -3px;
  box-shadow: 4px 6px 0 var(--text-primary);
}
.button:active { translate: 1px 2px; box-shadow: 1px 1px 0 var(--text-primary); }
.button-secondary { color: var(--brand-secondary); background: var(--surface); border-color: var(--text-primary); }
.button-secondary:hover { background: #eee5f6; border-color: var(--text-primary); }
.button-light { color: var(--text-primary); background: var(--carnival-yellow); border-color: var(--text-primary); }
.button-light:hover { color: var(--text-primary); background: #ffe28b; border-color: var(--text-primary); }
.button:disabled { translate: none; box-shadow: none; }
.text-link { gap: .6rem; font-weight: 750; }
.text-link .icon, .card-arrow, .album-arrow { transition: translate 160ms ease; }
.text-link:hover .icon, .article-card:hover .card-arrow, .album-card:hover .album-arrow { translate: 3px 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip-link { border: 2px solid var(--text-primary); border-radius: .8rem; font-weight: 750; }

/* White masthead, mask emblem and generous pill navigation. */
.site-header { background: var(--surface); border-top: 6px solid var(--brand-primary); border-bottom: 1px solid #e5dce3; }
.header-top { padding-block: 1.25rem; gap: 1.25rem; }
.brand-lockup { display: flex; flex-direction: row; align-items: center; gap: .85rem; text-decoration: none; color: var(--text-primary); }
.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid var(--text-primary);
  border-radius: 1.15rem .65rem 1.15rem .65rem;
  background: var(--carnival-yellow);
  color: var(--brand-secondary);
  box-shadow: 3px 3px 0 var(--brand-secondary);
  rotate: -6deg;
}
.brand-symbol .icon { width: 2.15rem; height: 2.15rem; }
svg.brand-symbol { padding: .65rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wordmark { font-family: var(--font-body); font-weight: 900; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.065em; }
.wordmark-small { display: block; font-weight: 800; letter-spacing: .12em; margin-bottom: .2rem; color: var(--brand-secondary); }
.wordmark-dot { color: var(--brand-primary); }
.utility-link { font-weight: 700; text-decoration: none; }
.utility-link:hover { color: var(--brand-primary); text-decoration: underline; }
.menu-toggle { background: var(--background); padding: .5rem 1rem; display: inline-flex; align-items: center; gap: .5rem; }
.menu-toggle:hover { background: var(--carnival-yellow); }
.main-nav { border: 0; padding-block: .2rem 1rem; gap: .45rem; align-items: center; }
.main-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }
.main-nav a:hover { background: var(--surface-alt); text-decoration: none; color: var(--brand-primary); }
.main-nav a[aria-current]:not([aria-current="false"]) { color: var(--on-action); background: var(--brand-primary); text-decoration: none; }
.nav-note { font-family: var(--font-body); font-style: normal; font-size: .85rem; font-weight: 700; color: var(--brand-secondary); }

/* An asymmetric poster, with confetti kept away from the reading layer. */
.hero { position: relative; isolation: isolate; gap: 3rem; padding-block: 3rem 4rem; }
.hero > :not(.hero-confetti) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3rem, 6.1vw, 5.6rem); font-weight: 900; letter-spacing: -.06em; line-height: .99; margin-block: 1.5rem; }
.hero h1 em { color: var(--brand-primary); }
.hero-kicker, .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  max-width: 100%;
  padding: .45rem .9rem;
  border: 1px solid #c5b4d6;
  border-radius: 999px;
  background: #eee5f6;
  color: var(--brand-secondary);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tiny-rule { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-primary); flex: 0 0 auto; }
.hero-lead { max-width: 29rem; color: var(--text-secondary); font-size: 1.2rem; }
.hero-location { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 650; margin-top: 1.75rem; }
.hero-location .icon { color: var(--carnival-teal); }
.hero-photo { position: relative; padding: 1.25rem .5rem 0; margin-top: 1rem; }
.hero-photo-frame { padding: .7rem; border: 2px solid var(--text-primary); border-radius: 2rem .9rem 2rem .9rem; background: var(--surface); box-shadow: 9px 9px 0 var(--brand-secondary); rotate: 2deg; }
.hero-photo img { border-radius: 1.35rem .4rem 1.35rem .4rem; background: #f4ede5; object-fit: contain; }
.hero-photo figcaption { padding: 1.5rem .35rem 0; gap: .65rem; font-size: .8rem; }
.caption-index { color: var(--brand-secondary); font-weight: 800; }
.hero-stamp {
  position: absolute;
  z-index: 2;
  top: -1.25rem;
  right: .7rem;
  width: 7.75rem;
  height: 7.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1rem;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  background: var(--carnival-yellow);
  color: var(--text-primary);
  box-shadow: 3px 4px 0 var(--text-primary);
  rotate: 12deg;
  text-align: center;
  font-size: .85rem;
  font-weight: 850;
  line-height: 1.2;
}
.hero-stamp .icon { width: 1.8rem; height: 1.8rem; color: var(--brand-primary); }
.hero-reserve { border: 0; border-radius: 1.35rem; background: #eee5f6; padding: 2rem; }
.hero-reserve span { font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.05em; }
.hero-reserve .icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.hero-confetti { position: absolute; inset: .75rem 1rem; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-confetti > span, .hero-confetti > i { position: absolute; display: block; width: .7rem; height: 1.6rem; background: var(--carnival-yellow); rotate: -25deg; }
.hero-confetti > :nth-child(1) { top: 3%; left: 48%; }
.hero-confetti > :nth-child(2) { top: 12%; right: 2%; width: 1rem; height: 1rem; border: 3px solid var(--carnival-teal); border-radius: 50%; background: transparent; }
.hero-confetti > :nth-child(3) { bottom: 11%; left: 43%; background: var(--brand-primary); rotate: 35deg; }
.hero-confetti > :nth-child(4) { top: 40%; left: 49%; width: 1.2rem; height: 1.2rem; background: var(--carnival-mint); rotate: 15deg; }
.hero-confetti > :nth-child(5) { bottom: 4%; right: 5%; width: 1.4rem; height: .5rem; background: var(--carnival-teal); rotate: -15deg; }
.hero-confetti > :nth-child(6) { top: 1%; right: 28%; width: .6rem; height: .6rem; background: var(--brand-primary); border-radius: 50%; }
.hero-confetti > :nth-child(7) { bottom: 2%; left: 8%; width: .75rem; height: .75rem; border-radius: 50%; background: var(--carnival-yellow); }
.hero-confetti > :nth-child(8) { bottom: 8%; left: 59%; background: var(--brand-secondary); height: .9rem; rotate: 45deg; }

/* Every archive item gets the same tactile, clearly clickable treatment. */
.archive-strip { background: var(--carnival-yellow); border-block: 2px solid var(--text-primary); }
.archive-strip .container { padding-block: 1.1rem; }
.archive-strip p { font-weight: 850; letter-spacing: -.025em; }
.archive-strip a { color: var(--text-primary); font-weight: 800; gap: .6rem; }
.section-heading { margin-bottom: 2.25rem; }
.section-heading h2 { max-width: 42rem; }
.section-heading .text-link { color: var(--brand-primary); }
.article-grid, .album-grid, .photo-grid, .video-grid { gap: 1.75rem; }
.article-card, .album-card, .video-card {
  min-width: 0;
  padding: 0;
  border: 2px solid var(--text-primary);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--offset-shadow);
  transition: translate 180ms ease, box-shadow 180ms ease;
}
.article-card:hover, .album-card:hover, .video-card:hover { translate: 0 -4px; box-shadow: 6px 9px 0 var(--text-primary); }
.card-image { border-radius: calc(var(--card-radius) - 2px) calc(var(--card-radius) - 2px) 0 0; border-bottom: 2px solid var(--text-primary); background: #f4ede5; }
.editorial-image img { object-fit: contain; }
.card-copy { padding: 1.5rem; }
.card-copy h3 { padding-right: 0; }
.card-copy .eyebrow { font-size: .7rem; letter-spacing: .07em; }
.card-copy > p:not(.eyebrow) { line-height: 1.6; }
.card-copy > p:last-child { margin-bottom: 0; }
.card-arrow, .album-arrow { width: 2.25rem; min-height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--carnival-yellow); color: var(--text-primary); font-size: 1.3rem; flex: 0 0 auto; }
.card-arrow { margin-top: 1rem; }
.gallery-section { background: #eee5f6; border-block: 2px solid var(--brand-secondary); }
.gallery-section .eyebrow { color: var(--brand-secondary); }
.album-card a { border-radius: inherit; }
.album-copy { padding: 1.4rem; border-bottom: 0; align-items: flex-start; }
.album-copy h3 { font-size: 1.45rem; }
.image-reserve { font-weight: 800; color: var(--brand-secondary); text-align: center; gap: .7rem; }
.image-reserve .icon { width: 2rem; height: 2rem; }
.history-panel { position: relative; background: var(--brand-secondary); border: 2px solid var(--text-primary); border-radius: 2rem .8rem 2rem .8rem; box-shadow: 7px 7px 0 var(--carnival-yellow); padding: 2rem; gap: 2rem; }
.history-panel .eyebrow { color: var(--carnival-yellow); }
.history-panel h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.history-panel p { color: #f1e8fa; }
.members-strip { border-bottom: 0; padding: 2rem; margin-bottom: 2rem; background: var(--carnival-mint); border-radius: 1.5rem; }
.members-strip h2 { color: var(--brand-secondary); font-size: 1.6rem; }
.members-strip p { color: #395955; }

/* Interior pages retain the poster typography without compromising reading. */
.page-section { padding-top: 2.5rem; }
.page-heading { position: relative; max-width: 54rem; margin-bottom: 3rem; padding-bottom: 1.5rem; }
.page-heading::after { content: ""; display: block; width: 4rem; height: .45rem; background: var(--carnival-yellow); border-radius: 999px; margin-top: 1.5rem; }
.page-heading h1, .account-intro h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
.breadcrumbs { gap: .65rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--brand-secondary); font-weight: 700; }
.article-detail h1 { font-size: clamp(2.35rem, 4.5vw, 3.8rem); }
.article-cover { padding: .6rem; border: 2px solid var(--text-primary); border-radius: 1.5rem; background: var(--surface); box-shadow: 5px 5px 0 var(--brand-secondary); }
.article-cover img { border-radius: 1rem; background: #f4ede5; object-fit: contain; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.prose h3 { font-size: 1.55rem; }
.prose blockquote { margin-inline: 0; border-left: 6px solid var(--brand-primary); border-radius: 0 1.1rem 1.1rem 0; padding: 1.5rem; background: var(--surface-alt); color: var(--brand-secondary); font-size: 1.35rem; font-weight: 700; }
.prose th { background: #eee5f6; text-align: left; }
.prose img { border-radius: .8rem; }
.empty-state { border: 2px solid var(--text-primary); border-radius: 1.5rem; box-shadow: 5px 5px 0 var(--carnival-yellow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.empty-state h2 { color: var(--brand-secondary); }
.search-prompt { font-weight: 800; letter-spacing: -.04em; border-color: var(--border); }
.photo-card > a { border: 2px solid var(--text-primary); border-radius: 1.25rem; padding: .4rem; background: var(--surface); box-shadow: 4px 4px 0 var(--brand-secondary); transition: translate 180ms ease; }
.photo-card > a:hover { translate: 0 -3px; }
.photo-card img { border-radius: .8rem; background: #f4ede5; object-fit: contain; }
.photo-card figcaption { padding: 1rem .25rem 0; }
.photo-expand { bottom: .8rem; right: .8rem; min-height: 36px; padding: .3rem .65rem; background: var(--carnival-yellow); display: inline-flex; align-items: center; gap: .35rem; }
.video-card { overflow: hidden; }
.video-art { background: var(--brand-secondary); border-bottom: 2px solid var(--text-primary); }
.video-art .icon { width: 3rem; height: 3rem; color: var(--carnival-yellow); }
.video-art small { font-weight: 750; }
.pagination { gap: .8rem 1.2rem; }
.pagination p { font-weight: 700; }

/* Friendly forms: clear native controls and strong state contrast. */
.form-panel { border: 2px solid var(--text-primary); border-radius: 1.5rem; box-shadow: 6px 6px 0 var(--brand-secondary); padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-panel h2 { color: var(--brand-secondary); }
.field label { font-weight: 750; }
.field input, .field select, .field textarea { min-height: 50px; border: 2px solid #b5a7b4; border-radius: .8rem; padding: .8rem 1rem; background: #fffdf9; transition: border-color 160ms ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-secondary); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--carnival-teal); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field input::file-selector-button { border: 1px solid var(--brand-secondary); background: #eee5f6; color: var(--brand-secondary); border-radius: .6rem; font-weight: 700; }
.notice { border-width: 2px; border-left-width: 6px; border-radius: 1rem; }
.notice-error { background: #fff0ee; }
.notice-success { background: #eaf7ef; }
.notice-warning { background: #fff6d6; }
.upload-layout legend { font-weight: 800; letter-spacing: -.035em; }
.upload-aside { border: 1px solid #b8d4cb; border-radius: 1.25rem; background: var(--carnival-mint); padding: 1.5rem; min-width: 0; }
.upload-aside .eyebrow { color: #16664f; }
.file-list button { border-width: 1px; padding-inline: .8rem; }
.file-list button:hover { background: var(--surface-alt); }
.search-form { padding: 1.5rem; border: 1px solid var(--border); background: var(--surface); border-radius: 1.25rem; }

.member-upload { max-width: 48rem; margin-inline: auto; }
.admin-layout { display: grid; gap: 2rem; align-items: start; }
.admin-layout .form-panel { min-width: 0; }
.admin-user-list ul { list-style: none; padding: 0; margin: 0; }
.admin-user-list li { padding: .85rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.admin-user-list li span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.admin-user-list small { padding: .2rem .65rem; border-radius: 999px; background: var(--surface-alt); color: var(--brand-secondary); font-weight: 750; }
.admin-user-list .account-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.admin-user-list .account-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; min-width: 0; }
.admin-user-list .account-identity strong { overflow-wrap: anywhere; }
.admin-user-list small.account-sent { padding: 0; background: none; color: var(--text-secondary); font-weight: 400; }
.admin-user-list .account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.admin-user-list .account-actions form { margin: 0; }
.admin-user-list .account-profile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--border); }
.admin-user-list .account-profile .field { flex: 1 1 12rem; margin: 0; min-width: 0; }
.admin-user-list .account-profile .field label { font-size: .875rem; margin-bottom: .25rem; }
.admin-user-list .account-profile .button { flex: 0 0 auto; }
.button.button-small { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.temporary-password { display: inline-block; padding: .5rem .75rem; border: 1px dashed currentColor; border-radius: .375rem; font-size: 1.25rem; letter-spacing: .05em; overflow-wrap: anywhere; user-select: all; }
.admin-logout { max-width: 48rem; margin: 2rem auto 0; text-align: right; }
.member-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.member-session p { margin: 0; overflow-wrap: anywhere; }
.create-album { margin-block: -1rem 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--background); }
.create-album summary { cursor: pointer; font-weight: 750; color: var(--brand-secondary); min-height: 44px; align-content: center; }
.create-album .field { margin-top: 1rem; }
.upload-publication-note { color: var(--text-secondary); font-size: .95rem; margin-block: 1.5rem; }

/* Account and session security */
.account-grid { display: grid; gap: 2rem; align-items: start; }
.account-facts { display: grid; gap: .65rem; margin: 0 0 1.5rem; }
.account-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.account-facts dt { font-weight: 750; }
.account-facts dd { margin: 0; color: var(--text-secondary); overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: .1rem .6rem; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; font-weight: 750; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.admin-user-list li span.status-badge { display: inline-flex; flex: 0 0 auto; justify-content: center; padding: .1rem .6rem; border-radius: 999px; background: none; font-size: .8rem; }
.status-active { color: var(--success); }
.status-suspended { color: var(--error); }
.status-current { color: var(--brand-secondary); }
.session-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.session-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.session-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; min-width: 0; }
.session-identity small { flex-basis: 100%; color: var(--text-secondary); }
.session-item form { margin: 0; }
.session-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.session-actions form { margin: 0; }
.empty-note { color: var(--text-secondary); }
.account-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media (min-width: 60rem) { .account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .account-sessions { grid-column: 1 / -1; } }

/* A bold closing band, not another pale section. */
.site-footer { background: var(--brand-secondary); color: var(--on-action); border-top: 6px solid var(--carnival-yellow); padding-top: 3.5rem; }
.footer-brand { font-weight: 900; letter-spacing: -.055em; color: var(--on-action); font-size: 2rem; }
.footer-grid p, .footer-bottom { color: #e5d9f2; }
.footer-grid a:not(.footer-brand) { color: var(--on-action); gap: .5rem; text-decoration-color: #ba9dd5; }
.footer-grid a:hover { text-decoration-color: var(--carnival-yellow); }
.footer-grid .button { background: var(--carnival-yellow); color: var(--text-primary); }
.footer-bottom { border-color: #765394; }
.site-footer .wordmark-dot { color: var(--carnival-yellow); }
.site-footer :focus-visible { outline-color: var(--carnival-yellow); box-shadow: none; }
.photo-dialog { border: 2px solid var(--text-primary); border-radius: 1.4rem; padding: 1.25rem; box-shadow: 7px 7px 0 var(--carnival-yellow); }
.photo-dialog::backdrop { background: rgb(32 32 43 / .9); }
.photo-dialog img { border-radius: .75rem; }
.viewer-toolbar h2 { font-weight: 800; }

/* Visibility is the default. JS opts in only after its observer is ready. */
.reveal { opacity: 1; translate: none; }
.motion-ready .reveal { transition: opacity 550ms ease, translate 550ms cubic-bezier(.2,.7,.2,1); }
.motion-ready .reveal:not(.is-visible) { opacity: 0; translate: 0 18px; }
.motion-ready .reveal.is-visible { opacity: 1; translate: none; }
@keyframes carnival-arrive {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: carnival-arrive 500ms ease both; }
  .hero-stamp { animation: carnival-arrive 650ms ease both; }
}
@media (min-width: 40rem) {
  :root { --gutter: 1.75rem; }
  .hero { padding-block: 3.5rem 4.5rem; }
  .history-panel { padding: 3rem; }
}
@media (min-width: 64rem) {
  :root { --gutter: 2rem; --section-gap: 5.5rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; padding-block: 4.5rem 5rem; }
  .hero-photo { margin-top: 2.5rem; }
  .hero-photo-frame { rotate: 3deg; }
  .hero-stamp { right: .3rem; top: -1.8rem; width: 8.25rem; height: 8.25rem; }
  .header-top { padding-block: 1.4rem; }
  .main-nav { gap: .5rem; padding-bottom: 1.1rem; }
  .history-panel { gap: 3rem; }
  .account-layout { gap: 4rem; }
  .admin-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-section { padding-top: 3.5rem; }
}
@media (max-width: 63.999rem) {
  .hero-confetti > :nth-child(1) { left: auto; right: 5%; top: 1%; }
  .hero-confetti > :nth-child(3), .hero-confetti > :nth-child(4), .hero-confetti > :nth-child(6) { display: none; }
  .hero-photo { max-width: 42rem; width: 100%; justify-self: center; }
}
@media (max-width: 39.999rem) {
  :root { --gutter: 1.1rem; --section-gap: 3.5rem; --card-radius: 1.25rem; }
  body { font-size: 1.05rem; }
  .header-top { gap: .65rem; align-items: center; padding-block: 1rem; }
  .brand-lockup { gap: .6rem; }
  .brand-symbol { width: 2.7rem; height: 2.7rem; border-radius: .8rem; box-shadow: 2px 2px 0 var(--brand-secondary); }
  .brand-symbol .icon { width: 1.7rem; height: 1.7rem; }
  .wordmark { font-size: 1.55rem; }
  .wordmark-small { font-size: .56rem; letter-spacing: .07em; }
  .header-tools { gap: .2rem; }
  .utility-link { font-size: .78rem; gap: .3rem; }
  .menu-toggle { font-size: .85rem; padding: .4rem .7rem; }
  .main-nav { gap: .35rem; }
  .main-nav a { padding: .55rem .8rem; font-size: .9rem; }
  .main-nav.is-enhanced { gap: .3rem; align-items: stretch; padding-block: .25rem 1rem; }
  .main-nav.is-enhanced a { padding: .65rem 1rem; }
  .hero { padding-block: 2.25rem 3rem; gap: 2.25rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-lead { font-size: 1.08rem; }
  .hero .actions { flex-direction: row; align-items: center; gap: 1rem; }
  .hero-kicker, .hero .eyebrow { font-size: .67rem; padding-inline: .7rem; letter-spacing: .04em; }
  .hero-photo { padding: 1rem 0 0; }
  .hero-photo-frame { rotate: 0deg; box-shadow: 5px 5px 0 var(--brand-secondary); padding: .5rem; border-radius: 1.5rem .75rem 1.5rem .75rem; }
  .hero-photo img { border-radius: 1rem .3rem 1rem .3rem; }
  .hero-stamp { top: -1.15rem; right: .4rem; width: 6rem; height: 6rem; font-size: .7rem; padding: .65rem; gap: .2rem; }
  .hero-stamp .icon { width: 1.4rem; height: 1.4rem; }
  .hero-confetti > :nth-child(2), .hero-confetti > :nth-child(8) { display: none; }
  .archive-strip p { font-size: 1.08rem; }
  .archive-strip a { font-size: .92rem; }
  .article-grid, .album-grid, .photo-grid, .video-grid { gap: 1.75rem; }
  .card-copy, .album-copy { padding: 1.25rem; }
  .section-heading { gap: 1rem; margin-bottom: 1.75rem; }
  .history-panel { padding: 1.6rem; box-shadow: 4px 4px 0 var(--carnival-yellow); }
  .members-strip { padding: 1.5rem; }
  .form-panel { box-shadow: 4px 4px 0 var(--brand-secondary); }
  .search-form { padding: 1.15rem; }
  .search-form .field { flex-basis: 100%; }
  .photo-dialog { padding: .8rem; box-shadow: 3px 3px 0 var(--carnival-yellow); }
  .footer-grid { gap: 1.5rem; }
}
@media (max-width: 23rem) {
  .header-top { align-items: flex-start; }
  .brand-symbol { width: 2.25rem; height: 2.25rem; }
  .brand-symbol .icon { width: 1.4rem; height: 1.4rem; }
  .wordmark { font-size: 1.3rem; }
  .wordmark-small { font-size: .5rem; }
  .hero .actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-ready .reveal:not(.is-visible), .motion-ready .reveal.is-visible { opacity: 1; translate: none; }
  .button:hover, .article-card:hover, .album-card:hover, .video-card:hover, .photo-card > a:hover { translate: none; }
}
@media (forced-colors: active) {
  .hero-confetti { display: none; }
  .brand-symbol, .hero-stamp, .article-card, .album-card, .video-card, .photo-card > a, .form-panel, .history-panel { border: 2px solid CanvasText; box-shadow: none; }
  .main-nav a[aria-current]:not([aria-current="false"]) { background: Highlight; color: HighlightText; }
  .site-footer, .history-panel, .video-art { background: Canvas; color: CanvasText; }
  .site-footer a, .site-footer p, .footer-bottom, .history-panel p, .history-panel .eyebrow { color: CanvasText; }
}
@media print {
  .hero-confetti, .hero-stamp { display: none; }
  .reveal, .motion-ready .reveal:not(.is-visible) { opacity: 1; translate: none; }
  body, .gallery-section, .history-panel, .members-strip { background: white; color: black; }
  .article-card, .album-card, .video-card, .hero-photo-frame, .form-panel, .article-cover, .history-panel { box-shadow: none; rotate: none; break-inside: avoid; }
  .page-heading::after { background: black; }
}

/* Editorial workspace: native forms, readable previews and deliberate deletes. */
.editorial-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.editorial-nav form { margin-left: auto; }
.editorial .admin-layout, .editorial-audit, .editorial-danger { margin-top: 2rem; }
.editorial-list { list-style: none; padding: 0; }
.editorial-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.editorial-list li small { display: block; flex-basis: 100%; color: var(--text-secondary); }
.editorial-badge { border: 1px solid var(--brand-secondary); border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; font-weight: 750; background: var(--surface-alt); }
.editorial-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.editorial-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.editorial-toolbar button, .editorial [data-gallery-prev], .editorial [data-gallery-next] { min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--brand-secondary); border-radius: .65rem; background: var(--surface-alt); color: var(--brand-secondary); font: inherit; font-weight: 700; cursor: pointer; }
.editorial button:disabled { opacity: .55; cursor: not-allowed; }
.editorial #content { font-family: ui-monospace, monospace; line-height: 1.65; }
.editorial-cover { display: block; width: 100%; max-width: 42rem; max-height: 32rem; object-fit: contain; border-radius: 1rem; background: var(--surface-alt); }
.editorial-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; margin-block: 1rem; }
.editorial-photo-pick { text-align: left; font: inherit; color: var(--text-primary); border: 2px solid var(--border); background: var(--surface); border-radius: .8rem; padding: .5rem; cursor: pointer; overflow-wrap: anywhere; }
.editorial-photo-pick img { width: 100%; height: 7rem; object-fit: contain; }
.editorial-photo-pick span { display: block; font-size: .85rem; }
.editorial-photos { margin-top: 1.5rem; }
.editorial-photos .photo-card img { width: 100%; height: 12rem; object-fit: contain; }
.editorial fieldset { min-width: 0; margin-block: 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; }
.editorial legend { font-weight: 800; }
.editorial input[type="radio"], .editorial input[type="checkbox"] { width: auto; min-height: auto; accent-color: var(--brand-primary); margin-right: .5rem; }
.editorial-danger { border-color: var(--error); }
.editorial-danger summary { min-height: 44px; cursor: pointer; font-weight: 800; color: var(--error); }
.editorial-danger .button { background: var(--error); }
@media (max-width: 39.999rem) { .editorial-nav form { margin-left: 0; } .editorial .form-panel { padding: 1rem; } }

