:root {
  --cream: #faf7f2;
  --cream-deep: #f2ece2;
  --ink: #23201c;
  --ink-soft: #5c554c;
  --oak: #b08d57;
  --sage: #7d8b6f;
  --line: #e2dbd0;
  --white: #fff;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1.1rem; max-width: var(--measure); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oak); margin: 0 0 .9rem; font-weight: 600;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 400; }
.brand span { color: var(--oak); }
.brand-short { display: none; }
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

@media (max-width: 34em) {
  .site-header { padding-inline: 1rem; gap: .6rem; }
  .brand { font-size: .9rem; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .header-right { gap: .5rem; }
  .header-right .btn { padding: .45rem .8rem; font-size: .8rem; }
  .lang-toggle a { padding: .28rem .55rem; font-size: .72rem; }
}

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-toggle a {
  padding: .3rem .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; color: var(--ink-soft);
}
.lang-toggle a[aria-current="true"] { background: var(--ink); color: var(--cream); }

.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-size: .9rem; font-weight: 600; border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--wa { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn--wa:hover { background: transparent; color: var(--sage); }
.header-right .btn { padding: .5rem 1rem; }

/* ---------- hero ---------- */
.hero { padding-block: 0; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(20rem, 62vh, 40rem); object-fit: cover; }
.hero-body { padding-block: clamp(2rem, 5vw, 3.25rem) 0; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); margin: 0 0 1rem; max-width: 22ch; }
.hero .lede { max-width: 40rem; }

.price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
  margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.price { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.price-note { color: var(--ink-soft); font-size: .95rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- spec strip ---------- */
.spec-strip { background: var(--cream-deep); border-block: 1px solid var(--line); padding-block: 2.25rem; }
.spec-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem 1rem;
}
.spec-strip dt, .spec-strip .k {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.spec-strip .v { font-family: var(--serif); font-size: 1.5rem; margin-top: .2rem; }

/* ---------- commute ---------- */
.commute { background: var(--ink); color: var(--cream); }
.commute .eyebrow { color: var(--oak); }
.commute h2 { color: var(--white); }
.commute p { color: #cfc8bd; }
.legs { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1px; background: #3a352e; border: 1px solid #3a352e; }
@media (min-width: 48em) { .legs { grid-template-columns: repeat(3, 1fr); } }
.legs li { background: var(--ink); padding: 1.6rem 1.4rem; }
.legs .n { font-family: var(--serif); font-size: 2.4rem; color: var(--oak); line-height: 1; }
.legs .u { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9d968b; margin-top: .5rem; }
.legs .d { margin-top: .7rem; color: #cfc8bd; font-size: .95rem; max-width: none; }
.footnote { font-size: .82rem; color: #8b8479; margin-top: 1.75rem; max-width: none; }

/* ---------- location ---------- */
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 54em) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.dist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.dist li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dist li:first-child { border-top: 1px solid var(--line); }
.dist .m { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.map-frame { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--cream-deep); }
.map-frame iframe { display: block; width: 100%; height: 24rem; border: 0; }
.map-frame .cap { padding: .7rem .9rem; font-size: .8rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- gallery ---------- */
.gallery-grid {
  margin-top: 2.5rem;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.gallery-grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 2px;
}
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.gallery-grid button:hover img { transform: scale(1.03); }
.gallery-grid button:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.gallery-grid button:first-child { grid-column: span 2; }
@media (max-width: 40em) { .gallery-grid button:first-child { grid-column: span 1; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(20, 18, 16, .94); padding: 1rem;
  align-items: center; justify-content: center;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-close { position: absolute; top: 1rem; right: 1rem; transform: none; }
.lb-count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: #9d968b; font-size: .85rem; }

/* ---------- feature list ---------- */
.features { list-style: none; margin: 1.5rem 0 0; padding: 0; columns: 2; column-gap: 2.5rem; }
@media (max-width: 40em) { .features { columns: 1; } }
.features li { padding: .45rem 0 .45rem 1.4rem; position: relative; break-inside: avoid; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--oak);
}
.callout {
  margin-top: 2.25rem; padding: 1.4rem 1.6rem;
  background: var(--cream-deep); border-left: 3px solid var(--oak);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- facts table ---------- */
.facts { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.facts th, .facts td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.facts th { color: var(--ink-soft); font-size: .95rem; width: 55%; }
.facts td { font-variant-numeric: tabular-nums; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 1px solid var(--line); }

/* ---------- buying guide (EN) ---------- */
.guide { background: var(--cream-deep); }
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; } }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem;
  font-family: var(--serif); font-size: 1.5rem; color: var(--oak);
  border: 1px solid var(--line); border-radius: 50%; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; background: var(--cream);
}
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.tax-table { margin-top: 2.5rem; width: 100%; border-collapse: collapse; font-size: .97rem; }
.tax-table caption { text-align: left; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .8rem; }
.tax-table th, .tax-table td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); text-align: right; }
.tax-table th:first-child, .tax-table td:first-child { text-align: left; padding-left: 0; }
.tax-table thead th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.tax-table tfoot td, .tax-table tfoot th { font-weight: 700; border-bottom: 0; }
.tax-table td { font-variant-numeric: tabular-nums; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--cream); text-align: center; }
.contact h2 { color: var(--white); }
.contact p { color: #cfc8bd; margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }
.contact .btn--ghost { color: var(--cream); border-color: #5c554c; }
.contact .btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- footer ---------- */
.site-footer { background: #1a1815; color: #8b8479; font-size: .85rem; padding-block: 2.5rem; }
.site-footer p { max-width: 46rem; margin-bottom: .6rem; }
.site-footer a { color: #cfc8bd; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
