@font-face {
  font-family: "Brunson Rough";
  src: url("assets/fonts/BrunsonRough.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0909;
  --ink: #ebe7df;
  --dim: #a09a8f;
  --rule: rgba(235, 231, 223, 0.18);
  --display: "Brunson Rough", "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "Space Mono", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main { flex: 1; width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding: 22px 24px;
}

.logo img {
  display: block;
  width: 170px;
  max-width: 56vw;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

nav a {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  padding: 4px 0 3px;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
nav .out { font-family: var(--mono); font-size: 14px; margin-left: 2px; }

/* Home: wall on the left, narrower marble on the right, vertical seam */
.split {
  /* --sh is the height of the photo area; --fh is the height of both cards (carousel and hours) */
  --sh: max(420px, 100svh);
  --fh: max(300px, min(calc(var(--sh) * 0.8), calc(var(--sh) - 200px), 39vw));
  display: grid;
  grid-template-columns: 62fr 38fr;
  height: var(--sh);
}

.pane {
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pane.wall > img.bg { filter: brightness(0.5) contrast(1.05) saturate(0.85); object-position: 50% 30%; }
.pane.marble { border-left: 2px solid #000; }
.pane.marble img { filter: brightness(0.92); object-position: 50% 50%; }

/* Photo carousel sitting on top of the wall */
.card {
  position: relative;
  z-index: 1;
  width: calc(var(--fh) * 0.8);
  height: var(--fh);
  flex: none;
  background: #000;
  overflow: hidden;
}

/* Hours on a black card over the marble.
   Same width and height as the carousel card; everything inside scales with --fh so it always fits. */
.hours-box {
  --f: clamp(11px, calc(var(--fh) * 0.027), 17px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--f) * 1.6);
  font-size: var(--f);
  line-height: 1.4;
}

.hours-box h2 {
  margin: 0 0 calc(var(--f) * 0.8);
  padding: 0;
  text-align: left;
  font-size: calc(var(--f) * 2.6);
  line-height: 1;
}

.hours-box .hours div {
  padding: calc(var(--f) * 0.5) 0;
  font-size: 1em;
  line-height: 1.4;
}

.frame .slide {
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: brightness(0.9);
}

.frame .slide.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .frame .slide { transition: none; }
}

/* Text pages */
.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 24px 0 8px;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 48px 0 16px;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

p { margin: 0 0 14px; }

.dim { color: var(--dim); }

/* Hours */
.hours { margin: 0; padding: 0; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; }

/* Menus */
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--ink);
}

.tabs a {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  padding: 8px 16px 6px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  margin-right: -1px;
}

.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.panel[hidden] { display: none; }
.panel > h2:first-child { margin-top: 32px; }

.menu-section h2 {
  text-align: center;
  margin-top: 56px;
  padding-top: 8px;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 20px;
  margin: 0 0 18px;
}

.item h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.item .price { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.item p { grid-column: 1; margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.item.plain { margin-bottom: 8px; }

.note {
  text-align: center;
  font-style: italic;
  color: var(--dim);
  margin: 24px 0 0;
}

.box {
  border: 1px solid var(--rule);
  padding: 20px 20px 4px;
  margin: 8px 0 24px;
}

.sub {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 36px 0 16px;
}

/* Wine list */
.item.wine h3 { font-size: 20px; }
.item.wine { margin-bottom: 16px; }

/* Find Us page: just the info, on black */
html:has(body.findus) { background: #000; }
body.findus { background: #000; }

.findus main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 96px;
}

.findus-info {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.6;
}

.findus-info p { margin: 0 0 32px; }
.findus-info p:last-child { margin-bottom: 0; }

.findus-info a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.findus-info a:hover { border-bottom-color: var(--ink); }

@media (min-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 84px; }
  .top { padding: 28px 40px; }
  .logo img { width: 200px; }
}

/* Narrow screens: stack the carousel above the hours card */
@media (max-width: 900px) {
  .split {
    --fh: min(100vw, 460px);
    grid-template-columns: 1fr;
    height: auto;
  }
  .pane { height: auto; min-height: calc(var(--fh) + 72px); padding: 36px 0; }
  .pane.marble { border-left: 0; border-top: 2px solid #000; }
  .hours-box { --f: clamp(11px, calc(var(--fh) * 0.032), 13px); }
}

@media (max-width: 520px) {
  nav a { font-size: 24px; }
}

/* Home version with no top bar: logo and tabs sit over the photos */
.top.over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.top.over::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
}

.top.over nav a { color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.top.over nav a:hover { border-bottom-color: var(--ink); }

@media (max-width: 900px) {
  .pane.wall { padding-top: 132px; min-height: calc(var(--fh) + 168px); }
}
