/* ===================================================================
   The Wrenhouse — site stylesheet
   Shared design system for all pages. Tokens, type, and components
   pulled straight from the brand guidelines (05-brand-guidelines.html).
   =================================================================== */

:root {
  --woad: #5B7A8C;
  --woad-deep: #3C566A;
  --harbor-navy: #1F3343;
  --brooch-gold: #B5944A;
  --paper: #F2EFE8;
  --paper-darker: #E8E4DA;
  --ink: #1A1A1A;
  --rule: rgba(26,26,26,0.12);
  --rule-light: rgba(242,239,232,0.18);
  --display: 'EB Garamond', Georgia, serif;
  --body: 'Crimson Pro', Georgia, serif;
  --ui: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; }
.eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--woad-deep);
}

a { color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--harbor-navy); color: var(--paper); }
.btn-primary:hover { background: var(--woad); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { background: var(--paper); color: var(--harbor-navy); }
.btn-on-dark:hover { background: var(--brooch-gold); color: var(--harbor-navy); }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,239,232,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--woad-deep); }
/* nav Book button: beat .nav-links a specificity so it stays solid navy, not faded slate */
.nav-links a.btn-primary { opacity: 1; color: var(--paper); }
.nav-links a.btn-primary:hover { background: var(--woad); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero (homepage) ---------- */
.hero {
  min-height: calc(100vh - 77px);
  display: flex;
  align-items: center;
  padding: 36px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 70px);
  letter-spacing: -0.01em;
  margin: 18px 0 24px;
}
.hero .sub {
  font-size: 21px;
  color: rgba(26,26,26,0.72);
  max-width: 30ch;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; }
.hero-cta .note { font-family: var(--ui); font-size: 13px; color: rgba(26,26,26,0.5); }

/* ---------- image placeholders (art direction) ---------- */
.img-ph {
  position: relative;
  background: var(--paper-darker);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(91,122,140,0.10), rgba(31,51,67,0.05));
}
.img-ph .cap {
  position: relative;
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.42);
  padding: 16px 18px;
}
/* a real photo dropped into a placeholder frame */
.img-ph.photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.img-ph.photo::before { content: none; }
.img-ph.photo .cap { display: none; }
.hero-img { height: min(560px, calc(100vh - 230px)); }

/* ---------- about strip ---------- */
.about { padding: 30px 0 96px; }
.about-inner {
  max-width: 760px;
  border-top: 1px solid var(--rule);
  padding-top: 56px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 28px;
  align-items: start;
}
.about img { width: 40px; height: 40px; margin-top: 6px; }
.about p { font-size: 23px; line-height: 1.5; color: rgba(26,26,26,0.85); }

/* ---------- section frame ---------- */
section.block { padding: 96px 0; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 40px; }
.block-head h2 { font-size: clamp(32px, 3.6vw, 46px); max-width: 16ch; }
.block-head .aside { font-family: var(--ui); font-size: 14px; color: rgba(26,26,26,0.55); max-width: 26ch; text-align: right; }

/* ---------- rooms (homepage preview grid) ---------- */
.rooms { background: var(--paper); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.room-img { aspect-ratio: 3 / 4; margin-bottom: 20px; }
.room h3 { font-size: 26px; margin-bottom: 6px; }
.room .room-meta { font-family: var(--ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--woad-deep); margin-bottom: 12px; }
.room p { font-size: 17px; color: rgba(26,26,26,0.74); margin-bottom: 14px; }
.room .from { font-family: var(--ui); font-size: 13px; color: rgba(26,26,26,0.6); }

/* ---------- breakfast (dark) ---------- */
.breakfast { background: var(--harbor-navy); color: var(--paper); position: relative; overflow: hidden; }
.breakfast .wren-watermark {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 360px; opacity: 0.55;
}
.breakfast-inner { max-width: 720px; position: relative; }
.breakfast .eyebrow { color: var(--brooch-gold); }
.breakfast h2 { font-size: clamp(32px, 4vw, 50px); margin: 20px 0 28px; color: var(--paper); }
.breakfast p { font-size: 21px; line-height: 1.55; color: rgba(242,239,232,0.86); max-width: 38ch; }
.breakfast .hours { font-family: var(--ui); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,239,232,0.6); margin-top: 32px; }

/* ---------- place ---------- */
.place-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center; }
.place-img { aspect-ratio: 5 / 4; }
.place h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 24px; max-width: 14ch; }
.place p { font-size: 18px; color: rgba(26,26,26,0.78); margin-bottom: 18px; max-width: 42ch; }
.place .list { font-family: var(--ui); font-size: 14px; color: rgba(26,26,26,0.7); line-height: 2; margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 22px; }

/* ---------- game night ---------- */
.gamenight { background: var(--paper-darker); }
.gamenight-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.gamenight img { width: 46px; height: 46px; margin-bottom: 22px; }
.gamenight p { font-family: var(--display); font-size: clamp(24px, 3vw, 33px); line-height: 1.4; color: var(--ink); }

/* ---------- booking close ---------- */
.close-cta { text-align: center; padding: 120px 0; }
.close-cta h2 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 14px; letter-spacing: -0.01em; }
.close-cta .sub { font-size: 20px; color: rgba(26,26,26,0.66); margin-bottom: 36px; }
.close-cta.on-dark { background: var(--harbor-navy); }
.close-cta.on-dark h2 { color: var(--paper); }
.close-cta.on-dark .sub { color: rgba(242,239,232,0.7); }

/* ===================================================================
   INNER PAGES
   =================================================================== */

/* ---------- inner page hero ---------- */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--rule); }
.page-hero .wrap { max-width: 880px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 66px); letter-spacing: -0.01em; margin: 18px 0 22px; }
.page-hero .lede { font-size: 22px; line-height: 1.5; color: rgba(26,26,26,0.72); max-width: 48ch; }
.page-hero.on-dark { background: var(--harbor-navy); border-bottom: none; }
.page-hero.on-dark h1 { color: var(--paper); }
.page-hero.on-dark .eyebrow { color: var(--brooch-gold); }
.page-hero.on-dark .lede { color: rgba(242,239,232,0.82); }

/* ---------- full-width banner image ---------- */
.banner-img { height: clamp(280px, 40vw, 500px); }

/* ---------- prose ---------- */
.measure { max-width: 720px; }
.prose p { font-size: 19px; color: rgba(26,26,26,0.82); margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- detail rows (alternating image / text) ---------- */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 88px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-row.flip .detail-text { order: 2; }
.detail-row .detail-img { aspect-ratio: 4 / 3; }
.detail-row h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; max-width: 16ch; }
.detail-row .eyebrow { display: block; margin-bottom: 14px; }
.detail-row p { font-size: 18px; color: rgba(26,26,26,0.78); margin-bottom: 16px; max-width: 44ch; }
.detail-row p:last-child { margin-bottom: 0; }

/* ---------- room listing (rooms page) ---------- */
.room-list { display: flex; flex-direction: column; gap: 72px; }
.room-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.room-row.flip .room-row-text { order: 2; }
.room-row .room-row-img { aspect-ratio: 4 / 3; }
.room-row h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 6px; }
.room-row .room-meta { font-family: var(--ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--woad-deep); margin-bottom: 18px; }
.room-row p { font-size: 18px; color: rgba(26,26,26,0.78); margin-bottom: 18px; max-width: 46ch; }
.room-row .from { font-family: var(--ui); font-size: 14px; color: var(--ink); margin-bottom: 18px; display: block; }
.room-row .room-feats { font-family: var(--ui); font-size: 13.5px; color: rgba(26,26,26,0.66); line-height: 1.9; border-top: 1px solid var(--rule); padding-top: 16px; max-width: 44ch; }

/* ---------- note cards (breakfast / place) ---------- */
.note-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.note-card { border-top: 2px solid var(--brooch-gold); padding-top: 20px; }
.note-card h4 { font-family: var(--display); font-size: 23px; margin-bottom: 8px; }
.note-card p { font-size: 16px; color: rgba(26,26,26,0.72); }

/* ---------- footer ---------- */
footer { background: var(--harbor-navy); color: var(--paper); padding: 72px 0 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule-light); }
.foot-brand .wordmark { font-family: var(--display); font-size: 26px; letter-spacing: 0.03em; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { width: 34px; height: 34px; }
.foot-brand p { font-size: 16px; color: rgba(242,239,232,0.7); max-width: 34ch; }
.foot-col h4 { font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brooch-gold); margin-bottom: 18px; }
.foot-col a, .foot-col span { display: block; font-family: var(--ui); font-size: 14px; color: rgba(242,239,232,0.8); text-decoration: none; margin-bottom: 10px; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-family: var(--ui); font-size: 12px; color: rgba(242,239,232,0.5); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 56px 0 64px; }
  .hero-img { height: 340px; }
  .hero-grid, .place-grid { grid-template-columns: 1fr; gap: 40px; }
  .room-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 14px 40px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 16px; opacity: 1; }
  .nav-links a.btn { margin-top: 10px; padding: 12px 22px; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .block-head .aside { text-align: left; }
  .breakfast .wren-watermark { display: none; }
  .detail-row, .room-row, .note-cards { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .detail-row.flip .detail-text, .room-row.flip .room-row-text { order: 0; }
}
