/* =========================================================
   danbeli25 — Silver Anniversary "Find Your Table"

   The hero photo fades into the parchment surface. On wide
   screens the whole column becomes a card sitting on a
   dark warm background — like an invitation on a table.
   ========================================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ----- Tokens ----- */
:root {
  --color-bg:        #f1eeea;
  --color-bg-outer:  #2c2623;       /* warm charcoal, desktop only */
  --color-surface:   #ffffff;
  --color-text:      #3b3330;
  --color-text-soft: #7a6e6a;
  --color-accent:    #a3917c;
  --color-border:    #ddd6ce;
  --color-rose:      #b87d77;
  --color-highlight: #f0ebe5;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body:  'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --shadow-sm: 0 1px 3px rgba(59,51,48,0.06);
  --transition: 150ms ease;
}

/* ----- Base ----- */
html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   PAGE COLUMN
   On mobile: full-bleed parchment, fills the viewport.
   On desktop: a centered card on a dark background.
   ============================================================ */
.page-column {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-bg);
}

/* ============================================================
   HERO — photo with gradient fade + overlaid names
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

/*
  Gradient overlay on the bottom portion of the photo.
  Melts the image into the parchment background.
*/
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(241,238,234,0.4) 40%,
    rgba(241,238,234,0.85) 70%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

/*
  Names anchored to the bottom of the hero,
  sitting in the gradient-fade zone.
*/
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 20px 16px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.names {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

/* ============================================================
   CONTENT — flows seamlessly from the hero
   ============================================================ */
.content {
  padding: 0 24px 40px;
}

.tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--color-text-soft);
  margin-bottom: 28px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search {
  margin-bottom: 20px;
}

.search-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.search-input::placeholder {
  color: #c4bdb5;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(163,145,124,0.15);
}

/* ============================================================
   RESULTS
   ============================================================ */
.results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: card-enter 200ms ease both;
}

.result-card:nth-child(1) { animation-delay: 0ms; }
.result-card:nth-child(2) { animation-delay: 40ms; }
.result-card:nth-child(3) { animation-delay: 80ms; }
.result-card:nth-child(4) { animation-delay: 120ms; }
.result-card:nth-child(5) { animation-delay: 160ms; }
.result-card:nth-child(6) { animation-delay: 200ms; }
.result-card:nth-child(7) { animation-delay: 240ms; }
.result-card:nth-child(8) { animation-delay: 280ms; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.result-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
}

.result-table {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  white-space: nowrap;
  margin-left: 16px;
}

.result-table-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-rose);
  margin-left: 3px;
  letter-spacing: 0;
  text-transform: none;
}

/* Empty / no-result / error */
.state-message {
  text-align: center;
  padding: 28px 20px;
  color: var(--color-text-soft);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--color-highlight);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.state-message.error {
  color: #8c4040;
  background-color: #faf0f0;
  border-color: #e8d0d0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-border);
}

/* ============================================================
   RESPONSIVE — Desktop "invitation on a dark table"
   ============================================================ */
@media (min-width: 480px) {
  .names {
    font-size: 42px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .tagline {
    font-size: 22px;
  }

  .search-input {
    font-size: 18px;
  }
}

/*
  At widths where the 600px column no longer fills the
  screen, switch the body to a dark warm background and
  give the column a subtle shadow so it reads as a card.
*/
@media (min-width: 660px) {
  body {
    background-color: var(--color-bg-outer);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
  }

  .page-column {
    min-height: auto;
    border-radius: 4px;
    box-shadow:
      0 2px 8px rgba(0,0,0,0.18),
      0 12px 40px rgba(0,0,0,0.25);
  }

  .hero {
    border-radius: 4px 4px 0 0;
    overflow: hidden;
  }

  .footer {
    padding-bottom: 28px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .result-card { animation: none; }
  .search-input { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
