/* Linen — component & layout CSS. All colours/fonts via :root tokens. */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 2px; }

/* === Utility === */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--azure);
}

/* === Preview banner === */
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 6px 16px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .02em;
  height: 34px;
}
body.has-preview-banner { padding-top: 34px; }
body.home.has-preview-banner { padding-top: 34px; }
.preview-banner a {
  color: #fff; text-decoration: underline; text-underline-offset: 2px;
  font-weight: 600;
}
.preview-banner a:hover { opacity: .85; }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,242,232,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  transition: background .3s, border-color .3s;
}
body.has-preview-banner .nav { top: 34px; }
.nav__in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; text-decoration: none; }
.brand span {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.brand span b {
  color: var(--azure); font-weight: 500; font-style: italic;
  text-transform: none; letter-spacing: .02em;
}
.brand__logo { height: 32px; width: auto; display: block; filter: invert(1); }
body.home .brand__logo { filter: none; }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a {
  background: none; border: none; font-family: var(--sans);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer; transition: color .2s;
  text-decoration: none;
}
.nav__links a:hover, .nav__links a.on { color: var(--azure); }
.nav__book.btn {
  font-size: .68rem; padding: 8px 18px; margin-left: 8px;
  border-color: var(--ink-2); color: var(--ink-2);
}
.nav__book.btn:hover { border-color: var(--azure); color: var(--azure); }
body.home .nav__book.btn { border-color: rgba(247,242,232,.65); color: var(--cream); }
body.home .nav__book.btn:hover { border-color: #fff; color: #fff; }

/* Home page — single-viewport hero, no scroll */
body.home { overflow: hidden; height: 100svh; }

/* Nav over dark hero (home page) */
body.home .nav {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent;
  backdrop-filter: none;
}
body.home.has-preview-banner .nav { top: 34px; }
body.home.has-preview-banner .hero { min-height: calc(100svh - 34px); }
body.home .brand span { color: var(--cream); }
body.home .brand span b { color: #cfe3ef; }
body.home .nav__links a { color: rgba(247,242,232,.82); }
body.home .nav__links a:hover { color: #fff; }

/* Mobile nav */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 22px; position: relative; padding: 0;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); transition: .25s; border-radius: 2px;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
body.home .burger span { background: var(--cream); }
.mobile-menu { display: none; }

@media (max-width: 680px) {
  .nav__links { display: none; }
  .brand span { display: none; }
  .brand__logo { height: 24px; }
  .burger { display: block; }
  .mobile-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 6px 26px 16px;
    box-shadow: var(--shadow);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    background: none; border: none; text-align: left;
    font-family: var(--sans); font-size: .92rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink); padding: 15px 0;
    border-bottom: 1px solid var(--line-2); cursor: pointer;
    text-decoration: none;
  }
  .mobile-menu a.book {
    color: #fff; background: var(--azure); text-align: center;
    border: none; border-radius: 2px; margin-top: 12px;
    padding: 14px; font-weight: 600;
  }
}

/* === Sample badge (preview only) === */
.sample-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  background: rgba(255,255,255,.25); color: #fff;
  vertical-align: middle; line-height: 1.4;
}
/* On light backgrounds (story, gallery), invert the badge */
.story-page .sample-badge,
.gallery-page .sample-badge,
.visit-page .sample-badge {
  background: rgba(0,0,0,.10); color: var(--ink);
}

/* === Hero === */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 90px 26px 70px;
}
.hero__bg {
  position: absolute; inset: -24px;
  background-position: center; background-size: cover;
  filter: brightness(.92); transform: scale(1.06);
}
.hero__ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,20,14,.42), rgba(26,20,14,.64));
}
.hero__in {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  animation: rise 1s ease both;
}
.hero__wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); text-shadow: 0 2px 24px rgba(0,0,0,.35);
  line-height: 1.1;
}
.hero__logo {
  max-height: clamp(80px, 18vw, 140px); width: auto;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.35));
}
.hero__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  color: #F4EEE2; text-shadow: 0 1px 18px rgba(0,0,0,.35);
  margin-top: 8px;
}
.hero__nav {
  margin-top: 40px; display: flex; gap: 8px 34px;
  flex-wrap: wrap; justify-content: center;
}
.hero__nav a {
  background: none; border: none; color: var(--cream);
  font-family: var(--sans); font-size: 1.4rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  cursor: pointer; padding: 6px 2px; position: relative;
  text-decoration: none;
}
.hero__nav a::after {
  content: ""; position: absolute; left: 0; right: 0;
  bottom: -2px; height: 1px; background: var(--cream);
  transform: scaleX(0); transition: transform .3s;
}
.hero__nav a:hover::after { transform: scaleX(1); }

.hero__contact {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; z-index: 2;
  color: rgba(247,242,232,.7); font-size: .78rem;
  letter-spacing: .06em;
}
.hero__contact span + span::before {
  content: "  ·  ";
}

/* === Buttons === */
.btn {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; padding: 14px 28px; border-radius: 2px;
  transition: all .2s; cursor: pointer; border: 1px solid transparent;
  display: inline-block; text-decoration: none;
}
.btn--light { border-color: rgba(247,242,232,.65); color: var(--cream); }
.btn--light:hover { background: rgba(247,242,232,.14); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--azure); color: var(--azure); }

/* === Footer === */
.foot {
  background: var(--cream-2); border-top: 1px solid var(--line-2);
  padding: 42px 26px; text-align: center; margin-top: 40px;
}
.foot__brand {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
.foot p {
  color: var(--ink-3); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
}

/* === Menu page === */
.menu-page { padding-top: calc(var(--navh) + 32px); padding-bottom: 48px; }
.menu-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.menu-avail {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-3); font-size: .95rem; margin-bottom: 24px;
}
.menu-empty {
  text-align: center; color: var(--ink-3);
  font-family: var(--serif); font-size: 1.1rem;
  padding: 80px 0;
}
.menu-head { margin-bottom: 24px; }

/* Tabs */
.menu-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px; padding-top: 8px;
}
.menu-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 18px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab--on { color: var(--ink); border-bottom-color: var(--azure); }

/* Section */
.m-section { margin-bottom: 36px; }
.m-section__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.4rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 4px;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
}
.m-section__desc {
  color: var(--ink-3); font-size: .88rem;
  font-style: italic; margin-bottom: 16px;
}
.m-section__note {
  color: var(--ink-3); font-size: .82rem;
  font-style: italic; margin-top: -12px; margin-bottom: 16px;
}

/* Subsection */
.m-sub { margin-bottom: 22px; }
.m-sub__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.1rem; letter-spacing: .04em;
  color: var(--azure); margin-bottom: 8px;
}
.m-sub__desc {
  color: var(--ink-3); font-size: .85rem;
  font-style: italic; margin-bottom: 10px;
}

/* Item */
.m-item { margin-bottom: 14px; }
.m-item__head {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px;
}
.m-item__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.05rem;
}
.m-item__price {
  font-family: var(--sans); font-size: .88rem;
  color: var(--ink-2); white-space: nowrap;
}
.m-item__desc {
  color: var(--ink-3); font-size: .85rem;
  margin-top: 2px;
}
.m-item__tags {
  display: inline; font-size: .72rem;
  color: var(--ink-3); letter-spacing: .06em;
  text-transform: uppercase; margin-left: 6px;
}
.m-item__extras {
  display: block; font-size: .82rem;
  color: var(--ink-3); margin-top: 2px;
}
.m-item__vars {
  font-size: .88rem; color: var(--ink-2); margin-top: 3px;
}
.m-item--feat .m-item__name { color: var(--azure); }

/* Menu footer blocks */
.m-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.m-footer__block { margin-bottom: 24px; text-align: center; }
.m-footer__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.1rem; letter-spacing: .04em;
  font-style: italic; margin-bottom: 8px;
}
.m-footer__text p {
  color: var(--ink-3); font-size: .82rem;
  line-height: 1.6; margin: 0;
}
.m-footer__badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 16px;
}
.m-footer__badge {
  font-family: var(--sans); font-size: .78rem;
  color: var(--ink-2); letter-spacing: .04em;
}
.m-footer__defs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 20px; font-size: .82rem;
}
.m-footer__def { display: flex; gap: 4px; }
.m-footer__def dt {
  font-weight: 600; color: var(--ink-2);
}
.m-footer__def dd {
  color: var(--ink-3); margin: 0;
}

/* Columnar variant table */
.m-col-table {
  width: 100%; border-collapse: collapse;
}
.m-col-table thead tr {
  border-bottom: 1px solid var(--line-2);
}
.m-col-table__section-hdr {
  text-align: left; padding: 0 0 6px; vertical-align: baseline;
  width: 100%;
}
.m-col-table__section-hdr .m-section__name {
  margin-bottom: 0; border-bottom: none; padding-bottom: 0;
}
.m-col-table__var-hdr {
  font-family: var(--sans); font-size: .78rem;
  font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  text-align: right; padding: 0 0 6px 20px;
  vertical-align: baseline; white-space: nowrap;
}
.m-col-table__sub-hdr { padding: 18px 0 6px; }
.m-col-table__meta td, .m-col-table__meta { padding: 0; border: none; }
.m-col-table__row td {
  padding: 7px 0; vertical-align: baseline;
}
.m-col-table__item { width: 100%; }
.m-col-table__item .m-item__name { display: block; }
.m-col-table__desc {
  display: block; color: var(--ink-3);
  font-size: .85rem; margin-top: 2px;
}
.m-col-table__extras {
  display: block; font-size: .82rem;
  color: var(--ink-3); margin-top: 2px;
}
.m-col-table__price {
  font-family: var(--sans); font-size: .88rem;
  color: var(--ink-2); text-align: right;
  padding-left: 20px; white-space: nowrap;
}
.m-col-table__row--feat .m-item__name { color: var(--azure); }

/* Alpine x-cloak */
[x-cloak] { display: none !important; }

/* === Visit page === */
.visit-page { padding-top: calc(var(--navh) + 32px); padding-bottom: 48px; }
.visit-header { text-align: center; margin-bottom: 40px; }
.visit-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 4px;
}
.visit-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.visit-card {
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 28px 24px;
}
.visit-card__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
}
.visit-card p { font-size: .95rem; line-height: 1.6; margin-bottom: 4px; }
.visit-card a { color: var(--azure); }
.visit-card a:hover { text-decoration: underline; }
.visit-card__empty { color: var(--ink-3); font-style: italic; font-size: .9rem; }

/* Hours list */
.hours-list { margin: 0; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--line-2);
  font-size: .9rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row dt { font-weight: 500; min-width: 100px; }
.hours-row dd { text-align: right; color: var(--ink-2); }

/* Hours exceptions */
.hours-exceptions {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.hours-exc {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: .85rem; padding: 4px 0;
}
.hours-exc__dates { font-weight: 500; }
.hours-exc__label { color: var(--ink-3); }
.hours-exc__status { color: var(--ink-2); }

/* === Gallery page === */
.gallery-page { padding-top: calc(var(--navh) + 32px); padding-bottom: 48px; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 4px;
}
.gallery-empty {
  text-align: center; color: var(--ink-3);
  font-family: var(--serif); font-size: 1.1rem;
  padding: 80px 0;
}

/* Masonry — CSS grid with per-item row-spans from aspect ratio */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 8px;
  gap: 12px;
}
.masonry__item {
  overflow: hidden; border-radius: 3px;
  cursor: pointer; display: block;
}
.masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.masonry__item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .masonry { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,8,6,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer; line-height: 1;
  opacity: .7; transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff;
  font-size: 3rem; cursor: pointer; line-height: 1;
  opacity: .6; transition: opacity .2s; padding: 8px;
}
.lightbox__arrow:hover { opacity: 1; }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__fig { max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 82vh;
  object-fit: contain; border-radius: 2px;
  display: block; margin: 0 auto;
}
.lightbox__cap {
  color: rgba(255,255,255,.75);
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; margin-top: 12px;
}

/* === Our Story page === */
.story-page { padding-top: calc(var(--navh) + 32px); padding-bottom: 48px; }
.story-header { text-align: center; margin-bottom: 48px; }
.story-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 4px;
}
.story-empty {
  text-align: center; color: var(--ink-3);
  font-family: var(--serif); font-size: 1.1rem;
  padding: 80px 0;
}
.story-blocks { display: flex; flex-direction: column; gap: 48px; }

/* Heading-only divider */
.story-block--divider {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

/* Shared heading style */
.story-block__heading {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; letter-spacing: .04em;
  margin-bottom: 12px;
}

/* Prose (text-only block) */
.story-block--prose p {
  font-size: 1rem; line-height: 1.75;
  margin-bottom: 12px; color: var(--ink-2);
}

/* Full-width image */
.story-block__img-full {
  width: 100%; border-radius: 3px;
  display: block;
}

/* Split: text + image side by side, alternating */
.story-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.story-block--img-right .story-block__text { order: 1; }
.story-block--img-right .story-block__media { order: 2; }
.story-block--img-left .story-block__text { order: 2; }
.story-block--img-left .story-block__media { order: 1; }
.story-block__text p {
  font-size: 1rem; line-height: 1.75;
  margin-bottom: 12px; color: var(--ink-2);
}
.story-block__media img {
  width: 100%; border-radius: 3px;
  display: block;
}
@media (max-width: 680px) {
  .story-block--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-block--img-right .story-block__media,
  .story-block--img-left .story-block__media { order: 1; }
  .story-block--img-right .story-block__text,
  .story-block--img-left .story-block__text { order: 2; }
}

/* === Animations === */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
