/* Simply Home Stays — type & text-color system
   Serif: Libre Caslon (Display for heroes, Text elsewhere) — the London book face.
   Sans:  Hanken Grotesk — humanist, quiet, for body & booking UI.
   Text colors are AA-verified against every ground they sit on. */

:root {
  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --font-serif: 'Libre Caslon Text', Georgia, serif;
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;

  --cream: #EDE5D6;
  --ink: #2B2118;
  --body-ink: #5C4B38;    /* 6.7:1 on cream */
  --muted: #6B543D;       /* 5.7:1 on cream, 5.3:1 on #E7DDCA */
  --accent: #A24E28;      /* 4.6:1 on cream as text */
  --accent-deep: #8A3F20;
  --saving-green: #2E6B40; /* 5.7:1 on booking panel */
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
image-slot { display: block; width: 100%; height: 100%; }
input, textarea, select, button { font-family: var(--font-sans); }

/* Type scale — fluid for display, fixed for body. Steps ≥1.25 apart. */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 4.6vw, 4.75rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);
  line-height: 1.18;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}
.t-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.38;
  font-weight: 400;
  text-wrap: pretty;
}
/* Chapter titles — the one deliberate section-marking system:
   serif italic, normal case. Used only where a section needs a name. */
.t-chapter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--accent);
}
.t-body { font-size: 1rem; line-height: 1.7; color: var(--body-ink); text-wrap: pretty; }
.t-lead { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.t-meta { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.t-caption { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.t-quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.t-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

/* Interaction states */
.hov-clay:hover { color: #A24E28; }
.hov-kiln:hover { background: #8A3F20; }
.hov-kiln-text:hover { color: #8A3F20; }
.hov-paper:hover { background: #FFFDF8; }
.hov-amber:hover { color: #D9A075; }
.hov-border-clay:hover { border-color: #A24E28; }
.hov-border-cream:hover { border-color: #FBF3E8; }

.skip { position: absolute; left: -9999px; top: 0; background: #2B2118; color: #FBF3E8; padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0; font-size: 14px; font-weight: 600; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[role="contentinfo"] :focus-visible { outline-color: #F6E9DB; }
::selection { background: #A24E28; color: #FBF3E8; }

/* Sticky elements collide with short viewports; let them flow instead. */
@media (max-height: 700px) {
  .faq-side { position: static !important; }
}

/* ---------- Responsive ----------
   The inline styles on each page are the desktop spec; these classes carry
   the responsive delta, so !important is required to override inline. */

html { scroll-behavior: smooth; }

.nav > a, .nav-links a { white-space: nowrap; }

@media (max-width: 1100px) {
  .sec { padding-left: 32px !important; padding-right: 32px !important; }
  .nav-links { flex-wrap: wrap; gap: 8px 22px !important; justify-content: flex-end; }
  .listing-row { grid-template-columns: 320px 1fr auto !important; gap: 32px !important; }
  .prop-body { grid-template-columns: 1fr 340px !important; gap: 40px !important; }
  .chapter-row { gap: 40px !important; }
}

@media (max-width: 900px) {
  .grid-3, .band-grid, .grid-2, .grid-eat, .grid-media { grid-template-columns: 1fr !important; }
  .band-grid { gap: 32px !important; }
  .grid-media { gap: 28px !important; }
  .grid-transit { grid-template-columns: 1fr 1fr !important; }
  .listing-row { grid-template-columns: 1fr !important; gap: 20px !important; }
  .listing-price { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; }
  .chapter-row { grid-template-columns: 1fr !important; gap: 20px !important; }
  .prop-body { grid-template-columns: 1fr !important; gap: 48px !important; }
  .prop-panel { position: static !important; }
  .prop-gallery { grid-template-columns: 1fr 1fr !important; grid-template-rows: 240px 150px 150px !important; }
  .prop-gallery-main { grid-row: auto !important; grid-column: 1 / -1 !important; }
  .title-row { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  .title-row > div:last-child { align-items: flex-start !important; }
  .band-cta { flex-direction: column !important; align-items: flex-start !important; gap: 28px !important; }
  .faq-side { position: static !important; }
  .has-book-bar { padding-bottom: 76px; }
  .book-bar {
    display: flex !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 50; /* the only fixed overlay in the site */
    background: #FBF3E8;
    border-top: 1px solid rgba(43, 33, 24, 0.15);
    box-shadow: 0 -10px 30px rgba(43, 33, 24, 0.14);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    justify-content: space-between; align-items: center;
  }
}

@media (max-width: 640px) {
  .sec { padding-left: 20px !important; padding-right: 20px !important; }
  .nav { flex-wrap: wrap; gap: 12px !important; padding-top: 16px !important; padding-bottom: 14px !important; }
  .nav-links { flex-wrap: wrap; gap: 8px 18px !important; }
  .hero { height: auto !important; }
  .hero-overlay { position: relative !important; z-index: 1; flex-direction: column !important; align-items: stretch !important; gap: 24px !important; padding: 260px 20px 28px !important; }
  .hero-scrim { height: 75% !important; }
  .hero-card { width: 100% !important; }
  .grid-2-tight { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .footer-bottom, .row-between { flex-wrap: wrap; gap: 8px 20px; }
  .wrap-row { flex-wrap: wrap; gap: 20px 28px !important; }
  .form-foot { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .map-box { height: 300px !important; }
  .img-hero-wrap x-import, .img-hero-wrap image-slot { height: 300px !important; }
  .grid-media x-import, .grid-media image-slot { height: 280px !important; }
}

@media (pointer: coarse) {
  .nav-links a { padding: 8px 2px; }
  .footer-grid a { padding: 4px 0; }
}

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

/* One orchestrated load moment — homepage hero only. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rise-1, .rise-2, .rise-3 { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.rise-2 { animation-delay: 0.09s; }
.rise-3 { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .rise-1, .rise-2, .rise-3 { animation: none; }
}
