/* TJ Coffee — warm cafe brand, LINE Seed Sans TH only */
:root {
  --cream: #f6efe4;
  --cream-deep: #eadfcf;
  --foam: #fbf7f0;
  --latte: #dcc4a8;
  --caramel: #c17a45;
  --caramel-deep: #a35f30;
  --amber: #e0a85a;
  --amber-soft: #e8c48a;
  --mocha: #6b4636;
  --espresso: #2b1a12;
  --espresso-deep: #140d09;
  --ink: #24160f;
  --muted: #7a6458;
  --line: rgba(43, 26, 18, 0.12);
  --line-strong: rgba(43, 26, 18, 0.22);
  --foam-line: rgba(251, 247, 240, 0.18);
  --shadow: 0 20px 50px rgba(36, 22, 15, 0.12);
  --shadow-soft: 0 10px 28px rgba(36, 22, 15, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 78px;
  --font: "LINE Seed Sans TH", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--espresso);
  color: var(--foam);
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--caramel-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--amber);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.8rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--foam);
  background: linear-gradient(180deg, rgba(20, 13, 9, 0.55), rgba(20, 13, 9, 0));
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.site-header.is-scrolled,
body.page-article .site-header {
  background: rgba(246, 239, 228, 0.92);
  color: var(--espresso);
  box-shadow: 0 8px 30px rgba(36, 22, 15, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--espresso);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.9;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--foam) !important;
}

.site-header.is-scrolled .nav-cta,
body.page-article .nav-cta {
  color: var(--foam) !important;
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  margin: auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--foam);
  margin-top: calc(var(--nav-h) * -1);
  background: var(--espresso-deep);
}

.hero-media,
.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  display: none;
}

.hero.is-static .hero-video {
  display: none;
}

.hero.is-static .hero-poster {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 13, 9, 0.62) 0%, rgba(20, 13, 9, 0.28) 42%, rgba(20, 13, 9, 0.78) 100%),
    linear-gradient(90deg, rgba(43, 26, 18, 0.45), transparent 55%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 820px);
  text-align: center;
  padding: 8rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber-soft);
  opacity: 0;
  animation: rise 1s ease 0.15s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--amber-soft);
  opacity: 0.7;
}

.hero h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: rise 1.05s ease 0.32s forwards;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(251, 247, 240, 0.86);
  opacity: 0;
  animation: rise 1.05s ease 0.48s forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 1.05s ease 0.62s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--amber) 0%, var(--caramel) 100%);
  color: var(--espresso-deep);
  box-shadow: 0 12px 30px rgba(193, 122, 69, 0.38);
}

.btn-ghost {
  border-color: rgba(251, 247, 240, 0.45);
  color: var(--foam);
  background: rgba(20, 13, 9, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost.dark {
  border-color: var(--line-strong);
  color: var(--espresso);
  background: transparent;
}

.video-toggle {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--foam-line);
  background: rgba(20, 13, 9, 0.5);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 2rem;
  margin: 0.4rem auto 0;
  background: linear-gradient(var(--amber-soft), transparent);
  animation: drip 1.8s ease-in-out infinite;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.2rem;
  align-items: center;
}

.about-figure {
  position: relative;
}

.about-figure img {
  width: 100%;
  height: min(34rem, 72vh);
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  left: -1rem;
  bottom: 1.6rem;
  background: var(--foam);
  color: var(--espresso);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  max-width: 13rem;
}

.about-badge strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.quote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 1.2rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1rem 0.2rem 0;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--mocha);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--espresso);
  color: var(--foam);
  border-color: var(--espresso);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.menu-card {
  background: var(--foam);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.menu-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.chip {
  display: inline-flex;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--caramel-deep);
  background: rgba(193, 122, 69, 0.12);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.menu-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.menu-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.price {
  font-weight: 800;
  color: var(--espresso);
  margin-top: 0.4rem;
}

.featured {
  background:
    radial-gradient(circle at 10% 20%, rgba(224, 168, 90, 0.16), transparent 28%),
    linear-gradient(180deg, #efe4d4, var(--cream));
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.15rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 18rem;
  color: var(--foam);
  isolation: isolate;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.feature-card:hover img {
  transform: scale(1.1);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 13, 9, 0.05), rgba(20, 13, 9, 0.78));
}

.feature-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.feature-card.large {
  min-height: 37.2rem;
}

.feature-stack {
  display: grid;
  gap: 1.15rem;
}

.feature-copy h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.3rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.article-card {
  background: var(--foam);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card-body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
}

.read-more {
  margin-top: auto;
  color: var(--caramel-deep);
  font-weight: 700;
}

.visit {
  background: var(--espresso);
  color: var(--foam);
}

.visit .kicker,
.visit .lede {
  color: var(--amber-soft);
}

.visit .section-title {
  color: var(--foam);
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.panel {
  background: rgba(251, 247, 240, 0.06);
  border: 1px solid var(--foam-line);
  border-radius: 24px;
  padding: 1.4rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--foam-line);
  font-weight: 400;
}

.hours th {
  font-weight: 700;
}

.visit-media {
  position: relative;
  min-height: 22rem;
  border-radius: 24px;
  overflow: hidden;
}

.visit-media img,
.visit-media iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  border: 0;
  filter: saturate(0.85) contrast(1.05);
}

.map-pin {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--foam);
  color: var(--espresso);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  max-width: 16rem;
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--espresso-deep);
  color: rgba(251, 247, 240, 0.82);
  padding: 3.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--foam);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer a:hover {
  color: var(--amber-soft);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 0.6rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--foam-line);
  background: rgba(251, 247, 240, 0.06);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.newsletter-form button {
  border: 0;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--foam);
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.form-note {
  margin-top: 0.6rem;
  color: var(--amber-soft);
  font-size: 0.9rem;
}

.legal {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--foam-line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.article-hero {
  padding: 3.5rem 0 0;
}

.article-hero img {
  width: 100%;
  height: min(28rem, 58vh);
  object-fit: cover;
  border-radius: 28px;
  margin-top: 1.4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(14rem, 1fr);
  gap: 3rem;
  padding: 2.4rem 0 5rem;
  align-items: start;
}

.prose p {
  font-size: 1.08rem;
  line-height: 1.95;
  margin-bottom: 1.2rem;
  color: #3b2a21;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2rem 0 0.8rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
  color: #3b2a21;
}

.prose li {
  margin: 0.35rem 0;
}

.aside-card {
  background: var(--foam);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-card a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.aside-card a:last-child {
  border-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .featured-grid,
  .visit-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    min-height: 22rem;
  }

  .about-badge {
    left: 1rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--foam);
    color: var(--espresso);
    border-radius: 18px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: var(--cream-deep);
  }

  .nav-cta {
    text-align: center;
  }

  .menu-grid,
  .articles-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .menu-grid,
  .articles-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .newsletter-form {
    flex-direction: column;
  }

  .legal,
  .header-inner {
    gap: 0.6rem;
  }

  .about-figure img {
    height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-video {
    display: none;
  }

  .hero-poster {
    display: block;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
