:root {
  --ink: #272a25;
  --muted: #686b62;
  --paper: #f7f3ec;
  --paper-deep: #ece4d8;
  --sage: #6c7866;
  --sage-deep: #4c5548;
  --oak: #b98f61;
  --line: rgba(39, 42, 37, 0.16);
  --shell: min(1180px, calc(100vw - 32px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.lightbox-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem max(1rem, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.wordmark { display: inline-grid; line-height: 1.1; letter-spacing: .14em; }
.wordmark span { font-family: var(--serif); font-size: 1rem; }
.wordmark small { margin-top: .28rem; color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.section-nav { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; color: var(--muted); font-size: .82rem; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--ink); }

.hero-copy { padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(2.5rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 1rem; color: var(--sage-deep); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; }
h1 { max-width: 12ch; font-size: clamp(3.5rem, 10vw, 8rem); letter-spacing: -.055em; }
.hero-line { margin: 1.8rem 0 .25rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.5vw, 2rem); }
.thai-intro, .thai-copy { color: var(--muted); }
.thai-intro { margin: .35rem 0 0; }

.image-card { margin: 0; }
.image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.image-open:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.image-open img { transition: filter .25s ease, opacity .25s ease; }
.image-open:hover img { filter: brightness(.98); }
.image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .05em;
}
.hero-figure .image-meta { padding-bottom: 1rem; }
.save-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--sage-deep); font-weight: 700; letter-spacing: 0; }
.save-link:hover, .save-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.editorial-section { padding-block: clamp(5rem, 11vw, 10rem); }
.section-heading { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-number { margin: .35rem 0 0; color: var(--sage); font-family: var(--serif); font-size: 1.1rem; }
.section-heading h2 { max-width: 12ch; font-size: clamp(2.7rem, 7vw, 6rem); letter-spacing: -.04em; }
.section-heading h2 + p { margin: 1.2rem 0 .15rem; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.section-heading .thai-copy { max-width: 48rem; margin: .25rem 0 0; }
.wide { width: 100%; }
.panoramic { margin-top: clamp(3rem, 8vw, 7rem); }
.editorial-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 8vw, 7rem); }
.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.split .offset { margin-top: clamp(2rem, 10vw, 9rem); }
.split.reverse { grid-template-columns: minmax(0, .9fr) minmax(0, .72fr); }
.portrait-card { max-width: 760px; }

.garden-section, .curtain-section { background: var(--sage-deep); color: var(--paper); }
.light-heading .section-number, .light-heading .thai-copy, .light-heading h2 + p { color: rgba(247, 243, 236, .78); }
.full-bleed .image-meta { color: rgba(247, 243, 236, .78); }
.full-bleed .save-link { color: var(--paper); }
.bath-grid { align-items: center; }
.pull-quote { margin: 0; padding: clamp(2rem, 6vw, 5rem); border-left: 1px solid var(--line); }
.pull-quote p { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.pull-quote span { color: var(--muted); }

.quiet-section { background: var(--paper-deep); }
.detail-row { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; margin-top: clamp(3rem, 8vw, 8rem); }
.detail-card { margin-bottom: clamp(0rem, 5vw, 5rem); }
.continuity-grid > :first-child { max-width: 670px; }
.continuity-grid > :last-child { max-width: 620px; justify-self: end; }

.curtain-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: clamp(3rem, 7vw, 6rem); background: rgba(255,255,255,.16); }
.curtain-specs article { padding: clamp(1.5rem, 4vw, 3rem); background: var(--sage-deep); }
.curtain-specs h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 400; }
.curtain-specs h3 span { color: rgba(247,243,236,.6); font-family: var(--sans); font-size: .36em; letter-spacing: .08em; text-transform: uppercase; }
.curtain-specs article > p:last-child { margin: .5rem 0 0; color: rgba(247,243,236,.72); }
.curtain-section .eyebrow { color: rgba(247,243,236,.66); }
.curtain-pair { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: end; }

.palette-collage { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(80px, auto); gap: 1rem; }
.swatch, .mood-image { min-height: 180px; margin: 0; overflow: hidden; }
.swatch { display: flex; align-items: end; padding: 1rem; color: rgba(39,42,37,.72); }
.swatch span { font-family: var(--serif); font-size: 1.15rem; }
.warm-white { grid-column: span 3; background: #eee9df; }
.light-oak { grid-column: span 3; background: #c7a57e; }
.greige { grid-column: span 3; background: #aaa398; }
.sage { grid-column: span 3; background: #78816d; color: white; }
.mood-tall { grid-column: span 6; grid-row: span 2; }
.mood-image:not(.mood-tall):not(.mood-wide) { grid-column: span 6; }
.mood-wide { grid-column: span 9; }
.mood-image img { height: 100%; object-fit: cover; }

.ending { padding-top: clamp(4rem, 9vw, 8rem); background: #ded4c6; }
.ending-image { width: min(100%, 1440px); margin-inline: auto; }
.ending-copy { display: grid; place-items: center; padding-block: clamp(4rem, 9vw, 8rem); text-align: center; }
.ending-brand { font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: .16em; }
.ending-brand:hover, .ending-brand:focus-visible { color: var(--sage-deep); }
.ending-copy p { margin: .25rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.2rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #141613;
  color: white;
}
.lightbox::backdrop { background: rgba(10, 12, 10, .94); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-bar, .lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(.8rem, env(safe-area-inset-top)) 1rem .8rem; }
.lightbox-bar { border-bottom: 1px solid rgba(255,255,255,.16); }
.lightbox-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: rgba(255,255,255,.72); }
.close-lightbox { min-width: 70px; min-height: 44px; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: white; cursor: pointer; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 1rem; overflow: auto; }
.lightbox-stage img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; -webkit-touch-callout: default; }
.lightbox-actions { padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.16); }
.lightbox-actions p { margin: 0; color: rgba(255,255,255,.58); font-size: .75rem; }
.lightbox-save { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; }

@media (max-width: 820px) {
  :root { --shell: min(100% - 24px, 720px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: .7rem .75rem .55rem; }
  .section-nav { width: 100%; gap: 1rem; }
  .hero-copy { padding-top: 3.8rem; }
  .section-heading { grid-template-columns: 2rem 1fr; }
  .split, .split.reverse, .detail-row, .curtain-pair { grid-template-columns: 1fr; }
  .split .offset { margin-top: 0; }
  .portrait-card { max-width: none; }
  .pull-quote { border-left: 0; border-top: 1px solid var(--line); }
  .continuity-grid > :last-child { justify-self: stretch; }
  .curtain-specs { grid-template-columns: 1fr; }
  .palette-collage { grid-template-columns: repeat(6, 1fr); }
  .warm-white, .light-oak, .greige, .sage { grid-column: span 3; }
  .mood-tall, .mood-image:not(.mood-tall):not(.mood-wide), .mood-wide { grid-column: span 6; }
  .lightbox-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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