/* Coastal & Mountain Ventures — site styles
   Tokens and type come from docs/superpowers/specs/2026-10-24-coastal-and-mountain-website-design.md */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0E2F3A;
  --paper: #FAFBFB;
  --mist: #E9EFF0;
  --sea: #1C6E7D;
  --stone: #5F6F75;
  --sand: #D9CDB8;

  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --s-1: 15px;
  --s0: 17px;
  --s1: 20px;
  --s2: 26px;
  --s3: 34px;
  --s4: 48px;
  --s5: 64px;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 2px;
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s0) / 1.6 var(--sans);
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
button { font: inherit; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--s4); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s2); }
@media (max-width: 600px) {
  h1 { font-size: var(--s3); }
  h2 { font-size: var(--s2); }
  h3 { font-size: var(--s1); }
}
p { margin: 0 0 1em; }
p, li { max-width: 38em; }
ul { padding-left: 1.2em; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.lead { font-size: var(--s1); font-weight: 300; }
.muted { color: var(--stone); }
.small { font-size: var(--s-1); }

/* Layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.band { background: var(--mist); }
.rule { border: 0; border-top: 1px solid var(--mist); margin: 0; }
.stack > * + * { margin-top: 24px; }
@media (min-width: 768px) {
  .section { padding-block: 88px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--sea);
  border-radius: var(--radius);
  background: var(--sea);
  color: var(--paper);
  font: 500 var(--s0) / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips and notes */
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: var(--s-1);
  font-weight: 500;
  line-height: 1.4;
}
.chip--rate { background: var(--ink); color: var(--paper); }

/* Facts strip ("Sleeps 2 · Double bed · 20 m²") and the rent line */
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--s-1); color: var(--stone); }
.facts li { max-width: none; }
.facts li + li::before { content: "\00b7"; margin-inline: 10px; }
.rate { font-size: var(--s1); font-weight: 500; margin-bottom: 0.4em; }
.rate .small { display: block; font-weight: 300; }
.managed-by { font-weight: 500; }

/* Logo */
.logo { display: inline-block; width: 1em; height: 1em; color: currentColor; line-height: 0; }
.logo svg { width: 100%; height: 100%; }
.logo--mark .logo__ring { display: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--mist); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-header__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header__brand .logo { font-size: 40px; }
.site-header__nav { display: flex; gap: 24px; }
.site-header__nav a { color: var(--ink); text-decoration: none; }
.site-header__nav a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .site-header__name { font-size: var(--s-1); white-space: nowrap; }
  .site-header__nav { gap: 16px; font-size: var(--s-1); }
}
@media (max-width: 400px) {
  .site-header__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); padding-block: 48px; font-size: var(--s-1); }
.site-footer a { color: var(--paper); }
.site-footer p { margin-bottom: 0.5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Property page */
.property__head { padding-block: 32px 20px; }
.property__head h1 { margin-bottom: 0.2em; }
.property__where { font-size: var(--s1); font-weight: 300; margin-bottom: 0; }
.property__head .facts { margin-top: 6px; }
.property__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 4px; }
.property__details { display: grid; gap: 32px; padding-block: 24px 48px; }
.property__sections > section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--mist); }
.property__sections h2 { font-size: var(--s2); margin-bottom: 0.7em; }
.property__sections .lead { margin: 0; }

/* Icons (inlined Lucide SVGs) */
.icon { width: 24px; height: 24px; flex: none; stroke-width: 1.5; color: var(--sea); }

/* Three headline features under the mosaic: a swipe strip on phones, three cards on desktop */
.features { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.features::-webkit-scrollbar { display: none; }
.feature { flex: 0 0 84%; scroll-snap-align: start; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--mist); border-radius: var(--radius); max-width: none; }
.feature .icon { width: 26px; height: 26px; margin-top: 2px; }
.feature strong { display: block; font-weight: 500; }
.feature span { display: block; color: var(--stone); font-size: var(--s-1); }
@media (min-width: 900px) {
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; overflow: visible; }
  .feature { flex: auto; padding: 20px; }
}

/* "What this place offers" and "Good to know": icon grids */
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px 28px; }
.offers li { display: flex; gap: 12px; align-items: flex-start; max-width: none; }
.offers .icon { margin-top: 1px; }
.offers__label { font-size: var(--s-1); font-weight: 500; letter-spacing: 0.02em; color: var(--stone); margin: 20px 0 10px; }
.offers__label:first-of-type { margin-top: 0; }
.offers > li[hidden], .offers__label[hidden] { display: none; }
html:not(.js) .offers > li[hidden] { display: flex; }
html:not(.js) .offers__label[hidden] { display: block; }
html:not(.js) [data-reveal] { display: none; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: var(--s-1); margin-top: 20px; }
.smallprint { margin-top: 20px; font-size: var(--s-1); color: var(--stone); }
.smallprint summary { cursor: pointer; color: var(--sea); font-weight: 500; }
.smallprint ul { margin: 10px 0 0; }
.smallprint li + li { margin-top: 6px; }
@media (min-width: 600px) {
  .offers { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .property__head { padding-block: 48px 24px; }
  .property__details { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-block: 32px 56px; }
  .property__aside { order: 2; position: sticky; top: 24px; }
}

/* Static mini map in "Where it is" */
.map { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--mist); }
.map img { width: 100%; height: auto; }
.map:hover img { opacity: 0.92; }
.map__links { margin-top: 8px; }

/* Rent and facts card */
.card { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 20px; }
.card .rate { margin-bottom: 10px; }
.card .facts { margin: 12px 0 0; }
.card__term { margin: 12px 0 0; }
.card .btn-row { margin-top: 18px; }
.card .btn { flex: 1 1 auto; }

/* Photo mosaic: hero large, four small tiles, "See all" button */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mosaic__big { grid-column: 1 / -1; position: relative; }
.mosaic__item { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.mosaic__item picture { display: block; height: 100%; }
.mosaic__item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mosaic__big .mosaic__item img { aspect-ratio: 16 / 10; }
.mosaic__all { position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding: 8px 16px; font-size: var(--s-1); background: var(--paper); border-color: var(--paper); color: var(--ink); }
.mosaic__all:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (min-width: 900px) {
  .mosaic { position: relative; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; height: min(520px, 60vh); }
  .mosaic__big { grid-column: 1; grid-row: 1 / 3; position: static; }
  .mosaic__item img, .mosaic__big .mosaic__item img { aspect-ratio: auto; }
  /* Over the last small tile, bottom right, as the big listing sites do it. */
  .mosaic__all { left: auto; right: 16px; bottom: 16px; }
}

/* Lightbox */
/* The dialog itself paints the dark cover, full viewport, so the page never shows through. */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: rgba(14, 47, 58, 0.98); color: var(--paper); }
.lightbox::backdrop { background: rgba(14, 47, 58, 0.98); }
.lightbox[open] { position: fixed; inset: 0; display: flex; flex-direction: column; animation: lightbox-in 150ms ease-out; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.lightbox__count { font-size: var(--s-1); }
.lightbox__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid rgba(250, 251, 251, 0.5); border-radius: var(--radius); background: transparent; color: var(--paper); cursor: pointer; }
.lightbox__btn .icon { width: 20px; height: 20px; color: currentColor; }
.lightbox__btn:hover { background: rgba(250, 251, 251, 0.12); }
.lightbox__btn:focus-visible { outline-color: var(--paper); }
.lightbox__figure { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 56px 16px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { margin-top: 12px; font-size: var(--s-1); text-align: center; }
/* Arrows on either side of the photo, as on the big listing sites */
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(250, 251, 251, 0.5); border-radius: 50%; background: rgba(14, 47, 58, 0.6); color: var(--paper); cursor: pointer; }
.lightbox__arrow .icon { width: 26px; height: 26px; color: currentColor; stroke-width: 2; }
.lightbox__arrow:hover { background: var(--paper); color: var(--ink); }
.lightbox__arrow:focus-visible { outline-color: var(--paper); }
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }
@media (min-width: 900px) {
  .lightbox__figure { padding-inline: 80px; }
  .lightbox__arrow { width: 52px; height: 52px; }
  .lightbox__arrow--prev { left: 20px; }
  .lightbox__arrow--next { right: 20px; }
}

/* Enquiry form */
.enquiry { display: grid; gap: 32px; }
.enquiry__intro h2 { margin-bottom: 0.4em; }
.enquiry__form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field select { width: 100%; padding: 10px 12px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; }
.field--row { display: grid; gap: 16px; }
.field--row > div { display: grid; gap: 6px; }
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { margin-top: 5px; }
.review { display: grid; gap: 32px; }
@media (min-width: 768px) { .review { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.field input::placeholder, .field textarea::placeholder { color: var(--stone); opacity: 0.8; }
.field input:focus, .field textarea:focus { border-color: var(--sea); }
.form-error { padding: 10px 12px; border: 1px solid #B23A3A; border-radius: var(--radius); background: #FBECEC; color: #6B1E1E; margin: 0; }
.enquiry__form .small { margin: 0; }
@media (min-width: 768px) {
  .enquiry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Home: split hero */
.hero { display: grid; }
.hero__panel { background: var(--ink); color: var(--paper); padding: 40px var(--gutter) 48px; }
.hero__brand { font-size: 88px; margin-bottom: 16px; margin-left: -4px; }
@media (min-width: 900px) { .hero__brand { font-size: 150px; margin-bottom: 28px; margin-left: -8px; } }
.hero__panel h1 { font-size: var(--s3); color: var(--paper); max-width: 14em; }
.hero__panel .lead { color: var(--mist); max-width: 30em; }
.hero__links { list-style: none; margin: 32px 0 0; padding: 0; max-width: 32em; border-top: 1px solid rgba(250, 251, 251, 0.25); }
.hero__links li { border-bottom: 1px solid rgba(250, 251, 251, 0.25); }
.hero__links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; color: var(--paper); text-decoration: none; }
.hero__links a:hover .hero__name { text-decoration: underline; }
.hero__links a:focus-visible { outline-color: var(--paper); }
.hero__name { font-weight: 500; }
.hero__area { color: var(--mist); font-weight: 300; font-size: var(--s-1); text-align: right; }
.hero__photo { order: -1; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 45fr 55fr; min-height: 680px; }
  .hero__panel { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; }
  .hero__panel h1 { font-size: var(--s4); }
  .hero__photo { order: 0; }
  .hero__photo picture, .hero__photo img { height: 100%; }
  .hero__photo img { aspect-ratio: auto; }
}

/* Home: apartment list */
.apartments { padding-block: 32px 24px; }
.apartment { display: grid; gap: 20px; padding-block: 36px; border-top: 1px solid var(--mist); }
.apartment:first-of-type { border-top: 0; }
.apartment__photo { display: block; border-radius: var(--radius); overflow: hidden; }
.apartment__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.apartment h2 { font-size: var(--s3); margin-bottom: 0.15em; }
.apartment__where { font-size: var(--s1); font-weight: 300; margin-bottom: 12px; }
.apartment__text .facts { margin: 0 0 14px; }
.apartment__status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.apartment__teaser { margin-bottom: 20px; }
@media (min-width: 768px) {
  .apartments { padding-block: 48px 32px; }
  .apartment { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 56px; }
  /* A touch under the h1 size so "Studio at THREE43 on B" stays on one line; balance keeps a stray word off its own line when it does wrap. */
  .apartment h2 { font-size: 40px; text-wrap: balance; }
  .apartment:nth-of-type(even) .apartment__photo { order: 2; }
}

/* Home: line art in the margins beside the apartment list, a ribbon, a few dots and horizon lines on each side.
   Only on screens wide enough to have margins; each strip sits between the viewport edge and the content and never overlaps it. */
.apartments-stage { position: relative; overflow: hidden; --aqua: #6FB2BF; }
.art { display: none; position: absolute; top: 0; height: 100%; width: min(calc(50% - var(--wrap) / 2 - 24px), 560px); pointer-events: none; }
.art--left { right: calc(50% + var(--wrap) / 2 + 24px); }
.art--right { left: calc(50% + var(--wrap) / 2 + 24px); }
@media (min-width: 1360px) { .art { display: block; } }

/* Home: how it works, who, tenants, contact */
.how { display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--paper); border-radius: var(--radius); max-width: none; }
.step .icon { margin-top: 2px; }
.step strong { display: block; font-weight: 500; }
.step span { display: block; color: var(--stone); font-size: var(--s-1); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.quote { padding: 20px 22px; background: var(--mist); border-radius: var(--radius); max-width: none; }
.quote p { font-size: var(--s1); margin-bottom: 0.6em; max-width: none; }
.quote footer { margin: 0; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.contact { display: grid; gap: 24px; }
.contact__actions { align-self: center; }
@media (min-width: 768px) {
  .how { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

/* Footer layout */
.site-footer__row { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .site-footer__row { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer__row > div:last-child { text-align: right; }
}
