/* Bamboo Page — design tokens + components. Documented in home/DESIGN.md. */

@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url(/fonts/lora-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url(/fonts/lora-vietnamese-500-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url(/fonts/lora-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url(/fonts/lora-vietnamese-600-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  /* color */
  --paper: #f2f5ee;      /* nền: trắng ngả xanh lá non */
  --paper-deep: #e2ead3; /* dải nền nhấn (phần "Cách làm") */
  --sheet: #fbfcf8;      /* tấm thẻ giá, sáng hơn nền */
  --ink: #1d2a21;        /* chữ chính: xanh rêu rất đậm */
  --ink-soft: #536257;   /* chữ phụ */
  --stalk: #3f6b34;      /* thân tre: nút, link, trục bước */
  --stalk-dark: #2f5226; /* hover/active của --stalk */
  --shoot: #b7cf7a;      /* măng non: nền nhấn nhẹ, gạch chân */
  --straw: #c8a95a;      /* tre khô: đốt tre trên trục */
  --line: #d5ddcc;       /* đường kẻ mảnh */

  /* type */
  --font-display: "Lora", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.125rem, 6vw + 0.5rem, 3.5rem);
  --leading-body: 1.65;
  --leading-tight: 1.15;

  /* space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --measure: 36rem;
  --radius-pill: 999px;
  --node: 14px;          /* đường kính đốt tre */
  --stalk-width: 6px;    /* bề ngang thân tre */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / var(--leading-body) var(--font-body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--stalk); text-decoration-color: var(--shoot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--stalk-dark); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: var(--leading-tight); margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0; }

/* layout */
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-3); }
section { padding-block: var(--space-6); }
section + section { border-top: 1px solid var(--line); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-4); }
.wordmark { display: flex; align-items: center; gap: var(--space-2); font: 600 var(--step-1) / 1 var(--font-display); color: var(--ink); text-decoration: none; }

/* hero */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero .lede { margin-top: var(--space-4); font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); }
.hero .actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.lang-hint { margin-top: var(--space-4); font-size: var(--step--1); color: var(--ink-soft); }

/* button */
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--stalk);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--stalk-dark); color: var(--paper); }
.button-quiet { background: transparent; color: var(--stalk); box-shadow: inset 0 0 0 2px var(--stalk); }
.button-quiet:hover { background: var(--shoot); color: var(--ink); }

/* the bamboo stalk: steps as nodes along one culm */
.stalk { list-style: none; margin: var(--space-5) 0 0; padding: 0; position: relative; }
.stalk::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - var(--stalk-width) / 2);
  top: 0.4rem;
  bottom: 0.4rem;
  width: var(--stalk-width);
  border-radius: var(--stalk-width);
  background: linear-gradient(var(--shoot), var(--stalk));
}
.stalk li { position: relative; padding-left: calc(var(--node) + var(--space-4)); }
.stalk li + li { margin-top: var(--space-5); }
.stalk li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.45rem;
  width: calc(var(--node) + 6px);
  height: 6px;
  border-radius: 3px;
  background: var(--straw);
}
.stalk h3 { margin-bottom: var(--space-2); }
.stalk p { color: var(--ink-soft); max-width: var(--measure); }

/* sample gallery: phone-shaped screenshots */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.gallery a { display: block; color: var(--ink); text-decoration: none; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 520;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  border: 6px solid var(--ink);
  background: var(--ink);
}
.gallery .caption { display: block; margin-top: var(--space-3); font-weight: 600; }
.gallery .kind { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.gallery a:hover .caption { color: var(--stalk); text-decoration: underline; text-decoration-color: var(--shoot); text-underline-offset: 3px; }

/* price: one "tag" sheet, lighter than the page, a straw node along the top edge */
.price {
  margin-top: var(--space-5);
  max-width: 40rem;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
}
.price::before {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  top: -4px;
  height: 7px;
  border-radius: 4px;
  background: var(--straw);
}
@media (min-width: 48rem) { .price { padding: var(--space-5); } .price::before { left: var(--space-5); right: var(--space-5); } }
.price-amount { font: 600 var(--step-3) / 1 var(--font-display); }
.price-amount small { font: 400 var(--step-0) / 1 var(--font-body); color: var(--ink-soft); margin-left: var(--space-2); }
.price-or { margin-top: var(--space-3); font: 500 var(--step-1) / 1.3 var(--font-display); }
.includes { margin: var(--space-4) 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.includes li { padding-left: var(--space-4); position: relative; }
.includes li + li { margin-top: var(--space-2); }
.includes li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 3px; border-radius: 2px; background: var(--stalk); }
.fine { margin-top: var(--space-4); font-size: var(--step--1); color: var(--ink-soft); max-width: var(--measure); }

/* landing pages: "what's included" list and FAQ */
.features { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.features li { padding-left: var(--space-5); position: relative; }
.features li + li { margin-top: var(--space-3); }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 16px; height: 6px; border-radius: 3px; background: var(--straw); }
.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: var(--space-3); font-weight: 600; }
.faq summary:hover { color: var(--stalk); }
.faq summary:focus-visible { outline: 2px solid var(--straw); outline-offset: 2px; }
.faq details p { padding-bottom: var(--space-3); color: var(--ink-soft); }

/* request form on the dark contact band */
.request-form { display: grid; gap: var(--space-3); max-width: 32rem; margin-top: var(--space-4); }
.request-form label { display: grid; gap: var(--space-1); font-size: var(--step--1); font-weight: 600; color: var(--paper); }
.request-form input { font: inherit; font-size: var(--step-0); font-weight: 400; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.request-form input:focus-visible { outline: 3px solid var(--straw); outline-offset: 1px; }
.request-form .button { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.request-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-form .form-error { padding: var(--space-2) var(--space-3); border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 600; }
.form-note { font-size: var(--step--1); }

/* contact + footer */
.section-body { margin-top: var(--space-5); }

/* full-bleed color bands without leaving .wrap */
.band-soft, .band-dark { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); border-top: 0; }
.band-soft { --band: var(--paper-deep); }
.band-dark { --band: var(--stalk-dark); color: var(--paper); }
.band-soft + section, .band-dark + section { border-top: 0; }
.band-dark p { color: #dfe8d6; }
.band-dark .button { background: var(--paper); color: var(--stalk-dark); }
.band-dark .button:hover { background: var(--shoot); color: var(--ink); }
.band-dark a:not(.button) { color: var(--paper); }
.band-dark + .site-footer, main:has(> .band-dark:last-child) + .site-footer { border-top: 0; }
.contact .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-footer { padding-block: var(--space-5); font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line); }

.hero-art { display: none; }

@media (min-width: 48rem) {
  .hero { padding-block: var(--space-6) var(--space-7); }
}

/* wide screens: hero text + bamboo art; other sections get a heading column on the left */
@media (min-width: 64rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-6); align-items: center; padding-block: var(--space-5) var(--space-6); }
  .hero-art { display: block; width: 100%; max-height: 34rem; justify-self: center; }
  .split { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  .split .section-body, .split .stalk, .split .price { margin-top: 0; }
  .split .section-head { position: sticky; top: var(--space-5); }
}
@media (prefers-reduced-motion: no-preference) {
  .stalk::before { transform-origin: bottom; animation: grow 900ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
