/* StayLedger — gulf-teal ink on oyster, Marcellus display, Plex Mono ledger */
:root {
  --ink: #16323a;
  --ink-soft: #3f5a61;
  --paper: #fbfaf6;
  --sand: #ede6d6;
  --tide: #2f7e78;
  --tide-dim: #cfe4e1;
  --booked: #a4552f;
  --max: 1080px;
}

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

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, .wordmark {
  font-family: Marcellus, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-bottom: 0.5rem; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
a { color: var(--tide); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
}

/* header / footer */
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.wordmark { font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.wordmark.small { font-size: 1.05rem; }
.site-head nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--tide); }
.nav-cta {
  color: var(--paper) !important;
  background: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
}
.site-foot {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--sand);
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.95rem;
}

/* hero */
.hero {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; color: var(--tide); margin-bottom: 0.75rem;
}
.lede { margin: 1rem 0 0.75rem; color: var(--ink-soft); max-width: 46ch; }
.proof { font-size: 0.85rem; margin-bottom: 1.4rem; }
.btn {
  display: inline-block;
  background: var(--tide); color: var(--paper);
  padding: 0.7rem 1.4rem; border: 0; border-radius: 3px;
  font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); }
.hero-photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 4px; background: var(--sand);
}

/* facts strip */
.facts {
  max-width: var(--max);
  margin: 2.5rem auto 0; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem;
  border-block: 1px solid var(--sand);
}
.fact { display: flex; gap: 0.5rem; align-items: baseline; }
.fact-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.fact-v { font-weight: 600; }

/* gallery */
.gallery {
  max-width: var(--max);
  margin: 2rem auto 0; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 3px; background: var(--sand);
}

/* stay ledger — signature element */
.ledger { max-width: 640px; margin: 4rem auto 0; padding: 0 1.25rem; }
.section-note { color: var(--ink-soft); margin-bottom: 1.25rem; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger th {
  text-align: left; font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  padding: 0 0.5rem 0.5rem; border-bottom: 1px solid var(--ink);
}
.ledger td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--sand); }
.pip {
  display: inline-block; width: 0.6em; height: 0.6em;
  border-radius: 50%; margin-right: 0.5em;
  background: var(--tide);
}
.st-partial .pip { background: transparent; border: 1.5px solid var(--tide); }
.st-booked .pip { background: var(--booked); }
.st-booked td { color: var(--ink-soft); }

/* reviews */
.reviews-teaser, .review-list { max-width: var(--max); margin: 4rem auto 0; padding: 0 1.25rem; }
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
blockquote {
  background: #fff; border: 1px solid var(--sand); border-radius: 4px;
  padding: 1.1rem 1.2rem;
}
blockquote p { font-size: 0.95rem; }
blockquote cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.82rem; color: var(--ink-soft); }
.src { color: var(--tide); }
.quiet-link { display: inline-block; margin-top: 1.25rem; }
.review-list blockquote { margin-bottom: 1rem; max-width: 640px; }

/* inquiry form */
.inquire { max-width: 640px; margin: 4.5rem auto 0; padding: 2rem 1.25rem; background: var(--sand); border-radius: 6px; }
.inquire form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: var(--ink);
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbbfa5; border-radius: 3px; background: #fff;
}

/* secondary pages */
.page-head { max-width: var(--max); margin: 2.5rem auto 0; padding: 0 1.25rem; }
.page-head .btn { margin-top: 1.5rem; }
.segments {
  max-width: var(--max); margin: 2.5rem auto 0; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.segment { border: 1px solid var(--sand); border-left: 3px solid var(--tide); border-radius: 4px; padding: 1.25rem 1.4rem; background: #fff; }
.segment h2 { font-size: 1.2rem; }
.inquire-cta { max-width: var(--max); margin: 3rem auto 0; padding: 0 1.25rem; }
.inquire-cta .btn { margin-top: 0.75rem; }

/* responsive */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid2, .segments { grid-template-columns: 1fr; }
}

/* highlights + nearby */
.highlights, .nearby { max-width: 640px; margin: 4rem auto 0; padding: 0 1.25rem; }
.highlights ul { list-style: none; margin-top: 1rem; }
.highlights li { padding: 0.5rem 0 0.5rem 1.4rem; border-bottom: 1px solid var(--sand); position: relative; }
.highlights li::before { content: "—"; position: absolute; left: 0; color: var(--tide); }
.near-grid { margin-top: 1rem; font-size: 0.9rem; }
.near { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--sand); }
.near-t { color: var(--tide); }

/* rating breakdown */
.rating-detail { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 1rem; font-size: 0.85rem; }
.rating-detail .fact-v { color: var(--tide); }

/* owner console */
.admin-block { max-width: var(--max); margin: 3rem auto 0; padding: 0 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--ink); font-weight: 500; }
.admin-table td { padding: 0.5rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.admin-table .msg { max-width: 26ch; }
.ok { color: var(--tide); }
.inline-form { display: flex; gap: 0.9rem; align-items: end; flex-wrap: wrap; margin-top: 1rem; }
.result { background: var(--sand); padding: 1rem; border-radius: 4px; white-space: pre-wrap; margin: 1rem 0; max-width: 640px; }
code { font-family: "IBM Plex Mono", monospace; font-size: 0.85em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- mobile-first refinements ---------- */
input, select, textarea { font-size: 16px; }       /* prevents iOS zoom-on-focus */
.btn, .nav-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  .site-head { padding: 0.85rem 1rem; }
  .site-head nav { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .site-head nav a { padding: 0.5rem 0.25rem; font-size: 0.9rem; }
  .hero { margin-top: 0.75rem; }
  .hero-text .btn, .inquire .btn { width: 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .fact { flex-direction: column; gap: 0.1rem; }
  .ledger table, .admin-table { font-size: 0.85rem; }
  .ledger td, .ledger th { padding-inline: 0.3rem; }
  .review-row { grid-template-columns: 1fr; }
  .site-foot { flex-direction: column; gap: 0.75rem; }
  .inline-form { flex-direction: column; align-items: stretch; }
  body { padding-bottom: 64px; }                    /* room for sticky CTA */
  .sticky-cta { display: flex; }
}

/* sticky booking bar — mobile only */
.sticky-cta {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 1rem;
}
.sticky-cta .rate { font-size: 0.85rem; }
.sticky-cta a { background: var(--tide); color: var(--paper); text-decoration: none; padding: 0.55rem 1.2rem; border-radius: 3px; white-space: nowrap; }
