/* ============================================================================
   Ducey's on the Lake — version 4, "The Pass"
   ----------------------------------------------------------------------------
   A hard vertical seam held down the entire page. Left half is a pinned
   photographic panel that swaps as you move through the sections; right half
   scrolls. The restaurant name straddles the seam at the top, half in each
   panel, which is the one moment the two sides are treated as one surface.

   Reference: Face Formula's split wordmark, Faculty Department's pinned-left /
   scrolling-right column.

   Palette stays in the blue but goes colder than v3: steel and slate rather
   than warm navy, with gold as the only warm thing on the page. No cream, no
   paper — the brief was to drop the white.

   Type: Newsreader (display, real italics) and Work Sans. Neither appears in
   v1, v2 or v3.
============================================================================ */

:root {
  --ink:    #050B14;
  --steel:  #0A1626;
  --slate:  #12243B;
  --edge:   rgba(160, 190, 220, .2);
  --edge-2: rgba(160, 190, 220, .38);

  --gold:   #FFCD2A;
  --gold-d: #B98F1E;

  --fg:      #DEE8F3;
  --fg-dim:  #8CA3BD;
  --fg-faint:#55708F;

  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ui: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --seam: 44%;              /* where the split falls on desktop */
  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 16px; font-weight: 300; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
em { font-style: italic; }

.tag { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--fg-faint); font-weight: 500; }
.tag-gold { color: var(--gold-d); }

.ln {
  display: inline-block; position: relative;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: .4rem; cursor: pointer;
}
.ln::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; opacity: .35; transition: opacity .35s;
}
.ln:hover { color: var(--gold); }
.ln:hover::after { opacity: 1; }

/* ==========================================================================
   THE SEAM
   ==========================================================================
   `.stage` is the two-panel shell. `.plate` is pinned; `.column` scrolls past
   it. Below 900px the plate stops being sticky and becomes a normal banner so
   the page reads as one column.
   ========================================================================== */
.stage { display: grid; grid-template-columns: var(--seam) 1fr; min-height: 100svh; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }

.plate {
  position: sticky; top: 0; align-self: start;
  height: 100svh; overflow: hidden;
  border-right: 1px solid var(--edge);
  background: var(--steel);
}
@media (max-width: 900px) {
  .plate { position: relative; height: 58svh; border-right: 0; border-bottom: 1px solid var(--edge); }
}

.plate-shot {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 8s var(--ease);
  filter: saturate(.5) brightness(.66) contrast(1.05);
}
.plate-shot.on { opacity: 1; transform: scale(1.12); }
.plate::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,11,20,.86), rgba(5,11,20,.18) 55%, rgba(5,11,20,.5));
  pointer-events: none;
}

/* caption pinned to the bottom of the plate, tells you what you are looking at */
.plate-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.plate-cap .who { font-family: var(--display); font-size: 1.25rem; }
.plate-cap .what { text-align: right; }

/* the wordmark that straddles the seam */
.seam-name {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: var(--seam) 1fr;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: normal;
}
.seam-name span {
  font-family: var(--display); font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  padding: 1.1rem var(--pad);
  white-space: nowrap;
}
.seam-name .a { text-align: right; padding-right: .5rem; }
.seam-name .b { font-style: italic; color: var(--gold); padding-left: .5rem; }
@media (max-width: 900px) {
  .seam-name { grid-template-columns: auto 1fr; background: rgba(5,11,20,.9); backdrop-filter: blur(12px); }
  .seam-name .a { text-align: left; padding-right: 0; }
}

/* ==========================================================================
   THE SCROLLING COLUMN
   ========================================================================== */
.column { padding: 0 var(--pad); }
.sect { padding: clamp(5rem, 12vh, 9rem) 0; border-bottom: 1px solid var(--edge); max-width: 760px; }
.sect:last-child { border-bottom: 0; }
.sect h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: .8rem; }
.sect h2 em { color: var(--gold); }
.sect > p { margin: 1.3rem 0 0; color: var(--fg-dim); max-width: 56ch; }
.sect > p.lead { color: var(--fg); font-size: 1.08rem; }
.acts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.4rem; }

/* first section sits full height so the seam reads before anything scrolls */
.sect-open { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 6rem; }
.sect-open h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.sect-open h1 em { color: var(--gold); }
.open-status { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.open-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); }
.open-dot.live { background: var(--gold); box-shadow: 0 0 0 0 rgba(255,205,42,.5); animation: p 2.6s ease-out infinite; }
@keyframes p { to { box-shadow: 0 0 0 10px rgba(255,205,42,0); } }

/* ==========================================================================
   ROOMS — small numbered list, each row drives the plate
   ========================================================================== */
.rooms { margin-top: 2.4rem; border-top: 1px solid var(--edge); }
.room {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: 1.2rem; align-items: baseline;
  width: 100%; padding: 1.15rem 0; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--edge); color: inherit;
  transition: padding-left .45s var(--ease), color .3s;
}
.room:hover, .room.on { padding-left: .8rem; color: var(--gold); }
.room .n { font-size: .64rem; letter-spacing: .14em; color: var(--fg-faint); }
.room .t { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.room .h { font-size: .68rem; letter-spacing: .1em; color: var(--fg-faint); white-space: nowrap; }
.room:hover .h, .room.on .h { color: inherit; }

/* ==========================================================================
   MENU
   ========================================================================== */
.svc-row { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2rem; border-bottom: 1px solid var(--edge); padding-bottom: 1.2rem; }
.svc {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--fg-faint); cursor: pointer; transition: color .35s;
}
.svc:hover { color: var(--fg-dim); }
.svc.on { color: var(--gold); font-style: italic; }
.svc-hours { margin-top: 1rem; }

.course { margin-top: 2.6rem; }
.course > h3 {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  font-family: var(--ui); color: var(--gold-d);
  padding-bottom: .6rem; border-bottom: 1px solid var(--edge);
}
.course > .note { margin: .8rem 0 0; font-size: .8rem; color: var(--fg-faint); line-height: 1.5; }
.dish { padding: .75rem 0; border-bottom: 1px solid rgba(160,190,220,.08); }
.dish-r { display: flex; align-items: baseline; gap: .8rem; }
.dish-n { font-size: .96rem; }
.dish-f { flex: 1; }
.dish-p { font-family: var(--display); font-size: 1.1rem; color: var(--gold); }
.dish-d { margin: .2rem 0 0; font-size: .8rem; color: var(--fg-dim); max-width: 48ch; line-height: 1.5; }

/* ==========================================================================
   FOOT
   ========================================================================== */
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-top: 2.4rem; }
.foot h4 { margin: 0 0 .7rem; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d); font-weight: 500; }
.foot p, .foot a { display: block; margin: 0 0 .2rem; font-size: .9rem; color: var(--fg-dim); }
.foot a:hover { color: var(--gold); }
.credit { padding: 1.6rem 0 3rem; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.credit a:hover { color: var(--gold); }

[data-r] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-r] { opacity: 1; transform: none; transition: none; } }
