:root {
  --ink: #2b1d0e;
  --paper: #fff8ea;
  --turmeric: #efc25a;
  --turmeric-dk: #e0a93a;
  --turmeric-lt: #fbe3a1;
  --tea: #c9843f;
  --board: #1f3d2b;
  --chalk: #f6f1e1;
  --line: #ecdcb8;
  --muted: #6b5a44;
  --head: "Baloo Chettan 2", "Noto Sans Malayalam", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 "Noto Sans Malayalam", system-ui, sans-serif;
}
a { color: #8a5a00; }
h1, h2, h3, .brand, .btn { font-family: var(--head); }

/* Striped tea-shop awning with a scalloped edge */
.awning {
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--turmeric-dk) 0 28px, #fff3d6 28px 56px);
  position: relative;
  z-index: 2;
}
.awning::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -13px; height: 13px;
  background:
    radial-gradient(circle at 14px 0, var(--turmeric-dk) 13px, transparent 14px) 0 0 / 56px 13px repeat-x,
    radial-gradient(circle at 14px 0, #fff3d6 13px, transparent 14px) 28px 0 / 56px 13px repeat-x;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 22px 20px 6px;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; line-height: 1; white-space: nowrap; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.pill {
  font: 600 .85rem system-ui, sans-serif; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px; padding: 4px 14px; background: #fff;
}

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  background: var(--ink); color: var(--turmeric-lt);
  padding: 10px 22px; border-radius: 99px; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--tea);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tea); }
.btn.ghost { background: #fff; color: var(--ink); }

/* ---------- Home ---------- */
.hero {
  background: linear-gradient(170deg, var(--turmeric-lt), var(--turmeric));
  margin-top: -13px; padding: 34px 20px 48px;
}
.hero-in {
  max-width: 1040px; margin: 0 auto;
  display: grid; gap: 8px; align-items: center; justify-items: center; text-align: center;
}
.hero h1 { font-size: clamp(2rem, 7.5vw, 3.2rem); line-height: 1.25; margin: 0; font-weight: 800; }
.hero h1 .hl { background: linear-gradient(transparent 62%, #fff3d6 62%); }
.hero p { font-size: 1.1rem; margin: 12px 0 22px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.glass { width: min(190px, 52vw); height: auto; }
@media (min-width: 760px) {
  .hero-in { grid-template-columns: 1.4fr 1fr; text-align: left; justify-items: start; }
  .hero .ctas { justify-content: flex-start; }
  .glass { order: 2; justify-self: center; width: 250px; }
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.6rem; margin: 48px 0 16px; text-align: center; }

/* Chalkboard menu */
.board {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255,255,255,.05), transparent 55%),
    var(--board);
  color: var(--chalk);
  border: 10px solid #8a5a2b; border-radius: 14px;
  box-shadow: inset 0 0 0 2px #6e4620, 0 10px 24px rgba(43,29,14,.25);
  padding: 22px 20px 18px;
}
.board h2 { margin: 0 0 6px; text-align: center; font-size: 1.7rem; letter-spacing: .5px; }
.board .sub { text-align: center; margin: 0 0 14px; opacity: .75; font-size: .9rem; }
.item {
  display: flex; align-items: flex-end; gap: 10px;
  color: var(--chalk); text-decoration: none;
  padding: 12px 6px; border-radius: 8px; transition: background .2s;
}
.item:hover { background: rgba(255,255,255,.06); }
.item .name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.item .name small { display: block; font-family: "Noto Sans Malayalam", sans-serif; font-weight: 400; font-size: .85rem; opacity: .8; }
.item .dots { flex: 1; border-bottom: 3px dotted rgba(246,241,225,.45); margin-bottom: 8px; min-width: 20px; }
.item .price { font-family: var(--head); font-weight: 800; color: var(--turmeric); white-space: nowrap; }
.item .name { flex: 1 1 auto; min-width: 0; }
.item .dots { flex: 0 1 48px; }
.kw {
  display: table; margin-bottom: 4px; font: 700 .72rem ui-monospace, Menlo, monospace; letter-spacing: 1px;
  background: var(--turmeric); color: var(--ink); padding: 3px 8px; border-radius: 6px;
}
.soon { text-align: center; margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed rgba(246,241,225,.25); font-size: .9rem; opacity: .8; }

.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.how div {
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: 16px; box-shadow: 4px 4px 0 var(--turmeric);
}
.how b { display: block; font-family: var(--head); font-size: 1.1rem; }
.how .e { font-size: 1.8rem; line-height: 1; }

/* ---------- Guide page ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--tea); z-index: 10; }

.post-hero {
  background: linear-gradient(170deg, var(--turmeric-lt), var(--turmeric));
  margin-top: -13px; padding: 30px 20px 34px;
}
.post-hero .in { max-width: 760px; margin: 0 auto; }
.post-hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font: 600 .8rem system-ui, sans-serif; background: #fff8; border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px 12px; }

.says { display: flex; gap: 12px; align-items: flex-end; }
.says img { width: 86px; height: auto; flex: none; animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 18px;
  padding: 12px 16px; margin: 0 0 22px; font-size: 1rem; line-height: 1.65;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; bottom: 14px;
  border: 10px solid transparent; border-right-color: var(--ink); border-left: 0;
}
.bubble::after {
  content: ""; position: absolute; left: -8px; bottom: 15px;
  border: 9px solid transparent; border-right-color: #fff; border-left: 0;
}

.step {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  padding: 6px 18px 18px; margin: 28px 0; box-shadow: 5px 5px 0 var(--turmeric);
}
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; line-height: 1.3; margin: 14px 0 6px; }
.step h2 small { display: block; font-family: "Noto Sans Malayalam", sans-serif; font-weight: 400; font-size: .85rem; color: var(--muted); }
.num {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--turmeric); border: 2px solid var(--ink);
  font-family: var(--head); font-weight: 800; font-size: 1.2rem;
}
.step ol { padding-left: 1.3em; }
.step li { margin-bottom: 6px; }
.step li::marker { font-weight: 700; color: var(--tea); }

/* Tea-shop bill */
.bill {
  background: #fffdf6; padding: 18px 16px 22px; margin: 10px 0 18px;
  font-size: .93rem; line-height: 1.5;
  filter: drop-shadow(0 3px 4px rgba(43,29,14,.18));
  position: relative;
}
.bill::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, #fffdf6 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(-135deg, #fffdf6 5px, transparent 0) 0 0 / 10px 10px repeat-x;
}
.bill-head { text-align: center; font-family: var(--head); font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.bill-row { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1.5px dashed #cdb98f; }
.bill-row b { display: block; }
.bill-row small { color: var(--muted); }
.bill-row span { flex: none; max-width: 34%; text-align: right; font: 600 .82rem ui-monospace, Menlo, monospace; }

pre {
  position: relative;
  background: var(--ink); color: var(--turmeric-lt);
  padding: 44px 14px 14px; border-radius: 12px;
  font-size: .84rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
pre::before {
  content: attr(data-label); position: absolute; top: 12px; left: 14px;
  font: 700 .68rem system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; opacity: .6;
}
code { font-family: ui-monospace, Menlo, monospace; }
:not(pre) > code { background: var(--turmeric-lt); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.copy {
  position: absolute; top: 8px; right: 8px;
  background: var(--turmeric); color: var(--ink);
  border: 0; border-radius: 99px; padding: 5px 16px;
  font: 700 .8rem system-ui, sans-serif; cursor: pointer;
}

.lesson {
  display: flex; gap: 12px; align-items: center;
  background: var(--turmeric-lt); border: 2px solid var(--ink); border-radius: 14px;
  padding: 12px 16px; margin-top: 18px;
}
.lesson img { width: 54px; height: auto; flex: none; }
.lesson p { margin: 0; }

.cta {
  text-align: center; background: var(--board); color: var(--chalk);
  border-radius: 16px; padding: 26px 20px; margin: 36px 0 10px;
}
.cta h3 { margin: 0 0 14px; font-size: 1.35rem; }
.cta .btn { background: var(--turmeric); color: var(--ink); box-shadow: 3px 3px 0 #0006; }

footer {
  max-width: 760px; margin: 40px auto 0; padding: 18px 20px 44px;
  border-top: 2px dashed var(--line);
  color: var(--muted); font-size: .82rem; line-height: 1.6; text-align: center;
}

/* Motion */
@keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .95; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.steam path { animation: rise 2.6s ease-in-out infinite; transform-box: fill-box; }
.steam path:nth-child(2) { animation-delay: .6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }
.dot { animation: blink 1.4s infinite; }
.dot:nth-of-type(2) { animation-delay: .2s; }
.dot:nth-of-type(3) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
