/* Thai Taste Guide — How Spicy Is “Spicy”? Page-specific styles. */

.tl-page--taste {
  --tt-paper: #f5f1ea;
  --tt-cream: #faf7f2;
  --tt-ink: #1c1612;
  --tt-muted: #6a5f55;
  --tt-chili: #c94a2e;
  --tt-chili-deep: #9e341c;
  --tt-green: #3d6b45;
  --tt-gold: #b08a4a;
  --tt-gold-btn: #c9a05a;
  --tt-line: rgba(28, 22, 18, 0.1);
  --tt-card: #fffcf8;
  background: var(--tt-paper);
  color: var(--tt-ink);
}

.tl-main--taste {
  padding: 0;
  background: var(--tt-paper);
}

.tl-tt {
  font-family: "Bricolage Grotesque", sans-serif;
}

.tl-tt__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* —— Hero (no photo cover) —— */
.tl-tt-hero {
  position: relative;
  padding: 36px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 88% 18%, rgba(201, 74, 46, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 8% 80%, rgba(61, 107, 69, 0.06), transparent 55%),
    var(--tt-paper);
}

.tl-tt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.tl-tt-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--tt-muted);
  font-size: 12px;
}

.tl-tt-crumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  opacity: 0.55;
}

.tl-tt-crumb a {
  color: inherit;
  text-decoration: none;
}

.tl-tt-crumb a:hover {
  color: var(--tt-chili);
}

.tl-tt-brandline {
  margin: 0 0 14px;
  color: var(--tt-chili);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-tt-brandline span {
  color: var(--tt-ink);
  font-weight: 500;
}

.tl-tt-hero h1 {
  margin: 0 0 12px;
  max-width: 12ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(42px, 6.4vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--tt-ink);
}

.tl-tt-hero__sub {
  margin: 0 0 20px;
  color: var(--tt-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.tl-tt-hero__intro {
  max-width: 34em;
  margin: 0;
  color: var(--tt-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-tt-hero__intro strong {
  color: var(--tt-ink);
  font-weight: 500;
}

.tl-tt-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 56px 12px 48px;
}

.tl-tt-hero__ring {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 10px rgba(255, 252, 248, 0.9),
    0 24px 48px rgba(28, 22, 18, 0.14);
  animation: tl-tt-float 7s ease-in-out infinite;
}

.tl-tt-hero__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-tt-script {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: var(--tt-chili-deep);
  font-family: "Caveat", cursive;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  transform: rotate(-6deg);
  pointer-events: none;
  text-shadow:
    0 0 12px rgba(245, 241, 234, 0.95),
    0 1px 0 rgba(255, 252, 248, 0.9);
}

.tl-tt-script--tl {
  top: 0;
  left: 0;
  max-width: 11em;
}

.tl-tt-script--br {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
  color: var(--tt-green);
  text-align: right;
}

@keyframes tl-tt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— Sections —— */
.tl-tt-section {
  padding: 64px 0;
  border-top: 1px solid var(--tt-line);
}

.tl-tt-section--soft {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.65), transparent 40%);
}

.tl-tt-head {
  max-width: 40rem;
  margin: 0 0 36px;
}

.tl-tt-num {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--tt-chili);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-tt-head h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.tl-tt-head p {
  margin: 0;
  color: var(--tt-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

/* —— Spice meter —— */
.tl-tt-meter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.tl-tt-level {
  --level-bg: #eef6ea;
  --chili: #c94a2e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background: var(--level-bg);
  border: 1px solid color-mix(in srgb, var(--chili) 18%, transparent);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(28, 22, 18, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-tt-level:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(28, 22, 18, 0.1);
}

.tl-tt-level[data-level="0"] { --level-bg: #e8f3e4; --chili: #4f8f4a; }
.tl-tt-level[data-level="1"] { --level-bg: #eef4d8; --chili: #8f9e3a; }
.tl-tt-level[data-level="2"] { --level-bg: #f7efcf; --chili: #d0a028; }
.tl-tt-level[data-level="3"] { --level-bg: #f6e4d2; --chili: #d07a2e; }
.tl-tt-level[data-level="4"] { --level-bg: #f6d9d4; --chili: #c94a2e; }
.tl-tt-level[data-level="5"] { --level-bg: #f0cfcf; --chili: #b01f1a; }

.tl-tt-level__art {
  position: relative;
  aspect-ratio: 333 / 193;
  overflow: hidden;
  background: var(--level-bg);
}

.tl-tt-level__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tl-tt-level__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px 14px;
  background: rgba(255, 252, 248, 0.72);
  border-top: 1px solid rgba(28, 22, 18, 0.06);
}

.tl-tt-level__thai {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-tt-level__read {
  margin: 0;
  color: var(--chili);
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
}

.tl-tt-level__en {
  margin: 0;
  color: var(--tt-muted);
  font-size: 12px;
  font-weight: 500;
}

.tl-tt-level__chilies {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 16px;
  margin-top: 6px;
}

.tl-tt-level__chilies span {
  display: block;
  width: 14px;
  height: 18px;
  background-color: var(--chili);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M12 4c-1.2 3.8-5 6.4-5 12.2C7 22.4 9.4 28 14 28s6.5-4.2 6.5-8.8C20.5 12.6 15.8 9.2 12 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M12 4c-1.2 3.8-5 6.4-5 12.2C7 22.4 9.4 28 14 28s6.5-4.2 6.5-8.8C20.5 12.6 15.8 9.2 12 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tl-tt-level__chilies span::before {
  display: none;
}

.tl-tt-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 52rem;
  padding: 16px 18px;
  background: rgba(201, 74, 46, 0.08);
  border: 1px solid rgba(201, 74, 46, 0.16);
  border-radius: 14px;
}

.tl-tt-tip__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--tt-chili);
}

.tl-tt-tip p {
  margin: 0;
  color: var(--tt-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.tl-tt-tip strong {
  color: var(--tt-chili-deep);
}

/* —— Phrase cards —— */
.tl-tt-phrases-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.tl-tt-phrases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tl-tt-phrase {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 118px;
  padding: 18px 16px;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tl-tt-phrase:hover {
  border-color: rgba(201, 74, 46, 0.35);
  transform: translateY(-2px);
}

.tl-tt-phrase__thai {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-tt-phrase__read {
  margin: 0;
  color: var(--tt-chili);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

.tl-tt-phrase__en {
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--tt-muted);
  font-size: 13px;
}

.tl-tt-sticky {
  position: relative;
  width: 180px;
  padding: 22px 18px;
  background: #f3e4a8;
  color: #4a3d1f;
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  transform: rotate(3deg);
  box-shadow: 2px 8px 18px rgba(28, 22, 18, 0.12);
}

.tl-tt-sticky::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 48px;
  height: 16px;
  margin-left: -24px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  transform: rotate(-2deg);
}

/* —— Flavour wheel —— */
.tl-tt-flavours {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px 12px;
}

.tl-tt-flavour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.tl-tt-flavour__img {
  width: min(100%, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 22, 18, 0.1);
  transition: transform 0.35s ease;
}

.tl-tt-flavour:hover .tl-tt-flavour__img {
  transform: scale(1.05);
}

.tl-tt-flavour__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-tt-flavour__thai {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.tl-tt-flavour__read {
  margin: 2px 0 0;
  color: var(--tt-chili);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
}

.tl-tt-flavour__en {
  margin: 4px 0 0;
  color: var(--tt-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* —— Balance —— */
.tl-tt-formula {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 28px;
  padding: 14px 22px;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c94a2e, #d07a2e 35%, #3d6b45 70%, #2f5f78);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(201, 74, 46, 0.2);
}

.tl-tt-formula span {
  opacity: 0.7;
  font-weight: 400;
}

.tl-tt-balance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tl-tt-dish {
  overflow: hidden;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 18px;
}

.tl-tt-dish__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.tl-tt-dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tl-tt-dish:hover .tl-tt-dish__media img {
  transform: scale(1.04);
}

.tl-tt-dish__body {
  padding: 16px 18px 18px;
}

.tl-tt-dish__body h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
}

.tl-tt-dish__body p {
  margin: 0;
  color: var(--tt-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* —— Glossary —— */
.tl-tt-glossary {
  width: 100%;
  border-collapse: collapse;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 16px;
  overflow: hidden;
}

.tl-tt-glossary th,
.tl-tt-glossary td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--tt-line);
  vertical-align: middle;
}

.tl-tt-glossary th {
  background: rgba(28, 22, 18, 0.04);
  color: var(--tt-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-tt-glossary tr:last-child td {
  border-bottom: 0;
}

.tl-tt-glossary td:nth-child(1) {
  font-size: 16px;
  font-weight: 500;
  width: 28%;
}

.tl-tt-glossary td:nth-child(2) {
  color: var(--tt-chili);
  font-style: italic;
  font-weight: 600;
  width: 28%;
}

.tl-tt-glossary td:nth-child(3) {
  color: var(--tt-muted);
  font-size: 14px;
}

.tl-tt-glossary tbody tr {
  transition: background 0.2s ease;
}

.tl-tt-glossary tbody tr:hover {
  background: rgba(201, 74, 46, 0.04);
}

/* —— Dialogue —— */
.tl-tt-dialogues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tl-tt-dialogue {
  display: grid;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 20px;
}

.tl-tt-dialogue__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-tt-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0d9c8, #e8b89a);
  color: #7a4a32;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
}

.tl-tt-avatar--thai {
  background: linear-gradient(145deg, #d7e8d4, #9fc29a);
  color: #2f5534;
}

.tl-tt-dialogue__who strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-tt-dialogue__who span {
  color: var(--tt-muted);
  font-size: 12px;
}

.tl-tt-bubble {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  background: #fff7ef;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.tl-tt-bubble--you {
  background: #fff7ef;
}

.tl-tt-bubble--thai {
  background: rgba(61, 107, 69, 0.1);
  font-size: 16px;
  font-weight: 500;
}

.tl-tt-bubble em {
  color: var(--tt-chili);
  font-style: italic;
}

/* —— Good to know —— */
.tl-tt-know {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tl-tt-know__item {
  display: grid;
  gap: 12px;
  padding: 20px 18px;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 16px;
}

.tl-tt-know__icon {
  width: 36px;
  height: 36px;
  color: var(--tt-chili);
}

.tl-tt-know__item p {
  margin: 0;
  color: var(--tt-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.tl-tt-know__item strong {
  font-weight: 600;
}

/* —— Discover dishes —— */
.tl-tt-discover-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.tl-tt-discover-head .tl-tt-head {
  margin: 0;
}

.tl-tt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--tt-chili);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tl-tt-btn:hover {
  background: var(--tt-chili-deep);
  transform: translateY(-1px);
}

.tl-tt-btn--gold {
  background: var(--tt-gold-btn);
  color: #1c1612 !important;
}

.tl-tt-btn--gold:hover {
  background: #d4ae68;
}

.tl-tt-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tl-tt-card {
  display: block;
  overflow: hidden;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-tt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 22, 18, 0.1);
}

.tl-tt-card__media {
  aspect-ratio: 1;
  overflow: hidden;
}

.tl-tt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tl-tt-card:hover .tl-tt-card__media img {
  transform: scale(1.05);
}

.tl-tt-card__body {
  padding: 14px 16px 16px;
}

.tl-tt-card__body h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
}

.tl-tt-card__body p {
  margin: 0;
  color: var(--tt-muted);
  font-size: 13px;
}

/* —— Closing CTA —— */
.tl-tt-cta {
  position: relative;
  margin-top: 24px;
  padding: 88px 0;
  color: #fff;
  background-color: #1a1410;
  background-image: linear-gradient(rgba(12, 8, 6, 0.62), rgba(12, 8, 6, 0.72)), var(--tt-cta-image);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.tl-tt-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.tl-tt-cta h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
}

.tl-tt-cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-tt-cta .tl-tt-script {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 28px;
  color: #f0d9a8;
  transform: rotate(-4deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .tl-tt-hero__grid {
    grid-template-columns: 1fr;
  }

  .tl-tt-hero__visual {
    order: -1;
    min-height: 0;
    padding: 48px 8px 40px;
  }

  .tl-tt-hero__ring {
    width: min(100%, 280px);
  }

  .tl-tt-script--tl {
    top: 0;
    left: 4%;
  }

  .tl-tt-script--br {
    right: 4%;
    bottom: 0;
  }

  .tl-tt-meter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-tt-phrases-wrap {
    grid-template-columns: 1fr;
  }

  .tl-tt-sticky {
    justify-self: start;
  }

  .tl-tt-phrases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-tt-flavours {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tl-tt-know {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-tt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tl-tt__wrap {
    width: min(100% - 32px, 1120px);
  }

  .tl-tt-section {
    padding: 48px 0;
  }

  .tl-tt-meter,
  .tl-tt-balance,
  .tl-tt-dialogues,
  .tl-tt-know,
  .tl-tt-cards,
  .tl-tt-flavours,
  .tl-tt-phrases {
    grid-template-columns: 1fr 1fr;
  }

  .tl-tt-flavours {
    gap: 18px 10px;
  }

  .tl-tt-glossary th:first-child,
  .tl-tt-glossary td:first-child {
    padding-left: 12px;
  }

  .tl-tt-glossary th,
  .tl-tt-glossary td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .tl-tt-cta {
    padding: 64px 0 96px;
  }

  .tl-tt-cta .tl-tt-script {
    position: static;
    display: block;
    margin-top: 28px;
    transform: rotate(-3deg);
  }
}

@media (max-width: 420px) {
  .tl-tt-meter {
    grid-template-columns: 1fr 1fr;
  }

  .tl-tt-phrases,
  .tl-tt-balance,
  .tl-tt-dialogues,
  .tl-tt-know,
  .tl-tt-cards {
    grid-template-columns: 1fr;
  }
}
