:root {
    --cream: #fff8ec;
    --toast: #fbe9cc;
    --ink: #2a2118;
    --muted: #5b4f43;
    --pandan: #2e6b3f;
    --pandan-dark: #1f4d2c;
    --kopi: #5a3418;
    --yolk: #f4b740;
    --tile: #1d4e89;
    --radius: 22px;
    --max: 1160px;
    --display: "Baloo 2", "Trebuchet MS", sans-serif;
    --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pandan); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--pandan-dark); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.15rem 0.9rem; margin-bottom: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-green { background: var(--pandan); color: #fff; }
.btn-yolk { background: var(--yolk); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.head { max-width: 62ch; margin: 0 auto 2.8rem; text-align: center; }
.head .lead { margin: 0.9rem auto 0; }

/* tiles: a little Peranakan-style pattern drawn in CSS */
.tiles { background-color: var(--toast); background-image:
    radial-gradient(circle at 50% 50%, rgba(46,107,63,0.16) 0 9px, transparent 10px),
    radial-gradient(circle at 0 0, rgba(29,78,137,0.12) 0 14px, transparent 15px),
    radial-gradient(circle at 100% 0, rgba(29,78,137,0.12) 0 14px, transparent 15px),
    radial-gradient(circle at 0 100%, rgba(29,78,137,0.12) 0 14px, transparent 15px),
    radial-gradient(circle at 100% 100%, rgba(29,78,137,0.12) 0 14px, transparent 15px);
    background-size: 56px 56px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--yolk); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); transform: rotate(-8deg); }
.brand .amp { color: var(--pandan); }
.links { display: flex; align-items: center; gap: 1.5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--pandan); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.links .btn { padding: 0.45rem 1.1rem; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); color: #fff; }
.links .btn:hover { color: #fff; text-decoration: none; }
.burger { display: none; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 0.35rem 0.5rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
@media (max-width: 860px) {
    .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.2rem; background: var(--cream); padding: 0.8rem 1.25rem 1.3rem; border-bottom: 2px solid var(--ink); }
    .links.open { display: flex; }
    .links a { padding: 0.4rem 0; }
    .links .btn { margin-top: 0.4rem; padding: 0.5rem 1.2rem; }
    .burger { display: block; }
}

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); }
.hero h1 .hl { color: var(--pandan); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.28em; background: var(--yolk); z-index: -1; border-radius: 6px; transform: rotate(-1.5deg); }
.hero h1 { position: relative; z-index: 0; }
.hero .lead { margin: 1.3rem 0 2rem; color: var(--ink); }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .frame { border: 3px solid var(--ink); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; overflow: hidden; box-shadow: 10px 10px 0 var(--pandan); aspect-ratio: 1; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; font-family: var(--display); font-weight: 800; line-height: 1.05; text-align: center; border: 2.5px solid var(--ink); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); }
.sticker-early { top: -4%; right: 2%; width: 118px; height: 118px; border-radius: 50%; background: var(--yolk); color: var(--ink); font-size: 1.2rem; transform: rotate(12deg); animation: wobble 5s ease-in-out infinite; }
.sticker-plant { bottom: 4%; left: -4%; padding: 0.55rem 1rem; border-radius: 14px; background: #fff; color: var(--pandan-dark); font-size: 1.05rem; transform: rotate(-7deg); }
@keyframes wobble { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.04); } }
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { max-width: 460px; margin: 0.5rem auto 0; width: 92%; }
    .sticker-early { width: 96px; height: 96px; font-size: 1rem; right: -2%; }
    .sticker-plant { left: -2%; }
}

/* ribbon */
.ribbon { background: var(--pandan); color: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; padding: 0.9rem 0; }
.ribbon-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.ribbon-track span { font-family: var(--display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; padding: 0 1.2rem; }
.ribbon-track span::after { content: "✦"; color: var(--yolk); margin-left: 2.4rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-art { position: relative; }
.about-art img { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: -10px 10px 0 var(--yolk); aspect-ratio: 1; object-fit: cover; width: 100%; transform: rotate(-2deg); }
.about h2 { margin-bottom: 1.2rem; }
.about p { color: var(--muted); font-size: 1.08rem; }
.about p strong { color: var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-art { order: -1; max-width: 520px; margin: 0 auto; width: 94%; } }

/* favourites */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 1.7rem 1.5rem 1.6rem; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.2s; }
.card:nth-child(odd) { transform: rotate(-1.2deg); }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card .icon { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 1rem; }
.card:nth-child(1) .icon { background: var(--yolk); }
.card:nth-child(2) .icon { background: var(--toast); }
.card:nth-child(3) .icon { background: #e7d3c2; }
.card:nth-child(4) .icon { background: #cfe6d3; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }

/* prices (live block) */
.prices { background: var(--cream); border-top: 2px solid var(--ink); }
.price-cat { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--pandan-dark); margin: 2.2rem 0 1rem; display: inline-block; background: var(--yolk); border: 2px solid var(--ink); border-radius: 999px; padding: 0.1rem 1rem; }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.4rem 3rem; }
.price-list li { padding: 0.9rem 0; border-bottom: 2px dashed rgba(42,33,24,0.25); }
.price-list .row { display: flex; align-items: baseline; gap: 0.8rem; }
.price-list .name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.price-list .dots { flex: 1; border-bottom: 2px dotted rgba(42,33,24,0.35); transform: translateY(-5px); min-width: 1rem; }
.price-list .amount { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--pandan); white-space: nowrap; }
.price-list .meta { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.center { text-align: center; }

/* early */
.early { background: var(--kopi); color: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.early .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.early h2 { color: #fff; }
.early h2 .sun { color: var(--yolk); }
.early p { color: #f6eadb; font-size: 1.1rem; max-width: 50ch; margin-top: 1rem; }
.hours-card { background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: 8px 8px 0 var(--yolk); }
.hours-card h3 { margin-bottom: 0.7rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 2px dashed rgba(42,33,24,0.18); }
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 700; }
.hours .closed { color: var(--muted); }
.cup { font-size: clamp(6rem, 16vw, 10rem); line-height: 1; text-align: center; animation: steam 3.5s ease-in-out infinite; }
@keyframes steam { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@media (max-width: 860px) { .early .wrap { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { margin-bottom: 1rem; }
.contact .mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--pandan-dark); word-break: break-all; margin-top: 0.4rem; }
.form-card { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 8px 8px 0 var(--pandan); }
.form { display: grid; gap: 0.95rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.form input, .form textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--ink); border-radius: 14px; font: inherit; font-weight: 400; background: var(--cream); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--yolk); outline-offset: 1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.alert { padding: 0.8rem 1rem; border-radius: 14px; border: 2px solid var(--ink); font-weight: 700; }
.alert-ok { background: #cfe6d3; }
.alert-fail { background: #fde0c4; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--ink); color: #f6eadb; padding: 3.2rem 0 2rem; }
.footer .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer .brand { color: #fff; }
.footer .brand .amp { color: var(--yolk); }
.footer p { margin: 0.8rem 0 0; max-width: 40ch; }
.footer a { color: #fff; }
.footer .flinks { display: grid; gap: 0.4rem; align-content: start; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.88rem; color: #d9cbb8; }
.footer .bottom a { color: #d9cbb8; }

/* legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 0.6rem; }
.legal h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.3em; }
.todo { background: #fde0c4; border: 2px dashed var(--kopi); border-radius: 8px; padding: 0 0.35em; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ribbon-track, .sticker-early, .cup { animation: none; }
}
