@font-face {
  font-family: Anuphan;
  src: url("assets/fonts/anuphan-thai.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Anuphan;
  src: url("assets/fonts/anuphan-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --white: #fffdf8;
  --ink: #172d25;
  --green: #173d32;
  --muted: #4d6054;
  --line: #deded1;
  --lime: #dae2bc;
  font-family: Anuphan, "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .26em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.17; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
:focus-visible { outline: 3px solid #9b622d; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; inset: 10px auto auto 10px; z-index: 2; padding: .6rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; min-height: 80px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 158px; height: 52px; object-fit: contain; object-position: left center; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.65rem; }
nav a, .header-social { text-decoration: none; font-weight: 650; }
nav a:hover, .header-social:hover { text-decoration: underline; }
.header-social { border: 1px solid var(--line); padding: .48rem .85rem; border-radius: .3rem; }
.hero { background: var(--green); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); min-height: 570px; max-width: 1580px; margin-inline: auto; }
.hero-copy { align-self: center; container-type: inline-size; padding: clamp(2.5rem, 6.7vw, 7rem) clamp(2rem, 5.5vw, 5rem) clamp(2.5rem, 6.7vw, 7rem) max(2.5rem, calc((min(100vw, 1580px) - 1180px) / 2)); }
.eyebrow { color: #4a6758; font-size: .84rem; font-weight: 700; letter-spacing: .095em; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { font-weight: 700; font-size: clamp(1.75rem, 5.2vw, 5.5rem); font-size: clamp(1.75rem, 14cqi, 5.5rem); letter-spacing: -.03em; margin: .85rem 0 1rem; }
.hero-description { max-width: 32rem; color: #e0e8dd; font-size: clamp(1rem, 1.6vw, 1.17rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .32rem; text-decoration: none; font-weight: 700; line-height: 1.3; text-align: center; }
.button-light { background: var(--lime); color: #142a20; }
.button-light:hover { background: #e8edcf; }
.button-ghost { border-color: #94aa99; color: var(--white); }
.button-ghost:hover { background: #ffffff18; }
.button-green { background: var(--green); color: var(--white); }
.button-green:hover { background: #285548; }
.button-outline { color: var(--green); border-color: #b8c5b7; }
.button-outline:hover { background: #e8eddf; }
.hero-image { position: relative; min-height: 100%; background: #21352a; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero-image figcaption { position: absolute; inset: auto .9rem .9rem auto; background: #10271fd9; border-radius: .2rem; color: white; font-size: .84rem; padding: .35rem .65rem; }
.section { padding-block: clamp(3.4rem, 7vw, 6.5rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1.8rem; margin-bottom: 1.65rem; }
.section-heading h2, .menu h2 { margin-top: .35rem; }
.section-heading > p { max-width: 28rem; color: var(--muted); }
.text-link { font-weight: 700; color: var(--green); }
.text-link:hover { color: #745020; }
.product-grid, .story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.1vw, 26px); }
.product { background: var(--white); border: 1px solid var(--line); border-radius: .35rem; overflow: hidden; }
.product-image { display: block; background: #ebe9dc; }
.product-image img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: contain; }
.product-image:focus-visible { outline-offset: -4px; }
.product-body { padding: 1.15rem; }
.product-meta { color: var(--muted); margin: .42rem 0 .8rem; }
.farm-release { margin-top: 1.8rem; padding: clamp(1rem, 3vw, 1.8rem); background: #e8eddf; border-radius: .35rem; }
.release-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem 1.25rem; }
.release-heading p { margin-top: .35rem; color: var(--muted); }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem 1rem; margin-top: 1rem; }
.release-grid article { padding: .85rem 1rem; background: var(--white); border-radius: .35rem; }
.release-grid h4 { margin: 0 0 .25rem; font-size: 1.16rem; }
.release-grid h4 span, .release-price span { color: var(--muted); font-size: .88em; font-weight: 500; }
.release-price { margin-top: .45rem; color: var(--green); font-weight: 700; }
.release-date { margin-top: .65rem; color: var(--muted); font-size: .88rem; }
.story-band { background: #e8eddf; }
.story-grid img { width: 100%; height: auto; aspect-ratio: 720 / 460; object-fit: cover; border-radius: .35rem; }
.story-grid h3 { margin: .85rem 0 .4rem; }
.story-grid p { color: var(--muted); }
.cafe { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(1.8rem, 5vw, 4.6rem); align-items: start; }
.cafe-photo { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: 50% 45%; border-radius: .35rem; }
.cafe-visit h3 { margin: .95rem 0 .42rem; }
.cafe-visit p { color: var(--muted); max-width: 28rem; }
.visit-address { color: var(--muted); font-style: normal; }
.visit-hours { margin-top: .4rem; }
.visit-actions, .visit-contacts { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-top: .85rem; }
.visit-contacts { margin-top: .7rem; font-size: .9rem; overflow-wrap: anywhere; }
.menu-note { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.menu-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.menu-filters button { border: 1px solid #b8c5b7; color: var(--green); background: transparent; border-radius: .35rem; padding: .48rem .8rem; }
.menu-filters button[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.menu-group { margin-top: 1.05rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: start; font-size: .9rem; color: var(--muted); padding-bottom: .45rem; }
th, td { padding: .52rem .3rem; border-bottom: 1px solid var(--line); }
th { text-align: start; font-weight: 650; }
thead { color: var(--green); background: #ecede2; }
thead th:not(:first-child), td { text-align: center; width: 13%; }
th:first-child { padding-inline-start: .55rem; }
.menu-item { display: flex; align-items: center; gap: .7rem; line-height: 1.35; }
.drink-photo {
  flex: 0 0 auto;
  width: 78px;
  height: 64px;
  border-radius: .32rem;
  background-color: #ece4d6;
  background-position: var(--pos);
  background-repeat: no-repeat;
}
#coffee .drink-photo { background-image: url("assets/menu-coffee.webp"); background-size: 400% 300%; }
#non-coffee .drink-photo { background-image: url("assets/menu-other.webp"); background-size: 300% 300%; }
.original-menu { display: inline-block; margin-top: .95rem; }
.site-footer { background: var(--green); color: #f4f5e8; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.15rem; padding-block: 1.75rem; }
.site-footer p { color: #d8e4d9; margin-top: .15rem; }

.demo-main { min-height: 70vh; padding-block: 3rem 4.5rem; }
.demo-main h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-block: .5rem .8rem; }
.demo-main > p { max-width: 45rem; color: var(--muted); }
.demo-card { max-width: 32rem; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--white); padding: 1.1rem; }
.demo-card form { display: grid; gap: .8rem; }
.demo-card form input { width: 100%; min-width: 0; padding: .45rem .65rem; color: var(--ink); background: var(--paper); border: 1px solid #b4c3b8; border-radius: .25rem; }
.demo-card label { display: grid; gap: .2rem; font-weight: 650; }
.demo-card .button { width: fit-content; }
.demo-status { margin-top: 1rem; color: var(--green); }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { min-height: 460px; }
  .hero-copy { padding-inline: 24px; }
  nav { gap: .45rem 1rem; }
  .header-inner { min-height: 74px; }
  .cafe { gap: 1.6rem; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: .4rem .8rem; padding-block: .55rem; }
  .header-inner nav { order: 1; flex: 1 0 100%; gap: .42rem 1rem; font-size: .9rem; padding-block: .22rem; justify-content: space-between; }
  .logo img { width: 126px; height: 40px; }
  .header-social { font-size: .9rem; }
  .hero-inner, .cafe { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.4rem 16px 2rem; }
  .hero-image { min-height: 310px; }
  .product-grid, .story-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .release-grid { grid-template-columns: 1fr; }
  .product-image img { aspect-ratio: 1.3; }
  .cafe .menu { order: -1; }
  .cafe-photo { aspect-ratio: 1.62; }
  .drink-photo { width: 58px; height: 51px; }
  .menu-item { gap: .45rem; font-size: .98rem; }
  .menu-item > span:last-child { overflow-wrap: anywhere; }
}
