:root {
  --ink: #1f2418;
  --muted: #6a7058;
  --bg: #ebe6d8;
  --bg-soft: #ddd6c4;
  --paper: #f5f1e6;
  --soil: #3d4a28;
  --soil-mid: #5a6e38;
  --clay: #8a6a2a;
  --sun: #d4a84b;
  --line: rgba(31, 36, 24, 0.12);
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1120px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(212, 168, 75, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 50%, rgba(90, 110, 56, 0.12), transparent 50%),
    linear-gradient(180deg, #f3efe4 0%, var(--bg) 45%, #d8d0bc 100%);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--soil-mid); outline-offset: 3px; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.68rem; font-weight: 500; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 0.55rem 1.25rem;
  background: var(--soil); color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--sun); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--clay); border-color: var(--clay); color: #fff; }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(235, 230, 216, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); position: relative;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soil-mid); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--soil-mid); color: #fff !important;
  padding: 0.55rem 1.05rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--warm { background: var(--clay); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 700; color: var(--sun); }

.hero {
  position: relative; min-height: min(90dvh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 22s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(28, 32, 18, 0.92) 0%, rgba(28, 32, 18, 0.52) 48%, rgba(28, 32, 18, 0.22) 100%),
    linear-gradient(0deg, rgba(28, 32, 18, 0.55) 0%, transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 38rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 38rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.35rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: baseline;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sun);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.hero h1 em {
  display: block; font-style: normal; color: #f0d878;
  font-size: 0.72em; margin-top: 0.25rem;
}
.hero__lead { color: rgba(255,255,255,0.86); margin-bottom: 1.5rem; max-width: 32rem; }

@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bedIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4.5rem 0; }
.section--soil { background: var(--soil); color: #f3efe4; }
.section--soil .section__head p,
.section--soil .key-item p { color: rgba(243, 239, 228, 0.72); }
.section--book { background: var(--bg-soft); }
.section__head { margin-bottom: 2.25rem; max-width: 38rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 0.5rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soil-mid); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--sun); }

/* BED PLAN — planting diagram */
.plot-sheet {
  background:
    linear-gradient(180deg, #f8f4ea 0%, #efe8d6 100%);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(61, 74, 40, 0.18);
  padding: 1.25rem 1.35rem 1rem;
  position: relative;
}
.plot-sheet::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px dashed rgba(31, 36, 24, 0.18);
  pointer-events: none;
}
.plot-sheet__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1.25rem;
  position: relative;
}
.plot-sheet__title {
  font-family: var(--heading); font-weight: 700; letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.plot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
  position: relative;
  min-height: 320px;
}
.bed {
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 0.2rem; padding: 1rem 0.95rem;
  border: 1.5px solid rgba(31, 36, 24, 0.35);
  min-height: 110px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  animation: bedIn 0.55s var(--ease) both;
  position: relative;
}
.bed:hover { transform: translateY(-3px); }
.bed__code { color: var(--soil-mid); margin-bottom: 0.15rem; }
.bed strong {
  font-family: var(--heading); font-size: 1.05rem; font-weight: 600;
}
.bed small { color: var(--muted); font-size: 0.85rem; }
.bed--a {
  grid-column: 1; grid-row: 1 / 3;
  background: rgba(90, 110, 56, 0.22);
  animation-delay: 0.05s;
}
.bed--b {
  grid-column: 2; grid-row: 1;
  background: rgba(184, 107, 58, 0.18);
  animation-delay: 0.1s;
}
.bed--c {
  grid-column: 2; grid-row: 2;
  background: rgba(212, 168, 75, 0.2);
  animation-delay: 0.15s;
  min-height: 130px;
}
.bed--d {
  grid-column: 3; grid-row: 1 / 3;
  background: rgba(61, 74, 40, 0.16);
  animation-delay: 0.2s;
}
.bed--e {
  grid-column: 1 / 3; grid-row: 3;
  background: rgba(120, 110, 90, 0.14);
  animation-delay: 0.25s;
  min-height: 88px;
}
.bed--f {
  grid-column: 3; grid-row: 3;
  background: rgba(184, 107, 58, 0.12);
  animation-delay: 0.3s;
}
.plot-sheet__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding-top: 1.15rem; margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted); position: relative;
}
.plot-sheet__foot a { font-weight: 700; color: var(--clay); }

.key-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.key-item {
  display: grid; gap: 0.9rem;
  border-top: 2px solid var(--sun); padding-top: 1rem;
}
.key-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: saturate(0.92);
}
.key-item h3 {
  font-family: var(--heading); font-size: 1.25rem; margin: 0.35rem 0 0.25rem;
}
.key-item .mono { color: var(--sun); }

.week-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line); padding-top: 1.75rem;
}
.week-rail li {
  border-left: 3px solid var(--clay); padding-left: 1rem;
}
.week-rail .mono { color: var(--soil-mid); display: block; margin-bottom: 0.4rem; }
.week-rail h3 {
  font-family: var(--heading); font-size: 1.15rem; margin-bottom: 0.35rem;
}
.week-rail p { color: var(--muted); font-size: 0.95rem; }

.book-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.contact-ids { margin: 1rem 0 1.25rem; color: var(--muted); }
.book-photo img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
}
.book-form {
  background: var(--paper); border: 1px solid var(--line);
  padding: 1.5rem; display: grid; gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff;
  padding: 0.75rem 0.85rem; border-radius: var(--radius); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 5rem; }

.rate-table {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
}
.rate-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1.55fr 7.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.rate-table__row:last-child { border-bottom: 0; }
.rate-table__row--head {
  background: var(--soil);
  color: rgba(245, 241, 230, 0.92);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rate-table__row .mono,
.rate-table__row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--soil-mid);
}
.rate-table__row--head span:last-child { color: rgba(245, 241, 230, 0.92); }
.rate-table__row.is-accent {
  background: linear-gradient(90deg, rgba(212, 168, 75, 0.18), transparent 70%);
}
.rate-table__row.is-accent span:first-child { font-weight: 700; }
.include-list {
  list-style: none;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.include-list li {
  padding-left: 1.1rem;
  position: relative;
}
.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sun);
}
.rate-note { margin-top: 0.85rem; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .rate-table__row { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .rate-table__row--head { display: none; }
  .rate-table__row span:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
  .rate-table__row span:last-child { grid-column: 2; grid-row: 1; }
}

.site-footer {
  background: var(--soil); color: rgba(243, 239, 228, 0.85); padding: 3rem 0 1.5rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--sun); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer__lede { margin-top: 0.65rem; color: rgba(243, 239, 228, 0.65); max-width: 22rem; }
.footer__grid h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sun); margin-bottom: 0.75rem;
}
.footer__grid a { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(243, 239, 228, 0.5);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .plot-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bed--a { grid-column: 1; grid-row: auto; }
  .bed--b { grid-column: 2; grid-row: auto; }
  .bed--c { grid-column: 1 / -1; grid-row: auto; }
  .bed--d { grid-column: 1; grid-row: auto; }
  .bed--e { grid-column: 2; grid-row: auto; }
  .bed--f { grid-column: 1 / -1; grid-row: auto; }
  .key-rail, .week-rail, .book-split, .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1rem; gap: 0.35rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0.25rem; }
  .nav-cta { text-align: center; }
  .hero__inner { margin-left: 1.25rem; }
  .plot-grid { grid-template-columns: 1fr; }
  .bed--a, .bed--b, .bed--c, .bed--d, .bed--e, .bed--f {
    grid-column: 1; grid-row: auto;
  }
}
