/* ==========================================================================
   Mossfinch — shared stylesheet
   Mobile first. No build step. No external fonts or third-party requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Warm neutral palette. One restrained accent (moss). */
  --warm-white:  #fbf9f5;
  --oatmeal:     #efe9de;
  --timber:      #e4d9c6;
  --sand:        #f5f1e8;
  --line:        #ddd4c4;
  --line-soft:   #e8e1d4;

  --ink:         #23211e;   /* 15.9:1 on warm-white */
  --ink-soft:    #5a544c;   /*  7.0:1 on warm-white */
  --ink-faint:   #6b645b;   /*  5.6:1 on warm-white */

  --accent:      #3f5d4a;   /*  6.9:1 on warm-white, 7.3:1 against white text */
  --accent-dark: #2f4638;
  --accent-tint: #eaefea;

  --focus:       #1f3d2b;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
  --step-3:  clamp(1.6rem, 1.35rem + 1.2vw, 2.1rem);
  --step-4:  clamp(1.95rem, 1.5rem + 2.2vw, 3rem);
  --step-5:  clamp(2.3rem, 1.6rem + 3.4vw, 3.9rem);

  --space-1: 0.35rem;
  --space-2: 0.7rem;
  --space-3: 1.1rem;
  --space-4: 1.7rem;
  --space-5: 2.6rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius: 3px;
  --radius-lg: 5px;
  --wrap: 1180px;
  --wrap-narrow: 44rem;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The [hidden] attribute must beat any author display rule. Without this a
   component with its own display value (the no-drilling badge, for one) stays
   visible even when marked hidden, which would publish a claim we have not
   confirmed. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p, ul, ol, dl, table { margin: 0 0 var(--space-3); }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0;
}

::selection { background: var(--timber); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.container--narrow { max-width: calc(var(--wrap-narrow) + 5rem); }

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--tinted { background: var(--sand); }
.section--oat { background: var(--oatmeal); }

.stack > * + * { margin-top: var(--space-3); }

/* Spacing utilities. These exist so no element needs an inline style
   attribute: the production Content-Security-Policy in _headers sets
   style-src 'self', which blocks inline styles outright. Adding one back would
   silently break the layout on the live site while looking fine locally. */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-0 { margin-top: 0; }
.text-lead { font-size: var(--step-1); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: #fff;
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40rem;
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
/* Slim status band. Real retail sites carry one; ours states where the
   business actually is rather than manufacturing urgency. */
.announce {
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.55rem 1rem;
  line-height: 1.4;
}
.announce p { margin: 0; }
.announce a { color: #fff; text-underline-offset: 0.2em; }
.announce a:hover { color: var(--oatmeal); }

.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Keep a long mobile menu scrollable rather than letting it run off screen. */
@media (max-width: 760px) {
  .js .site-nav.is-open { max-height: calc(100vh - 8rem); overflow-y: auto; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-3);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  margin: 0;
}
.wordmark:hover { color: var(--accent); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding-block: 0.25rem;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* The toggle only exists when JavaScript is running. Without JS the full
   navigation stays visible, so nothing is unreachable. */
.nav-toggle { display: none; }

.js .nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after  { position: absolute; top: 5px; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--line-soft);
    margin-top: var(--space-2);
  }
  .js .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .js .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--warm-white); }

.btn--block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--oatmeal);
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover { background: var(--oatmeal); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   6. Media placeholders
   Every image sits inside a .media box with a fixed aspect ratio, so the
   layout holds its shape whether or not the image file exists yet.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--oatmeal);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0 2px,
    rgba(255, 255, 255, 0) 2px 11px
  );
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Set by main.js when an image file is not on the server yet, so a calm
   labelled block shows instead of a broken image icon. Once the photograph is
   uploaded the class is never applied and the label never renders. */
.media.is-empty > img { display: none; }

.media.is-empty::after {
  content: "Photography coming";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x1  { aspect-ratio: 3 / 1; }
.media--4x5  { aspect-ratio: 4 / 5; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }

@media (max-width: 620px) {
  .media--3x1 { aspect-ratio: 2 / 1; }
}

/* --------------------------------------------------------------------------
   7. Home hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--space-5) var(--space-6); }

.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero__title {
  font-size: var(--step-5);
  margin-bottom: var(--space-3);
  max-width: 15ch;
}

.hero__text p { color: var(--ink-soft); font-size: var(--step-1); max-width: 38rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-6); }
}

/* --------------------------------------------------------------------------
   8. Page header band (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }

.breadcrumb {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   9. Product grid and cards
   -------------------------------------------------------------------------- */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-4); } }

/* Four featured products. Two up, then four up, so a row is never left with
   a single orphan card. */
@media (min-width: 940px) and (max-width: 1099px) {
  .product-grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .product-grid--four { grid-template-columns: repeat(4, 1fr); }
}

.product-card { display: flex; flex-direction: column; height: 100%; }

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card__link:hover .product-card__title { color: var(--accent); }
.product-card__link:hover .media { border-color: var(--line); }

.product-card .media {
  margin-bottom: var(--space-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card .media > img { transition: transform 0.4s ease; }
.product-card__link:hover .media > img { transform: scale(1.035); }
.product-card__link:hover .media {
  border-color: var(--line);
  box-shadow: 0 6px 22px -14px rgba(35, 33, 30, 0.5);
}
.product-card__link:focus-visible .media { border-color: var(--accent); }

.product-card__room {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

.product-card__problem {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0 0 var(--space-2);
  line-height: 1.5;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

.product-card__foot { margin-top: auto; padding-top: var(--space-2); }
.product-card__foot > .price,
.product-card__foot > .price-note { display: block; }

/* --------------------------------------------------------------------------
   10. Price block
   One GST-inclusive figure, with "Includes GST" in smaller text beneath it.
   Never display a GST-exclusive figure anywhere.
   -------------------------------------------------------------------------- */
.price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.price--card { font-size: var(--step-1); }

.price-note {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin: 0.2rem 0 0;
}

.price-todo {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink-soft);
  font-weight: 600;
}

/* Any value still waiting on a supplier or a decision. Deliberately visible:
   an unfilled field should look unfilled, not like a real answer.
   Contrast 5.8:1 on the page background, 5.4:1 on the tinted panels. */
.is-todo { color: #6f6039; font-weight: 600; }

/* --------------------------------------------------------------------------
   11. Badges and notes
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid #cfdcd2;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
}

.badge--card { margin-top: var(--space-2); }

.note {
  background: var(--sand);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.note > :last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.note--todo { border-left-color: #8a7a4e; background: #f7f2e4; }

/* --------------------------------------------------------------------------
   12. Product page
   -------------------------------------------------------------------------- */
.product-hero { padding-block: var(--space-4) var(--space-5); }

.product-intro { max-width: 52rem; margin-bottom: var(--space-4); }

.product-problem {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.22;
  margin: 0 0 var(--space-2);
  max-width: 24ch;
}

.product-title {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin: 0 0 var(--space-3);
}

/* Delivery estimate sits directly under the product name, above the images,
   so it is on screen before anything else on every viewport size. */
.product-delivery {
  font-size: var(--step--1);
  color: var(--ink-soft);
  background: var(--sand);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: 0;
  max-width: 40rem;
}
.product-delivery strong { color: var(--ink); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "buy"
    "thumbs";
  gap: var(--space-4);
  align-items: start;
}

.gallery__main { grid-area: main; }
.product-buybox { grid-area: buy; }

.gallery__thumbs {
  grid-area: thumbs;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "main   buy"
      "thumbs buy";
    column-gap: var(--space-6);
    row-gap: var(--space-2);
  }
}

.buybox {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--sand);
}
.buybox > :last-child { margin-bottom: 0; }

.buybox__price { margin-bottom: var(--space-4); }

.buybox__cta { margin-bottom: var(--space-3); }

.buybox__delivery {
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-3);
  margin-bottom: 0;
}
.buybox__delivery strong { color: var(--ink); display: block; margin-bottom: 0.2rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.spec-table th,
.spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table th {
  font-weight: 600;
  color: var(--ink);
  width: 40%;
  padding-right: var(--space-3);
}
.spec-table td { color: var(--ink-soft); }


@media (max-width: 520px) {
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 0.15rem; }
  .spec-table td { padding-top: 0; }
}

.product-section { margin-top: var(--space-5); }
.product-section h2 { font-size: var(--step-2); }

/* --------------------------------------------------------------------------
   13. Room sections on the shop page
   -------------------------------------------------------------------------- */
.room-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}
.room-nav a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--warm-white);
}
.room-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.room-section { padding-top: var(--space-5); }
.room-section + .room-section { border-top: 1px solid var(--line-soft); margin-top: var(--space-6); }
.room-section__head { margin-bottom: var(--space-4); }
/* Constrain the text measure, not the header image, which runs full width. */
.room-section__head h2,
.room-section__head p { max-width: 46rem; }
.room-section__head h2 { margin-bottom: var(--space-2); }
.room-section__head p { color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13b. Room tiles
   A second way into the catalogue for people who know the room but not the
   product. Reuses the room header photographs, so it needs no new assets.
   -------------------------------------------------------------------------- */
.room-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) { .room-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .room-tiles { grid-template-columns: repeat(5, 1fr); } }

.room-tile a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.room-tile .media { margin-bottom: var(--space-2); }
.room-tile .media > img { transition: transform 0.4s ease; }
.room-tile a:hover .media > img { transform: scale(1.04); }

.room-tile__label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  display: block;
  line-height: 1.25;
}
.room-tile a:hover .room-tile__label { color: var(--accent); }

.room-tile__count {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   14. Editorial blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split--media-first > .split__media { order: -1; }
}

.cols {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) { .cols--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
@media (min-width: 720px) { .cols--2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }

.principle h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }
.principle p { color: var(--ink-soft); margin-bottom: 0; }
.principle__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--timber);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   15. Long-form / legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: var(--wrap-narrow); }
.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-5);
  padding-top: var(--space-2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  margin-top: var(--space-4);
}
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td {
  text-align: left;
  padding: 0.7rem 0.6rem 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-soft); }

.table-scroll { overflow-x: auto; margin-bottom: var(--space-3); }

.updated {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}

/* Frequently asked questions */
.faq-group { margin-bottom: var(--space-5); }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding-block: var(--space-3);
}
.faq-item h3 { margin-top: 0; margin-bottom: var(--space-2); }
.faq-item p:last-child { margin-bottom: 0; }

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   16. Contact details block
   -------------------------------------------------------------------------- */
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list > li { padding-block: var(--space-3); border-bottom: 1px solid var(--line-soft); }
.detail-list dt, .detail-list__label {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.detail-list dd { margin: 0; }

/* --------------------------------------------------------------------------
   17. Signup (disabled until it is real)
   -------------------------------------------------------------------------- */
.signup__field {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.signup input[type="email"] {
  flex: 1 1 12rem;
  font: inherit;
  font-size: var(--step--1);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
  color: var(--ink-soft);
  min-width: 0;
}
.signup input[type="email"]:disabled {
  background: var(--oatmeal);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.signup .btn { padding: 0.7rem 1.1rem; font-size: var(--step--1); }
.signup__note { font-size: var(--step--1); color: var(--ink-faint); margin: 0; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--oatmeal);
  border-top: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-4);
  margin-top: var(--space-7);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-5);
}
@media (min-width: 620px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--space-4); } }

.footer-grid h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-dark); text-decoration: underline; }

.wordmark--footer { font-size: 1.3rem; margin-bottom: var(--space-2); }
.footer-tagline { color: var(--ink-soft); margin: 0; max-width: 24rem; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--ink-soft); }
.footer-legal strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.error-page {
  padding-block: var(--space-7);
  text-align: left;
  max-width: 34rem;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: var(--step-5);
  color: var(--timber);
  line-height: 1;
  margin: 0 0 var(--space-3);
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .skip-link, .room-nav, .buybox__cta { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
