/*
 * Copyright (c) 2026 Allen Ellison-Saavedra
 * All rights reserved.
 *
 * PROPRIETARY AND CONFIDENTIAL
 *
 * Unauthorized copying, modification, distribution, disclosure,
 * or use of this software is strictly prohibited without prior
 * written permission from the copyright holder.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
 * NONINFRINGEMENT.
 *
 * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE COPYRIGHT
 * HOLDER SHALL NOT BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
 * LIABILITY, WHETHER IN CONTRACT, TORT, OR OTHERWISE, ARISING
 * FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
 */

.event-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  color: #1c1915;
  font: 1rem/1.5 Georgia, "Iowan Old Style", serif;
}
.event-hero {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 0.4rem;
}
.event-page h1 { font-size: 2rem; line-height: 1.15; margin: 0.8rem 0 0.3rem; }
.event-meta { color: #5c5348; margin: 0 0 1rem; }
.event-page h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.event-pools, .event-needs, .event-faq { list-style: none; padding: 0; }
.event-pools li, .event-needs li, .event-faq li { margin: 0.4rem 0; }
.event-form label, .event-studio label { display: block; margin: 0.7rem 0 0.2rem; }
.event-form input, .event-form select, .event-studio input, .event-studio select {
  width: 100%;
  max-width: 24rem;
  font: inherit;
  padding: 0.4rem 0.5rem;
}
.event-form button, .event-studio button, .event-qr-actions a, .event-qr-actions button {
  font: inherit;
  margin: 0.8rem 0.4rem 0 0;
  padding: 0.45rem 0.8rem;
  background: #1c1915;
  color: #f7f3ea;
  border: 0;
  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;
}
.event-qr-mini {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.event-qr-mini img { width: 6rem; height: 6rem; }
.event-qr-light {
  width: min(92vw, 40rem);
  height: min(92vh, 44rem);
  border: 0;
  border-radius: 0.5rem;
  padding: 1rem;
}
.event-qr-light::backdrop { background: rgba(20, 16, 12, 0.82); }
.event-qr-light img { width: min(70vh, 100%); height: auto; display: block; margin: 0 auto; }
.event-note { background: #f3ecdf; padding: 0.6rem 0.8rem; border-radius: 0.3rem; }
.event-studio { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd4c6; }
.postcard-face { margin: 1.4rem 0 2rem; }
.postcard-face img { width: 100%; height: auto; display: block; background: #fff; }
.postcard-face a, .event-page > p a[download] { margin-right: 0.8rem; }
.dish-preview {
  width: 8rem;
  height: 8rem;
  margin: 0.6rem 0;
  display: grid;
  place-items: center;
  background: #f3ecdf;
  border-radius: 0.4rem;
  overflow: hidden;
}
.dish-preview[hidden] { display: none; }
.dish-preview img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  grid-area: 1 / 1;
}
.dish-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid #c8bfb0;
  border-top-color: #1c1915;
  border-radius: 50%;
  grid-area: 1 / 1;
  visibility: hidden;
}
.dish-preview.is-loading .dish-spinner { visibility: visible; }
.dish-preview.is-loading img { visibility: hidden; }
.dish-mark {
  display: none;
  grid-area: 1 / 1;
  font-size: 3rem;
  line-height: 1;
}
.dish-preview.is-unknown .dish-mark { display: block; }
.event-claims .dish-mark {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  background: #f3ecdf;
  border-radius: 0.4rem;
  font-size: 3rem;
}
@media (prefers-reduced-motion: no-preference) {
  .dish-preview.is-loading .dish-spinner { animation: dish-spin 0.8s linear infinite; }
}
@keyframes dish-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dish-preview.is-loading .dish-spinner { border-style: dashed; }
}
.event-claims { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.event-claims figure { width: 8rem; margin: 0; }
.event-claims img { width: 8rem; height: 8rem; object-fit: cover; }
.event-claims figcaption { font-size: 0.85rem; }
.event-claims form { margin: 0.2rem 0 0; }
.event-claims button { font: inherit; }
