/* AVA 320 — page-scoped mid-century editorial layout.
   Loaded only from /ava/. Origin, Outpost, Haven, and the landing page
   do not include this file.

   Type uses the site's self-hosted faces from styles.css:
   Inter Display SemiBold (600) for headings, Inter (400/500) for text.
   Weights stay on those files so the browser does not synthesize a
   Google-font stand-in (the mock used Inter Tight). */

.ava-page {
  --ink-tint: #E8EDE4;
  --ink-deep: #122E27;
  --line-soft: rgba(25, 62, 52, 0.14);
  --page-pad: clamp(20px, 4.5vw, 72px);
  --ava-max: 1180px;
  --ava-measure: 1400px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.ava-main {
  overflow-x: hidden;
}

.ava-main img {
  max-width: 100%;
  display: block;
}

/* The shared figcaption rule draws a bottom rule and muted color.
   AVA captions are either overlaid on the hero or a plain credit. */
.ava-main figcaption {
  border: 0;
  padding: 0;
}

/* ===== Masthead: ink title block + bordered hero ===== */
.ava-masthead {
  position: relative;
  z-index: 2;
  padding: 28px var(--page-pad) 0;
  max-width: var(--ava-measure);
  margin: 0 auto;
}

.ava-masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ava-masthead-meta span {
  min-width: 0;
  max-width: 48%;
}

.ava-masthead-meta .issue {
  color: var(--accent);
}

.ava-masthead-meta span:last-child {
  text-align: right;
}

.ava-hero-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  align-items: stretch;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.ava-title-block {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.ava-badge {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--amber);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.ava-badge svg {
  display: block;
}

.ava-title-block .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.ava-title-block h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--paper);
}

.ava-title-block .lede {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(246, 240, 229, 0.82);
  margin: 0 0 28px;
  max-width: 34ch;
}

.ava-title-block .title-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  align-self: flex-start;
}

.ava-hero-figure {
  position: relative;
  margin: 0;
  background: #d5ddd4;
  min-height: 420px;
  overflow: hidden;
}

.ava-hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ava-hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
  padding: 48px 18px 14px;
  background: linear-gradient(transparent, rgba(18, 46, 39, 0.88));
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ava-hero-figure figcaption strong {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Terracotta price chip, hanging off the hero's lower edge */
.ava-price-chip {
  position: absolute;
  right: var(--page-pad);
  bottom: -22px;
  z-index: 5;
  margin: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: min(420px, calc(100% - 48px));
}

.ava-rule-wrap {
  max-width: var(--ava-measure);
  margin: 48px auto 0;
  padding: 0 var(--page-pad);
}

.amber-rule {
  display: block;
  height: 3px;
  width: 100%;
  margin: 0;
  border: 0;
  background: var(--amber);
}

/* ===== Ruled spec bar ===== */
.ava-spec-strip {
  margin: 56px auto 0;
  padding: 0 var(--page-pad);
  max-width: var(--ava-measure);
}

.ava-spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--ink);
  background: var(--ink-tint);
}

.ava-spec-bar .spec {
  padding: 22px 20px 20px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
}

.ava-spec-bar .spec:last-child {
  border-right: 0;
}

.ava-spec-bar .spec-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ava-spec-bar .spec-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.ava-spec-bar .spec-value .unit {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-left: 4px;
}

.ava-spec-bar .spec-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.ava-spec-bar .spec--amber {
  background: rgba(230, 182, 91, 0.35);
}

/* ===== Brochure bands ===== */
.ava-band {
  padding: 72px var(--page-pad);
}

.ava-band--paper {
  background: var(--paper);
}

.ava-band--tint {
  background: var(--ink-tint);
  padding-left: 0;
  padding-right: 0;
}

.ava-band--ink {
  background: var(--ink);
  color: var(--paper);
}

.ava-band-inner {
  max-width: var(--ava-max);
  margin: 0 auto;
}

.ava-band-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ava-band-kicker .rule {
  flex: 0 0 40px;
  height: 3px;
  background: var(--amber);
}

.ava-band-kicker span:not(.rule) {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.ava-band--ink .ava-band-kicker span:not(.rule) {
  color: var(--amber);
}

.ava-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 18ch;
  color: inherit;
}

.ava-band p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 28px;
}

.ava-band--ink p.lead {
  color: rgba(246, 240, 229, 0.78);
}

/* ===== Numbered legend + empty plan panel ===== */
.ava-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.ava-legend li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--ink);
}

.ava-legend .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.ava-legend .body {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.ava-dwelling-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.ava-plan-panel {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.ava-plan-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ava-plan-panel-header .tag {
  color: var(--accent);
}

.ava-plan-frame {
  flex: 1;
  margin: 24px;
  border: 1.5px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 24px;
  min-height: 220px;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--paper);
}

.ava-plan-frame p {
  margin: 0;
  max-width: 28ch;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.ava-plan-frame strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ava-scale-figure {
  margin: 36px 0 0;
}

.ava-scale-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.ava-scale-figure figcaption {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: left;
}

/* ===== Amber price pull ===== */
.ava-price-pull {
  max-width: var(--ava-measure);
  margin: 0 auto;
  padding: 8px var(--page-pad);
}

.ava-price-frame {
  border: 2.5px solid var(--ink);
  background: var(--amber);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  text-align: center;
  position: relative;
}

.ava-price-frame::before,
.ava-price-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.ava-price-frame::before {
  top: -10px;
  left: -10px;
}

.ava-price-frame::after {
  bottom: -10px;
  right: -10px;
}

.ava-price-frame .quote-mark {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.ava-price-frame blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.ava-price-frame .price-sub {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-deep);
}

/* ===== Foundation cards on the ink band ===== */
.ava-foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.ava-foundation-card {
  border: 1.5px solid rgba(246, 240, 229, 0.28);
  padding: 28px;
}

.ava-foundation-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--amber);
}

.ava-foundation-card p {
  margin: 0;
  color: rgba(246, 240, 229, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== Close ===== */
.ava-close {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.ava-close .actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.ava-close .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 500;
  font-size: 14px;
  min-height: 52px;
  border: 1.5px solid var(--ink);
  line-height: 1.3;
}

.ava-close .button-ink {
  background: var(--ink);
  color: var(--paper);
}

.ava-close .button-ink:hover {
  background: var(--ink-deep);
}

.ava-close .button-ghost {
  background: transparent;
  color: var(--ink);
}

.ava-close .button-ghost:hover {
  background: var(--ink-tint);
}

.ava-close .note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 32ch;
}

.ava-page > footer {
  border-top: 1.5px solid var(--ink);
  background: var(--paper);
}

/* ===== Responsive: stack, then 2×2, then one column ===== */
@media (max-width: 900px) {
  .ava-hero-band {
    grid-template-columns: 1fr;
  }

  .ava-title-block {
    min-height: 0;
  }

  .ava-hero-figure {
    min-height: 280px;
    aspect-ratio: 3 / 2;
  }

  .ava-price-chip {
    position: static;
    display: inline-block;
    margin: 18px 0 0;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .ava-rule-wrap {
    margin-top: 28px;
  }

  .ava-spec-strip {
    margin-top: 28px;
  }

  .ava-spec-bar {
    grid-template-columns: 1fr 1fr;
  }

  .ava-spec-bar .spec:nth-child(2) {
    border-right: 0;
  }

  .ava-spec-bar .spec:nth-child(1),
  .ava-spec-bar .spec:nth-child(2) {
    border-bottom: 1.5px solid var(--ink);
  }

  .ava-dwelling-grid,
  .ava-foundation-grid,
  .ava-close {
    grid-template-columns: 1fr;
  }

  .ava-band {
    padding: 56px var(--page-pad);
  }

  .ava-band--tint {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .ava-masthead {
    padding-top: 20px;
  }

  .ava-title-block {
    padding: 28px 22px 32px;
  }

  .ava-title-block h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .ava-hero-figure figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 36px;
  }

  .ava-spec-bar {
    grid-template-columns: 1fr;
  }

  .ava-spec-bar .spec {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .ava-spec-bar .spec:last-child {
    border-bottom: 0;
  }

  .ava-legend {
    grid-template-columns: none;
  }

  .ava-legend li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .ava-plan-panel {
    min-height: 280px;
  }

  .ava-close .button {
    width: 100%;
  }
}
