/* Harbour and Stone: a London agency for houses with a story. Only --d-*, --est-* tokens and b-* classes here.
   Warm paper, harbour navy ink, a plaster panel; engraved Caslon for names, Caslon italic for what people say,
   Manrope for the facts. Signature: this week's house as a magazine cover, its rooms turning in the inset. */
:root {
  --d-bg: #f3efe7;
  --d-surface: #ebe5da;
  --d-surface-2: #e2dace;
  --d-text: #17243a;
  --d-muted: #5f6672;
  --d-line: #d6cfc2;
  --d-accent: #17243a;
  --d-on-accent: #f3efe7;
  --d-invert-bg: #17243a;
  --d-invert-text: #ece6da;
  --d-sale: #8a4b2f;
  --d-focus: #17243a;

  --d-font-body: "Manrope", system-ui, sans-serif;
  --d-font-display: "Libre Caslon Display", Georgia, serif;
  --d-font-quote: "Libre Caslon Text", Georgia, serif;
  --d-display-weight: 400;
  --d-display-tracking: -0.01em;
  --d-display-leading: 1.0;
  --d-label-tracking: 0.08em;
  --d-icon-stroke: 1.4;

  --d-radius: 0px;
  --d-radius-card: 0px;
  --d-header-h: 4.5rem;
  --d-logo-h: 1rem;
  --d-over-ink: #ffffff;

  --est-water: #c9d3d8;
  --est-park: #dfe0cc;
  --est-pin: #17243a;
  --b-plaster: #d8c7b4;
}
@media (min-width: 64rem) { :root { --d-logo-h: 1.6rem; } }
.d-display { font-size: clamp(3rem, 1.2rem + 7vw, 8.5rem); }
.d-label { text-transform: uppercase; font-size: 0.72rem; }
.est-story__quote, .est-words blockquote { font-style: italic; }
.d-invert { --d-line: #34425a; --d-muted: #a9b0bb; --d-surface: #1f2e47; }

/* ---- This week's cover: the house left, a plaster page right with its rooms turning in the inset ---- */
.b-today { display: grid; min-height: calc(100svh - var(--d-header-h) - 4.5rem); }
.b-today__cover { position: relative; display: block; min-height: 62svh; overflow: hidden; background: var(--d-surface-2); }
.b-today__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.d-motion .b-today__cover img { animation: b-settle 2.4s var(--d-ease-out) both; }
@keyframes b-settle { from { transform: scale(1.12); } }
.b-today__panel { display: grid; gap: var(--d-space-5); justify-items: center; align-content: center; text-align: center; padding: var(--d-space-8) var(--d-space-5); background: var(--b-plaster); }
.b-today__rooms { display: grid; width: min(17rem, 62vw); aspect-ratio: 4 / 5; overflow: hidden; background: var(--d-surface-2); box-shadow: 0 1.6rem 3rem -1.6rem rgb(23 36 58 / 0.55); }
.b-today__rooms img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.d-motion .b-today__rooms img { opacity: 0; animation: b-room 18s var(--d-ease) infinite; animation-delay: calc(var(--n) * 6s - 0.01s); }
.d-motion .b-today__rooms img:first-child { animation-delay: -0.01s; }
@keyframes b-room { 0% { opacity: 0; transform: scale(1.06); } 5%, 33% { opacity: 1; } 38%, 100% { opacity: 0; transform: none; } }
.d-motion .b-today__rooms { animation: b-rise 1.4s var(--d-ease-out) 300ms both; }
@keyframes b-rise { from { opacity: 0; transform: translate3d(0, 2rem, 0); } }
.b-today__title { font-family: var(--d-font-display); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1.02; max-width: 12ch; }
.b-today__title em { display: block; font-family: var(--d-font-quote); font-size: 0.62em; margin-top: 0.2em; }
.b-today__line { max-width: 30ch; font-size: var(--d-step-1); }
.b-today__meta { display: flex; gap: 0.6em; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.b-today__meta .est-price { font-size: inherit; }
@media (min-width: 56rem) {
  .b-today { grid-template-columns: 1.15fr 1fr; }
  .b-today__cover { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .b-today__rooms img:not(:first-child) { display: none; } }

/* ---- the agency in a sentence ---- */
.b-intro__text { font-family: var(--d-font-display); font-size: var(--d-step-5); line-height: 1.08; max-width: 22ch; }
.b-head { display: grid; gap: var(--d-space-3); max-width: 44rem; }
.b-head .d-muted { max-width: 38rem; }

/* ---- three to see: one wide, two tall ---- */
.b-three__grid { display: grid; gap: var(--d-space-8) var(--d-space-5); }
@media (min-width: 56rem) { .b-three__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-three__grid > :first-child { grid-column: 1 / -1; } .b-three__grid > :last-child { margin-top: var(--d-space-9); } }
@media (min-width: 80rem) { .b-three__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } .b-three__grid > :first-child { grid-column: auto; } .b-three__grid > :nth-child(2) { margin-top: var(--d-space-9); } .b-three__grid > :last-child { margin-top: var(--d-space-6); } }

/* ---- Private Office ---- */
.b-private .d-h1 { max-width: 16ch; font-family: var(--d-font-display); font-weight: 400; }

/* ---- owners ---- */
.b-owners__grid { display: grid; gap: var(--d-space-8); }
@media (min-width: 60rem) { .b-owners__grid { grid-template-columns: 1.3fr 1fr; gap: var(--d-space-9); align-items: center; } }
.b-owners__ask { padding: var(--d-space-7) var(--d-space-6); background: var(--b-plaster); }

/* ---- sell page ---- */
.b-sellhead { display: grid; gap: var(--d-space-4); padding-block: var(--d-space-7) 0; }
.b-sellhead .d-lede { max-width: 34rem; }
.b-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--d-space-6); }

/* The cover house: frame the door, not the real street sign at the left edge of the photograph. */
.b-today__cover img { inset: 0 0 0 auto; width: 128%; max-width: none; object-position: 100% 50%; }
