/* Red's — colours taken from the room */
:root {
  --wall: #3B4935;        /* the green walls */
  --bottle: #26301F;      /* deeper bottle green */
  --velvet: #4E1A2A;      /* plum velvet curtains */
  --lamp: #F2B25C;        /* glow of the glass pendants */
  --lamp-deep: #E39A3B;
  --paper: #F2E8D5;       /* lamp-lit text */
  --paper-soft: rgba(242, 232, 213, 0.78);
  --line: rgba(242, 232, 213, 0.22);

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --space: clamp(4.5rem, 10vw, 8rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  overflow-x: clip; /* keeps the spreading glow from causing sideways scroll */
  background: var(--wall);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1, .hero-title { font-size: clamp(2.75rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.6rem; line-height: 1.15; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--lamp); color: var(--bottle); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Arch frame: the doorways between rooms at Red's */
.arch { position: relative; margin: 0; overflow: hidden; border-radius: 999px 999px 6px 6px; background: var(--bottle); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem;
  background: var(--lamp); color: var(--bottle);
  font: 600 1.05rem/1 var(--body);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--lamp-deep); }
.button-small { min-height: 42px; padding: 0 1.1rem; font-size: 0.95rem; }
/* Second choice beside the main button: same shape, lamp-coloured outline */
.button-outline { background: transparent; color: var(--lamp); box-shadow: inset 0 0 0 1.5px var(--lamp); }
.button-outline:hover { background: var(--lamp); color: var(--bottle); }

.text-link {
  color: var(--lamp); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Once pinned to the top, the header gets a glassy wall-green backing */
.site-header.is-stuck {
  background: rgba(59, 73, 53, 0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
/* The small logo arrives as the big one leaves */
.brand { display: block; line-height: 0; opacity: var(--uncork, 1); }
.brand svg { width: 112px; height: auto; fill: var(--paper); }
.site-header nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--paper-soft); }
.nav-links a:hover { color: var(--paper); }
.nav-reserve {
  color: var(--lamp); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.25em; white-space: nowrap;
}
.nav-reserve:hover { text-decoration-thickness: 2px; }
.wide-only { display: none; }
@media (min-width: 760px) { .nav-links { display: flex; } .wide-only { display: inline; } }
@media (max-width: 759px) { .site-header nav { gap: 1.1rem; } }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 var(--space); }
.hero-inner { display: grid; gap: 2.5rem; align-items: end; }
.hero-title { max-width: 12ch; }
.lede { font-size: 1.3rem; color: var(--paper); max-width: 34rem; margin-top: 1.75rem; }
.lede-events { color: var(--paper-soft); max-width: 34rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 2.75rem; }
.hero-facts { display: grid; gap: 1rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 34rem; }
.hero-facts dt { font-size: 0.9rem; color: var(--paper-soft); }
.hero-facts dd { margin: 0; font-weight: 500; }
.hero-photo { aspect-ratio: 2 / 3; max-height: 78vh; width: 100%; max-width: 480px; justify-self: center; }
/* The first section settles into place as the opening leaves */
.hero-inner {
  transform: translateY(calc((1 - var(--uncork, 1)) * 56px));
  opacity: calc(0.25 + var(--uncork, 1) * 0.75);
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-photo { justify-self: end; }
}


/* Opening: the Red's logo writes itself in under a lamp glow */
.opening {
  position: relative; /* no clipping: the glow spills into the next section */
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5rem var(--gutter); text-align: center;
  /* deep bottle green easing into the wall green below, with no hard edge */
  background: linear-gradient(to bottom, var(--bottle) 0%, var(--bottle) 40%, var(--wall) 100%);
}
.opening::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 90vmin; height: 60vmin;
  /* the glow pours downward as the page is uncorked */
  transform: translate(-50%, calc(-50% + var(--uncork, 0) * 38vh)) scale(calc(1 + var(--uncork, 0) * 0.9));
  background: radial-gradient(circle at 50% 45%, rgba(242, 178, 92, 0.2) 0%, rgba(107, 20, 32, 0.12) 40%, transparent 68%);
  filter: blur(6px);
}
/* The logo and hours rise and ease away as you scroll, like a cork leaving the bottle */
.opening-stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(calc(var(--uncork, 0) * -26vh)) scale(calc(1 - var(--uncork, 0) * 0.2));
  opacity: calc(1 - var(--uncork, 0) * 1.3);
}
.opening h1 { position: relative; z-index: 1; }
.opening-logo { display: block; width: min(80vw, 620px); height: auto; fill: var(--paper); }
.opening-hours {
  position: relative; z-index: 1; margin: 2.25rem 0 0;
  font-size: 1.05rem; color: var(--lamp);
}
.opening-cue-wrap {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center;
  opacity: calc(1 - var(--uncork, 0) * 4);
}
.opening-cue {
  position: relative;
  padding: 8px 12px 30px; font-size: 0.9rem; text-decoration: none; color: var(--paper-soft);
}
.opening-cue::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 22px;
  background: currentColor; opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .opening::before { opacity: 0; animation: glow-in 2.4s ease 0.4s forwards; }
  .opening-logo { clip-path: inset(0 100% 0 0); animation: write 1.8s cubic-bezier(.6, .1, .3, 1) 0.5s forwards; }
  .opening-hours { opacity: 0; transform: translateY(12px); animation: rise 1s ease 2.2s forwards; }
  .opening-cue { opacity: 0; animation: cue-in 1s ease 2.7s forwards; }
  @keyframes glow-in { to { opacity: 1; } }
  @keyframes write { to { clip-path: inset(0 0 0 0); } }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  @keyframes cue-in { to { opacity: 1; } }
}

/* Events */
.events { padding: var(--space) 0; background: var(--bottle); }
.section-intro { color: var(--paper-soft); max-width: 36rem; margin: 1.25rem 0 0; }
.event-list { display: grid; gap: 3rem; margin-top: 3.5rem; }
.event { display: grid; grid-template-columns: 112px 1fr; gap: 1.25rem; align-items: center; }
.event-photo { aspect-ratio: 3 / 4; }
.event-text h3 { margin-bottom: 0.5rem; }
.event-text p { color: var(--paper-soft); max-width: 30rem; }

@media (min-width: 700px) {
  .event { grid-template-columns: 180px 1fr; gap: 2.5rem; }
}
@media (min-width: 1000px) {
  .event-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .event { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 1.75rem; }
  .event-photo { max-width: 260px; }
}

/* Plan an event — behind the curtain */
.plan { padding: var(--space) 0; background: var(--velvet); }
.plan-inner { display: grid; gap: 3rem; }
.plan-text p { color: var(--paper-soft); max-width: 26rem; margin-top: 1.25rem; }
.plan-direct { line-height: 1.8; }
.plan-direct a { color: var(--paper); font-weight: 600; }

.plan-form { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .plan-form { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field-wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .plan-inner { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
}

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 1rem; }
.optional { font-weight: 400; color: var(--paper-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem;
  font: 400 1.05rem/1.4 var(--body); color: var(--paper);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(242, 232, 213, 0.35); border-radius: 6px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { color: #1d1d1d; background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--lamp); }
.field input::-webkit-calendar-picker-indicator { filter: invert(0.9); }
.field [aria-invalid="true"] { border-color: var(--lamp); box-shadow: inset 4px 0 0 var(--lamp); }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-status { margin: 0; max-width: 32rem; font-weight: 500; }
.form-status.is-error { color: var(--lamp); }
.form-status:focus { outline: none; }
.button[disabled] { opacity: 0.6; cursor: progress; }

.plan-form.is-sent .field, .plan-form.is-sent .button { display: none; }
.plan-form.is-sent .form-status { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.25; }


/* What we pour: pick a phrase, the photo follows */
.pour { padding: var(--space) 0; background: var(--wall); }
.pour-inner { display: grid; gap: 2rem; align-items: center; }
.pour-list { list-style: none; margin: 0; padding: 0; }
.pour-item {
  display: block; width: 100%; padding: 0.55rem 0; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pour-name {
  display: block; font-family: var(--display);
  font-size: clamp(2.3rem, 5.6vw, 4.5rem); line-height: 1.02;
  color: rgba(242, 232, 213, 0.32);
  transition: color 0.25s ease, transform 0.35s ease;
}
.pour-item:hover .pour-name { color: var(--paper); }
.pour-item.is-active .pour-name { color: var(--lamp); transform: translateX(0.25em); }
.pour-line {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  font-size: 1.15rem; color: var(--paper-soft);
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.pour-item.is-active .pour-line { max-height: 4.5em; opacity: 1; margin: 0.5rem 0 0.4rem 0.45em; }

.pour-photos { aspect-ratio: 3 / 4; width: 100%; max-width: 440px; justify-self: center; }
.pour-photos img { opacity: 0; transition: opacity 0.6s ease; }
.pour-photos img.is-active { opacity: 1; }
@media (max-width: 899px) { .pour-photos { max-width: 300px; } .pour-copy { order: 1; } }
@media (min-width: 900px) {
  .pour-inner { grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "title photo" "copy photo"; column-gap: 5rem; row-gap: 1.5rem; align-items: start; }
  .pour-title { grid-area: title; align-self: end; }
  .pour-copy { grid-area: copy; }
  .pour-photos { grid-area: photo; justify-self: end; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pour-name, .pour-line, .pour-photos img { transition: none; }
}

/* The room */
.room { padding: var(--space) 0 0; background: var(--wall); }
.room-strip {
  list-style: none; margin: 2.5rem 0 0; padding: 0 var(--gutter);
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.room-strip::-webkit-scrollbar { display: none; }
.room-strip li { scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; }
.room-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .room-strip { grid-auto-columns: 36%; } }
@media (min-width: 1100px) {
  .room-strip { grid-auto-columns: auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; max-width: 1440px; margin-inline: auto; }
}

/* Visit */
.visit { padding: var(--space) 0; background: var(--wall); }
.visit-facts { display: grid; gap: 2rem; margin: 2.5rem 0 0; }
@media (min-width: 800px) { .visit-facts { grid-template-columns: repeat(3, 1fr); } }
.visit-facts dt { font-family: var(--display); font-size: 1.35rem; margin-bottom: 0.5rem; }
.visit-facts dd { margin: 0; line-height: 1.75; color: var(--paper-soft); }
.visit-facts dd a { color: var(--paper); }
.visit-facts .text-link { color: var(--lamp); display: inline-block; margin-top: 0.4rem; }

/* Footer */
.site-footer { background: var(--bottle); padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.frog { width: 64px; height: auto; background: var(--paper); border-radius: 999px 999px 6px 6px; padding: 8px 6px 4px; }
.footer-inner p { margin: 0; color: var(--paper-soft); font-size: 1rem; }
.footer-inner .small { margin-left: auto; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Menus: button in What We Pour, plus a viewer that opens over the page */
.pour-menus { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2.25rem; }
.pour-note { margin: 0; font-size: 0.95rem; color: var(--paper-soft); }

.menus {
  width: min(920px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 12px; overflow: auto;
  background: var(--bottle); color: var(--paper);
}
.menus::backdrop { background: rgba(20, 24, 16, 0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html.menus-open { overflow: hidden; }

.menus-bar {
  position: sticky; top: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1rem; align-items: start;
  padding: 1.25rem 1.25rem 1rem; background: var(--bottle); border-bottom: 1px solid var(--line);
}
.menus-heading h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.menus-note { margin: 0.35rem 0 0; color: var(--lamp); font-size: 1rem; }
.menus-close {
  min-height: 40px; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--line); font: 600 0.95rem/1 var(--body);
}
.menus-close:hover { border-color: var(--paper); }
.menus-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menus-tabs a {
  padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.menus-tabs a:hover { box-shadow: inset 0 0 0 1px var(--lamp); color: var(--lamp); }

.menus-body { display: grid; gap: 2rem; padding: 1.25rem; }
.menu-sheet { margin: 0; scroll-margin-top: 140px; }
.menu-sheet img { width: 100%; height: auto; border-radius: 4px; background: #fff; }
.menu-sheet figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.75rem; font-family: var(--display); font-size: 1.15rem;
}
.menu-sheet figcaption .text-link { font-family: var(--body); font-size: 1rem; }
@media (min-width: 700px) { .menus-bar, .menus-body { padding-left: 2rem; padding-right: 2rem; } }
.menu-sheet > a { display: block; cursor: zoom-in; }
