/* ==========================================================================
   Apartment listing — its own editorial palette and type, separate from the
   app's brand tokens in css/styles.css. Warm linen and stone from the flat's
   walls and floors, courtyard green, terracotta for accents.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-garamond-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format("woff2");
}

:root {
  --linen: #f5f0e8;
  --stone: #ebe4d8;
  --stone-2: #e2d9ca;
  --ink: #2a2825;
  --ink-2: #57524a;
  --rule: rgba(42, 40, 37, 0.16);
  --green: #4d5c46;
  --green-tint: #e3e6dc;
  --terracotta: #974d31;
  --on-photo: #fbf8f3;

  --serif: "Cormorant Garamond", Didot, Georgia, serif;
  --sans: "Cormorant Garamond", Georgia, serif; /* one family throughout */

  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #1b1a18;
    --stone: #25231f;
    --stone-2: #2e2b27;
    --ink: #efe9df;
    --ink-2: #bdb5a8;
    --rule: rgba(239, 233, 223, 0.16);
    --green: #a3b594;
    --green-tint: #262a23;
    --terracotta: #de9272;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--linen); padding: 10px 16px; z-index: 10; }

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

h1, h2, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-bottom: 0.5em; }
p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 60ch; }

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}

/* Header */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  color: var(--on-photo);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.bar-mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.bar-nav { display: flex; align-items: center; gap: 8px; }
.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.bar-nav .pill { border: 1px solid rgba(251, 248, 243, 0.7); }
.bar-nav a:hover, .bar-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  color: var(--on-photo);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.45) 0%, rgba(20, 18, 15, 0) 22%, rgba(20, 18, 15, 0) 45%, rgba(20, 18, 15, 0.72) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 8vh, 88px); }
.hero .kicker { color: var(--on-photo); opacity: 0.92; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 7rem); max-width: 14ch; color: var(--on-photo); }
.hero p { color: var(--on-photo); margin: 1.4rem 0 0; font-size: 1rem; letter-spacing: 0.02em; }

/* Sections */
.section { padding: clamp(72px, 12vw, 160px) 0; }
.section.tint { background: var(--stone); }

.intro {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.intro h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.intro p:first-of-type { font-size: 1.125rem; color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.fact .display { font-size: clamp(2.5rem, 5vw, 3.75rem); display: block; }
.fact .unit { font-size: 0.45em; margin-left: 0.15em; }
.fact .flabel {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Feature: large image with text column */
.feature {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.feature.flip { grid-template-columns: 4fr 7fr; }
.feature.flip .feature-media { order: 2; }
.feature-text { padding-bottom: 8px; }
.feature-media figure { margin: 0; }
.inset {
  width: 62%;
  margin: -18% 0 0 auto;
  border: 10px solid var(--linen);
  position: relative;
}
.tint .inset { border-color: var(--stone); }
.portrait { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Full-bleed image with quote */
.bleed { position: relative; }
.bleed img { width: 100%; height: min(88vh, 860px); object-fit: cover; }
.bleed blockquote {
  margin: 0;
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.bleed blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}
.bleed-text { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.pair figure:nth-child(2) { margin-top: clamp(48px, 10vw, 140px); }
figure { margin: 0; }

/* Floor plan */
.plan-wrap {
  display: grid;
  grid-template-columns: 3fr 8fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.floorplan { width: 100%; height: auto; display: block; }
.fp-wall { fill: var(--ink); }
.fp-room { fill: var(--stone-2); }
.fp-hall { fill: var(--stone); }
.tint .fp-hall { fill: var(--linen); }
.fp-window { fill: var(--stone); stroke: var(--ink); stroke-width: 2; }
.fp-door { fill: var(--stone); }
.fp-balcony { fill: var(--green-tint); stroke: var(--green); stroke-width: 3; }
.fp-deck { fill: url(#deck); opacity: 0.45; }
.fp-hatch { stroke: var(--green); stroke-width: 1.5; }
.fp-label { font-family: var(--serif); font-size: 34px; font-weight: 500; fill: var(--ink); }
.fp-total { font-size: 28px; }
.fp-north-ring { fill: none; stroke: var(--ink-2); stroke-width: 1.5; } .fp-north-needle { fill: var(--terracotta); }

.fp-small { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-2); }
.fp-onbalcony { fill: var(--green); }
.fp-area { font-family: var(--sans); font-size: 23px; fill: var(--ink-2); }
.fp-scale { stroke: var(--ink-2); stroke-width: 2; }
.small { font-size: 0.875rem; }

/* Neighbourhood list and terms */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.lines li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.lines li span:first-child { color: var(--ink); }
.terms dt {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 20px;
}
.terms dd {
  margin: 4px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}
.terms dl { margin: 0; }
.included { list-style: none; padding: 0; margin: 0; }
.included li { padding: 10px 0 10px 28px; position: relative; color: var(--ink); }
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 14px;
  height: 1px;
  background: var(--terracotta);
}
.subhead {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 48px 0 8px;
}

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 16ch; margin: 0 auto 0.5em; }
.contact p { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn.solid { background: var(--ink); color: var(--linen); }
.btn:hover, .btn:focus-visible { background: var(--terracotta); border-color: var(--terracotta); color: var(--linen); }
.mail { margin-top: 28px; font-size: 0.9375rem; }
.mail a { color: var(--terracotta); }

/* Footer: the only place for company and legal lines */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 0.8125rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; display: flex; align-items: center; font-size: 0.8125rem; }

@media (max-width: 820px) {
  .intro, .feature, .feature.flip, .bleed-text, .plan-wrap, .two { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .inset { width: 72%; }
  .lines li { grid-template-columns: 1fr; gap: 2px; }
  .bleed img { height: 62vh; }
  .bar-mark { font-size: 1.0625rem; }
}

/* ==========================================================================
   English page, following Claude Design's brochure v3
   ========================================================================== */
.hero .kicker { line-height: 1.9; }
.hero-line { font-size: 1.125rem !important; border-top: 1px solid rgba(251, 248, 243, 0.45); padding-top: 18px; max-width: 34rem; }
h2 em, .hero-line em { font-style: italic; }
h2.wide { font-size: clamp(2.25rem, 5.4vw, 4.25rem); }
.lede { max-width: 46rem; margin: 28px 0 clamp(40px, 6vw, 72px); }
.lede p { max-width: none; color: var(--ink); font-size: 1.125rem; }
.lede p + p { color: var(--ink-2); }

.residence { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.residence-side p { font-size: 1.05rem; }
.figures { margin: 36px 0 0; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--rule); }
.figures dt, .figures dd { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.figures dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); align-self: center; }
.figures dd { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); text-align: right; line-height: 1; }

.lead-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split-row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.split-row.top { margin-top: 0; }
.split-row figure img { width: 100%; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 20px 0 0; }
.spec dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); align-self: center; }
.spec dd { margin: 0; font-size: 1.125rem; }
.study { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin-top: clamp(24px, 4vw, 48px); align-items: start; }
.study img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-row .study { margin-top: 0; }
.caption { font-style: italic; font-size: 0.95rem; margin-top: 12px; }
.dash { list-style: none; margin: 16px 0 0; padding: 0; }
.dash li { position: relative; padding: 10px 0 10px 26px; color: var(--ink); }
.dash li::before { content: "–"; position: absolute; left: 0; color: var(--terracotta); }
.dash.lined { border-top: 1px solid var(--rule); }
.dash.lined li { border-bottom: 1px solid var(--rule); }
.included li::before { content: "–"; width: auto; height: auto; background: none; top: 10px; color: var(--terracotta); }
.bleed .split-row { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); margin-top: 0; }
.bleed blockquote { padding-top: 0; margin-bottom: 28px; }
.rule-accent { display: block; width: 40px; height: 2px; background: var(--terracotta); margin-bottom: 24px; }
.note-line { display: block; font-family: var(--sans); font-size: 1rem; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.mail-big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 8px 0 0; }
.mail-big a { text-decoration: none; color: var(--ink); }
.mail-big a:hover { color: var(--terracotta); }
.actions.left { justify-content: flex-start; margin-top: 28px; }
.foot .legal { flex-basis: 100%; font-size: 0.85rem; max-width: 60rem; }

@media (max-width: 820px) {
  .residence, .split-row { grid-template-columns: 1fr; }
  .lead-photo img { aspect-ratio: 4 / 3; }
  .figures dd { font-size: 1.75rem; }
}
