/* Inner Beach Retreat. Design tokens from BUILD-BRIEF.md: white siding, black trim, Adirondack red, sea blue, cedar. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #FAF8F4;
  --ink: #1E2326;
  --accent: #A63A2E;
  --sea: #2C5A73;
  --cedar: #B98457;
  --muted: #5B6166;
  --card: #FFFFFF;
  --header-h: 84px;
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-family: var(--body); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
a.btn, a.btn:visited { color: #fff; }
a.btn:hover, .btn:hover { background: #8E2F25; color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--sea);
  border: 1px solid var(--sea);
}
a.btn--ghost, a.btn--ghost:visited { color: var(--sea); }
a.btn--ghost:hover { background: var(--sea); color: #fff; }

/* Header (design-standards section 13: sticky at every width, two-threshold shrink) */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  overflow-anchor: none;
  background: var(--ground);
  border-bottom: 1px solid rgba(185, 132, 87, 0.35);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.05rem clamp(1.1rem, 4vw, 2.5rem);
  transition: padding 0.25s ease;
}
.site-header.shrunk .bar { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.wordmark {
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: font-size 0.25s ease;
  white-space: nowrap;
}
a.wordmark:hover { color: var(--ink); }
.site-header.shrunk .wordmark { font-size: 1.7rem; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); color: var(--ink); }
.main-nav .btn { padding: 0.6rem 1.2rem; border-bottom: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  margin: 0;
}
.hero img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-h));
  object-fit: cover;
  object-position: center 30%;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 22, 24, 0.72) 0%, rgba(18, 22, 24, 0.28) 38%, rgba(18, 22, 24, 0) 62%);
}
.hero .hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(1.6rem, 4vw, 2.8rem);
  max-width: 1180px;
  margin: 0 auto;
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: 0.25em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero .lede { font-size: 1.15rem; margin-bottom: 1.1rem; max-width: 34em; color: rgba(255, 255, 255, 0.94); }

/* Sections */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid rgba(185, 132, 87, 0.35); }
.section-head { max-width: 44em; margin-bottom: 2rem; }
.muted { color: var(--muted); }

/* Split rows (photo about 60 percent, text 40 percent) */
.row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.row + .row { margin-top: clamp(2.6rem, 6vw, 4.5rem); }
.row.flip > .row-text { order: -1; }
.row figure { margin: 0; }
.row img { width: 100%; height: auto; border: 1px solid rgba(185, 132, 87, 0.45); }
.row-text h2 a { color: var(--ink); text-decoration: none; }
.row-text h2 a:hover { color: var(--accent); }
.row-text h2 a::after { content: " ›"; color: var(--accent); }

/* Intro block under the hero */
.intro {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.intro figure { margin: 0; }
.intro img { width: 100%; height: auto; border: 1px solid rgba(185, 132, 87, 0.45); }

/* Photo groups on The Cottage */
.pair, .trio {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
  margin: 1.4rem 0 0;
}
.pair { grid-template-columns: 1fr 1fr; }
.trio { grid-template-columns: 1fr 1fr 1fr; }
.pair figure, .trio figure { margin: 0; }
.pair img, .trio img { width: 100%; height: auto; border: 1px solid rgba(185, 132, 87, 0.45); }

/* Guestbook reviews band */
.guestbook {
  background: #F2EDE4;
  border-top: 1px solid rgba(185, 132, 87, 0.35);
  border-bottom: 1px solid rgba(185, 132, 87, 0.35);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
}
.guestbook .rating { color: var(--muted); margin-bottom: 1.8rem; }
.guest-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.guest-track::-webkit-scrollbar { height: 10px; }
.guest-track::-webkit-scrollbar-track { background: rgba(185, 132, 87, 0.18); }
.guest-track::-webkit-scrollbar-thumb { background: var(--sea); }
.guest-track { scrollbar-color: var(--sea) rgba(185, 132, 87, 0.18); scrollbar-width: thin; }
.entry {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background:
    linear-gradient(90deg, transparent 0 26px, rgba(166, 58, 46, 0.28) 26px 27px, transparent 27px),
    repeating-linear-gradient(to bottom, var(--card) 0 27px, rgba(44, 90, 115, 0.16) 27px 28px);
  border: 1px solid rgba(185, 132, 87, 0.45);
  padding: 33px 1.2rem 1.1rem 2.4rem;
  display: flex;
  flex-direction: column;
}
.entry blockquote {
  margin: 0 0 28px;
  font-size: 0.98rem;
  line-height: 28px;
}
.entry p { margin: 0; line-height: 28px; }
.entry .who { margin-top: 0; font-weight: 600; font-size: 0.95rem; }
.entry .tag { color: var(--muted); font-size: 0.85rem; }

/* Hosts band */
.hosts {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hosts figure { margin: 0; }
.hosts img { width: 100%; height: auto; border: 1px solid rgba(185, 132, 87, 0.45); }

/* Booking band */
.booking-band {
  position: relative;
  background: var(--sea);
  color: #fff;
  padding: clamp(3.4rem, 7vw, 5rem) 0 clamp(2.8rem, 6vw, 4.2rem);
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}
.booking-band .wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 26px;
  display: block;
  color: var(--ground);
}
.booking-band h2 { color: #fff; }
.booking-band p { color: rgba(255, 255, 255, 0.9); max-width: 40em; }
.booking-band a:not(.btn) { color: #fff; }
.booking-band .btn { margin-top: 0.6rem; }

/* Footer */
.site-footer {
  background: var(--ground);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.6rem;
}
.footer-mark { text-align: center; margin-bottom: 1.6rem; }
.footer-mark .wordmark { font-size: 1.8rem; }
.footer-mark .wave { display: block; width: 180px; height: 14px; margin: 0.35rem auto 0; color: var(--sea); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.4rem;
}
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }

/* Lists */
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(185, 132, 87, 0.35);
}
.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.amenities h3 { margin-bottom: 0.4rem; }
.amenities ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.amenities li { margin-bottom: 0.25rem; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 7.5rem; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rates placeholder block */
.rates { border: 1px solid rgba(185, 132, 87, 0.45); background: var(--card); padding: 1.4rem 1.6rem; }
.rates dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.4rem; margin: 0; }
.rates dt { font-weight: 600; }
.rates dd { margin: 0; color: var(--muted); }

/* Placeholder panel (a photo we do not have yet) */
.photo-needed {
  border: 1px dashed var(--sea);
  background: rgba(44, 90, 115, 0.06);
  color: var(--sea);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 15rem;
  font-weight: 600;
}


/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 2rem; }
.steps li {
  counter-increment: step;
  padding: 0.9rem 0 0.9rem 3rem;
  border-bottom: 1px solid rgba(185, 132, 87, 0.35);
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 2rem;
  height: 2rem;
  background: var(--sea);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Utility spacing (inline styles are blocked by the CSP) */
.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 1.6rem; }
.mt-3 { margin-top: 3rem; }
.narrow-quote { max-width: 34rem; }

/* Utility pages */
.utility { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.utility p { max-width: 34em; margin-left: auto; margin-right: auto; }

/* Mobile sticky call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--ground);
  border-top: 1px solid rgba(185, 132, 87, 0.45);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
}
.call-bar .btn { display: block; text-align: center; }

/* Page intro (inner pages) */
.page-intro { padding: clamp(2.4rem, 5vw, 3.6rem) 0 0; }
.page-intro p { max-width: 44em; }

@media (max-width: 900px) {
  .row, .intro, .hosts { grid-template-columns: 1fr; }
  .row.flip > .row-text { order: 0; }
  .row > figure, .row > .row-text { order: initial; }
  .trio { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid rgba(185, 132, 87, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.1rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(185, 132, 87, 0.25); }
  .main-nav a[aria-current="page"] { border-bottom: 1px solid rgba(185, 132, 87, 0.25); color: var(--accent); }
  .main-nav .btn { margin-top: 0.8rem; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .pair, .trio, .amenities, .form-grid { grid-template-columns: 1fr; }
  .call-bar { display: block; }
  body { padding-bottom: 4.2rem; }
  .hero .scrim { display: none; }
  .hero .hero-text { position: static; color: var(--ink); padding: 1.2rem 1.1rem 0; }
  .hero h1 { color: var(--ink); text-shadow: none; }
  .hero .lede { font-size: 1.02rem; color: var(--muted); }
}

/* First pass (Claude, 2026-10-13) */
@media (max-width: 860px) {
  .wordmark { font-size: 1.7rem; }
  .site-header.shrunk .wordmark { font-size: 1.45rem; }
}
.mt-2 .btn + .btn { margin-left: 0.6rem; }

/* FAQ: click to open */
.faq-item { border-bottom: 1px solid rgba(185, 132, 87, 0.35); }
.faq-item:first-of-type { border-top: 1px solid rgba(185, 132, 87, 0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 2.6rem 1rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.12rem; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-a { padding: 0 2.6rem 1rem 0; }
.faq-a p { margin: 0; }

/* Touch targets on phones */
.site-header .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.nav-toggle { min-height: 44px; }
@media (max-width: 720px) {
  .footer-nav { gap: 0 1.1rem; }
  .footer-nav a { display: inline-block; padding: 0.6rem 0.15rem; }
}
.hero .lede { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
