:root {
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Outfit", sans-serif;
  --color-amber: #e8700a;
  --color-amber-light: #f59a3a;
  --color-canvas: #1a0a0a;
  --color-surface: #2a0e0e;
  --color-surface-2: #3a1515;
  --color-border: #3a1515;
  --color-border-light: #4a2020;
  --color-cream: #f5ede0;
  --color-text-muted: #c9a98a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-canvas);
  color: var(--color-cream);
}

h1, h2 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

::-webkit-scrollbar {
  width: 0px;
}

/* ---------- Entry page ---------- */

.entry-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1a0a0a 0%, #2a0e0e 50%, #1a0a0a 100%);
}

.festival-strip {
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-amber);
}

.festival-strip span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
}

.entry-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1rem;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .entry-layout {
    flex-direction: row;
    align-items: stretch;
    padding: 2.5rem 1.5rem;
  }
}

.hero-panel {
  flex: 1;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 420px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  mix-blend-mode: luminosity;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 10, 10, 0.98) 0%, rgba(26, 10, 10, 0.55) 45%, rgba(26, 10, 10, 0.15) 100%);
}

.hero-rim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(232, 112, 10, 0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem 2rem 2.5rem;
  padding-top: 260px;
}

@media (min-width: 640px) {
  .hero-content {
    padding-top: 320px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 2.5rem;
    padding-top: 240px;
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.hero-brand span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0000ff;
}

.hero-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-headline a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
}

.hero-headline .accent {
  color: var(--color-amber);
}

.hero-headline .mobile-prefix {
  display: inline;
}

@media (min-width: 1024px) {
  .hero-headline a {
    pointer-events: none;
    cursor: default;
  }

  .hero-headline .mobile-prefix {
    display: none;
  }
}

.hero-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.hero-description strong {
  color: var(--color-cream);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-features .feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-features .icon {
  font-size: 1rem;
}

.hero-features .text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-footnote {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a3a2a;
}

/* form panel */

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .form-panel {
    width: 440px;
    flex: none;
  }
}

.form-card {
  border-radius: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form-card h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.raffle-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber-light);
}

.field-group input {
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border-light);
  color: var(--color-cream);
  font-family: var(--font-body);
}

.field-group input::placeholder {
  color: #8a6a5a;
}

.field-group input:focus {
  outline: none;
  border-color: var(--color-amber);
}

.field-group input.input-validation-error {
  border-color: var(--color-amber);
}

.field-validation-error {
  display: block;
  font-size: 0.75rem;
  color: var(--color-amber);
}

.field-validation-valid {
  display: none;
}

.submit-btn {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-amber);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit-btn:hover {
  background: #c9600a;
  transform: translateY(-1px);
}

.form-privacy-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: #5a3a3a;
}

/* ---------- Info page ---------- */

.festival-strip-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.festival-strip-link:hover {
  opacity: 1;
}

.info-headline {
  margin-bottom: 1.5rem;
}

/* On desktop the info page is sized to the window: hero and gallery share the
   viewport height and shrink to fit rather than growing past it. */
@media (min-width: 1024px) {
  .entry-page.info-page {
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
  }

  .info-page .entry-layout {
    min-height: 0;
    padding-block: 1.5rem;
  }

  .info-page .hero-panel {
    min-height: 0;
  }

  .info-page .hero-content {
    padding-top: 1.5rem;
  }

  .info-page .info-headline {
    font-size: clamp(2rem, min(7vh, 6vw), 4.5rem);
  }
}

.hero-description.info-lede {
  font-size: 1rem;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}

.hero-description.info-sub {
  max-width: 24rem;
  margin-bottom: 2rem;
}

.cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--color-amber);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background: #c9600a;
  transform: translateY(-1px);
}

.hero-footnote.info-footnote {
  margin-top: 2rem;
}

.gallery-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

@media (min-width: 1024px) {
  .gallery-panel {
    width: 440px;
    flex: none;
  }
}

.gallery-panel h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  color: #5a3a3a;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* On desktop the grid takes whatever height the row has (never more than the
   viewport), so the tiles shrink to fit instead of pushing the hero text below the fold. */
@media (min-width: 1024px) {
  .gallery-grid {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(4, minmax(6rem, 1fr));
  }
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-light);
}

.gallery-tile.featured {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

@media (min-width: 1024px) {
  .gallery-tile,
  .gallery-tile.featured {
    aspect-ratio: auto;
  }
}

.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ---------- Thank you page ---------- */

.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0d0505;
}

.thankyou-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thankyou-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.08;
  mix-blend-mode: luminosity;
  transform: scale(1.08);
}

.thankyou-bg .radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, #0d0505 70%);
}

.thankyou-ring {
  position: relative;
  margin-bottom: 2.5rem;
}

.thankyou-ring .badge {
  position: relative;
  z-index: 1;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.75rem;
  background: radial-gradient(circle, #3a1515 0%, #2a0e0e 100%);
  border: 2px solid var(--color-amber);
  box-shadow: 0 0 60px rgba(232, 112, 10, 0.3);
}

.thankyou-ring .ring-1,
.thankyou-ring .ring-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-amber);
}

.thankyou-ring .ring-1 {
  inset: -0.75rem;
  opacity: 0.2;
}

.thankyou-ring .ring-2 {
  inset: -1.5rem;
  opacity: 0.1;
}

.confirmed-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(232, 112, 10, 0.13);
  color: var(--color-amber-light);
  border: 1px solid rgba(232, 112, 10, 0.27);
  margin-bottom: 1.5rem;
}

.thankyou-headline {
  position: relative;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--color-cream);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.thankyou-headline .accent {
  color: var(--color-amber);
}

.thankyou-lede {
  position: relative;
  font-size: 1.125rem;
  max-width: 32rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.thankyou-lede strong {
  color: var(--color-cream);
}

.thankyou-sub {
  position: relative;
  font-size: 0.9rem;
  max-width: 26rem;
  line-height: 1.6;
  color: #7a5a4a;
  margin-bottom: 2.5rem;
}

.thankyou-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  max-width: 24rem;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.thankyou-card .card-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber-light);
  margin-bottom: 1rem;
}

.thankyou-card .card-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.thankyou-card .card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}

.thankyou-card .card-footer img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: #0d0505;
}

.thankyou-footnote {
  position: relative;
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #4a2a2a;
}
