/* The Barge Inn — preview site. Orange/yellow palette sampled from the
   live WordPress site's photographic background, rust star and header
   decorations, laid out in the clean, mobile-first style of the diary. */

:root {
  /* rust from star.jpg (2019/10/star.jpg) */
  --rust: #B85838;
  --rust-dark: #8F3F24; /* darker rust for links/hover, AA on cream */
  --rust-ink: #6E2E18;
  /* gold from bground-2.jpg (2019/09/bground-2.jpg) */
  --gold: #E8A858;
  /* yellow from the header star strip stars-1400x78.jpg */
  --gold-bright: #F8D868;
  --gold-soft: #F8EBD8;
  --text: #4a4a4a;
  --text-strong: #333333;
  --muted: #5c5c5c;
  --border: #ead9c4;
  --bg: #F6F0E4;
  --bg-tint: rgba(232, 168, 88, 0.18);
  --card: #fffaf6;
  --white: #ffffff;
  --highlight: #FFF9C0; /* Penscratch 2 mark/ins highlight */
  --radius: 1rem;
  --radius-lg: 1.35rem;
  --shadow: 0 12px 36px rgba(110, 46, 24, 0.10);
  --font: "Roboto Slab", Georgia, Times, serif;
  --header-h: 4.25rem;
  --max: 70rem;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(232, 168, 88, 0.28), transparent 55%),
    var(--bg);
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--rust-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--text-strong); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.75rem); margin: 1.75rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0 0 0.35rem; }
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rust);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-strong);
  font-weight: 300;
  font-size: 1.15rem;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--rust); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0.5rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

.preview-banner {
  background: var(--highlight);
  color: var(--text-strong);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee0a0;
}
.preview-banner a { font-weight: 700; }

.site-header {
  background: var(--rust);
  color: #fffaf6;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 8px 24px rgba(110, 46, 24, 0.22);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: inherit; text-decoration: none; min-width: 0;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: contain; background: #fff; flex: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.45);
}
.brand-text { min-width: 0; }
.brand-title { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.brand-tag { font-weight: 300; font-size: 0.78rem; opacity: 0.9; line-height: 1.3; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  min-height: 48px; min-width: 48px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: inherit; border-radius: 999px;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 1px; }

.site-nav { display: none; }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0.4rem 0.85rem 1rem;
  display: grid; gap: 0.3rem;
}
.site-nav a {
  display: flex; align-items: center;
  min-height: 48px; padding: 0.5rem 0.9rem;
  color: #fffaf6; text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.site-nav a[aria-current="page"] { font-weight: 700; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .header-inner { padding: 0.55rem 1.25rem; }
  .site-nav { display: block !important; }
  .site-nav ul {
    display: flex; flex-wrap: wrap; justify-content: flex-end;
    gap: 0.15rem; padding: 0;
  }
  .site-nav a {
    min-height: 40px; padding: 0.3rem 0.7rem; font-size: 0.86rem;
  }
}

.wrap { width: min(100% - 1.75rem, var(--max)); margin: 0 auto; }
.page { flex: 1; padding: 1.5rem 0 3.5rem; }
.prose { max-width: var(--measure); }
.lede { font-size: 1.08rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.35rem;
}
.card + .card, .stack > * + * { margin-top: 1.1rem; }
.card-pad-sm { padding: 1rem; }

.hero-card { padding: 0; overflow: hidden; }
.slideshow { position: relative; background: #111; aspect-ratio: 16/9; }
.slideshow img, .slideshow picture, .slideshow picture img {
  width: 100%; height: 100%; object-fit: cover;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.slide.is-active { opacity: 1; position: relative; }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 0.95rem;
}
.slide-nav, .slide-dots { position: absolute; z-index: 2; }
.slide-nav {
  top: 50%; transform: translateY(-50%);
  min-width: 48px; min-height: 48px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.88); color: var(--rust-ink);
  font-size: 1.4rem; display: grid; place-items: center;
}
.slide-nav.prev { left: 0.6rem; }
.slide-nav.next { right: 0.6rem; }
.slide-dots {
  bottom: 0.5rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.35rem;
  padding-bottom: 0.15rem;
}
.slide-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,0.55); padding: 0; cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: #fff; width: 18px; }
.slide-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gold-soft); color: var(--rust-ink);
  border-radius: 999px; padding: 0.35rem 0.8rem;
  font-size: 0.9rem; font-weight: 400;
  border: 1px solid #E8D2A8;
}
.chip strong { font-weight: 700; }
.chip-link { text-decoration: none; }
.chip-link:hover { background: var(--rust); color: #fff; border-color: var(--rust); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  min-height: 48px; padding: 0.55rem 1.2rem;
  background: var(--rust); color: #fff;
  border-radius: 999px; text-decoration: none; border: 2px solid var(--rust);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--rust-dark);
}
.btn-secondary:hover { background: var(--gold-soft); color: var(--rust-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.section-head h2 { margin-top: 0; }
.eyebrow {
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.75rem; color: var(--muted); font-weight: 700;
  margin: 0 0 0.35rem;
}

.coming-up { padding: 0; overflow: hidden; }
.coming-up .section-head { padding: 1.15rem 1.25rem 0; }
.event-list { list-style: none; margin: 0; padding: 0.5rem 0.75rem 1rem; }
.event-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  padding: 0.85rem 0.5rem; border-top: 1px solid var(--border);
  align-items: start;
}
.event-item:first-child { border-top: 0; }
.event-date {
  background: var(--rust); color: #fff;
  border-radius: 0.9rem; min-width: 5.4rem;
  text-align: center; padding: 0.5rem 0.45rem; line-height: 1.2;
}
.event-date .dow { display: block; font-size: 0.75rem; font-weight: 300; letter-spacing: 0.04em; }
.event-date .dom { display: block; font-size: 1.15rem; font-weight: 700; }
.event-title { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--text-strong); }
.event-time, .event-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.coming-up .empty, .coming-up .status {
  margin: 0; padding: 0.4rem 1.25rem 1.25rem; color: var(--muted);
}

.hours-grid {
  display: grid; gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hours-grid { grid-template-columns: 1fr 1fr; }
}
.hour-card h3 { margin: 0 0 0.35rem; color: var(--rust-ink); }

.gallery {
  display: grid; gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery.cols-2, .gallery.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .gallery.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.gallery figure { margin: 0; }
.gallery img, .gallery picture img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
  background: #eee;
}
.gallery a { display: block; }
.gallery figcaption, .caption {
  font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem;
}
.menu-shot img, .menu-shot picture img { object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }

.room-card .price {
  font-size: 1.2rem; color: var(--rust-ink); font-weight: 700; margin: 0.25rem 0 0.8rem;
}
.price-note { color: var(--muted); font-size: 0.9rem; font-weight: 400; }

.widget-box {
  background: #fff; border: 1px dashed #e0d0b8;
  border-radius: var(--radius); padding: 0.75rem; overflow: auto;
}
.widget-box #atb_calendar_container, .widget-box #atb_anytime { min-height: 12rem; }

.form-grid { display: grid; gap: 0.85rem; }
.form-grid label, .mc-field-group label { display: block; font-weight: 700; color: var(--text-strong); margin-bottom: 0.3rem; }
.form-grid input, .form-grid textarea, .mc-field-group input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem;
  border: 1px solid #d0d0d0; border-radius: 0.75rem;
  padding: 0.55rem 0.8rem; background: #fff; color: var(--text-strong);
}
.form-grid textarea { min-height: 8rem; resize: vertical; }
.req { color: #8a3a2a; }
.form-status { margin: 0.75rem 0 0; }
.form-status.ok { color: var(--rust-dark); font-weight: 700; }
.form-status.err { color: #8a3a2a; font-weight: 700; }
.hp { position: absolute; left: -8000px; }

.map-frame {
  width: 100%; min-height: 280px; height: 360px; border: 0;
  border-radius: var(--radius); display: block;
}
.contact-grid {
  display: grid; gap: 1.1rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.blog-list { display: grid; gap: 1rem; }
.blog-card { display: grid; gap: 0.85rem; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
@media (min-width: 700px) {
  .blog-card { grid-template-columns: 14rem 1fr; }
}
.blog-card .thumb, .blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; min-height: 10rem;
  background: var(--gold-soft);
}
.blog-card .body { padding: 0.9rem 1.1rem 1.15rem; }
.blog-card h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.blog-card p { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }
.post-body img, .post-body picture img { border-radius: var(--radius); margin: 1rem 0; }
.video { position: relative; aspect-ratio: 16/9; margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.site-footer {
  background: var(--rust-ink); color: #F8EBD8;
  padding: 2rem 0 2.4rem; margin-top: auto;
}
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
}
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.socials a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); text-decoration: none;
}
.socials a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.copyright { opacity: 0.8; font-size: 0.9rem; margin-top: 1.5rem; }

.lightbox {
  position: fixed; inset: 0; background: rgba(40, 18, 10, 0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 80; padding: 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0.5rem; }
.lightbox-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  min-width: 48px; min-height: 48px; border: 0; border-radius: 999px;
  background: #fff; color: #111; font-size: 1.4rem; cursor: pointer;
}

.notice {
  background: var(--gold-soft); border-radius: var(--radius);
  padding: 0.9rem 1rem; margin: 0 0 1rem;
}

@media (max-width: 639px) {
  .slideshow { aspect-ratio: 4/3; }
}

/* Book a table — form styled like the Barge Diary booking sheet */
.book-form { margin-top: 1.25rem; max-width: 34rem; }
.form-grid select {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: 0.7rem;
  background: #fff; color: var(--text-strong); font: inherit; font-size: 1rem;
}
.form-grid select:disabled { background: var(--gold-soft); color: var(--muted); }
.form-grid input[type="date"] { min-height: 48px; }
.book-when { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 380px) { .book-when { grid-template-columns: 1fr; } }
.field-hint { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.field-hint:empty { display: none; }
.people-picker { display: grid; gap: 6px; width: 100%; min-width: 0; }
.people-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-strong); }
.people-label-icon { flex: none; display: block; color: #6b5a3e; }
.people-quick { display: flex; flex-wrap: nowrap; gap: 4px; width: 100%; min-width: 0; }
.people-chip {
  flex: 1 1 0; min-width: 0; height: 44px; padding: 0;
  border: 1px solid #d8cbb6; border-radius: 999px;
  background: #fffaf2; color: #3f3012;
  font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1;
  cursor: pointer; overflow: hidden;
}
.people-chip:hover { border-color: #9a7b4f; }
.people-chip[aria-pressed="true"] { background: #9b2d20; color: #fff; border-color: transparent; }
.people-custom { display: grid; justify-items: start; gap: 4px; }
.people-custom[hidden] { display: none; }
.people-custom-label { font-size: 0.85rem; font-weight: 400 !important; color: #6b5a3e; margin: 0 !important; }
.form-grid .people-custom-input { width: 6.5rem; max-width: 100%; }
.people-custom-error { margin: 0; font-size: 0.85rem; color: #8a3a2a; }
.book-warn {
  padding: 0.85rem 1rem; border-radius: var(--radius);
  background: #fff4dc; border: 1px solid #e8c27a; color: var(--text-strong);
}
.book-warn[hidden] { display: none; }
.book-warn p { margin: 0 0 0.6rem; font-weight: 700; }
.book-done {
  margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--gold-soft); border-left: 4px solid var(--rust);
}
.book-done[hidden] { display: none; }
.book-done h2 { margin-top: 0; }

.book-callout {
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--gold-soft); border-left: 4px solid var(--rust);
  color: var(--text-strong); font-weight: 700; margin: 0.75rem 0;
}
.book-callout[hidden] { display: none; }
