@font-face {
  font-family: 'Epilogue';
  src: url('font/epilogue-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------
   THE HALDANE HOUSE
   Register: architectural elevation / survey sheet.
   One family (Epilogue) at 400/600/800. One radius (3px).
   Palette: cool limestone paper, one ruby. Neutrals carry the
   ruby's green-lean complement at very low chroma, not stock grey.
   Type ladder, written before markup and not added to:
     12.5 / 14.5 / 17.5 / 21 / 28 / 40 / 58
   --------------------------------------------------------------- */

:root {
  --paper:  #EDF0EE;
  --panel:  #DDE2DF;
  --ink:    #191F1D;
  --ink2:   #4C5754;
  --accent: #93202F;
  --rule:   #C3CCC7;

  --t1: 12.5px;
  --t2: 14.5px;
  --t3: 17.5px;
  --t4: 21px;
  --t5: 28px;
  --t6: clamp(24px, 3.13vw, 40px);
  --t7: clamp(32px, 4.53vw, 58px);

  --r: 3px;
  --gut: clamp(20px, 4vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Epilogue', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--t3);
  font-weight: 400;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }

h1, h2 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.018em; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* the one label style: drafting caps */
.label {
  font-size: var(--t1);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0;
}

/* focus, everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: var(--t2); font-weight: 600;
  border-radius: var(--r); z-index: 50; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* --- mockup banner ------------------------------------------- */
.banner {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
}
.banner .wrap { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.banner__tag {
  font-size: var(--t1); font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--r);
  padding: 3px 9px; white-space: nowrap;
}
.banner p { font-size: var(--t2); color: var(--ink2); margin: 0; line-height: 1.45; }

/* --- masthead ------------------------------------------------ */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__in {
  display: flex; align-items: center; gap: 24px 32px;
  flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px;
}
.masthead__id { margin-right: auto; }
.masthead__name {
  font-size: var(--t4); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin: 0;
}
.masthead__addr { font-size: var(--t2); color: var(--ink2); margin: 2px 0 0; }
.masthead__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead__nav a {
  font-size: var(--t2); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0; line-height: 1.4;
}
.masthead__nav a:hover { border-bottom-color: var(--ink); }

/* --- the one accent-filled control --------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--paper);
  font-size: var(--t2); font-weight: 800; letter-spacing: 0.02em;
  text-decoration: none; border-radius: var(--r);
  padding: 13px 20px; min-height: 46px;
  transition: background .25s ease, transform .25s ease;
}
.btn__num { font-weight: 600; }
.btn:hover { background: #7A1926; }
.btn:active { transform: translateY(1px); }
.btn--big { font-size: var(--t3); padding: 17px 28px; min-height: 58px; margin: 6px 0 12px; }

/* --- opener --------------------------------------------------- */
.opener { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 4vw, 56px); }
.opener__in {
  display: grid; gap: clamp(24px, 3.5vw, 56px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
}
.opener h1 { font-size: var(--t7); }
.opener__side { padding-top: 6px; }
.lead {
  font-size: var(--t4); font-weight: 600; line-height: 1.4;
  letter-spacing: -0.012em; margin-bottom: 0.9em;
}
.opener__meta {
  font-size: var(--t2); color: var(--ink2);
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 22px;
}

/* --- the facade: the index ------------------------------------ */
.facade {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px);
}
.facade__fig { margin: 18px 0 0; }
.facade__frame { position: relative; }
.facade__fig img { border-radius: var(--r); }
.facade__fig figcaption {
  max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gut);
  font-size: var(--t2); color: var(--ink2); line-height: 1.55;
}
.facade > .wrap:first-child .label { max-width: 44ch; }

.pins { list-style: none; margin: 0; padding: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.pin span {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: var(--paper);
  font-size: var(--t1); font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(237, 240, 238, .92), 0 3px 10px rgba(25, 31, 29, .45);
}
@media (max-width: 899px) { .pins { display: none; } }

/* the index list */
.index { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: none; }
.index li + li { border-top: 1px dashed var(--rule); }
.index a {
  display: grid; align-items: baseline; gap: 4px 18px;
  grid-template-columns: 40px minmax(0, 15em) minmax(0, 1fr) auto;
  text-decoration: none; padding: 15px 4px; min-height: 56px;
  border-radius: var(--r);
  transition: background .25s ease;
}
.index a:hover { background: rgba(147, 32, 47, .07); }
.index__n {
  font-size: var(--t4); font-weight: 800; color: var(--accent);
  line-height: 1.2;
}
.index__name { font-size: var(--t4); font-weight: 600; letter-spacing: -0.012em; }
.index__where { font-size: var(--t2); color: var(--ink2); }
.index__rate { font-size: var(--t4); font-weight: 600; justify-self: end; }
.index--off .index__n { color: var(--ink2); }

@media (max-width: 720px) {
  .index a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    row-gap: 2px;
  }
  .index__name { grid-column: 2; }
  .index__rate { grid-column: 3; grid-row: 1; }
  .index__where { grid-column: 2 / -1; }
}

/* --- rooms ----------------------------------------------------- */
.rooms { padding: clamp(20px, 3vw, 40px) 0 0; }
.room { padding: clamp(40px, 5.2vw, 76px) 0; border-bottom: 1px solid var(--rule); }
.room__in {
  display: grid; gap: clamp(24px, 3.5vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.room--fig .room__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
.room--fig:nth-of-type(even) .room__fig { order: -1; }
.room__body { max-width: 60ch; }
.room__num { color: var(--accent); }
.room__name { font-size: var(--t5); margin: 8px 0 14px; }
.room__lead {
  font-size: var(--t4); font-weight: 600; line-height: 1.42;
  letter-spacing: -0.012em; margin-bottom: 0.9em;
  padding-left: 16px; border-left: 2px solid var(--accent);
}
.room__fig img { border-radius: var(--r); aspect-ratio: 5 / 4; object-fit: cover; }

/* rooms with no photograph put their spec sheet in the second column
   instead of leaving it empty */
.room:not(.room--fig) .room__body {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  column-gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
}
.room:not(.room--fig) .room__body > .spec {
  grid-column: 2; grid-row: 1 / span 4; margin-top: 0;
}
.room:not(.room--fig) .room__body > :not(.spec) { grid-column: 1; max-width: 56ch; }

/* the leader-line motif */
.spec { margin: 26px 0 0; }
.spec > div {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-top: 1px dashed var(--rule);
}
.spec > div:last-child { border-bottom: 1px dashed var(--rule); }
.spec dt {
  font-size: var(--t1); font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink2); flex: none;
  max-width: 15em; line-height: 1.5;
}
.spec dd {
  margin: 0; font-size: var(--t2); font-weight: 600;
  text-align: right; margin-left: auto; line-height: 1.5;
}
.spec--wide { max-width: 34em; }

/* --- full-bleed plates: photo dark, caption on the paper ------- */
.plate { padding: clamp(44px, 5.5vw, 80px) 0 0; }
.plate > img { width: 100%; height: auto; }
.plate__cap { padding: 22px 0 clamp(44px, 5.5vw, 80px); }
.plate__cap .label { margin-bottom: 10px; }
.plate__cap p { max-width: 62ch; font-size: var(--t3); }
.plate--night { border-top: 1px solid var(--rule); }

/* --- breakfast -------------------------------------------------- */
.breakfast { padding: clamp(44px, 5.5vw, 80px) 0; border-top: 1px solid var(--rule); }
.breakfast__in {
  display: grid; gap: clamp(24px, 3.5vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
}
.breakfast h2 { font-size: var(--t6); margin-bottom: 18px; max-width: 18ch; }
.breakfast__body { max-width: 60ch; }
.breakfast__fig img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; }

/* --- the house: chronology -------------------------------------- */
.house {
  background: var(--panel);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(44px, 5.5vw, 80px) 0;
}
.house h2 { font-size: var(--t6); margin-bottom: 26px; }
.chron { list-style: none; margin: 0; padding: 0; }
.chron li {
  display: grid; gap: 6px 30px;
  grid-template-columns: 5.4em minmax(0, 1fr);
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.chron li:last-child { border-bottom: 1px solid var(--rule); }
.chron__y { font-size: var(--t4); font-weight: 800; color: var(--accent); line-height: 1.3; }
.chron p { max-width: 62ch; }
.house__place { max-width: 62ch; margin-top: 26px; font-size: var(--t2); color: var(--ink2); }

/* --- rates: the ending ------------------------------------------ */
.rates { padding: clamp(44px, 5.5vw, 80px) 0 clamp(56px, 6vw, 88px); }
.rates__in {
  display: grid; gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}
.rates h2 { font-size: var(--t6); margin-bottom: 18px; max-width: 16ch; }
.rates__col p { max-width: 56ch; }
.rates__hours { font-size: var(--t2); color: var(--ink2); }

.tariff { width: 100%; border-collapse: collapse; text-align: left; }
.tariff caption { text-align: left; padding-bottom: 12px; }
.tariff th, .tariff td {
  padding: 13px 0; border-top: 1px dashed var(--rule);
  font-size: var(--t3); font-weight: 400;
}
.tariff tr:last-child th, .tariff tr:last-child td { border-bottom: 1px dashed var(--rule); }
.tariff td { text-align: right; font-weight: 600; }

.terms { margin: 26px 0 0; padding: 0 0 0 20px; }
.terms li { font-size: var(--t2); color: var(--ink2); margin-bottom: 9px; line-height: 1.55; }

/* --- footer ------------------------------------------------------ */
.foot {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 64px) 0 34px;
}
.foot__in {
  display: grid; gap: 32px clamp(24px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 32px;
}
.foot__name { font-size: var(--t4); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.foot__col p { font-size: var(--t2); color: var(--ink2); }
.foot__col .foot__name { color: var(--ink); font-size: var(--t4); }
.foot__col a { font-weight: 600; color: var(--ink); }
.foot__col p a { display: inline-block; padding: 12px 0; line-height: 1.5; }
.foot__list { list-style: none; margin: 12px 0 0; padding: 0; }
.foot__list li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: var(--t2); padding: 7px 0;
}
.foot__list a { text-decoration: none; border-bottom: 1px solid var(--rule); font-weight: 600; }
.foot__list a:hover { border-bottom-color: var(--ink); }
.foot__list span:last-child { color: var(--ink2); font-weight: 600; }
.ldr { flex: 1 1 auto; border-bottom: 1px dashed var(--rule); transform: translateY(-4px); }
.foot__legal {
  font-size: var(--t2); color: var(--ink2); max-width: 88ch;
  border-top: 1px solid var(--rule); padding-top: 22px; line-height: 1.55;
}

/* --- motion: polish only, generous, reduced-motion safe ---------- */
.rise { opacity: 0; transform: translateY(22px); }
.rise-in { opacity: 1; transform: none; transition: opacity .85s cubic-bezier(.22,.7,.3,1), transform .85s cubic-bezier(.22,.7,.3,1); }
.pins-armed .pin span { opacity: 0; transform: scale(.7); }
.pins-in .pin span { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22,1.1,.36,1); }
.pins-in .pin:nth-child(2) span { transition-delay: .12s; }
.pins-in .pin:nth-child(3) span { transition-delay: .24s; }
.pins-in .pin:nth-child(4) span { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .pins-armed .pin span { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --- responsive --------------------------------------------------- */
@media (max-width: 960px) {
  .opener__in,
  .room--fig .room__in,
  .breakfast__in,
  .rates__in { grid-template-columns: minmax(0, 1fr); }
  .room:not(.room--fig) .room__body { display: block; max-width: 60ch; }
  .room:not(.room--fig) .room__body > .spec { margin-top: 26px; }
  .room--fig:nth-of-type(even) .room__fig { order: 0; }
  .room__fig img, .breakfast__fig img { aspect-ratio: 3 / 2; }
  .rates h2, .breakfast h2 { max-width: none; }
  .masthead__id { margin-right: 0; width: 100%; }
}

@media (max-width: 560px) {
  .chron li { grid-template-columns: minmax(0, 1fr); }
  .spec > div { flex-wrap: wrap; }
  .spec dd { text-align: left; margin-left: 0; }
  .masthead__nav { gap: 16px; }
  .btn { width: 100%; justify-content: center; }
}

@media (forced-colors: active) {
  .pin span, .btn { border: 1px solid; }
}
