/* Symphony Estates — the rentals site.
   One stylesheet, no external fonts, no scripts. The rules below are the
   whole design system: colour roles, type scale, spacing scale, then the
   components each page is assembled from.

   Ground: parchment bands alternate with white and slate; the two full-bleed
   bands are midnight navy. Gold is a rule, a numeral, a badge border and a
   hairline — never body text. Terracotta is a rare emphasis: the accent bar
   on a callout, a punctuation mark in a heading.

   Type: Newsreader, a display serif served from this origin (one 132 KB
   variable WOFF2, latin subset, OFL) with a system serif fallback, and the
   system UI stack for body and chrome. Nothing is fetched from a CDN: `font-src
   'self'` under `default-src 'self'`, one origin, no third-party anything. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Ink and grounds */
  --ink: #1c222b;
  --ink-soft: #26282b;
  --muted: #55606e;
  --navy: #16202e;
  --navy-2: #1e2a44;
  --navy-line: #3b4759;
  --navy-edge: #5d6b80;
  --parchment: #f5f0e6;
  --parchment-2: #f2ede3;
  --paper: #ffffff;
  --slate: #f7f8fa;
  --slate-line: #dde2e9;
  --rule: #d8cdb6;
  --on-navy: #f5f0e6;
  --on-navy-soft: #ded8ca;

  /* Accents. `--gold` and `--gold-light` are rules, numerals and badges;
     `--gold-ink` is the readable tone of the same family for small text on
     parchment (5.19:1). `--terracotta` is the rare emphasis (5.93:1). */
  --gold: #b08d57;
  --gold-light: #c9a06a;
  --gold-ink: #7d5f36;
  --terracotta: #9c3d2e;

  /* Links and focus */
  --link: #1e2a44;
  --focus: #16202e;
  --focus-dark: #c9a06a;

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

  /* Spacing scale --s-1 through --s-7, plus the fluid band step. */
  --s-1: 0.375rem;
  --s-2: 0.75rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6rem;
  --band-y: clamp(2.75rem, 6vw, 5.25rem);

  /* Frame and measure */
  --measure: 65ch;
  --wide: 74rem;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --tap: 2.75rem;
}

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

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

/* A column so the colophon sits at the bottom of a short page instead of
   leaving a strip of page background under it. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.09375rem;
  }
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--slate);
}

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

/* On the navy bands a navy ring would vanish: the ring turns gold. */
.band-navy :focus-visible,
.colophon :focus-visible,
.hero :focus-visible {
  outline-color: var(--focus-dark);
}

a.button:focus-visible {
  outline-color: var(--focus);
}

.band-navy a.button:focus-visible,
.colophon a.button:focus-visible {
  outline-color: var(--on-navy);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.75rem 1rem;
  z-index: 3;
  font-size: 0.95rem;
}

.skip:focus {
  transform: none;
  top: 0.5rem;
}

.skip:focus-visible {
  outline-color: var(--gold-light);
}

/* Text for assistive technology only: the separator inside the brand link, so
   the link's name reads as one phrase while the page shows two lines. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Frame and bands */

.frame {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band {
  padding-block: var(--band-y);
}

.band-parchment {
  background: var(--parchment);
}

.band-paper {
  background: var(--paper);
}

.band-navy {
  background: var(--navy);
  color: var(--on-navy);
}

main {
  flex: 1 0 auto;
}

main > .band:first-child {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.band h2:first-child {
  margin-top: 0;
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 0;
}

/* Masthead: a parchment plate with a gold hairline under it, so the navy hero
   below opens the page like a cover. */

body > header {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

body > header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  min-height: var(--tap);
  padding-block: 0.15rem;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.brand-motto {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body > header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
  font-size: 0.95rem;
}

body > header nav a {
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-underline-offset: 0.25em;
}

body > header nav a:hover {
  border-bottom-color: var(--gold);
}

/* The one filled control in the masthead: it reads as the primary action. */
body > header nav a.apply {
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  padding-inline: 1.1rem;
  border: 1px solid var(--navy);
  margin-left: 0.15rem;
}

body > header nav a.apply:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  /* Newsreader's ascenders and descenders are deeper than a system serif's,
     so headings keep a little more air between lines than they used to. */
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 34ch;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-3);
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.15rem);
  margin: var(--s-6) 0 var(--s-3);
}

h3 {
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.35rem);
  margin: var(--s-5) 0 var(--s-2);
}

.band-navy h1,
.band-navy h2,
.band-navy h3 {
  color: var(--on-navy);
}

p,
ul,
ol,
dl,
blockquote {
  max-width: var(--measure);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.09rem, 1rem + 0.6vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.band-navy .lede {
  color: var(--on-navy-soft);
  max-width: 52ch;
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.on-dark {
  color: var(--on-navy-soft);
}

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

a:hover {
  text-decoration-color: var(--gold);
}

.band-navy a:not(.button),
.colophon a {
  color: var(--on-navy);
}

.band-navy a:not(.button):hover,
.colophon a:hover {
  text-decoration-color: var(--gold-light);
}

address {
  font-style: normal;
  max-width: 30ch;
}

/* The tracked uppercase label that opens a section, with its gold hairline. */
.eyebrow {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-3);
  padding-top: 0.9rem;
  max-width: none;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 1px;
  background: var(--gold);
}

.eyebrow-gold {
  color: var(--gold-light);
}

.band-navy .eyebrow::before,
.colophon .eyebrow::before {
  background: var(--gold-light);
  opacity: 0.9;
}

.band-navy .eyebrow:not(.eyebrow-gold) {
  color: var(--on-navy-soft);
}

/* A page's opening band: the same cover treatment on every inner page. */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--navy-line);
}

.page-head h1 {
  max-width: 24ch;
  margin-bottom: 0.75rem;
}

.page-head h1 + .lede {
  margin-bottom: 0;
}

/* Buttons and tap targets */

.button {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  background: var(--navy);
  color: var(--on-navy);
  text-decoration: none;
  border: 1px solid var(--navy);
  padding: 0.6rem 1.35rem;
  margin: 0.35rem 0.5rem 0.35rem 0;
}

.button:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  text-decoration: none;
}

a.button.secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--navy);
}

a.button.secondary:hover {
  background: var(--parchment-2);
}

/* On a navy band the filled button flips to parchment. */
.band-navy .button {
  background: var(--parchment);
  color: var(--navy);
  border-color: var(--parchment);
}

.band-navy .button:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.button-ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--navy-edge);
}

.band-navy .button-ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--navy-edge);
}

.band-navy .button-ghost:hover {
  background: rgba(245, 240, 230, 0.08);
  border-color: var(--gold-light);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  max-width: none;
  margin-top: var(--s-4);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 0;
  max-width: none;
}

/* Status pills. Colour and border carry the meaning; the label always does. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.85rem;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--parchment-2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: middle;
}

.chip::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--muted);
}

.chip-available {
  background: #f6efe1;
  border-color: var(--gold);
}

.chip-available::before {
  background: var(--gold);
}

.chip-soon {
  background: var(--slate);
  border-color: var(--slate-line);
  color: var(--ink-soft);
}

.chip-soon::before {
  background: var(--slate-line);
  box-shadow: inset 0 0 0 1px var(--muted);
}

.chip-leased {
  background: var(--parchment);
  border-color: var(--rule);
  color: var(--muted);
}

.chip-leased::before {
  background: var(--muted);
  opacity: 0.45;
}

.band-navy .chip {
  background: transparent;
  border-color: var(--navy-edge);
  color: var(--on-navy);
}

.band-navy .chip::before {
  background: var(--gold-light);
}

/* Lists that read as chips: amenities. */
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 var(--s-4);
  max-width: none;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--slate-line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Two-column splits: contact, inclusions, actions. */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  max-width: none;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .split-contact {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .split-inclusions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split-col h2 {
  margin-top: 0;
}

/* Cards: the building plates on the home page and the contact card. */
.cards {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  max-width: none;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  display: flex;
  flex-direction: column;
}

.card > .photo {
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--slate);
}

/* Card photos share one crop so three cards line up at every width. */
.card .photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: var(--s-3) var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.3rem);
  max-width: none;
}

.card h3 a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.card-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-rent {
  margin: auto 0 0;
  padding-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  max-width: none;
}

/* Photos: framed plates with caption space. */
.photo {
  margin: 0 0 var(--s-4);
  border: 1px solid var(--slate-line);
  background: var(--paper);
  padding: 0.5rem;
}

.photo img,
.photo video {
  width: 100%;
  /* Parchment, not slate: a frame whose image has not painted yet reads as
     paper waiting for a photo, never as an empty tile. */
  background: var(--parchment);
}

figcaption {
  margin: 0.6rem 0.15rem 0.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.photo[data-kind="video"] {
  border-color: var(--rule);
}

.slot {
  min-height: 11rem;
  background: var(--parchment);
  border: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  text-align: center;
}

.slot-label,
.slot-alt {
  margin: 0;
  max-width: none;
}

.slot-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-alt {
  color: var(--muted);
  font-size: 0.92rem;
}

.disclosure {
  font-size: 0.92rem;
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-left: 3px solid var(--gold);
  padding: 0.7rem 1rem;
  max-width: var(--measure);
}

/* Home: the cover, then the message spread. */

.hero {
  padding-block: clamp(3.25rem, 9vw, 8rem);
  border-bottom: 1px solid var(--navy-line);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .display {
  font-size: clamp(2.5rem, 1.35rem + 5.6vw, 5.25rem);
  /* Two lines of a display serif need air at 40px as much as at 84px. */
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 12ch;
  margin: 0 0 var(--s-3);
}

.hero .lede {
  max-width: 46ch;
  color: var(--on-navy-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: var(--s-4) 0 0;
  max-width: none;
}

.message {
  margin: 0;
  max-width: none;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.message-part {
  margin: 0;
}

.message dt {
  font-family: var(--font-ui);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--gold);
  margin-bottom: var(--s-3);
}

.message dd {
  margin: 0;
}

/* Our goal is the lede of the spread: the largest serif line after the h2. */
.message-goal dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  color: var(--ink);
}

.message-value dd {
  max-width: none;
}

.value-head {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 var(--s-3);
  max-width: none;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  max-width: none;
}

@media (min-width: 40rem) {
  .value-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }
}

.value-list li {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
}

.value-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

.value-note {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Our mission closes the spread as a panel with a gold bar. */
.message-mission {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: var(--s-3) clamp(1.1rem, 3vw, 2rem) var(--s-4);
}

.message-mission dt {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 0.6rem;
}

.message-mission dd {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.02rem + 0.9vw, 1.6rem);
  line-height: 1.35;
  max-width: 44ch;
  color: var(--ink);
}

.section-cta .cta-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem);
  line-height: 1.3;
  max-width: 40ch;
  margin: 0 0 var(--s-2);
}

.section-cta .fine {
  color: var(--on-navy-soft);
}

/* Buildings: a plate, a rent line, then the layouts. */

.building {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--slate-line);
}

.building:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.building-head h2 {
  margin: 0 0 0.5rem;
  max-width: 30ch;
}

.building-rent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin: 0 0 0.35rem;
  max-width: none;
}

.building .photo {
  margin-top: var(--s-4);
}

.rent-range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
  letter-spacing: -0.005em;
}

/* The building plate is a banner, not a poster: shallow on wide screens. */
@media (min-width: 48rem) {
  .building > .photo img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
}

@media (min-width: 64rem) {
  .building > .photo img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

.layouts {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.layout h3 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem;
}

/* Homes in a layout */

.unit-list {
  list-style: none;
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  max-width: none;
}

.unit-list li {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  padding: var(--s-2) clamp(0.9rem, 2vw, 1.35rem) var(--s-3);
}

.unit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin: 0;
  max-width: none;
}

.unit-head > a,
.unit-head > span:first-child {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.unit-head > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
}

.unit-head > a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.unit-rent {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.unit-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.unit-head > a:last-child:not(:first-child) {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--link);
}

/* A leased placeholder's photos are secondary: a small even grid keeps the
   buildings page short without a carousel. */
.unit-list li > .gallery {
  margin: 0.85rem 0 0;
}

.unit-list .gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 48rem) {
  .unit-list .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .unit-list .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.unit-list .photo {
  margin: 0;
  padding: 0.25rem;
}

/* Placeholder galleries line up: one crop for every thumbnail. */
.unit-list .gallery .photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.unit-list .photo figcaption {
  display: none;
}

/* Floor plans: a navy head, thin rules, no zebra. */

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 var(--s-4);
  border: 1px solid var(--slate-line);
  background: var(--paper);
}

.floor-plans {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
}

.floor-plans caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
}

.floor-plans th,
.floor-plans td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--slate-line);
}

.floor-plans thead th {
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 0;
  padding-block: 0.8rem;
}

.floor-plans tbody th {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.floor-plans tbody td {
  font-variant-numeric: tabular-nums;
}

.floor-plans th[scope="row"] a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.floor-plans tbody tr:hover {
  background: var(--slate);
}

/* Below 40rem the floor plan becomes one labelled block per layout, so a
   phone never has to scroll sideways. The header row is hidden visually and
   each cell carries its own label. */
@media (max-width: 39.999rem) {
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: none;
  }

  .floor-plans {
    border: 0;
    background: none;
  }

  /* The "Floor plans" heading above the table already names the section on a
     phone; the caption stays in the accessibility tree. */
  .floor-plans caption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .floor-plans thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .floor-plans,
  .floor-plans tbody,
  .floor-plans tr,
  .floor-plans th,
  .floor-plans td {
    display: block;
    width: 100%;
  }

  .floor-plans tr {
    background: var(--paper);
    border: 1px solid var(--slate-line);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
  }

  .floor-plans th[scope="row"] {
    border-top: 0;
    font-size: 1.08rem;
  }

  .floor-plans th[scope="row"] a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }

  .floor-plans td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    border-top: 1px dashed var(--rule);
  }

  .floor-plans td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* A home's page */

.unit-page h1 {
  max-width: 26ch;
}

.unit-intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 64rem) {
  .unit-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.unit-copy .lede {
  max-width: 46ch;
  margin-bottom: 0;
}

.unit-lead {
  margin: 0;
}

.unit-lead .photo {
  margin: 0;
}

.unit-lead .photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .unit-lead .photo img {
    aspect-ratio: 3 / 2;
  }
}

.unit-lead figcaption {
  min-height: 1.4rem;
}

/* The facts grid. The rent is stated here and nowhere else on the page. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--slate-line);
  background: var(--paper);
  margin: 0 0 var(--s-4);
  max-width: none;
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fact {
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid var(--slate-line);
}

.fact:nth-child(-n + 2) {
  border-top: 0;
}

.fact-rent {
  grid-column: 1 / -1;
  border-top: 0;
}

.fact-rent + .fact,
.fact-rent + .fact + .fact {
  border-top: 0;
}

@media (min-width: 40rem) {
  .fact:nth-child(-n + 3) {
    border-top: 0;
  }

  .fact-rent + .fact,
  .fact-rent + .fact + .fact,
  .fact-rent + .fact + .fact + .fact {
    border-top: 0;
  }
}

.fact dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.fact p {
  margin: 0;
  max-width: none;
}

.rent {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: none;
}

.rent-note {
  display: inline-block;
  margin-left: 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
  margin: 0;
  max-width: none;
}

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery .photo {
  margin: 0;
}

.section-inclusions .split,
.section-actions {
  align-items: start;
}

.unit-actions h2 {
  margin-top: 0;
}

.unit-contact .contact-card h2 {
  margin-top: 0;
}

/* Numbered steps: gold numerals in a hanging column. */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--s-3) 0 var(--s-4);
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-ink);
  border-top: 1px solid var(--gold);
  padding-top: 0.4rem;
  line-height: 1.3;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: grid;
  gap: 0.35rem;
  max-width: var(--measure);
}

.doc-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-soft);
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

/* Callouts: parchment panel, accent bar. */
.callout {
  background: var(--parchment-2);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.15rem;
  margin: 0 0 var(--s-4);
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

blockquote {
  background: var(--parchment-2);
  border-left: 3px solid var(--terracotta);
  margin: 0 0 var(--s-4);
  padding: 1.1rem clamp(1.05rem, 2.5vw, 1.5rem);
  max-width: var(--measure);
}

blockquote p {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* Contact */

.contact-card {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  padding: clamp(1.15rem, 3vw, 1.9rem);
}

.contact-card h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
}

.contact-list {
  margin: 0;
  max-width: none;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1.1rem;
}

.contact-list dt:first-of-type {
  margin-top: 0;
}

.contact-list dd {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
}

.contact-list dd a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.contact-list dd address {
  margin-block: 0.25rem;
}

.channels {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 var(--s-4);
  padding: 0;
  max-width: 24rem;
  justify-items: start;
}

.channels li {
  width: 100%;
}

.channels .button {
  width: 100%;
  justify-content: space-between;
  margin: 0;
}

@media (min-width: 64rem) {
  .split-apply .apply-side {
    position: sticky;
    top: 2rem;
  }
}

/* Privacy: long-form prose with hanging subheads. */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  border-top: 1px solid var(--rule);
  padding-top: 1.35rem;
  margin-top: var(--s-5);
  max-width: 24ch;
}

.prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.prose h3 {
  margin-top: var(--s-4);
  max-width: 30ch;
}

@media (min-width: 48rem) {
  .prose h2,
  .prose h3 {
    margin-left: -1.4rem;
    padding-left: 1.15rem;
    border-left: 2px solid var(--gold);
  }

  .prose h2 {
    border-top: 0;
    padding-top: 0;
    margin-top: var(--s-5);
  }

  .prose h2:first-child {
    margin-top: 0;
  }

  .prose h3 {
    border-left: 2px solid var(--rule);
  }
}

/* Colophon: the navy closing band. */

footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--gold);
}

.colophon {
  max-width: var(--wide);
}

.colophon-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 64rem) {
  .colophon-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.contact-copy h2 {
  margin-top: 0;
}

.contact-copy .lede {
  margin-bottom: var(--s-3);
}

.colophon-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  margin: 0;
  max-width: none;
}

.colophon-motto {
  margin: 0.35rem 0 0;
  color: var(--gold-light);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  max-width: none;
}

.colophon .eyebrow {
  margin-bottom: 0.6rem;
}

.colophon-nav {
  display: block;
}

.colophon-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.colophon-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.colophon-nav a:hover {
  border-bottom-color: var(--gold-light);
}

.colophon address {
  color: var(--on-navy-soft);
  max-width: 30ch;
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
  margin: 0.75rem 0 0;
  max-width: none;
}

.footer-contact > span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: var(--tap);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* On a phone the three footer items stack: each is a full tap row, and no
   line is left with a single stranded link. */
@media (max-width: 30rem) {
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

/* Motion: one quiet entrance per band and a small lift on the plates. Every
   rule here is inside `prefers-reduced-motion: no-preference` and the reduce
   block below switches the whole lot off. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .frame > * {
    animation: rise 0.7s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  }

  .frame > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .frame > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .frame > :nth-child(4) {
    animation-delay: 0.21s;
  }

  .frame > :nth-child(5) {
    animation-delay: 0.28s;
  }

  .card,
  .contact-card,
  .photo,
  .unit-list li {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .card:hover,
  .unit-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -22px rgba(22, 32, 46, 0.55);
    border-color: var(--rule);
  }

  .photo:hover {
    border-color: var(--gold);
  }
}

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