/* zAmya Studio: shared styles for the morning-to-dusk design (2026-11).
   Every page links this; page-specific rules stay in the page. */

/* Tokens: the page runs from morning to dusk */
:root {
  /* One continuous ramp, morning to dusk. Each section ends where the next begins. */
  --t0: #f5f0e8;
  --t1: #e6d8c4;
  --t2: #b28a62;
  --t3: #3a2a1f;
  --t4: #1f1a17;

  --ink: #2a231e;
  --ink-soft: #5c5149;
  --linen: #f6f0e7;
  --linen-soft: #cfc3b5;
  --rule-light: rgba(42, 35, 30, 0.16);
  --rule-dark: rgba(246, 240, 231, 0.16);
  --orange: #ff5500;
  --orange-ink: #c2410c;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--t0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* Headings: one serif, set like print, no italic accent words */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
h1 { font-size: clamp(38px, 4.6vw, 66px); font-weight: 300; font-variation-settings: 'opsz' 48; letter-spacing: -0.012em; line-height: 1.1; }
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; font-variation-settings: 'opsz' 48; letter-spacing: -0.012em; line-height: 1.12; }
h3 { font-size: clamp(26px, 2.6vw, 34px); font-variation-settings: 'opsz' 36; line-height: 1.15; }
p { margin: 0; }

/* Time-of-day mark: replaces the old eyebrow labels. The sun sinks section by section. */
.time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}
.time svg { width: 30px; height: 18px; overflow: visible; }
.time .horizon { stroke: currentColor; stroke-width: 1; }
.time .sun { fill: var(--orange); }
.on-dark .time { color: var(--linen-soft); }

/* Actions: plain, sentence case, no pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--linen);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .link:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.on-dark .btn { background: var(--linen); color: var(--ink); }
.on-dark .btn:hover { background: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--orange);
  transition: text-underline-offset 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover { text-underline-offset: 9px; }
.link:active { color: var(--orange-ink); }

.caption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.on-dark .caption { color: var(--linen-soft); }

/* Header: sits over the hero photograph */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: none;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--linen);
  transition: padding 0.4s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.solid {
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(42, 35, 30, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.nav .logo img { height: 22px; width: auto; transition: filter 0.3s var(--ease); }
.nav.on-light { color: var(--ink); }
.nav.on-light .logo img { filter: brightness(0); opacity: 0.86; }
.nav.on-light ul a { color: rgba(42, 35, 30, 0.88); }
.nav.on-light ul a:hover { color: var(--ink); }
.nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  font-size: 15px;
}
.nav ul a { text-decoration: none; color: rgba(246, 240, 231, 0.82); transition: color 0.3s var(--ease); }
.nav ul a:hover { color: #fff; }
@media (min-width: 900px) { .nav ul { display: flex; } }

/* Hero: full-width photographs, rotating */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #2a231e;
  color: var(--linen);
}
.hero-slides img,
.hero-captions span {
  position: absolute;
  opacity: 0;
  animation: slide 21s infinite both;
}
.hero-slides img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides img:nth-child(2), .hero-captions span:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3), .hero-captions span:nth-child(3) { animation-delay: 14s; }
@keyframes slide {
  0% { opacity: 0; }
  5% { opacity: 1; }
  33% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img, .hero-captions span { animation: none; }
  .hero-slides img:first-child, .hero-captions span:first-child { opacity: 1; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(24, 18, 14, 0.62) 0%, rgba(24, 18, 14, 0.38) 40%, rgba(24, 18, 14, 0) 68%),
    linear-gradient(to top, rgba(24, 18, 14, 0.66) 0%, rgba(24, 18, 14, 0.22) 45%, rgba(24, 18, 14, 0) 70%),
    linear-gradient(to bottom, rgba(24, 18, 14, 0.42) 0%, rgba(24, 18, 14, 0) 20%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 { max-width: 13em; text-shadow: 0 1px 24px rgba(24, 18, 14, 0.35); }
.hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: rgba(246, 240, 231, 0.9);
  max-width: 34em;
  margin-top: var(--space-3);
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
}
.hero-captions {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 22px;
  font-size: 12px;
  color: rgba(246, 240, 231, 0.75);
}
.hero-captions span { right: 0; bottom: 0; white-space: nowrap; }
@media (max-width: 899px) {
  .hero-captions { left: var(--gutter); right: auto; }
  .hero-captions span { left: 0; right: auto; }
}

/* Paths: morning to midday */
.paths {
  background: linear-gradient(to bottom, var(--t0) 0%, #f0e8dc 65%, var(--t1) 100%);
  padding: var(--space-6) 0;
}
.paths-grid { display: grid; gap: var(--space-5); }
.path .who { font-size: 14px; color: var(--ink-soft); margin-bottom: var(--space-2); }
.path p { color: var(--ink-soft); margin-top: var(--space-3); max-width: 32em; }
.path .terms { font-size: 14px; margin-top: var(--space-3); }
.path .link { margin-top: var(--space-3); }
.both {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-light);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-variation-settings: 'opsz' 24;
  line-height: 1.4;
  max-width: 40em;
}
@media (min-width: 900px) {
  .paths-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .path { padding-right: var(--space-5); }
  .path + .path { padding-right: 0; padding-left: var(--space-5); border-left: 1px solid var(--rule-light); }
}

/* Belief: midday to afternoon */
.belief {
  background: linear-gradient(to bottom, var(--t1) 0%, #d6bf9e 65%, var(--t2) 100%);
  padding: var(--space-6) 0;
  --ink-soft: #43382f;
  --rule-light: rgba(42, 35, 30, 0.24);
}
.belief h2 { max-width: 11em; }
.belief-grid { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.belief-text p { color: var(--ink-soft); max-width: 34em; }
.belief-text p + p { margin-top: var(--space-3); }
.belief-text .close { color: var(--ink); font-family: var(--serif); font-size: 22px; font-variation-settings: 'opsz' 24; line-height: 1.4; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-self: start; }
.ledger h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.ledger .save h3 { border-bottom-color: var(--rule-light); color: var(--ink-soft); }
.ledger ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ledger li { padding: 11px 0; border-bottom: 1px solid var(--rule-light); }
.ledger .save li { color: var(--ink-soft); }
@media (min-width: 900px) {
  .belief-grid { grid-template-columns: 6fr 5fr; gap: var(--space-6); }
}

/* Steps: golden hour */
.steps { background: linear-gradient(to bottom, var(--t2) 0%, #8a6243 18%, #5e412c 65%, var(--t3) 100%); color: var(--linen); padding: var(--space-6) 0; --linen-soft: #e6d9c9; --rule-dark: rgba(246, 240, 231, 0.24); }
.steps .time { color: var(--linen); }
.steps h2 { max-width: 14em; }
.steps ol { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { border-top: 1px solid var(--rule-dark); padding-top: var(--space-3); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--orange);
  margin-bottom: var(--space-2);
}
.steps li p { color: var(--linen-soft); margin-top: var(--space-2); max-width: 26em; }
@media (min-width: 900px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

/* First Look: dusk */
.dusk { background: linear-gradient(to bottom, var(--t3) 0%, #271f1a 55%, var(--t4) 100%); color: var(--linen); padding: var(--space-6) 0; }
.dusk-grid { display: grid; gap: var(--space-5); align-items: center; }
.dusk p { color: var(--linen-soft); margin-top: var(--space-3); max-width: 32em; }
.dusk .price { font-size: 15px; color: var(--linen); margin-top: var(--space-3); }
.dusk .actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.dusk figure { margin: 0; }
.dusk figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (min-width: 900px) { .dusk-grid { grid-template-columns: 6fr 5fr; gap: var(--space-6); } }

.launch {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-dark);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-variation-settings: 'opsz' 24;
  line-height: 1.45;
  color: var(--linen);
  max-width: 40em;
}
.launch .link { font-family: var(--sans); font-size: 15px; margin-left: 6px; }

/* Evening and night: the page keeps deepening, lamps instead of sun */
.time .lamp { fill: #ffb26b; }
.time .moon { fill: var(--linen); }
.night { color: var(--linen); padding: var(--space-5) 0 var(--space-6); }
.night p { color: var(--linen-soft); }

/* Audits and photography */
.extras { background: linear-gradient(to bottom, #1e1916, #1c1815); }
.extras h2 { max-width: 16em; }
.extras .intro { margin-top: var(--space-3); max-width: 36em; }
.extras-grid { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.extra { border-top: 1px solid var(--rule-dark); padding-top: var(--space-3); }
.extra p { margin-top: var(--space-2); max-width: 30em; }
.extra .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.extra .from { font-size: 14px; color: var(--linen-soft); }
.extras .more { margin-top: var(--space-4); font-size: 15px; }
@media (min-width: 900px) { .extras-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

/* Who we are: lamplight */
.about {
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, rgba(255, 170, 90, 0.07), transparent 70%),
    linear-gradient(to bottom, #1c1815, #191512);
}
.about-grid { display: grid; gap: var(--space-5); }
.about h2 { max-width: 14em; }
.about-text p { margin-top: var(--space-3); max-width: 34em; }
.about-text p:first-of-type { margin-top: var(--space-4); }
.about figure { margin: 0; }
.about figure img { width: 100%; object-fit: cover; }
.about .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about .pair img { aspect-ratio: 3 / 2; }
.about .couple img { aspect-ratio: 4 / 3; }
.about-media { display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 6fr 5fr; gap: var(--space-6); } }

/* Questions */
.faq { background: linear-gradient(to bottom, #191512, #171310); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.filter-label { width: 100%; font-size: 14px; color: var(--linen-soft); margin-bottom: 4px; }
.filter button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  background: transparent;
  color: var(--linen-soft);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.filter button:hover { color: var(--linen); border-color: rgba(246, 240, 231, 0.4); }
.filter button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.filter button[aria-checked="true"] { color: var(--ink); background: var(--linen); border-color: var(--linen); }
.qs { margin-top: var(--space-4); display: grid; gap: 0 var(--space-6); }
.qs details { border-top: 1px solid var(--rule-dark); }
.qs details:last-child { border-bottom: 1px solid var(--rule-dark); }
.qs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 20px 0;
  font-size: 17px;
  color: var(--linen);
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: '+'; color: var(--orange); font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease); }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.qs details p { padding-bottom: 22px; max-width: 38em; font-size: 16px; }
.qs[data-filter="rental"] [data-aud="home"],
.qs[data-filter="home"] [data-aud="rental"] { display: none; }
@media (min-width: 900px) { .qs { grid-template-columns: 1fr 1fr; } .qs details:nth-last-child(2) { border-bottom: 1px solid var(--rule-dark); } }

/* Contact: night */
.contact { background: linear-gradient(to bottom, #171310, #141110); }
.contact h2 { max-width: 12em; }
.contact p { margin-top: var(--space-3); max-width: 34em; }
.contact .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); }

/* Footer */
.footer { background: #141110; color: var(--linen-soft); border-top: 1px solid var(--rule-dark); padding: var(--space-5) 0; font-size: 14px; }
.footer-grid { display: grid; gap: var(--space-4); }
.footer img { height: 20px; width: auto; }
.footer .parent { display: flex; align-items: center; gap: 8px; margin-top: var(--space-2); }
.footer .parent img { height: 13px; opacity: 0.62; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer ul a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer ul a:hover { color: var(--linen); }
.footer .legal { font-size: 13px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 2fr; align-items: start; } }

/* Approach: three things in every room */
.approach { background: linear-gradient(to bottom, #1f1a17, #1e1916); }
.approach-grid { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.approach-grid article { border-top: 1px solid var(--rule-dark); padding-top: var(--space-3); }
.approach-grid p { margin-top: var(--space-2); max-width: 26em; }
@media (min-width: 900px) { .approach-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

/* Phone menu */
.menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: inherit;
  font: 500 15px var(--sans);
  cursor: pointer;
}
.menu-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.nav > .link { display: none; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav > .link { display: inline-flex; }
}
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: var(--t4);
  color: var(--linen);
  padding: 110px var(--gutter) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-panel ul a { font-family: var(--serif); font-weight: 300; font-size: 32px; text-decoration: none; display: inline-block; padding: 4px 0; }
.nav.menu-open { background-color: transparent !important; color: var(--linen); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.menu-open .logo img { filter: none; opacity: 1; }
body.menu-locked { overflow: hidden; }

/* Gentle entrance for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 1s var(--ease) forwards;
  }
  .hero .lede { animation-delay: 0.12s; }
  .hero .actions { animation-delay: 0.22s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
  

/* Current page in the header menu */
.nav ul a[aria-current="page"] { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.nav.on-light ul a[aria-current="page"] { color: var(--ink); }

/* A hero with one still photograph instead of the rotating set */
.hero--still .hero-slides img { animation: none; opacity: 1; }

/* Links inside a sentence sit on the line like text */
p .link, li .link { display: inline; min-height: 0; }
