/* KEAW brand: black #010101, red #E01C24 (from brand guide), light grey, white */
:root {
  --black: #0b0b0b;
  --ink: #161616;
  --red: #e01c24;
  --red-dark: #b5141b;
  --grey: #dcdbd8;
  --paper: #f4f3f1;
  --white: #ffffff;
  --muted: #6b6b6b;
  --line: #06c755;
  --radius: 18px;
  --font: "LINE Seed Sans TH", "Noto Sans Thai", "Avenir Next", Avenir, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 28px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: var(--grey); }
.eyebrow--red { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--line { background: var(--line); color: var(--white); }
.btn--lg { padding: 16px 28px; font-size: 18px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: rgba(11,11,11,.92); backdrop-filter: blur(8px); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; opacity: .85; }
.nav__links a:not(.btn):hover { opacity: 1; color: var(--red); }
.nav__links .btn { padding: 8px 18px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; }

/* Hero */
.hero { background: var(--black); color: var(--white); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: 64px max(24px, calc((100vw - 1160px) / 2 + 20px)) 72px; overflow: hidden; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--red); }
.h1-brand { display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--grey); margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 24px; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #1d1d1d; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--open { color: #3ddc84; }
.status--closed { color: #ff6b6b; }
.hero__sub { color: #bdbdbd; font-size: 18px; margin: 20px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero__circle { position: absolute; width: min(420px, 80%); aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.hero__circle::before { content: ""; position: absolute; inset: 0; transform: translateX(-38%); border-radius: 50%; background: var(--grey); z-index: -1; }
.hero__art img { position: relative; width: min(440px, 92%); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }

/* Marquee */
.marquee { background: var(--red); color: var(--white); overflow: hidden; padding: 14px 0; font-weight: 800; font-size: 20px; }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* About */
.about { padding: 96px 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.about__body p { font-size: 18px; color: #3b3b3b; margin-top: 0; }
.about__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about__points li { border-top: 3px solid var(--black); padding-top: 14px; }
.about__points strong { display: block; font-size: 36px; font-weight: 800; color: var(--red); }
.about__points span { font-size: 14px; color: var(--muted); }

/* Menu */
.menu { padding: 96px 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--black); background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:hover { background: var(--grey); }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; animation: fade .35s ease both; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.card__img { position: relative; aspect-ratio: 1; background: var(--white); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--white); background: var(--red); }
.badge--best { background: var(--black); }
.card__body { padding: 14px 16px 18px; border-top: 1px solid #efefef; }
.card h3 { font-size: 17px; font-weight: 700; }
.card__th { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.card__meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.card__price { margin: 10px 0 0; font-size: 22px; font-weight: 800; color: var(--red); }
.menu__addons { margin-top: 28px; padding: 16px 20px; background: var(--white); border-radius: var(--radius); font-size: 15px; color: #3b3b3b; }

/* Beans */
.beans { padding: 96px 0; background: var(--black); color: var(--white); }
.beans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.bean { display: grid; grid-template-columns: 120px 1fr; background: #1a1a1a; border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
.bean:hover { transform: translateY(-4px); }
.bean img { width: 100%; height: 100%; object-fit: cover; }
.bean__body { padding: 18px 20px; }
.bean__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bean h3 { font-size: 19px; }
.bean__price { flex: none; font-weight: 800; color: var(--white); background: var(--red); border-radius: 999px; padding: 2px 12px; font-size: 15px; }
.bean__roast { margin: 6px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.bean__notes { margin: 0; font-size: 14px; color: #d0d0d0; }
.bean__origin { margin: 8px 0 0; font-size: 13px; color: #8d8d8d; }

/* Contact */
.contact { padding: 96px 0; background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__lead { font-size: 18px; color: #3b3b3b; margin: -12px 0 24px; }
.contact__info { margin: 32px 0 0; display: grid; gap: 14px; }
.contact__info div { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid #e6e6e6; padding-top: 14px; }
.contact__info dt { font-weight: 700; }
.contact__info dd { margin: 0; color: #3b3b3b; }
.contact__social { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; font-weight: 700; }
.contact__social a { text-decoration: none; border-bottom: 2px solid var(--red); }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--grey); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }

/* Footer */
.footer { background: var(--black); color: #9a9a9a; text-align: center; padding: 48px 20px 90px; }
.footer img { height: 34px; width: auto; margin: 0 auto 12px; }
.footer p { color: var(--white); font-weight: 700; margin: 0 0 6px; }

/* Floating LINE */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--line); color: var(--white); font-weight: 800; text-decoration: none; padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Facts (quick summary for people & AI) */
.facts__title { font-size: 18px; margin: 32px 0 12px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.facts div { border-top: 1px solid #e6e6e6; padding: 10px 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Menu categories */
.menu-cat { margin-bottom: 36px; }
.menu-cat__title { font-size: 22px; margin: 0 0 16px; }
.menu-cat__title span { color: var(--muted); font-weight: 500; }
html.js .menu-cat { margin-bottom: 0; }
html.js .menu-cat__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card h4 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.25; }
.card__desc { margin: 6px 0 0; font-size: 13px; color: #555; line-height: 1.45; }
.card__price { display: block; }
.card__price--ask { font-size: 15px; }
.menu__updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { padding: 96px 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq details { background: var(--white); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: #3b3b3b; }

/* Contact extras */
address.contact__info { font-style: normal; }
.contact__info div { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid #e6e6e6; padding-top: 14px; }
.contact__info .k { font-weight: 700; }
.hours { margin-top: 20px; border-collapse: collapse; width: 100%; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-top: 1px solid #e6e6e6; font-weight: 500; }
.hours td { font-weight: 700; }
.footer__nap { color: #9a9a9a !important; font-weight: 400 !important; font-size: 14px; }
.footer a { color: #cfcfcf; }

/* Call / chat CTAs (used when there is no LINE OA) */
.contact__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fab--call { background: var(--red); display: inline-flex; align-items: center; gap: 6px; }

/* Mascot: keep square, never squish */
.hero__art .hero__mascot { width: min(440px, 92%); height: auto; aspect-ratio: 1; object-fit: contain; }
.nav__logo img { height: 30px; width: auto; }
.footer img { height: 34px; width: auto; }

.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

/* Journal / post cards */
.journal { padding: 96px 0; background: var(--white); }
.journal--page { padding-top: 48px; background: var(--paper); }
.journal--related { background: var(--paper); padding: 64px 0; }
.journal--related h2 { font-size: 28px; }
.journal__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.journal__head h2 { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.journal--page .post-card, .journal--related .post-card { background: var(--white); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.post-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--white); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__tags { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.post-card h3 { font-size: 19px; }
.post-card__desc { margin: 8px 0 12px; font-size: 14px; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 13px; color: var(--muted); }

/* Page hero (blog index) */
.page-hero { background: var(--black); color: var(--white); padding: 40px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.page-hero__lead { color: #bdbdbd; font-size: 18px; margin: 12px 0 0; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-hero .crumbs ol { color: #9a9a9a; }

/* Article */
.post { background: var(--white); }
.post__wrap { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.post__head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
.post__lead { font-size: 19px; color: #3b3b3b; margin: 16px 0 10px; }
.post__meta { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.post__cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post__cover img { width: 100%; max-height: 460px; object-fit: contain; }
.toc { background: var(--paper); border-radius: 14px; padding: 18px 24px; margin-bottom: 32px; }
.toc p { margin: 0 0 6px; font-weight: 800; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); }
.prose { font-size: 18px; line-height: 1.85; color: #262626; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); font-weight: 600; }
.prose strong { color: var(--black); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 14px; max-height: 420px; width: auto; margin: 0 auto; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e6e6e6; }
.prose th { background: var(--black); color: var(--white); }
.post__cta { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 24px 28px; }
.post__cta p { margin: 0; color: #cfcfcf; }
.post__cta .post__cta-title { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.post__cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post__cta .btn--outline { border-color: var(--white); color: var(--white); }
.post__cta .btn--outline:hover { background: var(--white); color: var(--black); }
.footer__links { font-weight: 400 !important; font-size: 14px; }

/* 404 */
.nf { display: grid; place-items: center; min-height: 100vh; background: var(--black); color: var(--white); text-align: center; }
.nf img { margin: 0 auto 16px; }

/* Responsive */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 8px 20px 20px; display: none; }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid #222; }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero__art { min-height: 300px; order: -1; }
  .about__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .about, .menu, .beans, .contact, .faq, .journal { padding: 64px 0; }
  .prose { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .card h4 { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card h3 { font-size: 15px; }
  .beans__grid { grid-template-columns: 1fr; }
  .bean { grid-template-columns: 100px 1fr; }
}
@media (max-width: 420px) {
  .about__points { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
