/* Tadım Kafe & Dondurma — bold, colourful system.
   Colours come from the logo: blush pink, raspberry, vanilla yellow, waffle orange and cocoa brown.
   Blocks keep their colours in both themes; only the page canvas switches between light and dark. */

:root {
  --cream: #FFF4E0;
  --paper: #FFFBF3;
  --ink: #2B160D;
  --dk: #2B160D;
  --edge: #2B160D;
  --sh: #2B160D;
  --pp: #FFFBF3;
  --on-dk: #FFF1DE;
  --ink-2: #5B3A29;
  --muted: #7A5846;
  --blush: #F8B7CF;
  --berry: #C2185B;
  --butter: #FFD45E;
  --gold: #FFD45E;
  --tangerine: #F4A24C;
  --cocoa: #4A2518;
  --cocoa-block: #4A2518;

  --bg: var(--cream);
  --surface: var(--paper);
  --line: #2b160d33;
  --accent: var(--berry);
  --accent-soft: #FDE0EA;
  --shadow-c: var(--ink);

  /* Legacy token names used by the admin panel stylesheet. */
  --pink: var(--accent);
  --pink-pale: var(--accent-soft);
  --text: var(--ink);
  --cocoa-soft: var(--ink-2);

  --serif: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif; /* display face */
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 2.4vw, 40px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sprinkles: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22 viewBox=%220 0 200 200%22%3E%3Crect x=%229%22 y=%2221%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23C2185B%22 transform=%22rotate%28-30 18 24%29%22/%3E%3Crect x=%2261%22 y=%227%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFD45E%22 transform=%22rotate%2840 70 10%29%22/%3E%3Crect x=%22111%22 y=%2237%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFFFFF%22 transform=%22rotate%2810 120 40%29%22/%3E%3Crect x=%22156%22 y=%2215%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%234A2518%22 transform=%22rotate%28-60 165 18%29%22/%3E%3Crect x=%2221%22 y=%2283%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFD45E%22 transform=%22rotate%2870 30 86%29%22/%3E%3Crect x=%2283%22 y=%2269%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23C2185B%22 transform=%22rotate%28-15 92 72%29%22/%3E%3Crect x=%22141%22 y=%2295%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFFFFF%22 transform=%22rotate%2835 150 98%29%22/%3E%3Crect x=%22179%22 y=%2267%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFD45E%22 transform=%22rotate%28-45 188 70%29%22/%3E%3Crect x=%223%22 y=%22137%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%234A2518%22 transform=%22rotate%2820 12 140%29%22/%3E%3Crect x=%2255%22 y=%22147%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFFFFF%22 transform=%22rotate%28-70 64 150%29%22/%3E%3Crect x=%22109%22 y=%22125%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23C2185B%22 transform=%22rotate%2855 118 128%29%22/%3E%3Crect x=%22163%22 y=%22155%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFD45E%22 transform=%22rotate%28-25 172 158%29%22/%3E%3Crect x=%2231%22 y=%22183%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23C2185B%22 transform=%22rotate%2845 40 186%29%22/%3E%3Crect x=%2291%22 y=%22177%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%234A2518%22 transform=%22rotate%28-10 100 180%29%22/%3E%3Crect x=%22141%22 y=%22187%22 width=%2218%22 height=%226%22 rx=%223%22 fill=%22%23FFFFFF%22 transform=%22rotate%2865 150 190%29%22/%3E%3C/svg%3E");
  color-scheme: light;
}

html[data-theme="dark"] {
  /* Night shop: deep cocoa-plum background, every colour block turns into a deep tone with cream ink. */
  --bg: #1F1019;
  --surface: #2D1926;
  --paper: #2D1926;
  --ink: #FFF1E2;
  --ink-2: #F0D6DD;
  --muted: #CDAFBB;
  --line: #ffffff2b;
  --accent: #FF9FC8;
  --accent-soft: #4A2340;
  --shadow-c: #D9619B;
  --sh: #D9619B;
  --dk: #FFEEDD;
  --pp: #2D1926;
  --on-dk: #2A1620;
  --edge: #F6DCCB;
  --blush: #5E2748;
  --butter: #7A4E14;
  --tangerine: #84401A;
  --berry: #8F1B52;
  --cocoa: #FFF1E2;
  --cocoa-block: #3C2015;
  color-scheme: dark;
}
html[data-theme="dark"] .sprinkled::before { opacity: .32; }
html[data-theme="dark"] h1 em, html[data-theme="dark"] h2 em { background: linear-gradient(transparent 60%, #A8741C 60% 94%, transparent 94%); padding-inline: 0; margin-inline: 0; }
html[data-theme="dark"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--sprinkles) 0 0 / 220px 220px; opacity: .2; pointer-events: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--dk); }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Fixed-colour blocks ---------------------------------------------------- */
.tone-blush { --b-bg: var(--blush); --b-ink: var(--dk); }
.tone-butter { --b-bg: var(--butter); --b-ink: var(--dk); }
.tone-berry { --b-bg: var(--berry); --b-ink: #FFFFFF; }
.tone-tangerine { --b-bg: var(--tangerine); --b-ink: var(--dk); }
.tone-cocoa { --b-bg: var(--cocoa-block); --b-ink: #FFF1DE; }
.tone-paper { --b-bg: var(--pp); --b-ink: var(--dk); }
[class*="tone-"] { background: var(--b-bg); color: var(--b-ink); }

/* Type --------------------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 800; letter-spacing: -.035em; line-height: .96; font-variation-settings: 'opsz' 96; }
h1 em, h2 em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--butter) 92%, transparent) 60% 94%, transparent 94%); padding-inline: .06em; margin-inline: -.06em; }
.eyebrow, .kicker {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 14px; border: 2px solid currentColor; border-radius: 999px;
  font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}

/* Buttons & links ---------------------------------------------------------- */
.button {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--shadow-c);
  font: 700 16px/1 var(--sans); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.button-cocoa { background: var(--ink); color: var(--bg); }
.button-pink { background: var(--berry); color: #fff; border-color: var(--dk); }
.button-light { background: var(--pp); color: var(--dk); border-color: var(--dk); box-shadow: 4px 4px 0 var(--sh); }
.button-light:hover { box-shadow: 6px 6px 0 var(--sh); }
.button-line { background: transparent; color: var(--ink); }
.text-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; border-bottom: 3px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.text-link:hover { color: var(--accent); }
.arrow { display: inline-block; width: 1em; height: 1em; flex: none; transition: transform .3s var(--ease); }
a:hover > .arrow, button:hover > .arrow, a:hover .arrow { transform: translate(3px, -3px); }
.arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header (same structure, restyled to match the bold blocks) ------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--ink); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
/* Site copy is not selectable (forms and the admin page stay normal). */
html, body, *, *::before, *::after { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; }
input, textarea, select, [contenteditable="true"], body.admin-page, body.admin-page * { -webkit-user-select: text; user-select: text; }
.brand { display: inline-flex; align-items: center; gap: 12px; user-select: none; }
.brand img { width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-name { display: flex; flex-direction: column; font: 800 26px/1 var(--serif); letter-spacing: -.04em; }
.brand-name small { white-space: nowrap; margin-top: 5px; font: 700 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px; border: 2px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.main-nav a:hover { background: var(--butter); border-color: var(--dk); color: var(--dk); box-shadow: 3px 3px 0 var(--shadow-c); transform: translate(-1px, -1px); }
.main-nav a[aria-current="page"] { text-decoration: underline double var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.main-nav a[target="_blank"]::after { content: "↗"; font-size: .95em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--dk); box-shadow: 3px 3px 0 var(--shadow-c); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.theme-toggle:hover, .menu-toggle:hover { background: var(--butter); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-c); }
.theme-toggle:active, .menu-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow-c); }
.theme-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
html[data-theme="dark"] .theme-icon { background: linear-gradient(90deg, transparent 50%, currentColor 50%); }
.menu-toggle { display: none; }
.menu-toggle i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle i + i { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Decoration --------------------------------------------------------------------- */
.sprinkled { position: relative; isolation: isolate; }
.sprinkled::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sprinkles) 0 0 / 200px 200px; opacity: .55; pointer-events: none; }
.sticker-badge { position: absolute; display: grid; place-content: center; justify-items: center; gap: 2px; width: clamp(104px, 11vw, 150px); aspect-ratio: 1; border: 2px solid var(--edge); border-radius: 50%; background: var(--berry); color: #fff; box-shadow: 4px 4px 0 var(--sh); text-align: center; }
.sticker-badge::before { content: ""; position: absolute; inset: 7px; border: 2px dashed #ffffff8c; border-radius: 50%; }
.sticker-badge b { font: 800 clamp(30px, 3.3vw, 46px)/.9 var(--serif); letter-spacing: -.05em; color: var(--gold); }
.sticker-badge small { font: 800 clamp(10px, 1vw, 13px)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* Home: hero ------------------------------------------------------------------------- */
.hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 80px); }
.hero h1 { margin: 22px 0 24px; font-size: clamp(46px, 7vw, 116px); line-height: .94; }
.hero-lede { max-width: 28em; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-disc { position: relative; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--edge); border-radius: 50%; background: linear-gradient(180deg, #F6E3D2 0%, #F2DCCB 62%, #E8CDB9 100%); box-shadow: 10px 10px 0 var(--sh); }
.hero-disc img { display: block; width: 132%; max-width: none; height: 100%; margin-left: -16%; object-fit: cover; object-position: 50% 46%; transform: scale(.84); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); transition: transform .6s var(--ease); }
.hero-art:hover .hero-disc img { transform: scale(.9) rotate(-2deg); }
.hero-art .sticker-badge { left: -6%; bottom: 2%; transform: rotate(-8deg); }
.hero-tag { position: absolute; right: -2%; top: 8%; padding: 10px 18px; border: 2px solid var(--edge); border-radius: 14px; background: var(--pp); color: var(--dk); font: 800 15px/1.1 var(--serif); box-shadow: 4px 4px 0 var(--sh); transform: rotate(6deg); }

/* Home: favourites ------------------------------------------------------------------------ */
.section { padding-block: clamp(48px, 6vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin-top: 18px; font-size: clamp(36px, 5vw, 76px); }
.section-head p { max-width: 26em; color: var(--ink-2); font-weight: 500; }
.fav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 4px 6px 8px 0; list-style: none; }
.fav-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 320px; padding: clamp(20px, 2.2vw, 30px); border: 2px solid var(--edge); border-radius: 26px; box-shadow: 7px 7px 0 var(--shadow-c); background: var(--b-bg, var(--pp)); color: var(--b-ink, var(--dk)); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fav-grid > li:nth-child(odd) .fav-card { transform: rotate(-.8deg); }
.fav-grid > li:nth-child(even) .fav-card { transform: rotate(.8deg); }
.fav-card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 11px 11px 0 var(--shadow-c); }
.fav-cat { align-self: flex-start; padding: 6px 12px; border: 2px solid currentColor; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.fav-name { margin-top: auto; padding-top: 30px; font-size: clamp(30px, 3vw, 46px); line-height: .98; }
.fav-note { margin-top: 10px; max-width: 24em; font-size: 15px; font-weight: 500; opacity: .86; }
.fav-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.fav-price { padding: 8px 16px; border-radius: 999px; background: var(--b-ink, var(--dk)); color: var(--b-bg, var(--pp)); font: 800 18px/1 var(--sans); font-variant-numeric: tabular-nums; }
.fav-foot .arrow { width: 44px; height: 44px; padding: 11px; border: 2px solid currentColor; border-radius: 50%; }
.fav-grid [data-fav="gelato"] .fav-card { --b-bg: var(--blush); --b-ink: var(--dk); }
.fav-grid [data-fav="kitchen"] .fav-card { --b-bg: var(--butter); --b-ink: var(--dk); }
.fav-grid [data-fav="cold"] .fav-card { --b-bg: var(--pp); --b-ink: var(--dk); }
.fav-grid [data-fav="cocktails"] .fav-card { --b-bg: var(--berry); --b-ink: #FFFFFF; }
.fav-grid [data-fav="coffee"] .fav-card { --b-bg: var(--cocoa-block); --b-ink: #FFF1DE; }
.fav-grid [data-fav="hot"] .fav-card { --b-bg: var(--tangerine); --b-ink: var(--dk); }
.fav-cta { --b-bg: var(--pp); --b-ink: var(--dk); }
.fav-cta .fav-foot b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Dark theme: warmer, slightly deeper candy tones that sit on the plum background instead of glowing on it. */

/* Home: story teaser ------------------------------------------------------------------------ */
.story-teaser { border-block: 2px solid var(--ink); }
.story-teaser-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 6vw, 96px); }
.polaroids { position: relative; min-height: clamp(340px, 40vw, 520px); }
.polaroid { position: absolute; width: min(58%, 300px); margin: 0; padding: 10px 10px 34px; border: 2px solid var(--edge); border-radius: 6px; background: var(--pp); box-shadow: 7px 7px 0 var(--sh); transition: transform .5s var(--ease); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid:nth-child(1) { left: 2%; top: 4%; transform: rotate(-6deg); }
.polaroid:nth-child(2) { right: 2%; bottom: 0; transform: rotate(5deg); z-index: 1; }
.polaroids:hover .polaroid:nth-child(1) { transform: rotate(-9deg) translate(-8px, -4px); }
.polaroids:hover .polaroid:nth-child(2) { transform: rotate(8deg) translate(8px, 4px); }
.story-teaser h2 { margin: 18px 0 18px; font-size: clamp(38px, 5.4vw, 84px); }
.story-teaser p { max-width: 30em; margin-bottom: 26px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; }

/* Home: facts ------------------------------------------------------------------------------------ */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; }
.facts > div { padding: clamp(22px, 3vw, 40px); border: 2px solid var(--edge); border-radius: 28px; box-shadow: 7px 7px 0 var(--shadow-c); }
.facts > div:nth-child(1) { background: var(--blush); color: var(--dk); }
.facts > div:nth-child(2) { background: var(--butter); color: var(--dk); }
.facts > div:nth-child(3) { background: var(--berry); color: #fff; }
.fact-label { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border: 2px solid currentColor; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.facts dt { font: 800 clamp(48px, 7vw, 112px)/.9 var(--serif); letter-spacing: -.05em; }
.facts dt.fact-hours .dash { display: inline-block; margin-inline: .14em; }
.facts dt.fact-hours { font-size: clamp(32px, 3.9vw, 56px); letter-spacing: -.045em; white-space: nowrap; padding-block: .1em; }
.facts dd { margin: 14px 0 0; max-width: 16em; font-size: 15px; font-weight: 600; }

/* Home: branch + Instagram ------------------------------------------------------------------------ */
.visit { border-block: 2px solid var(--ink); }
html:not([data-theme="dark"]) .visit.tone-tangerine { --b-bg: var(--blush); }
.visit .section-head p { color: var(--dk); font-weight: 600; }
/* The visit heading is long: keep it on one line and put the opening hours text underneath instead of squeezing it to the right. */
.visit .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
.visit .section-head p { max-width: 40em; }
.visit h2 em { background: var(--pp); color: var(--dk); padding: 0 .14em; border-radius: 10px; margin-inline: 0; }
.branch-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.branch-feature .photo { display: block; overflow: hidden; border: 2px solid var(--edge); border-radius: 26px; aspect-ratio: 4 / 3; box-shadow: 10px 10px 0 var(--sh); transform: rotate(-1.2deg); }
.branch-feature .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.branch-feature:hover .photo img { transform: scale(1.04); }
.branch-info .tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--dk); color: var(--on-dk); font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.branch-info h3 { margin: 18px 0 14px; font-size: clamp(32px, 3.6vw, 54px); }
.branch-info address { font-style: normal; font-size: 18px; font-weight: 600; }
.branch-info .hours { margin-top: 10px; font-weight: 600; }
.branch-info .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.visit .button-cocoa { background: var(--dk); color: var(--on-dk); border-color: var(--dk); box-shadow: 4px 4px 0 var(--pp); }
.visit .button-cocoa:hover { box-shadow: 6px 6px 0 var(--pp); }
.visit .text-link:hover { color: var(--pp); }
.ig-band { position: relative; border-bottom: 2px solid var(--ink); text-align: center; }
.ig-band.sprinkled::before { opacity: .22; }
.ig-inner { display: grid; justify-items: center; gap: 6px; padding-block: clamp(32px, 4vw, 56px); }
.ig-handle { display: inline-flex; align-items: center; gap: .3em; font: 800 clamp(26px, 4.4vw, 52px)/1 var(--serif); letter-spacing: -.035em; transition: transform .3s var(--ease); }
.ig-handle .arrow { width: .5em; height: .5em; }
.ig-handle:hover { transform: scale(1.04) rotate(-1deg); }
.ig-band p { width: 100%; font-weight: 600; }
.branch-social { margin-top: 18px; }
.button .ig-logo { width: 22px; height: 22px; }
.ig-logo { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ig-logo .dot { fill: currentColor; stroke: none; }

/* Story page ------------------------------------------------------------------------------------------- */
.about-hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.about-hero-inner { padding-block: clamp(44px, 7vw, 112px); }
.about-hero h1 { margin: 22px 0 22px; max-width: 9.2em; font-size: clamp(46px, 8vw, 132px); line-height: .92; }
.about-lede { max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.about-hero .sticker-badge { right: clamp(16px, 6vw, 110px); bottom: clamp(20px, 4vw, 64px); transform: rotate(10deg); }
.timeline { display: grid; gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.timeline-item { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: clamp(18px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.4vw, 48px); border: 2px solid var(--edge); border-radius: 30px; box-shadow: 8px 8px 0 var(--shadow-c); }
.timeline-year { font: 800 clamp(44px, 7vw, 112px)/.9 var(--serif); letter-spacing: -.05em; }
.timeline-item h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1; }
.timeline-item p { margin-top: 14px; max-width: 38em; font-weight: 500; }
.about-spread-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about-photo { margin: 0; overflow: hidden; border: 2px solid var(--edge); border-radius: 28px; aspect-ratio: 4 / 3; box-shadow: 10px 10px 0 var(--shadow-c); transform: rotate(-1.2deg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-spread-copy h2 { margin: 18px 0 16px; font-size: clamp(34px, 4.4vw, 68px); }
.about-spread-copy p { margin-bottom: 22px; font-weight: 500; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.values article { padding: clamp(24px, 3vw, 40px); border: 2px solid var(--edge); border-radius: 28px; box-shadow: 7px 7px 0 var(--shadow-c); }
.values article:nth-child(1) { background: var(--blush); color: var(--dk); }
.values article:nth-child(2) { background: var(--butter); color: var(--dk); }
.values article:nth-child(3) { background: var(--tangerine); color: var(--dk); }
.values-num { font: 800 14px/1 var(--sans); letter-spacing: .14em; }
.values h3 { margin: 40px 0 10px; font-size: clamp(34px, 3.6vw, 56px); }
.values p { font-weight: 500; }
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 6vw, 112px); align-items: center; }
.story-copy .eyebrow { margin-bottom: 22px; }
.story .quote { max-width: 18em; font: 800 clamp(30px, 3.6vw, 54px)/1.02 var(--serif); letter-spacing: -.035em; }
.story .quote em { background: linear-gradient(transparent 60%, var(--butter) 60% 94%, transparent 94%); }
.story-body { display: grid; gap: 16px; max-width: 34em; margin: 24px 0; font-weight: 500; color: var(--ink-2); }

/* Gallery slider (3D swap) ----------------------------------------------------------------------------------- */
.gallery { width: min(100%, 470px); justify-self: end; }
.gallery-stage { position: relative; overflow-x: clip; perspective: 1400px; outline-offset: 8px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; padding: 0 12px 14px 0; }
.gallery-stage.is-dragging { cursor: grabbing; }
.gallery-frame { position: relative; aspect-ratio: 4 / 5; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.gallery-slide { position: absolute; inset: 0; margin: 0; overflow: hidden; border: 2px solid var(--edge); border-radius: 26px; background: var(--blush); box-shadow: 10px 10px 0 var(--shadow-c);
  opacity: 0; visibility: hidden; transform: translate3d(14%, 0, -140px) rotateY(-26deg) scale(.92);
  transition: transform .9s var(--ease), opacity .6s ease, visibility 0s linear .9s; }
.gallery-slide.is-before { transform: translate3d(-14%, 0, -140px) rotateY(26deg) scale(.92); }
.gallery-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: transform .9s var(--ease), opacity .6s ease, visibility 0s; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.gallery-caption { display: flex; align-items: center; min-width: 0; font-size: 15px; font-weight: 600; }
.gallery-caption span { min-width: 0; }
.gallery-caption b { flex: none; white-space: nowrap; margin-right: 10px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 12px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gallery-controls { display: flex; gap: 8px; flex: none; }
.gallery-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--dk); box-shadow: 3px 3px 0 var(--shadow-c); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.gallery-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-c); }
.gallery-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-dots { display: flex; gap: 8px; margin-top: 18px; }
.gallery-dot { width: 28px; height: 8px; padding: 0; border: 2px solid var(--ink); border-radius: 6px; background: transparent; transition: background .3s, width .3s var(--ease); }
.gallery-dot.is-active { width: 48px; background: var(--accent); border-color: var(--ink); }

/* Footer (grid areas are relied on by the admin entry button) ----------------------------------------------------- */
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; padding-block: clamp(28px, 4vw, 44px) 24px; }
.footer-brand { min-width: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); width: fit-content; user-select: none; }
.footer-logo { flex: none; width: clamp(72px, 9vw, 104px); height: auto; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(4px 4px 0 var(--shadow-c)); transition: transform .6s var(--ease); }
.footer-brand:hover .footer-logo { transform: rotate(-10deg) scale(1.05); }
.footer-tagline { min-width: 0; display: grid; gap: 8px; font: 800 clamp(22px, 2.6vw, 34px)/.95 var(--serif); letter-spacing: -.04em; color: var(--accent); }
.footer-tagline small { font: 700 clamp(10px, 1vw, 12px)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 16px; font-weight: 600; text-align: right; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { grid-column: 1 / -1; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; text-align: center; font-size: 14px; color: var(--muted); }
.footer-legal i { font-style: normal; opacity: .55; }
.legal-copy i { margin-inline: 12px; }
.legal-credit { display: inline-flex; align-items: center; gap: 8px; }
.maker-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 700 14px/1 var(--sans); letter-spacing: -.01em; transition: transform .25s var(--ease); }
.maker-badge svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.maker-badge:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
.footer-instagram { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.footer-instagram svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-instagram .dot { fill: currentColor; stroke: none; }

/* Motion ------------------------------------------------------------------------------------------------------------- */
.scroll-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.scroll-reveal.is-revealed { opacity: 1; transform: none; }
.fav-grid.scroll-reveal.is-revealed > li .fav-card { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .scroll-reveal { opacity: 1; transform: none; }
    .gallery-frame { transform: none !important; }
}

/* Responsive ---------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner, .story-teaser-inner, .branch-feature, .about-spread-inner, .story { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; width: min(86%, 420px); }
  .gallery { justify-self: start; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .polaroids { min-height: 360px; order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .main-nav { position: fixed; inset: 74px 0 0 0; z-index: 40; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter); margin: 0; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { width: 100%; justify-content: space-between; padding: 18px 0; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: none; box-shadow: none; transform: none; font: 800 34px/1.1 var(--serif); letter-spacing: -.035em; color: var(--ink); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; box-shadow: none; transform: none; color: var(--accent); border-color: var(--line); }
  .main-nav a[aria-current="page"] { text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .main-nav a[target="_blank"]::after { font-size: .7em; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fav-grid { display: flex; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fav-grid > li { flex: 0 0 88%; scroll-snap-align: center; }
  .facts > div { padding: 20px; }
  .facts dd { max-width: none; }
  .section-head p, .story-teaser p { max-width: 100%; }
  .branch-flavors-heading { flex-wrap: wrap; }
  .fav-card { min-height: 290px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 28px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; text-align: center; justify-items: stretch; }
  .footer-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; border: 2px solid var(--edge); border-radius: 999px; background: var(--pp); color: var(--dk); font-size: 15px; font-weight: 700; box-shadow: 3px 3px 0 var(--sh); white-space: nowrap; }
  .footer-links a:hover { color: var(--dk); }
  .footer-links .footer-instagram { flex-direction: row; gap: 8px; }
  .footer-legal { flex-direction: column; gap: 6px; }
  .legal-sep { display: none; }
  .hero-tag { right: 0; }
  .polaroid { width: 62%; }
}

/* One line on phones: JS (script.js) shrinks short texts until they fit; this is the fallback look. */
.fit-one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
@media (max-width: 380px) { .gallery-bar { flex-wrap: wrap; } .gallery-caption { flex: 1 1 100%; } }
@media (max-width: 340px) { .brand-name small { display: none; } .brand-name { font-size: 22px; } }

/* Tablet widths: five tabs plus the brand need a tighter nav to fit on one row. */
@media (min-width: 761px) and (max-width: 900px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 9px 9px; font-size: 14px; }
  .header-actions { margin-left: 4px; }
}

/* Phone polish ------------------------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .sprinkled::before { opacity: .3; }
  .ig-band.sprinkled::before { opacity: .2; }
  html[data-theme="dark"] .sprinkled::before { opacity: .2; }
  .about-hero-inner { padding-bottom: 140px; }
  .about-hero .sticker-badge { right: 20px; bottom: 22px; width: 98px; }
  .branch-feature .photo { box-shadow: 6px 6px 0 var(--sh); }
  .ig-address { display: grid; gap: 2px; }
  .ig-address i { display: none; }
  .ig-address span { white-space: nowrap; }
}

.nowrap { white-space: nowrap; }
