/* BoMé for-sale site. Hand-written CSS for small screens first. System fonts only, because CJK web fonts are multi-MB. */
:root {
  --ink: #1d2420;
  --muted: #5b655f;
  --paper: #faf7f0;
  --card: #ffffff;
  --line: #e4ddcf;
  --green: #1f3a2e;
  --green-2: #2e5543;
  --gold: #c8962e;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
:lang(zh) { --serif: var(--sans); --sans: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:lang(ja) { --serif: var(--sans); --sans: system-ui, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", sans-serif; }
:lang(ko) { --serif: var(--sans); --sans: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }

*, *::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 clamp(1rem, 0.95rem + 0.25vw, 1.0625rem)/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(250, 247, 240, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { text-decoration: none; color: var(--ink); margin-right: auto; display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font: 700 1.35rem var(--serif); color: var(--green); }
.brand-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 99px; }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 0.9rem; background: var(--card); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; color: var(--muted); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); min-width: 160px; }
.langs a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.langs a:hover, .langs a[aria-current] { background: var(--paper); }
.angles-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.angles-nav::-webkit-scrollbar { display: none; }
.angles-nav a { flex: none; font-size: 0.88rem; padding: 5px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.angles-nav a:hover { border-color: var(--line); }
.angles-nav a[aria-current] { background: var(--green); color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 0.75em 1.3em; border-radius: 99px; font-weight: 600; border: 2px solid var(--green); cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 0.4em 0.9em; font-size: 0.88rem; }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--green); }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,.15) 0%, rgba(10,20,15,.35) 40%, rgba(10,20,15,.85) 100%); }
.hero-text { position: relative; z-index: 1; padding-block: 4rem 2.5rem; max-width: 860px; margin-left: max(16px, (100% - var(--wrap)) / 2); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; opacity: .9; }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 60ch; opacity: .95; }
.price { font: 600 clamp(1.4rem, 1.2rem + 1vw, 2rem) var(--serif); margin-top: 1.2em; }
.price span { display: block; font: 500 0.75rem var(--sans); text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Facts */
.facts { background: var(--green); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-block: 0; padding-block: 1.2rem; }
.facts-grid div { padding: 0.6rem 0.4rem; }
.facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.facts dd { margin: 0; font: 600 1.15rem var(--serif); }
.facts small { display: block; font: 400 0.8rem var(--sans); opacity: .75; }
@media (min-width: 720px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .facts-grid { grid-template-columns: repeat(6, 1fr); } }

/* Cards & highlights */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.card strong { font: 600 1.15rem/1.25 var(--serif); }
.card span:last-child { color: var(--muted); font-size: 0.95rem; }
.card-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.highlights { display: grid; gap: 22px 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
.highlights h3 { color: var(--green); }
.highlights p { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 1.8em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.05em; height: 0.6em; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.points .checks { font-size: 1.1rem; }
@media (min-width: 760px) { .points .checks { grid-template-columns: repeat(2, 1fr); gap: 14px 32px; } }

/* Gallery */
.gallery-wrap { padding-top: 0; }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 6px 2px; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.distances { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.distances th, .distances td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.distances td { text-align: right; white-space: nowrap; color: var(--muted); }

.story { background: #efe8da; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.story p { font: 400 clamp(1.1rem, 1rem + 0.4vw, 1.3rem)/1.65 var(--serif); }
:lang(zh) .story p, :lang(ja) .story p, :lang(ko) .story p { font-family: var(--sans); }

/* Form */
.inquiry { display: grid; gap: 14px; margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 0.6rem + 2vw, 2rem); }
.inquiry .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .inquiry .row { grid-template-columns: 1fr 1fr; } }
.inquiry label { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.inquiry input, .inquiry select, .inquiry textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); width: 100%; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.form-foot small { color: var(--muted); }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 600; color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.direct { margin-top: 1rem; color: var(--muted); }

.foot { background: var(--ink); color: #cfd6d1; padding-block: 2.5rem; font-size: 0.9rem; }
.foot a { color: #fff; }
.foot .fine { font-size: 0.8rem; opacity: .7; max-width: 70ch; }

.chooser { padding-block: 4rem; }
.chooser ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chooser a { display: block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); text-decoration: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 8px; }
.lb-close { position: fixed; top: 12px; right: 16px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* Small-screen header: keep one row */
.btn, .brand-tag, .langs summary { white-space: nowrap; }
@media (max-width: 480px) {
  .top-row > .btn-sm { display: none; }
  .brand-tag { font-size: 0.68rem; }
}
