/* Tabby Toast — a small café, a generous table. Mobile-first foundations. */
:root {
  --cream:#fbf7ee; --paper:#fffcf5; --ink:#393d30; --muted:#626654;
  --berry:#753d4b; --berry-dark:#5e2f3b; --line:#dcd9ca; --green:#e8ebdc;
  --serif:'Playfair Display',Georgia,serif; --sans:'DM Sans',Arial,sans-serif;
  --space-1:8px; --space-2:12px; --space-3:16px; --space-4:24px;
  --space-5:32px; --space-6:48px; --space-7:64px;
  --gutter:clamp(16px,4.5vw,48px); --section-space:clamp(48px,6vw,88px);
  --radius:10px;
}
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:24px }
body { margin:0; background:var(--cream); color:var(--ink); font:16px/1.75 var(--sans) }
button,input { font:inherit }
button { cursor:pointer; color:inherit }
a { color:inherit; text-decoration:none }
button,a,input { -webkit-tap-highlight-color:transparent; touch-action:manipulation }
:focus-visible { outline:3px solid var(--berry); outline-offset:5px }
img { display:block; max-width:100%; height:auto }
[hidden] { display:none!important }
h1,h2,h3,p { margin-top:0 }
h1,h2,h3 { font-family:var(--serif); font-weight:500; text-wrap:balance }
p { margin-bottom:var(--space-4) }
h1 { font-size:clamp(42px,10.8vw,68px); line-height:1.12; letter-spacing:-.045em; margin-bottom:28px }
h1 em { color:var(--berry); font-weight:500 }
h2 { font-size:clamp(30px,6.8vw,44px); line-height:1.2; letter-spacing:-.035em; margin-bottom:0 }
h3 { line-height:1.25; letter-spacing:-.025em }
.wrap { width:min(1240px,calc(100% - var(--gutter)*2)); margin-inline:auto }
.wrap>* { min-width:0 }
.eyebrow { font:700 10px/1.7 var(--sans); letter-spacing:.14em; margin-bottom:16px }
.announcement { padding:10px 16px; background:var(--green); text-align:center; font-size:11px; line-height:1.5; letter-spacing:.015em }
.announcement span { color:var(--berry); margin-left:5px }
.announcement .announcement-tail { white-space:nowrap; color:inherit; margin:0 }
.header { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); position:relative; z-index:5 }
.brand { display:inline-flex; align-items:center; min-height:48px; font:700 clamp(25px,6vw,34px)/1.1 var(--serif); letter-spacing:-.05em; white-space:nowrap }
.brand img { width:42px; height:46px; margin-right:8px }
.brand-dot { color:var(--berry) }
.menu-toggle { display:flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 12px; background:transparent; border:1px solid #858772; border-radius:var(--radius); font-size:13px }
nav { display:none; position:absolute; inset:calc(100% + 8px) 0 auto; padding:12px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 14px 32px #393d3014 }
nav.open { display:flex; flex-direction:column; gap:4px }
nav a { display:flex; align-items:center; min-height:48px; padding:10px 14px; border-radius:7px; font-size:14px; font-weight:500 }
nav a:hover { background:var(--green) }
.nav-subscribe { min-height:50px; padding:12px 18px; font-size:16px; border:1px solid #858772; justify-content:center; gap:12px }
/* Original SVG family: fixed boxes keep symbols aligned and font-independent. */
.icon { display:inline-block; width:20px; height:20px; flex:0 0 auto; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; pointer-events:none }
.announcement .icon,.ticker .icon { width:14px; height:14px }

.tiny-sun { display:inline-flex; align-items:center }
.scene-star .icon { width:25px; height:25px }
.topic-icon .icon { width:32px; height:32px }
.handwritten .icon { margin-left:4px }
.menu-toggle>span { display:inline-flex; align-items:center }
.menu-toggle .menu-open,.menu-toggle[aria-expanded="true"] .menu-closed { display:none }
.menu-toggle[aria-expanded="true"] .menu-open { display:inline-flex }
/* Shared CTA tiers: 56px primary / 50px secondary; never shrink at breakpoints. */
.button,.text-link,.recipe-open { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:50px; padding:12px 24px; border:1px solid transparent; border-radius:12px; font:600 16px/1.5 var(--sans); transition:transform .15s,border-color .15s }
.button { min-height:56px; padding:14px 28px; background:var(--berry); color:var(--paper); white-space:nowrap }
.button:hover { background:var(--berry-dark) }
.text-link { justify-content:flex-start; padding-inline:0; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px }
.text-link:hover { color:var(--berry) }
.hero { display:grid; gap:32px; padding-block:40px 48px }
.hero .eyebrow { font-size:9px; letter-spacing:.1em; margin-bottom:20px }
.tiny-sun { vertical-align:middle; font-size:19px; color:var(--berry); margin-right:4px }
.intro { max-width:44ch; color:var(--muted); line-height:1.85; margin-bottom:24px }
.hero-actions { display:flex; flex-direction:column; gap:16px }
.hero-actions>* { width:100%; justify-content:center; white-space:nowrap }
.hero-actions .text-link { padding-inline:24px; border-color:#858772; text-decoration:none; background:transparent }
.hero-actions .text-link:hover { background:var(--green) }
.hero-note { display:flex; gap:8px; align-items:center; font-size:11px; color:var(--muted); margin-top:20px; line-height:1.6 }
.hero-note>span { color:var(--berry); font-size:18px }
/* A framed café illustration: decorations stay inside its own footprint. */
.mascot-scene { position:relative; isolation:isolate; display:grid; place-items:center; width:100%; max-width:460px; margin-inline:auto; aspect-ratio:1/.98; background:#f0e8d6; border-radius:48% 48% var(--radius) var(--radius); border:1px solid #e0d6c1 }
.mascot-scene::after { content:''; position:absolute; inset:12px; border:1px solid #dbd0b9; border-radius:inherit; z-index:-1 }
.hero-mascot { width:96%; height:auto; position:relative; margin-top:20px; animation:none }
.scene-orbit { display:none }
.scene-label { position:absolute; top:30px; left:25px; font-size:7px; line-height:1.6; letter-spacing:.12em; transform:rotate(-8deg) }
.scene-greeting { position:absolute; top:59px; right:19px; font:italic clamp(13px,3.8vw,18px)/1.3 var(--serif); transform:rotate(6deg); z-index:2 }
.scene-star { position:absolute; right:27px; top:19px; color:#68744d; font-size:25px }
.mascot-name { position:absolute; bottom:24px; left:23px; font:italic clamp(15px,4vw,20px)/1.3 var(--serif); transform:rotate(-5deg) }
.scene-stamp { position:absolute; right:17px; bottom:18px; background:var(--green); border:1px solid #a3ab88; border-radius:50%; width:66px; height:66px; display:flex; flex-direction:column; align-items:center; justify-content:center; font:22px/1.1 var(--serif); transform:rotate(10deg) }
.scene-stamp span { max-width:50px; margin-top:4px; text-align:center; font:600 6px/1.4 var(--sans); letter-spacing:.08em }
.ticker { position:relative; overflow:hidden; padding:16px 0; border-block:1px solid var(--line); font-size:12px; font-weight:600; letter-spacing:.13em }
.ticker-track { display:flex; width:max-content }
/* Equal groups include their boundary spacing: -50% exactly replaces the first copy. */
.ticker-group { display:flex; flex:none; align-items:center; justify-content:space-around; gap:32px; width:max-content; min-width:100vw; padding-inline:16px; white-space:nowrap }
.ticker-item { display:inline-flex; align-items:center; gap:32px }
.ticker-item .icon { color:var(--berry) }
.ticker-static { margin:0; padding-inline:16px; text-align:center; overflow-wrap:anywhere }
.ticker-pause { display:none; min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:var(--radius); background:var(--cream); font:600 12px/1.5 var(--sans) }
@media (prefers-reduced-motion:no-preference) {
  .ticker { padding-bottom:60px }
  .ticker-track { animation:ticker-scroll 28s linear infinite }
  .ticker-static { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
  .ticker-pause { display:block; position:absolute; bottom:8px; right:16px }
  .ticker[data-paused="true"] .ticker-track { animation-play-state:paused }
}
@media (prefers-reduced-motion:reduce) {
  .ticker-track { display:none }
}
@keyframes ticker-scroll { to { transform:translateX(-50%) } }
.section { padding-block:var(--section-space) }
.section-heading { display:flex; flex-direction:column; align-items:flex-start; gap:16px; margin-bottom:28px }
.section-heading .eyebrow { margin-bottom:10px }
.journal-grid,.recipe-grid,.topic-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:32px }
.journal-card { min-width:0; position:relative; border-bottom:1px solid var(--line); padding-bottom:32px }
.journal-card:last-child { border-bottom:0; padding-bottom:0 }
.art { position:relative; aspect-ratio:1.5; overflow:hidden; border-radius:var(--radius); background:#e5e8d7 }
.art.peach { background:#eadbd0 }
.art.butter { background:#eee3c8 }
.art svg { display:block; width:100%; height:100%; transition:transform .4s }
.art-caption { position:absolute; bottom:12px; left:16px; font-size:9px; letter-spacing:.1em; color:#65563f }
.journal-card .card-body { padding-top:24px }
.card-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; color:var(--berry); font-size:10px; font-weight:600; letter-spacing:.08em; line-height:1.6; margin-bottom:12px }
.read-time { color:var(--muted); font-weight:400 }
.card-body h3 { font-size:clamp(25px,5.8vw,31px); margin-bottom:12px }
.story-title { display:block; width:100%; min-height:44px; padding:0; background:none; border:0; font:inherit; letter-spacing:inherit; line-height:inherit; text-align:left }
.story-title::after { content:''; position:absolute; inset:0; border-radius:var(--radius); z-index:1 }
.story-title:focus-visible { outline:none }
.journal-card:has(.story-title:focus-visible),.recipe-card:has(.story-title:focus-visible) { outline:3px solid var(--berry); outline-offset:5px }
.story-title:hover { color:var(--berry) }
.card-arrow { color:var(--berry); font:22px var(--sans); margin-left:8px }
.card-body>p:not(.eyebrow) { font-size:15px; line-height:1.8; color:var(--muted); margin-bottom:20px }
.card-link { display:flex; gap:12px; align-items:center; min-height:50px; color:var(--berry); font-size:16px; font-weight:600 }
.about-band { background:var(--green); border-block:1px solid #d6dbc8 }
.about-layout { display:grid; gap:24px; align-items:center; padding-block:40px 48px }
.about-doodle { display:flex; justify-content:center; align-items:center }
.about-doodle img { width:55%; max-width:210px; transform:rotate(-6deg) }
.about-doodle span { font:italic clamp(16px,4.5vw,23px)/1.4 var(--serif); transform:rotate(-5deg); margin-left:-15px }
.about-layout h2 { margin-bottom:24px }
.about-layout p:not(.eyebrow) { max-width:60ch; color:var(--muted); font-size:16px; margin-bottom:16px }
.handwritten { font:italic 18px/1.5 var(--serif); color:var(--muted) }
.recipe-card { position:relative; min-width:0; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper) }
.recipe-card .art { border-radius:9px 9px 0 0; border-bottom:1px solid var(--line); aspect-ratio:1.4 }
.recipe-card .card-body { display:flex; flex-direction:column; flex:1; padding:24px }
.recipe-card .eyebrow { font-size:9px; letter-spacing:.1em; color:var(--berry); margin-bottom:12px }
.recipe-number { position:absolute; top:12px; left:16px; font:italic 22px var(--serif); color:#625a48 }
.recipe-time { position:absolute; bottom:12px; right:12px; background:var(--cream); padding:5px 12px; border-radius:24px; font-size:10px; letter-spacing:.08em }
.recipe-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); margin-top:auto; padding-top:16px }
.recipe-footer>span { font-size:11px; color:var(--muted) }
.recipe-open { position:relative; z-index:2; min-height:50px; padding:12px 16px; border-color:#858772; background:transparent; font-size:16px; gap:12px; white-space:nowrap }
.recipe-open:hover { background:var(--green); border-color:#919a78 }
.image-note { font-size:12px; color:var(--muted); margin:24px 0 0; max-width:65ch; text-wrap:pretty }
.table-section { padding-top:8px }
.heading-aside { font-size:14px; color:var(--muted); margin:0 }
.topic-grid { gap:16px }
.topic-card { display:flex; flex-direction:column; position:relative; text-align:left; min-width:0; padding:28px; border:1px solid #d7dbca; border-radius:var(--radius); background:#ecedde; transition:transform .25s,border-color .25s }
.topic-card.science { background:#efe7d8; border-color:#dfd5c4 }
.topic-card.health { background:#eee1df; border-color:#dfd2cf }
.topic-icon { position:absolute; top:22px; right:24px; display:flex; align-items:center; height:40px; font:32px/1 var(--serif) }
.topic-card .eyebrow { padding-right:32px; margin-bottom:24px; font-size:9px }
.topic-card h3 { font-size:30px; margin-bottom:16px }
/* Keep authored line breaks: hiding them joins neighbouring words. */
.topic-card p { color:var(--muted); font-size:15px; line-height:1.8 }
.topic-card .text-link { margin-top:auto; color:var(--berry); gap:10px }
.subscribe-section { background:#ebe9dd; border-block:1px solid var(--line); padding-block:48px }
.subscribe-layout { display:grid; gap:28px }
.subscribe-layout h2 { margin-bottom:16px }
.subscribe-layout p:not(.eyebrow) { font-size:15px; color:var(--muted); margin-bottom:0 }
.signup label { display:block; font-weight:600; font-size:13px; margin-bottom:8px }
.input-row { display:flex; flex-direction:column; gap:12px }
.input-row input { flex:1; width:100%; min-width:0; min-height:56px; font-size:16px; padding:12px 16px; border:1px solid #797d68; border-radius:var(--radius); background:var(--paper); color:var(--ink) }
.input-row .button { min-height:56px }
.subscribe-layout .form-note { font-size:12px!important; line-height:1.7; margin-top:12px }
.footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; padding-block:32px }
.footer .brand { width:100%; font-size:29px }
.footer p { width:100%; margin:0; font-size:13px; color:var(--muted) }
.footer>a:not(.brand) { display:inline-flex; align-items:center; gap:8px; min-height:50px; font-size:16px }
.footer>span { font-size:11px; color:var(--muted) }
.skip { position:fixed; top:-120px; left:16px; z-index:20; padding:12px 20px; background:var(--ink); color:white; border-radius:8px }
.skip:focus { top:12px }
body.modal-open { overflow:hidden }
dialog { color:var(--ink); background:var(--cream); border:1px solid var(--line); border-radius:14px; width:min(720px,calc(100% - 24px)); max-height:90vh; max-height:90dvh; padding:64px 24px 28px; overscroll-behavior:contain; overflow-wrap:anywhere }
dialog::backdrop { background:#292e2799; backdrop-filter:blur(4px) }
dialog h2 { font-size:clamp(29px,6vw,42px); margin:12px 0 28px }
dialog h3 { font-size:26px; margin:32px 0 16px }
dialog p,dialog li { font-size:16px; line-height:1.85 }
dialog ul,dialog ol { padding-left:24px }
dialog li+li { margin-top:8px }
dialog .eyebrow { color:var(--berry) }
.close-dialog { position:sticky; float:right; top:0; margin:-52px -12px 0 0; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--berry); font:28px/1 var(--sans); z-index:3 }
@keyframes scoot-in { from { opacity:0; transform:translateX(12px) rotate(2deg) } to { opacity:1; transform:translateX(0) rotate(0) } }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .button:hover { transform:translateY(-2px) }
  .journal-card:hover .art svg,.recipe-card:hover .art svg { transform:scale(1.035) }
  .topic-card:hover { transform:translateY(-3px); border-color:#9d9e86 }

}
@media (max-width:359px) {
  .recipe-footer { flex-direction:column; align-items:stretch; gap:12px }
  .recipe-open { width:100% }
}
@media (min-width:600px) {
  .hero { gap:40px; padding-block:56px }
  .hero-copy { max-width:640px }
  .hero-actions { flex-direction:row; flex-wrap:wrap }
  .hero-actions>* { width:auto }
  .hero .eyebrow { font-size:11px }
  .hero-note { font-size:12px }
  .scene-label { font-size:9px; top:36px; left:34px }
  .scene-greeting { top:77px; right:27px }
  .scene-stamp { width:84px; height:84px; font-size:27px; bottom:26px; right:24px }
  .scene-stamp span { font-size:7px; max-width:66px }
  .mascot-name { left:32px; bottom:33px }
  .section-heading { gap:20px; margin-bottom:32px }
  .journal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px }
  .featured-story { grid-column:span 2 }
  .featured-story .art { aspect-ratio:1.9 }
  .featured-story h3 { max-width:28ch; font-size:34px }
  .journal-card { border:0; padding-bottom:0 }
  .recipe-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px }
  .recipe-card .card-body { padding:24px }
  .recipe-card h3 { font-size:26px }
  .recipe-card:last-child { grid-column:span 2; display:grid; grid-template-columns:1fr 1fr }
  .recipe-card:last-child .art { height:100%; aspect-ratio:auto; border-radius:9px 0 0 9px; border-bottom:0; border-right:1px solid var(--line) }
  .topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px }
  .topic-card:last-child { grid-column:span 2 }
  .topic-card { padding:24px 20px }
  .topic-icon { position:static; margin-bottom:24px }
  .topic-card .eyebrow { padding:0; min-height:32px; margin-bottom:16px }
  .topic-card h3 { font-size:26px }
  .topic-card p { font-size:14px }
  .about-layout { grid-template-columns:1fr 1.7fr; gap:32px; padding-block:56px }
  .about-doodle { flex-direction:column }
  .about-doodle img { width:100%; max-width:240px }
  .about-doodle span { margin:0; text-align:center }
  .input-row { flex-direction:row }
  .signup { max-width:580px }
  dialog { padding:64px 48px 40px }
  .close-dialog { margin-right:-32px }
}
@media (min-width:900px) {
  .header { min-height:104px }
  .brand img { width:48px; height:52px }
  .menu-toggle { display:none }
  nav,nav.open { position:static; display:flex; flex-direction:row; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; gap:8px }
  nav a { font-size:12px; padding-inline:12px }
  .hero { grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:40px; align-items:center; padding-block:72px }
  h1 { font-size:clamp(60px,6vw,84px) }
  .intro { font-size:17px }
  .hero-actions { gap:16px }
  .mascot-scene { max-width:520px }
  .section-heading { flex-direction:row; align-items:flex-end; justify-content:space-between }
  .journal-grid { grid-template-columns:1.12fr 1fr; gap:0 32px }
  .journal-card { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1fr); gap:24px; align-items:center; padding-bottom:28px }
  .journal-card:last-child { border-top:1px solid var(--line); padding-top:28px }
  .journal-card .card-body { padding-top:0 }
  .journal-card .art { aspect-ratio:1/1.15 }
  .journal-card h3 { font-size:24px }
  .journal-card .card-body>p { font-size:14px }
  .featured-story { grid-column:auto; grid-row:span 2; display:flex; flex-direction:column; align-items:stretch; padding:0 32px 0 0; border-right:1px solid var(--line) }
  .featured-story .art { aspect-ratio:1.5 }
  .featured-story h3 { font-size:34px }
  .recipe-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .recipe-card:last-child { grid-column:auto; display:flex }
  .recipe-card:last-child .art { height:auto; aspect-ratio:1.4; border-radius:9px 9px 0 0; border:0; border-bottom:1px solid var(--line) }
  .topic-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .topic-card:last-child { grid-column:auto }
  .topic-card { padding:32px }
  .topic-card h3 { font-size:32px }
  .topic-card .eyebrow { min-height:0 }
  .about-layout { gap:64px; padding-block:64px; max-width:1100px }
  .subscribe-layout { grid-template-columns:1fr 1fr; gap:48px; align-items:center }
  .subscribe-layout h2 { font-size:36px }
  .input-row { flex-wrap:wrap }
  .input-row input { flex-basis:220px }
  .footer { padding-block:40px }
  .footer .brand,.footer p { width:auto }
}
@media (min-width:1200px) {
  nav { gap:16px }
  nav a { font-size:13px }
  .hero { gap:64px; padding-block:88px }
  .hero-actions { gap:16px }
  .journal-grid { gap:0 40px }
  .featured-story { padding-right:40px }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  *,*::before,*::after { animation:none!important; transition:none!important }
}

/* Tabihan stays in the hero's existing, reserved illustration space. */
.tabihan { position:relative; width:100%; min-width:0; align-self:center }
.tabihan-button { display:block; overflow:hidden; width:100%; min-width:44px; min-height:44px; padding:0; border:0; border-radius:36%; background:transparent; color:inherit; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent }
.tabihan-button:focus-visible { outline:3px solid var(--berry); outline-offset:-8px }
.tabihan .hero-mascot { display:block; width:96%; margin:20px auto 0; pointer-events:none }
.tabihan-bubble { position:absolute; z-index:3; top:0; left:8%; width:84%; box-sizing:border-box; margin:0; padding:10px 14px; border:1px solid #c9b797; border-radius:18px 18px 18px 4px; background:#fffcf5; color:#553b2e; font:italic clamp(13px,3.5vw,17px)/1.35 var(--serif); text-align:center; opacity:0; transform:translateY(4px); pointer-events:none; transition:opacity .2s,transform .2s }
.tabihan[data-speaking="true"] .tabihan-bubble { opacity:1; transform:translateY(0) }
.tabihan-arm { transform-origin:131px 224px }
.tabihan-coffee { transform-origin:370px 225px }
@media (prefers-reduced-motion:no-preference) {
  .tabihan[data-state="ENTRANCE"] .hero-mascot { animation:tabihan-enter .8s ease-out both }
  .tabihan[data-state="WAVE"] .tabihan-arm { animation:tabihan-wave .8s ease-in-out }
  .tabihan[data-state="OFFER_COFFEE"] .tabihan-coffee { animation:tabihan-offer .6s ease-in-out both }
  .tabihan-coffee { transition:transform .35s ease }
}
@keyframes tabihan-enter {
  0% { transform:translateX(18%); opacity:0 }
  25% { transform:translateX(13%); opacity:.8 }
  100% { transform:translateX(0); opacity:1 }
}
@keyframes tabihan-wave {
  0%,100% { transform:rotate(0) }
  25%,65% { transform:rotate(32deg) }
  45%,85% { transform:rotate(12deg) }
}
@keyframes tabihan-offer {
  to { transform:translate(-3px,-9px) rotate(-4deg) }
}
/* Keep the original scene labels above a dedicated speech/illustration row. */
.mascot-scene { aspect-ratio:auto; padding-top:90px; padding-bottom:12px }
.tabihan { padding-top:56px }

/* The greeting moves to 77px above 600px; keep speech below its line box. */
@media (min-width:600px) {
  .mascot-scene { padding-top:120px }
}

/* Animate the original artwork inside its fixed SVG viewport, leaving the shadow grounded. */
.tabihan-character { transform-origin:240px 220px }
.tabihan-cup-arm { transform-origin:314px 224px }
.tabihan-controls { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0 8px 100px }
.tabihan-dance { display:flex; margin:0; min-width:44px; min-height:56px; padding:10px 18px; font-size:16px; cursor:pointer; touch-action:manipulation }
.tabihan-dance:focus-visible { outline:3px solid var(--berry); outline-offset:4px }
@media (prefers-reduced-motion:no-preference) {
  .tabihan[data-state="HAPPY_TWIRL"] .tabihan-character { animation:tabihan-twirl 1s cubic-bezier(.4,0,.2,1) }
  .tabihan[data-state="SIDE_SHUFFLE"] .tabihan-character { animation:tabihan-shuffle 1.2s ease-in-out }
  .tabihan[data-state="SIDE_SHUFFLE"] .tabihan-arm,
  .tabihan[data-state="SIDE_SHUFFLE"] .tabihan-cup-arm { animation:tabihan-swing .4s ease-in-out 3 }
  .tabihan[data-state="HAPPY_DANCE"] .tabihan-character { animation:tabihan-dance 1.5s ease-in-out }
  .tabihan[data-state="HAPPY_DANCE"] .tabihan-arm { animation:tabihan-cheer 1.5s ease-in-out }
  .tabihan[data-state="HAPPY_DANCE"] .tabihan-cup-arm { animation:tabihan-cheer-right 1.5s ease-in-out }
  .tabihan[data-state="COFFEE_CELEBRATION"] .tabihan-character { animation:tabihan-celebrate 1s ease-in-out }
  .tabihan[data-state="COFFEE_CELEBRATION"] .tabihan-coffee { animation:tabihan-cup 1s ease-in-out }
  .tabihan[data-state="COFFEE_CELEBRATION"] .tabihan-cup-arm { animation:tabihan-cup 1s ease-in-out }
}
@keyframes tabihan-twirl {
  0% { transform:rotate(0) scale(1) }
  15% { transform:rotate(-12deg) scale(.94) }
  75% { transform:rotate(360deg) scale(.94) }
  85% { transform:translateY(3px) rotate(360deg) scale(1.03,.96) }
  94% { transform:translateY(-2px) rotate(360deg) scale(.99,1.02) }
  100% { transform:rotate(360deg) scale(1) }
}
@keyframes tabihan-shuffle {
  0%,100% { transform:translate(0) rotate(0) }
  20% { transform:translate(9px,-2px) rotate(2deg) }
  40% { transform:translate(18px,0) rotate(-2deg) }
  60% { transform:translate(27px,-2px) rotate(2deg) }
  80% { transform:translate(12px,0) rotate(-1deg) }
}
@keyframes tabihan-swing { 0%,100% { transform:rotate(0) } 50% { transform:rotate(8deg) } }
@keyframes tabihan-dance {
  0%,100% { transform:translateY(0) rotate(0) scale(1) }
  12%,55% { transform:translateY(3px) scale(1.03,.96) }
  30% { transform:translateY(-12px) rotate(-5deg) scale(.98,1.02) }
  43%,88% { transform:translateY(2px) scale(1.03,.97) }
  73% { transform:translateY(-12px) rotate(5deg) scale(.98,1.02) }
}
@keyframes tabihan-cheer { 0%,100% { transform:rotate(0) } 30%,73% { transform:rotate(24deg) } 50% { transform:rotate(8deg) } }
@keyframes tabihan-celebrate { 0%,100% { transform:translateY(0) rotate(0) } 40% { transform:translateY(-5px) rotate(-3deg) } 75% { transform:translateY(2px) rotate(1deg) } }
@keyframes tabihan-cup { 0%,100% { transform:translateY(0) rotate(0) } 35%,60% { transform:translateY(-10px) rotate(-4deg) } }

@keyframes tabihan-cheer-right { 0%,100% { transform:rotate(0) } 30%,73% { transform:rotate(-12deg) } 50% { transform:rotate(-4deg) } }

/* Short, user-requested joke gestures inside the original illustration space. */
@media (prefers-reduced-motion:no-preference) {
  .tabihan[data-state="JOKE_WIGGLE"] .tabihan-character { animation:tabihan-joke-wiggle .32s ease-in-out }
  .tabihan[data-state="JOKE_BOUNCE"] .tabihan-character { animation:tabihan-joke-bounce .5s ease-in-out }
}
@keyframes tabihan-joke-wiggle {
  0%,100% { transform:rotate(0) }
  30% { transform:rotate(-3deg) }
  70% { transform:rotate(3deg) }
}
@keyframes tabihan-joke-bounce {
  0%,100% { transform:translateY(0) scale(1) }
  20% { transform:translateY(2px) scale(1.02,.97) }
  55% { transform:translateY(-7px) scale(.99,1.02) }
  85% { transform:translateY(1px) scale(1.01,.98) }
}

/* Readable type scoped to the interactive Tabihan hero. */
.hero .intro { font-size:17px }
.hero .hero-note { font-size:15px }
.hero .tabihan-bubble { font-size:17px; overflow-wrap:anywhere }
.hero .tabihan-dance { font-size:17px; max-width:100%; white-space:normal }
/* Reserve four lines of dialogue plus padding; labels and controls stay separate. */
.hero .tabihan { padding-top:120px }
.hero .scene-greeting { font-size:16px }
@media (max-width:899px) {
  .hero h1 { font-size:32px }
}
@media (min-width:900px) {
  .hero .intro { font-size:18px }
  .hero .hero-note { font-size:16px }
  .hero .tabihan-bubble { font-size:18px }
  .hero .tabihan { padding-top:126px }
}

/* Approved raster artwork: preserve its baked-in paper and exact proportions. */
.brand img.brand-wordmark { width:160px; height:auto; margin:0 }
.tabihan .approved-artwork { width:76%; margin:28px auto; transform-origin:54% 42%; border-radius:0; background:transparent }
.tabihan-button:has(.approved-artwork) { border-radius:0; overflow:visible; background:transparent; padding-block:14% 20% }
.about-doodle img { max-width:240px; transform:none; border-radius:8px }
@media (min-width:900px) {
  .brand img.brand-wordmark { width:210px }
}
@media (prefers-reduced-motion:no-preference) {
  .tabihan[data-state="WAVE"] .approved-artwork { animation:approved-hello .8s ease-in-out }
  .tabihan[data-state="OFFER_COFFEE"] .approved-artwork { animation:approved-coffee .6s ease-in-out both }
}
@keyframes approved-hello {
  0%,100% { transform:rotate(0) }
  30% { transform:rotate(-3deg) }
  70% { transform:rotate(3deg) }
}
@keyframes approved-coffee {
  to { transform:translateY(-6px) rotate(-2deg) }
}

/* Visible, complementary philosophy cards; source copy stays in the homepage. */
.philosophy-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:24px }
.philosophy-card { min-width:0; padding:clamp(24px,3vw,40px); border:1px solid var(--line); border-radius:var(--radius); background:var(--paper) }
.hospitality-card { background:var(--green) }
.philosophy-icon { display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin-bottom:24px; color:var(--berry); border:1px solid var(--line); border-radius:50% }
.philosophy-icon .icon { width:28px; height:28px }
.philosophy-card .eyebrow { color:var(--berry); margin-bottom:12px }
.philosophy-card h3 { font-size:clamp(28px,3vw,36px); margin-bottom:24px }
.philosophy-card p:not(.eyebrow) { font-size:clamp(16px,1.2vw,18px); line-height:1.8; color:var(--muted); overflow-wrap:break-word; margin-bottom:20px }
.philosophy-card p:last-child { margin-bottom:0 }
.philosophy-card .no-tipping-note { padding-top:20px; border-top:1px solid #bcc3aa; font-size:14px }
@media (min-width:900px) {
  .philosophy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px }
}
/* Keep the expanded navigation comfortable before it fits in a single row. */
@media (min-width:900px) and (max-width:1199px) {
  .header { flex-wrap:wrap; padding-block:16px }
  .header nav { width:100%; justify-content:space-between }
}

/* Editorial refinement: shared rhythm and a character-sized arch. */
:root {
  --section-space:clamp(40px,4.5vw,64px);
  --section-gap:clamp(24px,3vw,40px);
  --body-size:clamp(16px,1.15vw,18px);
  --heading-display:clamp(36px,5vw,64px);
  --radius-control:12px;
}
h1 { font-size:var(--heading-display); letter-spacing:-.04em }
h2 { font-size:clamp(29px,3.2vw,42px) }
p { text-wrap:pretty }
.eyebrow { font-size:11px; letter-spacing:.11em; line-height:1.65 }
.announcement { font-size:12px; padding-block:10px }
.header { min-height:84px }
nav a { font-size:14px }
.hero { gap:clamp(28px,4vw,56px); padding-block:clamp(28px,3vw,44px); align-items:start }
.hero h1 { font-size:var(--heading-display); margin-bottom:24px }
.hero .eyebrow { font-size:11px; margin-bottom:16px }
.hero .intro { font-size:var(--body-size); line-height:1.75; max-width:45ch; margin-bottom:0 }
/* One responsive rhythm for the introduction, annotations, actions and sign-off. */
.hero-details { --hero-space:clamp(20px,2vw,28px); display:grid; gap:var(--hero-space); min-width:0 }
.hero .hero-note { font-size:13px; font-weight:400; margin:0; gap:10px; text-wrap:pretty }
.hero-note>span { display:inline-flex; flex:none; align-items:center }
.hero-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,264px),1fr)); gap:clamp(14px,1.25vw,18px) }
.hero-actions>* { width:100%; min-height:56px; padding:14px 20px; white-space:normal }
.hero-actions .text-link { padding:14px 24px }
.mascot-scene { display:block; width:100%; max-width:360px; justify-self:center; padding:0; border:0; border-radius:0; background:transparent; aspect-ratio:auto }
.mascot-scene::after { content:none }
.scene-top { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:flex-start; gap:clamp(12px,1.25vw,18px) clamp(20px,2vw,28px); padding:0; margin:0 }
.scene-label { position:static; font-size:clamp(10px,.8vw,11px); line-height:1.6; letter-spacing:.09em; transform:none; white-space:nowrap }
.hero .scene-greeting { position:static; font:italic clamp(16px,1.5vw,19px)/1.4 var(--serif); transform:none; white-space:nowrap }
.scene-star { top:48%; right:4%; z-index:1 }
.scene-star .icon { width:20px; height:20px }
.hero .tabihan { padding:0; align-self:auto }
.hero .tabihan-bubble { position:relative; top:auto; left:auto; width:100%; min-block-size:4.4em; display:grid; place-items:center; padding:10px 16px; font-size:15px; line-height:1.4; margin-bottom:4px; z-index:3 }
.tabihan-button:has(.approved-artwork) { position:relative; display:grid; place-items:center; aspect-ratio:.94; padding:0; min-height:0; isolation:isolate }
.tabihan-button::before,.tabihan-button::after { content:''; position:absolute; z-index:-1; pointer-events:none; border:1px solid #e0d6c1; border-radius:48% 48% 12px 12px; inset:4% 5%; background:#f0e8d6 }
.tabihan-button::after { inset:calc(4% + 10px) calc(5% + 10px); background:transparent; border-color:#dbd0b9 }
.tabihan .approved-artwork { width:72%; margin:0 auto; transform-origin:54% 42% }
.tabihan-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:8px 0 0 }
.hero .tabihan-dance { font-size:14px; padding:10px; width:100%; min-height:48px; line-height:1.4; background:transparent; color:var(--ink); border-color:#858772 }
.hero .tabihan-dance:hover { background:var(--green) }
.tabihan-controls .tabihan-dance:first-child { grid-column:1/-1 }
.scene-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 16px; margin-top:16px; padding-inline:8px }
.mascot-name { position:static; transform:none; font-size:18px; line-height:1.4 }
.scene-stamp { --badge-size:clamp(75px,6vw,78px); position:static; flex:0 0 var(--badge-size); width:var(--badge-size); height:var(--badge-size); padding:7px; gap:3px; border-color:#7d8964; transform:none; text-align:center }
.scene-stamp strong { font:700 24px/1 var(--serif); letter-spacing:-.04em }
.scene-stamp span { margin:0; max-width:60px; font:700 11px/1.15 var(--sans); letter-spacing:.04em }
.ticker { padding-block:12px; font-size:12px; letter-spacing:.09em }
@media (prefers-reduced-motion:no-preference) {
  .ticker { padding-block:14px; padding-right:84px }
  .ticker-track { width:max-content }
  .ticker-pause { top:4px; bottom:auto; right:12px; z-index:2; box-shadow:-12px 0 16px var(--cream) }
}
#journal { padding-top:clamp(28px,3vw,44px) }
.section-heading { gap:16px; margin-bottom:clamp(24px,3vw,36px) }
.section-heading>div { position:relative; min-width:0 }
.food-doodle { display:block; width:80px; height:64px; flex-shrink:0; pointer-events:none }
.section-heading>div:has(.food-doodle) { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; align-items:center }
.section-heading>div>.eyebrow { grid-column:1; margin-bottom:8px }
.section-heading>div>h2 { grid-column:1 }
.section-heading>div>.food-doodle { grid-column:2; grid-row:1/3 }
.journal-grid,.recipe-grid,.topic-grid { gap:var(--section-gap) }
.art-caption { font-size:11px; letter-spacing:.06em; background:var(--cream); padding:3px 6px; border-radius:4px; max-width:calc(100% - 32px) }
.card-meta { font-size:11px; letter-spacing:.06em }
.card-body h3 { font-size:clamp(25px,2.2vw,31px); line-height:1.3 }
.card-body>p:not(.eyebrow),.topic-card p { font-size:16px; line-height:1.75 }
.about-layout { padding-block:var(--section-space); gap:clamp(24px,4vw,56px) }
.about-layout h2 { margin-bottom:20px }
.about-doodle { flex-direction:column; gap:16px }
.about-doodle img { width:100%; max-width:240px; height:auto; background:transparent; border:0; border-radius:0; box-shadow:none }
.about-doodle span { margin:0; transform:none }
.about-layout p:not(.eyebrow) { font-size:var(--body-size); line-height:1.75 }
.philosophy-section { padding-bottom:0 }
.philosophy-grid { gap:24px; align-items:start }
.philosophy-card { padding:clamp(24px,2.7vw,36px) }
.philosophy-icon { width:48px; height:48px; margin-bottom:20px }
.philosophy-card h3 { font-size:clamp(27px,2.5vw,34px); line-height:1.25; margin-bottom:20px }
.philosophy-card p:not(.eyebrow) { font-size:var(--body-size); line-height:1.75; margin-bottom:16px }
.philosophy-card p:last-child { margin-bottom:0 }
.philosophy-card .no-tipping-note { font-size:14px; line-height:1.65; padding-top:16px }
.recipe-card .card-body { padding:clamp(20px,2vw,28px) }
.recipe-card .eyebrow { font-size:11px; letter-spacing:.08em }
.recipe-time,.recipe-footer>span { font-size:12px }
.recipe-footer { align-items:flex-start; gap:8px 12px }
.recipe-open { white-space:normal }
.image-note { font-size:14px; margin-top:20px }
.table-section { padding-top:0 }
.heading-aside { font-size:16px; line-height:1.6 }
.topic-card { padding:clamp(24px,2.3vw,32px) }
.topic-card .eyebrow { font-size:11px; min-height:0; margin-bottom:16px }
.topic-card h3 { font-size:clamp(27px,2.3vw,32px) }
.topic-icon { position:static; margin-bottom:20px; height:auto }
.topic-card .text-link { line-height:1.5; gap:8px; white-space:normal }
.subscribe-section { padding-block:var(--section-space) }
.subscribe-layout { gap:var(--section-gap) }
.subscribe-layout>div:first-child { position:relative }
.subscribe-layout .food-doodle { margin-top:16px; width:72px; height:58px }
.subscribe-layout p:not(.eyebrow) { font-size:16px; line-height:1.75 }
.signup label { font-size:14px }
.subscribe-layout .form-note { font-size:13px!important }
.footer { gap:12px 24px; padding-block:clamp(24px,3vw,40px) }
.footer p { font-size:14px }
.footer>span { font-size:13px }
.header #navigation { max-height:min(70dvh,520px); overflow-y:auto; overscroll-behavior:contain }
.header #navigation>a { flex-shrink:0; white-space:nowrap }
.content-loading { font-size:16px; color:var(--muted); grid-column:1/-1 }
.topic-card:has(.story-title:focus-visible) { outline:3px solid var(--berry); outline-offset:5px }
.button,.text-link,.recipe-open { border-radius:var(--radius-control) }
@media (min-width:900px) {
  .header #navigation { max-height:none; overflow:visible }
}
@media (min-width:600px) and (max-width:899px) {
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px }
  .hero-actions { flex-direction:column }
  .hero-actions>* { width:100% }
  .hero h1 { font-size:clamp(38px,5vw,46px) }
  .hero .tabihan-bubble { font-size:14px; min-block-size:5.6em }
  .mascot-name { font-size:16px }
}
@media (min-width:900px) {
  .hero { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) }
  .hero .tabihan-bubble { font-size:16px }
  .featured-story h3 { font-size:clamp(29px,2.6vw,36px) }
  .journal-card { gap:20px; padding-bottom:24px }
  .journal-card:last-child { padding-top:24px }
  .journal-card h3 { font-size:clamp(24px,2vw,28px) }
  .journal-card .card-body>p { font-size:16px }
  .featured-story { padding-bottom:0; padding-right:var(--section-gap) }
  .philosophy-grid { gap:32px }
  .subscribe-layout { align-items:start }
}
@media (min-width:1200px) {
  .header { gap:20px }
  .brand img.brand-wordmark { width:190px }
  nav,nav.open { gap:4px }
  nav a { padding-inline:10px; font-size:14px }
}
@media (max-width:374px) {
  .section-heading>div:has(.food-doodle) { column-gap:8px }
  .food-doodle { width:52px; height:44px }
  .scene-footer { gap:8px }
  .mascot-name { font-size:16px }
}

/* Small-screen hero annotations follow the introduction in reading order. */
@media (max-width:599px) {
  .hero-actions { grid-template-columns:minmax(0,1fr) }
  .hero .mascot-scene { max-width:300px }
  .hero .scene-stamp { display:none }
  .about-doodle img { max-width:220px }
}

/* Progressive canvas enhancement; preserve the arch, image fallback and controls. */
.tabihan-rig { position:absolute; left:6%; top:50%; width:88%; height:auto; aspect-ratio:16/17; transform:translateY(-50%); pointer-events:none; visibility:hidden }
.tabihan[data-rig-ready="true"] .tabihan-rig { visibility:visible }
.tabihan[data-rig-ready="true"] .approved-artwork { visibility:hidden; animation:none; transition:none }

/* A small story invitation; the existing About section stays intact. */
.story-preview { display:grid; gap:24px; border-bottom:1px solid var(--line) }
.story-preview h2 { max-width:23ch; margin-bottom:20px }
.story-preview p:not(.eyebrow) { max-width:62ch; font-size:var(--body-size); line-height:1.8; margin-bottom:12px; color:var(--muted) }
.story-preview-mark { display:flex; align-items:center; gap:16px }
.story-preview-mark svg { flex-shrink:0; width:100px; height:80px }
.story-preview-mark span { max-width:15ch; font:italic 20px/1.5 var(--serif); color:var(--muted) }
@media (min-width:600px) {
  .story-preview { grid-template-columns:1fr 2fr; align-items:center; gap:40px }
  .story-preview-mark { flex-direction:column; text-align:center }
}

/* Social links stay compact in the header and labelled in the mobile menu. */
.social-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.social-links a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:44px; min-height:44px; padding:8px; border-radius:8px; font-size:13px }
.social-links a:hover { color:var(--berry); background:var(--green) }
.header .social-links { border-top:1px solid var(--line); padding-top:8px }
.header .social-links a { flex:1 }
.toaster-section { border-top:1px solid var(--line) }
.toaster-section .section-heading { margin-bottom:var(--section-gap) }
.toaster-note { color:var(--berry); font:italic 18px/1.5 var(--serif) }
.toaster-layout { display:grid; gap:28px; align-items:start }
.toaster-copy { max-width:40ch }
.toaster-seal { display:inline-grid; place-items:center; width:56px; height:56px; border:1px solid #a3ab88; border-radius:50%; color:#56613e; background:var(--green); margin-bottom:20px; transform:rotate(-8deg) }
.toaster-seal .icon { width:30px; height:30px }
.toaster-description { font-size:clamp(18px,1.6vw,22px); line-height:1.75; color:#493a30; margin-bottom:24px }
.toaster-handle { display:flex; align-items:center; gap:10px; min-height:44px; color:var(--berry); font-weight:600 }
.toaster-copy .text-link { font-size:15px }
.toaster-footnote { margin:16px 0 0; font-size:13px; color:var(--muted) }
.toaster-card { min-width:0; background:var(--paper); border-radius:20px; box-shadow:inset 0 0 0 1px var(--line); overflow-wrap:anywhere }
.toaster-placeholder { padding:28px 20px 0; text-align:center }
.toaster-illustration { display:flex; align-items:center; justify-content:center; gap:24px; padding:24px 8px; margin-bottom:20px; background:var(--green); border-radius:80px 80px 12px 12px; color:#56613e }
.toaster-illustration .icon { width:88px; height:88px }
.toaster-illustration span { font:italic 19px/1.4 var(--serif); transform:rotate(-5deg) }
.toaster-placeholder h3 { color:#493a30; font-size:clamp(24px,2.3vw,30px); margin-bottom:12px }
.toaster-placeholder p { font-size:14px; margin-bottom:0; color:var(--muted) }
.toaster-consent { padding:24px 20px; text-align:center }
.toaster-consent .button { white-space:normal; width:100%; max-width:320px; font-size:15px; background:#56613e }
.toaster-consent .button:hover { background:#414b2d }
.toaster-privacy { font-size:12px; line-height:1.7; color:var(--muted); max-width:48ch; margin:16px auto 0 }
.toaster-status { font-size:13px; line-height:1.6; margin:12px 0 0; color:var(--berry) }
.toaster-status:empty { display:none }
.toaster-fallback { display:inline-block; padding-block:12px; margin-top:8px; font-size:13px; text-decoration:underline; text-underline-offset:4px }
.toaster-fallback .icon { width:16px; height:16px }
/* Let TikTok choose its own frame height and video proportions. Never crop it. */
.toaster-embed { padding-top:16px; min-width:288px }
.toaster-embed iframe { display:block; max-width:100%; border:0 }
.toaster-embed blockquote { margin:0 auto!important }
@media (min-width:900px) {
  .toaster-layout { grid-template-columns:minmax(0,.85fr) minmax(288px,1.5fr); gap:clamp(32px,5vw,72px) }
  .header .social-links { flex-wrap:nowrap; gap:0; padding:0 0 0 6px; border-top:0; border-left:1px solid var(--line) }
  .header .social-links a { padding:8px; min-height:44px }
  .header .social-links span { display:none }
}

/* Navigation is a disclosure, not a modal. The static fallback needs no script. */
@media (max-width:899px) {
  .header:not(.navigation-ready) { flex-wrap:wrap; padding-block:16px }
  .header:not(.navigation-ready) .menu-toggle { display:none }
  .header:not(.navigation-ready) #navigation { position:static; display:flex; flex-wrap:wrap; width:100%; max-height:none; overflow:visible; box-shadow:none; border:0; padding:0 }
  .header:not(.navigation-ready) .social-links { border:0; padding:0 }
}
