:root {
  --paper: #f3efe8;
  --foam: #fffcf8;
  --ink: #1a1916;
  --muted: #5e584f;
  --line: rgba(26, 25, 22, 0.14);
  --oak: #8d5e3c;
  --board: #171614;
  --board-line: rgba(243, 239, 232, 0.16);
  --shadow: 0 24px 60px rgba(26, 25, 22, 0.12);
  --header: 4.4rem;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); margin: 0.15em 0 0.25em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0.1em 0 0.35em; }
h3 { font-size: 1.55rem; margin: 0 0 0.8rem; }
p { margin: 0 0 0.9rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--foam);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.7rem 1.2rem;
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand svg { width: 3.2rem; height: 1.2rem; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; }
.cart-open, .button, .icon-button, .add, .qty button {
  cursor: pointer;
}
a.cart-open { text-decoration: none; }
.cart-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: var(--ink);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
}
.cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--foam);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero, .about, .board, .shop, .gallery, .visit, .site-footer, .comfort {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  padding: 2.2rem 0 1.5rem;
}
.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--oak);
}
.kicker-light { color: #e7c7a4; }
.lead, .visit-lead { font-size: 1.15rem; max-width: 38rem; }
.hero-actions, .visit-actions, .send-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
}
.button-dark { background: var(--ink); color: var(--foam); }
.button-ghost { background: transparent; border-color: var(--line); }
.board .button-ghost { border-color: var(--board-line); color: var(--foam); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0;
}
.hero-meta dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 0.2rem 0 0; font-weight: 650; }
.hero-photo { margin: 0; }
.hero-photo img, .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.3rem;
}
.hero-photo img { aspect-ratio: 16/11; box-shadow: var(--shadow); }

.comfort {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
}
.comfort article {
  background: var(--foam);
  border-radius: 1.1rem;
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid var(--line);
}
.comfort h2 { font-size: 1.45rem; }

.about {
  padding: 1rem 0 3.2rem;
}
.about-copy { max-width: 42rem; }

.board {
  background: var(--board);
  color: var(--foam);
  width: min(1120px, calc(100% - 2rem));
  border-radius: 1.6rem;
  padding: 1.6rem 1.4rem 1.5rem;
  margin-bottom: 3rem;
}
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}
.section-head p:last-child { color: var(--muted); margin: 0; }
.board .section-head p:last-child { color: #c8c1b6; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.items, .souvenirs, .cart-lines, .visit-list { list-style: none; margin: 0; padding: 0; }
.drinks, .souvenirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
}
.items li, .souvenirs li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--board-line);
}
.items li.has-icon, .souvenirs li.has-icon { grid-template-columns: auto 1fr auto auto; }
.item-icon {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.item-price { font-weight: 650; white-space: nowrap; }
.add:disabled { opacity: 0.45; cursor: not-allowed; }
.item-name { font-weight: 650; }
.item-detail, .item-description { display: block; font-weight: 450; }
.item-detail { color: #b7b0a6; font-size: 0.9rem; }
.item-description { margin-top: 0.15rem; color: #c8c1b6; font-size: 0.92rem; line-height: 1.35; }
.add {
  border: 1px solid var(--board-line);
  background: transparent;
  color: var(--foam);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.add:hover, .qty button:hover, .button-ghost:hover { background: rgba(255, 252, 248, 0.08); }
.shop .add { border-color: var(--line); color: var(--ink); background: var(--foam); }
.shop .add:hover { background: #f4efe6; }

.shop { padding-bottom: 3rem; }
.souvenirs li { border-top-color: var(--line); }
.shop .item-detail, .shop .item-description { color: var(--muted); }

.gallery { padding-bottom: 3rem; }
.gallery h2 { margin-bottom: 1.2rem; }
.gallery-carousel {
  position: relative;
  container-type: inline-size;
}
.gallery-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100cqi - 1.6rem) / 4);
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.shot {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  min-height: 0;
  min-width: 0;
  scroll-snap-align: start;
}
.gallery-track .shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.1rem;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--foam);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-arrow svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-prev { left: -0.3rem; }
.gallery-next { right: -0.3rem; }
.gallery-arrow:disabled { opacity: 0.35; }

.visit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: stretch;
}
.visit-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.visit-list span { color: var(--muted); }
.map-frame {
  min-height: 22rem;
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e7e1d6;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer strong { color: var(--ink); display: block; }
.site-footer p { margin: 0.2rem 0 0; max-width: 36rem; }

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 8; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(26, 25, 22, 0.46); }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(28rem, 100%);
  background: var(--foam);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer-head, .drawer-body { padding: 1rem 1.1rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; margin: 0; }
.drawer-body { overflow: auto; }
.icon-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.cart-lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: inline-flex; align-items: center; gap: 0.35rem; }
.qty button {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.line-remove { grid-column: 2; justify-self: end; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 0.15em; padding: 0; }
.order-form { display: grid; gap: 0.7rem; margin-top: 1rem; }
.order-form label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 650; }
.optional { font-weight: 450; color: var(--muted); }
.order-form input, .order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.75rem;
  padding: 0.65rem 0.7rem;
  font-weight: 450;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.form-note, .sent-note, .form-error { font-size: 0.92rem; }
.form-error { color: #8a2e24; margin: 0; }
.sent-note { background: #e7f0ea; border-radius: 0.8rem; padding: 0.7rem 0.8rem; }
.send-row .button { flex: 1 1 8rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  z-index: 9;
  transition: transform 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(20, 18, 16, 0.86); }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 0.8rem; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 0.4rem; }
.lightbox .icon-button { color: var(--foam); }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1rem 0.8rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .hero, .about, .section-head, .board-grid, .visit, .comfort, .drinks, .souvenirs {
    grid-template-columns: 1fr;
  }
  .hero-meta { grid-template-columns: 1fr; }
  .shot, .shot-wide { min-height: 0; }
  .gallery-track { grid-auto-columns: calc((100cqi - 0.8rem) / 2 * 0.75); }
  .site-footer { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

.page-hero, .invite, .result, .admin {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.page-hero { padding: 2.2rem 0 0.4rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.invite {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 0 0 3rem;
}
.invite h2 { margin: 0 0 0.4rem; }
.cart-sum { margin: 0.8rem 0 0; font-weight: 700; }
.result { padding: 4rem 0; max-width: 40rem; }
.admin { padding: 0.7rem 0 2rem; width: min(1180px, calc(100% - 1.25rem)); font-size: 0.92rem; line-height: 1.35; }
.admin h1 { font-size: 1.65rem; margin: 0.1rem 0 0; }
.admin h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.4rem; }
.admin p { margin: 0 0 0.45rem; }
.desk-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.admin-tabs { display: flex; gap: 0.35rem; margin: 0.7rem 0 0.75rem; flex-wrap: wrap; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--foam); }
.admin .button { padding: 0.35rem 0.7rem; font-size: 0.84rem; }
.panel { background: var(--foam); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.75rem; }
.login-card { max-width: 22rem; margin: 10vh auto; display: grid; gap: 0.55rem; }
.login-card h1 { font-size: 1.8rem; }
.settings-form { display: grid; gap: 0.5rem; max-width: 32rem; margin-bottom: 0.7rem; }
.product-new { margin-bottom: 0.75rem; }
.product-search { display: grid; gap: 0.2rem; max-width: 18rem; margin: 0 0 0.7rem; font-size: 0.8rem; color: var(--muted); }
.product-group { margin: 0 0 0.85rem; }
.product-group h2 { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.product-table, .order-list { display: grid; gap: 0.45rem; }
.product-row, .order-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}
.product-row { grid-template-columns: 1fr; }
.product-fields { display: grid; grid-template-columns: minmax(8rem, 1.5fr) 6.2rem minmax(4.5rem, 0.8fr) 5rem max-content max-content; gap: 0.4rem 0.45rem; align-items: center; }
.product-note { width: 100%; }
.icon-field { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.icon-field img { width: 1.8rem; height: 1.8rem; object-fit: cover; border-radius: 0.4rem; border: 1px solid var(--line); background: var(--paper); }
.icon-file { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.icon-field input { font-size: 0.78rem; width: auto; }
.admin input, .admin select, .admin textarea, .login-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.45rem;
  padding: 0.32rem 0.45rem;
  font: inherit;
  font-size: 0.9rem;
}
.row-actions { display: flex; gap: 0.3rem; }
.tiny { font-size: 0.78rem; color: var(--muted); margin: 0; }
.banner {
  background: #f4e6cf;
  border-radius: 0.6rem;
  padding: 0.45rem 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  background: var(--paper);
  font-size: 0.78rem;
}
.check { display: flex; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.84rem; white-space: nowrap; }
.check input { width: auto; }
.admin .icon-field input { width: auto; max-width: 16rem; }
.admin .order-card { padding: 0.65rem 0.75rem; }

@media (max-width: 900px) {
  .invite { flex-direction: column; align-items: start; }
  .product-row, .product-fields { grid-template-columns: 1fr; }
}

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