.event-home { font-size: 12px; text-decoration: none; color: var(--muted); }
.event-home span { margin-left: 16px; }
.event-intro { padding: 68px 0 54px; text-align: center; }
.event-intro h1 { margin: 25px auto 21px; font-size: clamp(54px, 7vw, 94px); overflow-wrap: anywhere; }
.event-description { font-family: var(--serif); color: #7b8372; font-size: 22px; line-height: 1.45; }
.event-address { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; font-size: 11px; color: #888b80; margin-top: 24px; }
.event-address a { text-decoration: underline; text-underline-offset: 4px; }
.event-section-heading { border-bottom: 1px solid var(--line); padding: 0 0 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.event-section-heading h2 { font-size: 26px; }
.event-section-heading > span { font-size: 11px; color: var(--muted); }
.album-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 55px 20px 60px; }
.empty-keepsakes { width: 160px; height: 145px; position: relative; margin-bottom: 24px; }
.empty-photo { position: absolute; width: 102px; height: 124px; top: 9px; padding: 8px 8px 24px; border: 1px solid #e3e1d6; background: #fffefa; box-shadow: 0 7px 18px #293d3508; }
.photo-back { left: 11px; transform: rotate(-14deg); background: linear-gradient(#edece2 0 0) center 9px / 84px 83px no-repeat, #fffefa; }
.photo-front { left: 49px; top: 12px; transform: rotate(9deg); display: flex; flex-direction: column; }
.photo-front > span { background: #edf0e6; color: #a5ae96; font-size: 48px; line-height: 83px; }
.photo-front i { font-family: var(--serif); color: #a4937e; font-size: 11px; margin-top: 4px; }
.album-empty .eyebrow { font-size: 9px; color: #8b907e; }
.album-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.035em; margin: 12px 0 10px; }
.album-empty > p:last-child { font-size: 13px; line-height: 1.85; color: var(--muted); }
.event-note { display: flex; gap: 29px; align-items: center; border-block: 1px solid var(--line); padding: 27px 0 30px; }
.event-note-number { font-family: var(--serif); font-size: 54px; color: #899477; line-height: 1; letter-spacing: -.06em; }
.event-note h2 { font-size: 24px; margin-bottom: 4px; }
.event-note p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.event-note-signature { margin-left: auto; padding-right: 8px; font-family: var(--serif); font-style: italic; font-size: 19px; color: #a6856b; transform: rotate(-5deg); }
.event-footer { display: flex; justify-content: space-between; padding-block: 24px; color: #98998c; font-size: 10px; }
.event-footer a { text-decoration: none; }
.event-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 16px; }
.event-actions .button { margin-top: 0; }
.text-link { font-size: 12px; text-underline-offset: 4px; }
.status-message { color: var(--muted); padding-block: 16px; font-size: 13px; }
.status-message:empty { display: none; }
.event-gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding: 27px 0 25px; scrollbar-width: thin; }
.event-gallery figure { flex: 0 0 min(78vw, 310px); scroll-snap-align: start; }
.event-gallery img, .event-gallery video { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 3px; background: #e9e9e0; }
.event-gallery video { object-fit: contain; }
.event-gallery figcaption { display: flex; justify-content: space-between; gap: 15px; padding-top: 12px; font-size: 12px; }
.event-gallery figcaption a { font-size: 10px; color: var(--muted); text-decoration: none; }
.event-gallery small { display: block; color: var(--muted); font-size: 10px; margin-top: 10px; }
.participant-intro { text-align: center; padding: 58px 0 46px; }
.participant-intro h1 { font-size: clamp(45px, 6vw, 74px); margin: 20px auto 17px; overflow-wrap: anywhere; }
.participant-intro > p:last-child { color: var(--muted); }
.participant-layout { display: grid; grid-template-columns: minmax(220px, 340px) minmax(280px, 1fr); gap: clamp(35px, 7vw, 100px); max-width: 970px; margin: 0 auto 65px; align-items: center; }
.qr-card { text-align: center; border: 1px solid var(--line); background: #fffefa; padding: 22px 20px 28px; border-radius: 4px; overflow-wrap: anywhere; }
.qr-card img { width: min(100%, 294px); height: auto; background: white; display: block; margin-inline: auto; }
.qr-card h2 { font-size: 27px; margin-top: 14px; }
.qr-card p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 8px 0 17px; }
.qr-save { font-size: 11px; display: block; margin-top: 13px; color: var(--muted); text-underline-offset: 4px; }
.participant-form-panel h2 { font-size: 35px; margin: 13px 0 13px; line-height: 1.15; }
.participant-form-panel p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.participant-form-panel form > label:not(.file-picker) { display: block; font-size: 12px; margin: 25px 0 8px; }
.participant-form-panel input[type=text] { display: block; width: 100%; font: inherit; background: #fffefa; border: 1px solid #d4d9cb; padding: 12px 14px; border-radius: 3px; color: var(--ink); }
.participant-form-panel .button { border: 0; margin-top: 22px; }
.form-note { color: #8b8d7f; font-size: 11px !important; line-height: 1.8; margin-top: 17px; }
.file-picker { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; padding: 24px 12px; border: 1px dashed #bec8b0; border-radius: 4px; margin-top: 23px; font-size: 13px; background: #f2f4eb; cursor: pointer; }
.file-picker > span { font-size: 26px; color: #84916f; }
.file-picker input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.small-empty { color: var(--muted); text-align: center; padding: 45px 20px; border-bottom: 1px solid var(--line); }
.participant-memories { margin-bottom: 40px; }
.management-toolbar { display: flex; justify-content: space-between; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 27px; }
.management-toolbar p { font-size: 12px; color: var(--muted); }
.management-toolbar > div { display: flex; align-items: center; gap: 14px; }
.management-toolbar .button { margin-top: 0; border: 0; }
.management-toolbar .header-link { background: transparent; }
.qr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 24px; }
@media (max-width: 640px) {
  .event-intro { padding: 49px 0 42px; }
  .event-description { font-size: 20px; }
  .event-section-heading { align-items: start; flex-direction: column; gap: 3px; }
  .album-empty { padding: 44px 0 48px; }
  .album-empty h3 { font-size: 30px; }
  .event-note { gap: 20px; align-items: start; }
  .event-note-number { font-size: 46px; padding-top: 8px; }
  .event-note-signature { display: none; }
  .participant-intro { padding: 41px 0 34px; }
  .participant-layout { display: flex; flex-direction: column; align-items: stretch; gap: 32px; margin-bottom: 48px; }
  .participant-form-panel { order: -1; }
  .participant-layout .qr-card { max-width: 330px; align-self: center; width: 100%; }
  .participant-layout .qr-card img { width: 225px; }
  .participant-form-panel h2 { font-size: 30px; }
  .event-actions { flex-wrap: wrap; gap: 14px; }
  .management-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
  .management-toolbar > div { justify-content: space-between; gap: 10px; }
  .management-toolbar .button { font-size: 11px; padding: 13px; }
}
@media print {
  body { background: white; }
  .site-header, .event-footer, .management-toolbar, #management-status, #participants-context > .form-note, .qr-card a { display: none !important; }
  .wrap { width: 100%; }
  .participant-intro { padding: 10px 0 25px; }
  .participant-intro h1 { font-size: 32px; }
  .qr-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .qr-card { break-inside: avoid; background: white; border: 1px solid #aaa; padding: 14px; }
  .qr-card img { width: 220px; }
}
