:root {
  /* Layout: an island postcard. A wide horizon scene under a left aligned headline, then each section reads like a note on a site plan: a small label rail on the left, the content on the right. */
  --paper: #f7faf8;
  --band: #e4f2ee;
  --ink: #1b3d3a;
  --muted: #536b66;
  --line: #d3e0db;
  --sea: #0f7570;
  --on-sea: #ffffff;
  --sun: #f2b33d;
  --on-sun: #2a2412;
  /* the horizon scene, a clear morning */
  --sky-top: #8fcfe0;
  --sky-low: #eaf6f2;
  --far: #a7c9c8;
  --sea-top: #52c2b8;
  --sea-deep: #128787;
  --glint: #ffffff;
  --land: #2f6e4f;
  --trunk: #74624a;
  --sand: #f2e7c9;
  --wall: #fbf8f1;
  --roof: #8b5e3f;
  --glass: #2c8c92;
  --orb: #ffcf55;
  --window: #2c8c92;
  color-scheme: light;

  --display: "Mitr", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --body: "Sarabun", "Helvetica Neue", Arial, sans-serif;
  --step-hero: clamp(2.5rem, 6.6vw, 5.2rem);
  --step-h2: clamp(1.65rem, 3.1vw, 2.4rem);
  --step-lede: clamp(1.1rem, 1.5vw, 1.28rem);
  --gutter-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; padding-block: 22px 0; }
.mark { font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.mark span { font-size: .95rem; color: var(--sea); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(28px, 4vw, 44px); display: grid; gap: 22px; }
.eyebrow, .rail {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sea);
}
.hero h1 { font-size: var(--step-hero); line-height: 1.08; letter-spacing: -.015em; max-width: 11ch; }
.hero-row { display: grid; gap: 24px 56px; align-items: end; }
@media (min-width: 860px) { .hero-row { grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; } }
.lede { font-size: var(--step-lede); line-height: 1.6; color: var(--ink); max-width: 34rem; }
.hero-side { display: grid; gap: 16px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.sun { background: var(--sun); border-color: var(--sun); color: var(--on-sun); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 4px;
  font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
}
.btn.primary { background: var(--sea); border-color: var(--sea); color: var(--on-sea); }
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* horizon scene */
.scene { margin: 0; }
.scene canvas {
  display: block; width: 100%; height: clamp(230px, 34vw, 440px); max-width: 100%;
  background: linear-gradient(var(--sky-top), var(--sky-low) 55%, var(--sea-top) 55%, var(--sea-deep));
}
.scene figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 12px; font-size: .88rem; color: var(--muted); }
.coords { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* sections */
.sec .grid { display: grid; gap: 14px 48px; padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.sec:first-of-type .grid { border-top: 0; }
@media (min-width: 860px) { .sec .grid { grid-template-columns: 170px minmax(0, 1fr); } .rail { padding-top: 10px; } }
.sec.band { background: var(--band); }
.sec.band .grid { border-top: 0; }
.content { display: grid; gap: 22px; min-width: 0; }
.content h2 { font-size: var(--step-h2); line-height: 1.18; letter-spacing: -.01em; max-width: 20ch; }
.prose { display: grid; gap: 14px; max-width: 38rem; }
.prose p { color: var(--muted); }
.prose p.lead { color: var(--ink); font-size: 1.12rem; }
.note { font-size: .92rem; color: var(--muted); font-style: italic; }

.points { display: grid; gap: 30px 44px; margin-top: 18px; }
@media (min-width: 620px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.point { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--sea); }
.point h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 500; }
.point p { color: var(--muted); }

/* homes */
.homes { display: grid; gap: 36px 48px; align-items: start; }
@media (min-width: 980px) { .homes { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.spec div:first-child { border-top: 1px solid var(--line); }
.spec dt { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; }
.plan-fig { margin: 0; background: var(--band); border-radius: 4px; padding: clamp(14px, 2.4vw, 26px); display: grid; gap: 12px; }
.plan-fig svg { width: 100%; height: auto; max-width: 100%; display: block; }
.plan-fig figcaption { font-size: .86rem; color: var(--muted); }
.plan .terrace { fill: none; stroke: var(--sea); stroke-width: 1.5; stroke-dasharray: 5 4; }
.plan .room { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.plan .gap { fill: var(--paper); }
.plan .glass { stroke: var(--sea); stroke-width: 2.4; }
.plan .furn { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.plan text { font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: .1em; fill: var(--ink); }
.plan text.small { font-size: 8.5px; font-weight: 400; letter-spacing: .04em; fill: var(--muted); }

/* ten years */
.terms { display: grid; gap: 32px 56px; align-items: start; }
@media (min-width: 980px) { .terms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.price { display: grid; gap: 6px; }
.price .about { font-size: .95rem; color: var(--muted); }
.price strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.price strong small { font-size: .38em; font-weight: 500; letter-spacing: .06em; }
.price .once { font-size: 1.1rem; }
.years { margin-top: 22px; display: grid; gap: 6px; }
.years .bar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.years .bar span { height: 16px; background: var(--sun); border-radius: 2px; }
.years .nums { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.years .legend { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts b { font-weight: 600; }

/* contact */
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1.5px solid var(--line); background: var(--band); border-radius: 4px; max-width: 38rem; }
.mailbox .addr { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; user-select: all; }

/* renting */
.options { display: grid; gap: 16px; align-items: start; }
@media (min-width: 720px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option { display: grid; gap: 10px; align-content: start; padding: 22px 24px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); }
.option.team { border-color: var(--sea); background: var(--band); }
.option .tag { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.option h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 500; }
.option p { color: var(--muted); }
.tasks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.tasks li { display: flex; gap: 10px; align-items: baseline; }
.tasks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); transform: translateY(-2px); }

footer .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
footer .mark { font-size: 1.05rem; color: var(--ink); }
