/* ============================================================
   SS DELPHINE — BASE + PRIMITIVES
   Phase 0 output. FROZEN.

   These are the shared primitives every section composes.
   Section authors use these classes. They do not write new
   layout components and they do not introduce raw values.

     .section            <Section>        section shell + rhythm
     .section-title      <SectionTitle>   the big display title
     .eyebrow            <Eyebrow>        mono label above a title
     .readmore           <ReadMore>       four-sentence expander
     .fullbleed          <FullBleedImage> edge-to-edge photograph
     .rule               <HairlineRule>   1px divider
     .prose              body copy at the measure
     .plate              two-column mono data list (spec table)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  /* Reserve the scrollbar so locking scroll for a modal cannot shift the
     page sideways, which is what made opening a photograph feel like a jump. */
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a) { color: inherit; }

/* ---------- Ground ---------- */
body {
  overscroll-behavior-y: none;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-variation-settings: 'wdth' var(--wdth-body);
  font-weight: var(--wt-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Focus ----------
   No focus ring anywhere, at the owner's instruction. */
:focus,
:focus-visible { outline: none; }

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: calc(var(--sp-2) * -6);
  z-index: calc(var(--z-menu) + 1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--cream);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); }

/* ============================================================
   PRIMITIVE — .section
   The page rhythm lives here. Image, breath, text, image.
   One idea per screen; do not stack two focal points.
   ============================================================ */
.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--tight { padding-block: var(--section-pad-tight); }
/* Alternating ground. Applied by the shell, not by section authors. */
.section--panel { background: var(--navy); }
.section--deep  { background: var(--navy-deep); }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--content-max));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - (var(--gutter) * 2), 60rem);
  margin-inline: auto;
}

/* ============================================================
   PRIMITIVE — .eyebrow
   Mono, uppercase, wide. The builder-plate voice. Data and
   labels only. The moment this appears in prose it is a gimmick.
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--wt-mono);
  font-size: var(--fs-mono-s);
  line-height: var(--lh-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: var(--sp-3);
}

/* ============================================================
   PRIMITIVE — .section-title
   Genuinely large. Timid type is how a luxury site looks cheap.
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' var(--wdth-display);
  font-weight: var(--wt-display);
  font-size: var(--fs-display-l);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--cream);
  max-width: 18ch;
  text-wrap: balance;
}
.section-title--m { font-size: var(--fs-display-m); }

/* ---------- Body copy ---------- */
.prose {
  max-width: var(--measure);
  font-size: var(--fs-body-l);
  color: var(--cream);
}
.prose > p + p { margin-top: var(--sp-3); }
.prose--muted { color: var(--cream-muted); }

/* ============================================================
   PRIMITIVE — .rule
   Hairline. One pixel. Never a thick border.
   ============================================================ */
.rule {
  border: 0;
  border-top: var(--rule) solid var(--hairline);
  margin: 0;
}
.rule--gold { border-top-color: var(--hairline-gold); }

/* ============================================================
   PRIMITIVE — .readmore
   The four-sentence rule. Collapsed by default, expands in
   place, never moves the scroll position. Text and a hairline,
   not a button: it should read as an invitation.
   The height transition is exempt from the one-animation rule.
   ============================================================ */
.readmore { margin-top: var(--sp-4); }
.readmore__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-expand) var(--ease);
}
.readmore[data-open='true'] .readmore__panel { grid-template-rows: 1fr; }
.readmore__inner { overflow: hidden; }
.readmore[data-open='true'] .readmore__inner { padding-top: var(--sp-3); }
.readmore__toggle {
  appearance: none;
  background: none;
  border: 0;
  border-top: var(--rule) solid var(--hairline);
  width: 100%;
  padding: var(--sp-2) 0 0;
  margin-top: var(--sp-3);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color var(--dur-hover) var(--ease);
}
.readmore__toggle:hover { color: var(--cream); }
/* No JS: the panel is open and the control is hidden. */
html.no-js .readmore__panel { grid-template-rows: 1fr; }
html.no-js .readmore__inner { padding-top: var(--sp-3); }
html.no-js .readmore__toggle { display: none; }

/* ============================================================
   PRIMITIVE — .fullbleed
   Edge to edge. The photography does the work.
   ============================================================ */
.fullbleed {
  position: relative;
  width: 100%;
  margin: 0;
}
.fullbleed img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.fullbleed--tall img { aspect-ratio: 4 / 5; }
.fullbleed--wide img { aspect-ratio: 16 / 9; }
.fullbleed figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--cream-muted);
  padding: var(--sp-2) var(--gutter) 0;
}

/* ============================================================
   PRIMITIVE — .plate
   The technical specifications. A builder's plate, not a card
   grid and not three-across statistic tiles.
   ============================================================ */
.plate { border-top: var(--rule) solid var(--hairline); }
.plate__row {
  display: grid;
  grid-template-columns: minmax(12rem, 22ch) 1fr;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-bottom: var(--rule) solid var(--hairline);
}
.plate__key {
  font-family: var(--font-mono);
  font-weight: var(--wt-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--cream-muted);
  padding-top: 0.35em;
}
.plate__val {
  font-family: var(--font-mono);
  font-weight: var(--wt-mono-strong);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  color: var(--cream);
}
@media (max-width: 640px) {
  .plate__row { grid-template-columns: 1fr; gap: var(--sp-1); }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* No tap highlight. Touch devices paint a grey box over whatever was
   tapped, which reads as a stray outline. */
button,
a,
summary,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}
