/* =============================================================
   RIDDHI STATIONERY MART — "THE OPEN DESK" THEME
   -------------------------------------------------------------
   1.  Theme variables (change colours / fonts / spacing here)
   2.  Base & accessibility
   3.  Layout helpers & section titles
   4.  Buttons (pencil, ink-stamp, link)
   5.  Doodle colours
   6.  Preloader
   7.  Header (washi tape) & navigation
   8.  Hero
   9.  Ticker tape
   10. Sticky notes (categories, tabs, mini notes)
   11. Product index cards
   12. Feature tiles, why-us, counters
   13. Notebook page (checklist & forms)
   14. Visit / map / polaroids / washi tape
   15. Products page (search, empty state)
   16. Product detail page
   17. About page (story, timeline)
   18. Contact page
   19. 404 page
   20. Footer & back-to-top
   21. Scroll reveal
   22. Responsive tweaks
   23. Reduced motion
   ============================================================= */

/* ---------- 1. Theme variables ---------- */
:root {
    /* Paper & ink */
    --paper: #F7F3EA;
    --paper-dark: #EFE6D3;
    --card: #FFFFFF;
    --ink: #1B2A6B;
    --ink-soft: #33428A;
    --text: #232B4A;
    --muted: #555D7C;

    /* Accents */
    --marigold: #F4B223;
    --marigold-soft: #FCDC86;
    --pink: #F08A8A;
    --pink-soft: #F9C3C3;
    --pink-dark: #A8333D;
    --green: #8FBF9F;
    --green-soft: #CDE6D5;
    --blue-soft: #C4D7F2;
    --wood: #F3D3A1;
    --metal: #A9B1BF;
    --margin-red: rgba(222, 92, 100, .45);
    --rule: rgba(27, 42, 107, .075);
    --rule-blue: rgba(86, 128, 196, .22);

    /* Sticky-note colours */
    --note-yellow: #FCE38A;
    --note-pink: #F8BDBD;
    --note-green: #C3E2CC;
    --note-blue: #C4D7F2;

    /* Typography */
    --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --gutter: 16px;
    --container: 1180px;
    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: 1rem;
    --s-4: 1.5rem;
    --s-5: 2rem;
    --s-6: 3rem;
    --line: 32px; /* notebook rule spacing */

    /* Effects */
    --radius: 6px;
    --shadow: 0 1px 2px rgba(27, 42, 107, .10), 0 8px 22px -6px rgba(27, 42, 107, .22);
    --shadow-lift: 0 2px 4px rgba(27, 42, 107, .10), 0 22px 40px -12px rgba(27, 42, 107, .35);
    --header-h: 70px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. Base & accessibility ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--paper);
    /* Notebook ruled lines */
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(244, 178, 35, .55);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 4px;
    font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Layout helpers & section titles ---------- */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    position: relative;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--tint { background: rgba(255, 255, 255, .45); }

/* Faint red notebook margin line on the left of main sections */
.section--margin::before {
    content: "";
    position: absolute; top: 0; bottom: 0;
    left: clamp(6px, 3.2vw, 56px);
    width: 2px;
    background: var(--margin-red);
    pointer-events: none;
}

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--left { text-align: left; }
.section-sub { color: var(--muted); max-width: 60ch; margin: .25rem auto 0; font-size: 1.05rem; }
.section-head--left .section-sub { margin-left: 0; }

/* Highlighter title: marigold strip draws from left to right */
.hl-title {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: clamp(2.3rem, 5.2vw, 3.4rem);
    display: inline-block;
    position: relative;
    z-index: 0;
    margin: 0 0 .2em;
    padding-inline: .1em;
}
.hl-title--xl { font-size: clamp(2.8rem, 7vw, 4.4rem); }
.hl-title::before {
    content: "";
    position: absolute; z-index: -1;
    left: -.2em; right: -.25em; bottom: .1em; height: .5em;
    background: var(--marigold);
    opacity: .7;
    border-radius: 4px 12px 6px 14px;
    transform: rotate(-1.4deg) scaleX(0);
    transform-origin: left center;
    transition: transform .9s var(--ease) .15s;
}
.hl-title.in-view::before,
html:not(.js) .hl-title::before { transform: rotate(-1.4deg) scaleX(1); }

.center-link { text-align: center; margin-top: 3rem; }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    position: relative;
    font-family: var(--font-body);
    font-weight: 800; font-size: 1rem; line-height: 1.2;
    padding: .8rem 1.4rem;
    border: 0; border-radius: 4px;
    cursor: pointer; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s;
    -webkit-tap-highlight-color: transparent;
}
.btn-sm { font-size: .88rem; padding: .55rem .9rem; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; }

/* Pencil-shaped button: eraser on the left, sharpened tip on the right */
.btn-pencil {
    color: var(--ink);
    background-color: var(--marigold);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, .35) 0 30%, transparent 30% 70%, rgba(0, 0, 0, .07) 70%);
    border-radius: 0;
    margin: 0 26px 0 22px;
    padding-inline: 1.2rem 1rem;
    box-shadow: 0 6px 12px -6px rgba(27, 42, 107, .5);
}
.btn-pencil::before { /* eraser + metal ferrule */
    content: "";
    position: absolute; top: 0; bottom: 0; left: -22px; width: 22px;
    background: linear-gradient(to right, var(--pink) 0 55%, var(--metal) 55% 62%, #CDD3DC 62% 70%, var(--metal) 70% 78%, #CDD3DC 78% 100%);
    border-radius: 8px 0 0 8px;
}
.btn-pencil::after { /* sharpened wooden tip with graphite point */
    content: "";
    position: absolute; top: 0; bottom: 0; right: -26px; width: 27px;
    background: linear-gradient(to right, var(--wood) 0 68%, var(--ink) 68%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.btn-pencil:hover { color: var(--ink); transform: translateX(6px) rotate(-1deg); }
.btn-pencil:active { transform: translateX(10px); }

/* Ink-stamp button: double border, slightly tilted */
.btn-stamp {
    color: var(--ink);
    background: rgba(255, 255, 255, .6);
    text-transform: uppercase; letter-spacing: .07em; font-weight: 900;
    box-shadow: inset 0 0 0 2.5px var(--ink), inset 0 0 0 5px rgba(255, 255, 255, .9), inset 0 0 0 6.5px var(--ink);
    transform: rotate(-1.5deg);
    overflow: hidden;
}
.btn-stamp:hover { color: var(--ink); transform: rotate(0) scale(1.03); }
.btn-stamp--solid {
    color: #fff;
    background: var(--ink);
    box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.5px rgba(255, 255, 255, .85), 0 6px 14px -6px rgba(27, 42, 107, .6);
}
.btn-stamp--solid:hover { color: #fff; background: var(--ink-soft); }
.btn-stamp.is-disabled { opacity: .45; pointer-events: none; }

/* Press effect + ink splash (class added by JS on click) */
.btn-stamp.is-stamping { animation: stamp-press .38s var(--ease); }
@keyframes stamp-press {
    0% { transform: rotate(-1.5deg) scale(1); }
    35% { transform: rotate(0) scale(.86); }
    100% { transform: rotate(-1.5deg) scale(1); }
}
.ink-burst {
    position: absolute; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--marigold) 0 30%, transparent 32%),
                radial-gradient(circle at 20% 20%, var(--pink) 0 18%, transparent 20%),
                radial-gradient(circle at 80% 30%, var(--marigold) 0 14%, transparent 16%),
                radial-gradient(circle at 30% 85%, var(--pink) 0 14%, transparent 16%);
    animation: ink-burst .6s ease-out forwards;
}
@keyframes ink-burst {
    from { transform: scale(.2); opacity: 1; }
    to { transform: scale(9); opacity: 0; }
}

/* Simple hand-underlined text button */
.btn-link {
    padding: .5rem .2rem;
    color: var(--ink);
    background: none;
    border-radius: 0;
    background-image: linear-gradient(var(--ink), var(--ink));
    background-size: 100% 2px; background-position: 0 85%; background-repeat: no-repeat;
}
.btn-link:hover { background-image: linear-gradient(var(--marigold), var(--marigold)); background-size: 100% 8px; }

/* ---------- 5. Doodle colours (used by the inline SVGs) ---------- */
.doodle { overflow: visible; }
.f-y { fill: var(--marigold); }
.f-y2 { fill: var(--marigold-soft); }
.f-p { fill: var(--pink); }
.f-g { fill: var(--green); }
.f-b { fill: var(--blue-soft); }
.f-i { fill: var(--ink); }
.f-w { fill: #fff; }
.f-m { fill: #D5DAE2; }
.f-wood { fill: var(--wood); }
.f-footer { fill: var(--paper-dark); }
.s-i { stroke: var(--ink); }
.s-y { stroke: var(--marigold); }
.s-m { stroke: #8D96A6; }

/* ---------- 6. Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: var(--paper);
    transition: opacity .5s ease, visibility .5s;
}
html:not(.js) #preloader, html.no-preloader #preloader { display: none; }
#preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { position: relative; width: 260px; text-align: center; }
.preloader-scribble { width: 260px; height: 80px; }
.preloader-scribble path {
    fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 420; stroke-dashoffset: 420;
    animation: scribble 1.1s ease-in-out forwards;
}
@keyframes scribble { to { stroke-dashoffset: 0; } }
.preloader-pencil {
    position: absolute; top: 18px; left: 0; width: 110px;
    transform-origin: left center;
    animation: pencil-move 1.1s ease-in-out forwards;
}
.preloader-pencil svg { transform: rotate(-35deg); transform-origin: 0 50%; }
@keyframes pencil-move {
    0% { transform: translate(0, 28px); }
    25% { transform: translate(60px, 0); }
    50% { transform: translate(125px, 20px); }
    75% { transform: translate(185px, -4px); }
    100% { transform: translate(245px, 12px); }
}
.preloader-text { font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink); margin-top: .5rem; }

/* ---------- 7. Header (washi tape strip) & navigation ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    transition: transform .3s var(--ease);
}
.tape-bg {
    position: absolute; inset: 0 0 -8px 0;
    background-color: rgba(252, 220, 134, .95);
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 22px),
                      linear-gradient(to bottom, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 40%);
    /* zig-zag torn bottom edge */
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
    filter: drop-shadow(0 3px 4px rgba(27, 42, 107, .15));
    transition: background-color .3s;
}
.site-header.is-scrolled .tape-bg { background-color: rgba(252, 220, 134, 1); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo-img { max-height: 52px; width: auto; }
.logo-mark svg { width: 38px; height: 38px; transform: rotate(-8deg); transition: transform .4s var(--ease); }
.logo:hover .logo-mark svg { transform: rotate(-20deg) translateY(-2px); }
.logo-text { display: flex; flex-direction: column; line-height: .9; }
.logo-main { font-family: var(--font-hand); font-weight: 700; font-size: 2.1rem; letter-spacing: .02em; }
.logo-sub { font-weight: 900; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.site-nav a { text-decoration: none; }
.site-nav ul a {
    position: relative; display: block;
    padding: .45rem .9rem;
    font-weight: 800; color: var(--ink);
}
/* Hand-drawn circle around the active / hovered link */
.site-nav ul a::after {
    content: "";
    position: absolute; inset: 2px -2px;
    border: 2.5px solid var(--pink-dark);
    border-radius: 55% 45% 50% 50% / 60% 50% 50% 40%;
    transform: rotate(-3deg) scale(.6);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s;
}
.site-nav ul a:hover::after { opacity: .5; transform: rotate(-3deg) scale(1); }
.site-nav ul a.is-active::after { opacity: 1; transform: rotate(-3deg) scale(1); }
.nav-page-title { display: none; }
.nav-extra { display: none; }

.nav-toggle {
    display: none;
    width: 48px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
    position: relative; z-index: 1102;
}
.nav-toggle-lines { display: grid; gap: 6px; width: 30px; margin: auto; }
.nav-toggle-lines span {
    display: block; height: 4px; border-radius: 3px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-lines span:nth-child(2) { width: 80%; background: var(--pink-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav-overlay {
    position: fixed; inset: 0; z-index: 999; /* below the header, which holds the menu panel */
    background: rgba(27, 42, 107, .35);
    backdrop-filter: blur(2px);
}

/* ---------- 8. Hero ---------- */
.hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink);
    background: #fff;
    padding: .3rem .8rem .3rem .5rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.hero-eyebrow svg { width: 18px; height: 22px; }

.hero-title {
    position: relative;
    font-family: var(--font-hand); font-weight: 700;
    font-size: clamp(3rem, 9.5vw, 6.2rem);
    line-height: .95;
    color: var(--ink);
    margin: 1.2rem 0 1.4rem;
}
.hero-line { display: block; white-space: nowrap; }
.hero-line + .hero-line { font-size: .62em; margin-top: .15em; color: var(--ink-soft); letter-spacing: .02em; }
.ltr { display: inline-block; }
.ltr-space { width: .28em; }

/* Letter-by-letter "writing" (starts once the preloader is gone) */
.js .ltr { clip-path: inset(-30% 100% -30% -10%); }
.js .is-ready .ltr {
    animation: write-letter .38s ease-out forwards;
    animation-delay: calc(var(--i) * 85ms + .15s);
}
@keyframes write-letter { to { clip-path: inset(-30% -20% -30% -10%); } }
.js .hero-title.is-written .ltr { animation: none; clip-path: none; } /* final state, set by JS */

.pen-nib {
    position: absolute; left: 0; top: 0;
    width: clamp(22px, 3vw, 34px);
    transform-origin: 50% 100%;
    opacity: 0;
    pointer-events: none;
    transition: transform .09s linear, opacity .3s;
    z-index: 2;
}
.pen-nib.is-writing { opacity: 1; }
.pen-nib.is-lifted { opacity: 0; }

.ink-splash {
    position: absolute; left: 0; top: 0;
    width: 26px; opacity: 0; pointer-events: none;
}
.ink-splash.is-on { animation: ink-drop .7s var(--ease) forwards; }
@keyframes ink-drop {
    0% { opacity: 0; transform: translateY(-30px) scale(.4); }
    60% { opacity: 1; transform: translateY(0) scale(1.15, .85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.ink-splash::after { /* tiny splatter dots */
    content: "";
    position: absolute; left: -14px; right: -14px; bottom: -8px; height: 14px;
    background: radial-gradient(circle at 10% 50%, var(--ink) 0 3px, transparent 4px),
                radial-gradient(circle at 90% 40%, var(--ink) 0 2.5px, transparent 3.5px),
                radial-gradient(circle at 75% 90%, var(--ink) 0 2px, transparent 3px);
    opacity: 0;
}
.ink-splash.is-on::after { animation: fade-in .3s .45s forwards; }
@keyframes fade-in { to { opacity: 1; } }

.hero-tagline {
    position: relative; display: inline-block;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700;
    color: var(--text); max-width: 34ch;
    margin-bottom: 2rem;
}
.hero-tagline span { position: relative; z-index: 1; }
.tagline-scribble { position: absolute; left: 0; bottom: -10px; width: 70%; height: 16px; }
.tagline-scribble path { stroke-dasharray: 260; stroke-dashoffset: 260; }
.is-ready .tagline-scribble path, html:not(.js) .tagline-scribble path { animation: scribble 1.2s 2.2s ease-out forwards; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.4rem; align-items: center; }

/* Hero visual: taped polaroid + sticky notes */
.hero-visual { position: relative; padding: 1rem 1rem 3rem; }
.polaroid {
    position: relative;
    background: #fff;
    padding: 12px 12px 48px;
    box-shadow: var(--shadow-lift);
    transform: rotate(2.5deg);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-dark); }
.polaroid-caption {
    position: absolute; left: 0; right: 0; bottom: 8px;
    text-align: center;
    font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink);
}
.polaroid--hero { animation: gentle-sway 7s ease-in-out infinite; }
@keyframes gentle-sway { 50% { transform: rotate(1deg) translateY(-6px); } }

.sticky-mini {
    display: flex; flex-direction: column;
    padding: .9rem 1rem 1.1rem;
    background: var(--note-bg, var(--note-yellow));
    box-shadow: 0 10px 18px -10px rgba(27, 42, 107, .5);
    color: var(--ink);
    max-width: 230px;
    line-height: 1.35;
}
.sticky-mini strong { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1; margin-bottom: .2rem; }
.sticky-mini span { font-size: .92rem; }
.hero-visual .sticky-mini { position: absolute; left: -18px; bottom: -1.6rem; transform: rotate(-5deg); }
.hero-visual .sticky-mini--pink { left: auto; right: -6px; top: -6px; bottom: auto; transform: rotate(6deg); }

/* Floating parallax doodles */
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.float-doodle {
    position: absolute; display: block;
    opacity: .9;
    transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc(var(--my, 0) * var(--depth, 0) * 1px), 0);
    transition: transform .25s ease-out;
}
.float-doodle svg { animation: drift 9s ease-in-out infinite; }
.fd-pencil { width: 150px; top: 6%; right: 4%; }
.fd-pencil svg { transform: rotate(-22deg); animation-duration: 11s; }
.fd-clip { width: 22px; top: 62%; left: 2%; }
.fd-eraser { width: 70px; bottom: 6%; left: 46%; }
.fd-ruler { width: 170px; bottom: 4%; right: 2%; opacity: .7; }
.fd-star { width: 34px; top: 12%; left: 44%; }
.fd-star2 { width: 22px; top: 70%; left: 30%; }
@keyframes drift {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    33% { translate: 6px -12px; rotate: 4deg; }
    66% { translate: -6px 6px; rotate: -3deg; }
}

/* ---------- 9. Ticker tape ---------- */
.ticker {
    position: relative; z-index: 2;
    width: 106%; margin-left: -3%;
    background: #fff;
    background-image: linear-gradient(to bottom, transparent 0 48%, var(--rule-blue) 48% 52%, transparent 52%);
    border-block: 2px dashed rgba(27, 42, 107, .25);
    transform: rotate(-1.2deg);
    overflow: hidden;
    box-shadow: 0 10px 20px -12px rgba(27, 42, 107, .4);
    padding: .55rem 0;
}
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li {
    display: flex; align-items: center; gap: 1.4rem;
    padding-right: 1.4rem;
    font-family: var(--font-hand); font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--ink); white-space: nowrap;
}
.ticker-star { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Sticky notes ---------- */
.note-yellow { --note-bg: var(--note-yellow); }
.note-pink { --note-bg: var(--note-pink); }
.note-green { --note-bg: var(--note-green); }
.note-blue { --note-bg: var(--note-blue); }

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 2rem 1.5rem;
}
.sticky-note {
    position: relative;
    display: flex; flex-direction: column; gap: .35rem;
    min-height: 170px;
    padding: 1.4rem 1.2rem 1.6rem;
    color: var(--ink); text-decoration: none;
    background-color: var(--note-bg);
    /* folded bottom-right corner */
    background-image: linear-gradient(315deg, var(--paper) 0 18px, rgba(0, 0, 0, .14) 18px 19px, rgba(255, 255, 255, .45) 19px 30px, transparent 30px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 14px 20px -12px rgba(27, 42, 107, .45);
    transform: rotate(var(--rot, 0deg));
    transform-origin: 50% 0;
    transition: transform .4s var(--ease), box-shadow .4s, background-image .4s;
}
.sticky-note::before { /* translucent tape on top */
    content: "";
    position: absolute; top: -10px; left: 50%;
    width: 74px; height: 22px;
    background: rgba(255, 255, 255, .55);
    border-left: 2px dotted rgba(27, 42, 107, .12);
    border-right: 2px dotted rgba(27, 42, 107, .12);
    transform: translateX(-50%) rotate(-3deg);
}
.sticky-note:hover, .sticky-note:focus-visible {
    color: var(--ink);
    transform: rotate(0deg) perspective(700px) rotateX(9deg) translateY(-4px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 24px 26px -14px rgba(27, 42, 107, .5);
    background-image: linear-gradient(315deg, var(--paper) 0 28px, rgba(0, 0, 0, .16) 28px 29px, rgba(255, 255, 255, .5) 29px 46px, transparent 46px);
}
.note-icon svg { width: 52px; height: 52px; transition: transform .4s var(--ease); }
.sticky-note:hover .note-icon svg { transform: rotate(-8deg) scale(1.08); }
.note-name { font-family: var(--font-hand); font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.note-count { margin-top: auto; font-weight: 800; font-size: .88rem; }
.note-blurb { font-size: .92rem; line-height: 1.45; }
.sticky-note--wide { min-height: 190px; }

/* Category tabs on products page */
.tab-notes { display: flex; flex-wrap: wrap; gap: .8rem .7rem; margin-bottom: 2rem; }
.tab-note {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem .55rem;
    background: var(--note-bg);
    color: var(--ink); text-decoration: none;
    font-weight: 800; font-size: .93rem;
    box-shadow: 0 6px 10px -7px rgba(27, 42, 107, .6);
    transform: rotate(-1deg) translateY(0);
    transition: transform .25s var(--ease), box-shadow .25s;
    border-bottom: 3px solid transparent;
}
.tab-note:nth-child(even) { transform: rotate(1deg); }
.tab-note small { font-weight: 700; opacity: .7; }
.tab-note:hover { color: var(--ink); transform: rotate(0) translateY(-3px); }
.tab-note.is-active {
    transform: rotate(0) translateY(-4px) scale(1.04);
    border-bottom-color: var(--ink);
    box-shadow: 0 12px 16px -8px rgba(27, 42, 107, .55);
}
.tab-note--sm { font-size: .82rem; padding: .3rem .7rem; margin-bottom: .6rem; }

/* ---------- 11. Product index cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 2.6rem 1.8rem;
    padding-top: .8rem;
}
.index-card {
    position: relative;
    background-color: var(--card);
    /* subtle paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    padding: 10px 10px 14px;
    border-radius: 3px;
    box-shadow: var(--shadow);
    transform: rotate(var(--rot, 0deg));
    transition: transform .4s var(--ease), box-shadow .4s, opacity .7s ease, translate .7s var(--ease);
    display: flex; flex-direction: column;
}
.index-card:hover, .index-card:focus-within {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: var(--shadow-lift);
    z-index: 2;
}
.index-card--plain { padding: clamp(1.4rem, 3vw, 2.2rem); }

.paperclip {
    position: absolute; top: -16px; left: 20px; z-index: 3;
    width: 18px; height: 52px;
    transform: rotate(-6deg);
    transform-origin: 50% 25%;
}
.paperclip svg { width: 100%; height: 100%; }
.index-card:hover .paperclip { animation: wiggle .6s ease-in-out; }
@keyframes wiggle {
    0%, 100% { transform: rotate(-6deg); }
    25% { transform: rotate(8deg); }
    50% { transform: rotate(-12deg); }
    75% { transform: rotate(4deg); }
}

.price-tag {
    position: absolute; top: -12px; right: -10px; z-index: 3;
    padding: .25rem .75rem .35rem;
    background: var(--note-yellow);
    background-image: linear-gradient(315deg, rgba(0, 0, 0, .1) 0 6px, transparent 6px);
    color: var(--ink);
    font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.1;
    box-shadow: 0 6px 10px -6px rgba(27, 42, 107, .55);
    transform: rotate(5deg);
}

.card-img {
    display: block; overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--paper-dark);
    border-radius: 2px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.index-card:hover .card-img img { transform: scale(1.07); }

.card-body {
    display: flex; flex-direction: column; flex: 1;
    padding: .8rem .35rem 0;
    /* index-card lines: red header line + blue rules */
    background-image: linear-gradient(to bottom, transparent 0 2.25rem, rgba(222, 92, 100, .35) 2.25rem calc(2.25rem + 2px), transparent calc(2.25rem + 2px)),
                      repeating-linear-gradient(to bottom, transparent 0 25px, var(--rule-blue) 25px 26px);
    background-position: 0 0, 0 2.4rem;
}
.card-cat { font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-dark); }
.card-title { font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; line-height: 1.05; margin: .55rem 0 .3rem; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.card-line { color: var(--muted); font-size: .93rem; line-height: 1.6rem; margin-bottom: .6rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .4rem; }

/* Related products: horizontal row on small screens */
@media (max-width: 599px) {
    .card-grid--row {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 78%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 1.4rem 4px 1.6rem;
    }
    .card-grid--row > * { scroll-snap-align: start; }
}

/* ---------- 12. Feature tiles, why-us, counters ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2.2rem 1.6rem;
}
.feature-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.feature-tile {
    position: relative; display: block;
    background: #fff;
    padding: 2rem 1.5rem 1.4rem;
    border-radius: 3px;
    box-shadow: var(--shadow);
    color: var(--text); text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s, opacity .7s ease, translate .7s var(--ease);
}
a.feature-tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); color: var(--text); }
.feature-icon {
    display: inline-grid; place-items: center;
    width: 76px; height: 76px;
    background: var(--note-bg);
    border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
    margin-bottom: .8rem;
}
.feature-icon svg { width: 46px; height: 46px; }
.feature-title { font-family: var(--font-hand); font-size: 1.9rem; margin-bottom: .3rem; }
.feature-tile p { margin: 0; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.why-points li { display: flex; gap: 1rem; align-items: flex-start; }
.why-points svg { flex: 0 0 34px; width: 34px; height: 34px; background: var(--note-green); border-radius: 50%; padding: 5px; }
.why-points strong { display: block; color: var(--ink); font-size: 1.1rem; }
.why-points span { color: var(--muted); }

.counter-board {
    display: grid; gap: 1.2rem;
    background: #fff;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
    transform: rotate(1deg);
    position: relative;
    /* a ruler edge on top */
    border-top: 18px solid var(--marigold-soft);
    border-image: repeating-linear-gradient(to right, var(--ink) 0 2px, var(--marigold-soft) 2px 14px) 18 0 0 0;
}
.counter { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px dashed rgba(27, 42, 107, .15); padding-bottom: .9rem; }
.counter:last-child { border-bottom: 0; padding-bottom: 0; }
.counter-num {
    font-family: var(--font-hand); font-weight: 700;
    font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; color: var(--ink);
    min-width: 3.4ch;
    background: radial-gradient(ellipse at 45% 60%, rgba(244, 178, 35, .45) 0 45%, transparent 47%);
}
.counter-label { font-weight: 800; color: var(--muted); }

/* ---------- 13. Notebook page (checklist & forms) ---------- */
.notebook {
    position: relative;
    background-color: #fff;
    background-image:
        linear-gradient(to right, transparent 0 58px, var(--margin-red) 58px 60px, transparent 60px),
        repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule-blue) 35px 36px);
    background-position: 0 0, 0 22px;
    padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.8rem 78px;
    box-shadow: var(--shadow-lift);
    border-radius: 2px 6px 6px 2px;
    line-height: 36px;
}
.notebook::before { /* spiral holes */
    content: "";
    position: absolute; top: 18px; bottom: 18px; left: 16px; width: 22px;
    background: radial-gradient(circle at 11px 11px, var(--paper-dark) 0 7px, rgba(27, 42, 107, .25) 7.5px 8.5px, transparent 9px) 0 0 / 22px 36px repeat-y;
}
.notebook-heading { font-family: var(--font-hand); font-weight: 700; font-size: 2rem; color: var(--ink); margin: 0 0 .2rem; line-height: 36px; }

.checklist-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist-tip { transform: rotate(-3deg); margin-top: 1rem; }
.js-checklist { transform: rotate(-.6deg); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); column-gap: 1rem; }
.check-item { display: flex; align-items: center; gap: .7rem; cursor: pointer; height: 36px; position: relative; }
.check-item input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check-box {
    flex: 0 0 26px; width: 26px; height: 26px;
    border: 2.5px solid var(--ink);
    border-radius: 3px 7px 4px 8px;
    background: #fff;
    display: grid; place-items: center;
    transition: background-color .2s;
}
.check-box svg { width: 24px; height: 24px; overflow: visible; }
.check-box .check-path { stroke: var(--pink-dark); stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset .35s var(--ease); }
.check-item input:checked + .check-box { background: var(--note-yellow); }
.check-item input:checked + .check-box .check-path { stroke-dashoffset: 0; }
.check-item input:focus-visible + .check-box { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(244, 178, 35, .55); }
.check-text { font-family: var(--font-hand); font-size: 1.65rem; font-weight: 700; color: var(--ink); line-height: 1; position: relative; }
.check-text::after {
    content: ""; position: absolute; left: -2px; right: -4px; top: 55%; height: .45em;
    background: var(--marigold); opacity: .55; z-index: -1;
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.check-item input:checked ~ .check-text { z-index: 0; }
.check-item input:checked ~ .check-text::after { transform: scaleX(1); }

.line-field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; margin-top: 0; }
.line-field span { font-weight: 800; color: var(--ink); font-size: .95rem; }
.line-field input {
    flex: 1 1 180px; min-width: 0;
    border: 0; background: transparent;
    height: 35px; padding: 0 .2rem;
    font-family: var(--font-hand); font-size: 1.45rem; color: var(--ink-soft);
}
.line-field input::placeholder { color: rgba(85, 93, 124, .55); }
.line-field input:focus { outline: none; background: rgba(244, 178, 35, .14); }
.checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.2rem; line-height: 1.4; }
.check-count { font-weight: 800; color: var(--muted); font-size: .92rem; }

/* ---------- 14. Visit / map / polaroids / washi tape ---------- */
.washi {
    position: absolute; z-index: 3;
    width: 96px; height: 26px;
    background-color: rgba(240, 138, 138, .65);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.washi--tl { top: -10px; left: -22px; transform: rotate(-35deg); }
.washi--br { bottom: -6px; right: -24px; transform: rotate(-35deg); background-color: rgba(143, 191, 159, .7); }
.washi--top { top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); background-color: rgba(244, 178, 35, .55); width: 84px; }

.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: stretch; }
.visit-name { font-family: var(--font-hand); font-size: 2.2rem; }
.visit-address, .visit-line { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; font-weight: 600; }
.visit-address svg, .visit-line svg { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px; }
.visit-line a { word-break: break-word; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.4rem; }

.timings-note {
    background: var(--note-bg);
    padding: .9rem 1.1rem;
    transform: rotate(-1.5deg);
    box-shadow: 0 8px 14px -8px rgba(27, 42, 107, .45);
    margin: 1rem 0;
}
.timings-title { display: flex; align-items: center; gap: .4rem; font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 0 0 .2rem; }
.timings-title svg { width: 24px; height: 24px; }
.timings-note ul, .timings-list, .footer-timings { list-style: none; margin: 0; padding: 0; }
.timings-note li, .timings-list li, .footer-timings li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.map-frame {
    position: relative;
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow-lift);
    transform: rotate(.8deg);
    min-height: 340px;
    display: flex;
}
.map-frame iframe { width: 100%; min-height: 320px; border: 0; flex: 1; }
.map-frame--wide { min-height: 380px; transform: rotate(-.4deg); }

.map-placeholder {
    position: relative; flex: 1;
    display: grid; place-items: center; text-align: center;
    min-height: 320px;
    background-color: #F4EFE2;
    color: var(--ink); text-decoration: none;
    overflow: hidden;
}
.map-streets { /* doodled street map */
    position: absolute; inset: 0;
    background:
        linear-gradient(28deg, transparent 0 47%, #fff 47% 53%, transparent 53%),
        linear-gradient(-62deg, transparent 0 46%, #fff 46% 50%, transparent 50%),
        linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, .9) 30% 33%, transparent 33% 70%, rgba(255, 255, 255, .9) 70% 72%, transparent 72%),
        linear-gradient(0deg, transparent 0 62%, rgba(255, 255, 255, .9) 62% 65%, transparent 65%),
        radial-gradient(circle at 78% 22%, var(--green-soft) 0 12%, transparent 12.5%),
        radial-gradient(circle at 18% 78%, var(--green-soft) 0 9%, transparent 9.5%),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(27, 42, 107, .05) 31px 32px);
}
.map-pin { position: relative; width: 46px; animation: pin-bounce 2.4s ease-in-out infinite; }
.map-pin svg { width: 46px; height: 60px; }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.map-label {
    position: relative;
    background: #fff; padding: .5rem 1rem;
    font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; line-height: 1.15;
    box-shadow: var(--shadow); transform: rotate(-2deg);
}
.map-label small { font-family: var(--font-body); font-size: .8rem; font-weight: 800; color: var(--pink-dark); }
.map-placeholder:hover .map-label { transform: rotate(0) scale(1.04); }
.map-placeholder--small { min-height: 190px; border-radius: 3px; }

/* ---------- 15. Products page ---------- */
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; position: relative; }
.page-hero .section-sub { margin-left: 0; }
.page-hero-doodle { position: absolute; right: 0; top: 40%; width: clamp(90px, 16vw, 180px); transform: rotate(-12deg); opacity: .9; }
.page-hero-doodle .doodle { width: 100%; height: auto; max-height: 90px; }
.breadcrumb { font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.search-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.search-box {
    flex: 1 1 320px; max-width: 520px;
    display: flex; align-items: center; gap: .6rem;
    background: #fff;
    padding: .2rem 1rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2.5px var(--ink), 0 8px 16px -10px rgba(27, 42, 107, .5);
}
.search-box:focus-within { box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 5px rgba(244, 178, 35, .5); }
.search-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem 0; font-size: 1rem; font-weight: 600; }
.search-box input:focus { outline: none; }
.search-count { margin: 0; font-weight: 800; color: var(--muted); }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-doodle { display: inline-block; width: 90px; animation: wiggle 1.4s ease-in-out infinite; }
.empty-title { font-family: var(--font-hand); font-size: 2rem; color: var(--ink); margin-bottom: .3rem; }
.index-card.is-hidden { display: none; }
.not-listed { margin: 3.5rem auto 0; max-width: 420px; transform: rotate(-1.5deg); }

/* ---------- 16. Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-photo { position: relative; background: #fff; padding: 12px; box-shadow: var(--shadow-lift); transform: rotate(-1.2deg); }
.product-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-dark); }
.product-info { transform: rotate(var(--rot)); }
.index-card--plain > .tab-note, .index-card--plain > .btn { align-self: flex-start; }
.product-info:hover { transform: rotate(0); }
.product-name { font-family: var(--font-hand); font-size: clamp(2.3rem, 5vw, 3.2rem); margin: .2rem 0 .3rem; }
.product-price { font-family: var(--font-hand); font-weight: 700; font-size: 2.4rem; color: var(--ink); margin-bottom: .6rem; line-height: 1; }
.product-price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 700; }
.product-short { font-weight: 800; color: var(--ink-soft); }
.product-desc { color: var(--text); }
.product-sub { font-family: var(--font-hand); font-size: 1.8rem; margin: 1.2rem 0 .4rem; }
.key-points { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .45rem; }
.key-points li { display: flex; gap: .6rem; align-items: flex-start; }
.key-points svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.key-points .check-path { stroke: var(--pink-dark); }

.buy-box { border-top: 2px dashed rgba(27, 42, 107, .2); padding-top: 1.4rem; display: grid; gap: 1.1rem; justify-items: start; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.qty-label { font-weight: 900; color: var(--ink); }
.qty-control { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 2.5px var(--ink); padding: 3px; }
.qty-btn {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--note-yellow); color: var(--ink);
    font-size: 1.4rem; font-weight: 900; line-height: 1; cursor: pointer;
    transition: transform .2s;
}
.qty-btn:hover { transform: scale(1.1); }
.qty-btn:active { transform: scale(.9); }
.qty-control input {
    width: 56px; border: 0; background: transparent; text-align: center;
    font-family: var(--font-hand); font-size: 1.7rem; font-weight: 700; color: var(--ink);
    -moz-appearance: textfield; appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control input:focus { outline: none; }
.qty-control:focus-within { box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 5px rgba(244, 178, 35, .5); }
.qty-total { color: var(--muted); font-weight: 700; }
.qty-total strong { color: var(--ink); }
.wa-note { margin: -.3rem 0 0; font-weight: 700; font-size: .95rem; }
.buy-hint { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- 17. About page ---------- */
.story-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.notebook--story { font-size: 1.05rem; transform: rotate(-.4deg); }
.notebook--story p { margin-bottom: 36px; }
.notebook--story p:last-child { margin-bottom: 0; }
.drop::first-letter {
    float: left;
    font-family: var(--font-hand); font-weight: 700;
    font-size: 4.4rem; line-height: .8;
    color: var(--ink);
    padding: .3rem .5rem 0 0;
}
.signature { display: block; font-family: var(--font-hand); font-size: 1.8rem; color: var(--ink); text-align: right; }
.story-photo { position: relative; padding-bottom: 2rem; }
.story-photo .sticky-mini { position: absolute; left: -12px; bottom: -6px; transform: rotate(-5deg); }

.timeline { list-style: none; margin: 0; padding: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; }
.timeline::before { /* the strip of tape the cards hang on */
    content: "";
    position: absolute; left: 0; right: 0; top: 14px; height: 14px;
    background-color: rgba(244, 178, 35, .5);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 8px, transparent 8px 16px);
    transform: rotate(-.6deg);
}
.timeline-item { position: relative; }
.timeline-dot {
    position: absolute; top: -32px; left: 50%;
    width: 22px; height: 22px; margin-left: -11px;
    border-radius: 50%; background: var(--pink); border: 3px solid var(--ink);
}
.timeline-card {
    background: #fff; padding: 1.4rem 1.2rem 1.2rem;
    box-shadow: var(--shadow);
    transform: rotate(var(--rot));
    transition: transform .35s var(--ease);
    height: 100%;
}
.timeline-item:hover .timeline-card { transform: rotate(0) translateY(-4px); }
.timeline-year { display: inline-block; font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; color: var(--ink); background: var(--note-yellow); padding: 0 .6rem; transform: rotate(-3deg); margin-bottom: .3rem; }
.timeline-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.timeline-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 18. Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.4rem; }
.info-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow);
    transform: rotate(var(--rot));
    transition: transform .35s var(--ease), opacity .7s ease, translate .7s var(--ease);
}
.info-card:hover { transform: rotate(0); }
.info-icon { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--note-bg); border-radius: 50% 45% 55% 50%; }
.info-icon svg { width: 28px; height: 30px; }
.info-title { font-family: var(--font-hand); font-size: 1.6rem; margin: 0 0 .1rem; }
.info-card a { font-weight: 700; word-break: break-word; }

.contact-form { line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 900; color: var(--ink); font-size: .95rem; line-height: 36px; }
.form-field small { font-weight: 700; color: var(--muted); }
.req { color: var(--pink-dark); }
.form-field input, .form-field textarea {
    width: 100%;
    border: 0; border-bottom: 2.5px solid var(--ink);
    background: rgba(247, 243, 234, .5);
    padding: .4rem .5rem;
    font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink-soft);
    border-radius: 3px 3px 0 0;
    transition: background-color .2s, border-color .2s;
}
.form-field textarea { line-height: 36px; resize: vertical; min-height: 180px; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule-blue) 35px 36px); background-attachment: local; }
.form-field input:focus, .form-field textarea:focus { outline: none; background-color: rgba(244, 178, 35, .16); border-bottom-color: var(--marigold); }
.has-error input, .has-error textarea { border-bottom-color: var(--pink-dark); background-color: rgba(240, 138, 138, .12); }
.field-error { color: var(--pink-dark); font-weight: 800; font-size: .88rem; margin: .3rem 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .6rem; }
.form-fallback { margin: 0; font-size: .92rem; font-weight: 700; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
    display: flex; gap: .8rem; align-items: flex-start;
    background: var(--note-bg);
    padding: 1rem 1.2rem; margin-bottom: 1.6rem;
    box-shadow: 0 10px 16px -10px rgba(27, 42, 107, .5);
    transform: rotate(-1deg);
}
.form-alert svg { flex: 0 0 30px; width: 30px; height: 30px; }
.form-alert strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* ---------- 19. 404 page ---------- */
.torn-page {
    position: relative; max-width: 640px; margin: 0 auto; text-align: center;
    background: #fff;
    padding: 3rem clamp(1.2rem, 4vw, 3rem) 2.6rem;
    box-shadow: var(--shadow-lift);
    transform: rotate(-1deg);
    /* torn bottom edge */
    -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 22px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat;
            mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 22px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat;
}
.torn-page .paperclip { left: 50%; top: -6px; }
.nf-code { font-family: var(--font-hand); font-weight: 700; font-size: clamp(5rem, 16vw, 8rem); line-height: 1; color: var(--pink); margin: 0; }
.nf-title { font-family: var(--font-hand); font-size: clamp(2rem, 5vw, 2.8rem); }
.nf-text { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.nf-eraser { display: inline-block; width: 80px; animation: erase 2.4s ease-in-out infinite; }
@keyframes erase { 0%, 100% { transform: translateX(-20px) rotate(-6deg); } 50% { transform: translateX(20px) rotate(6deg); } }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1.6rem; margin-top: 1.4rem; }

/* ---------- 20. Footer & back-to-top ---------- */
.site-footer {
    position: relative;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: 3.4rem 0 1.4rem;
    background-color: var(--paper-dark);
    background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(27, 42, 107, .06) 31px 32px);
}
.torn-edge { position: absolute; left: 0; right: 0; top: -26px; height: 28px; }
.torn-edge svg { width: 100%; height: 100%; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr 1fr; gap: 2rem; }
.footer-logo { font-family: var(--font-hand); font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; margin-bottom: .4rem; }
.footer-logo span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.footer-tagline { color: var(--muted); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.footer-links a { font-weight: 800; }
.footer-title { font-family: var(--font-hand); font-size: 1.8rem; margin-bottom: .4rem; }
.footer-title--small { font-size: 1.5rem; margin-top: 1rem; }
.footer-address { font-weight: 600; margin-bottom: .6rem; }
.footer-map-link { font-weight: 800; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: center; }
.footer-contact svg { flex: 0 0 22px; width: 22px; height: 22px; }
.footer-contact a { font-weight: 700; word-break: break-word; }
.footer-timings { font-weight: 600; font-size: .95rem; }
.footer-map iframe { width: 100%; height: 200px; border: 0; box-shadow: var(--shadow); transform: rotate(1deg); }
.footer-map .map-placeholder { box-shadow: var(--shadow); transform: rotate(1deg); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem;
    border-top: 2px dashed rgba(27, 42, 107, .18);
    margin-top: 2.4rem; padding-top: 1.2rem;
    font-size: .88rem; font-weight: 700; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-made { font-family: var(--font-hand); font-size: 1.25rem; color: var(--ink); }

/* Pencil-eraser back-to-top button */
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 46px; height: 92px;
    display: flex; flex-direction: column; align-items: center;
    filter: drop-shadow(0 6px 8px rgba(27, 42, 107, .35));
    transform: translateY(140%);
    transition: transform .4s var(--ease);
}
.back-to-top.is-visible { transform: translateY(40%); }
.back-to-top:hover, .back-to-top:focus-visible { transform: translateY(15%); }
.btt-eraser { width: 34px; height: 30px; background: var(--pink); border-radius: 12px 12px 3px 3px; }
.btt-band { width: 36px; height: 16px; background: repeating-linear-gradient(to bottom, #C7CDD6 0 3px, var(--metal) 3px 6px); }
.btt-body { width: 34px; flex: 1; background: linear-gradient(to right, #F7C24E 0 33%, var(--marigold) 33% 66%, #DE9E14 66%); }

/* ---------- 21. Scroll reveal ---------- */
.js .reveal { opacity: 0; translate: 0 26px; }
.js .reveal.in-view {
    opacity: 1; translate: 0 0;
    transition: opacity .7s ease calc(var(--d, 0) * 110ms), translate .7s var(--ease) calc(var(--d, 0) * 110ms), transform .4s var(--ease), box-shadow .4s, background-image .4s;
}
.js .hl-title.reveal { translate: 0 10px; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
    .timeline::before { display: none; }
    .timeline-item:nth-child(n+3) .timeline-dot { display: block; }
}

@media (max-width: 899px) {
    :root { --header-h: 64px; }
    .logo-main { font-size: 1.8rem; }
    .nav-toggle { display: block; }

    /* Mobile menu slides in like a notebook page */
    .site-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101;
        width: min(86vw, 360px);
        padding: 5.5rem 1.6rem 2rem 4.2rem;
        background-color: #fff;
        background-image:
            linear-gradient(to right, transparent 0 52px, var(--margin-red) 52px 54px, transparent 54px),
            repeating-linear-gradient(to bottom, transparent 0 47px, var(--rule-blue) 47px 48px);
        box-shadow: -18px 0 40px rgba(27, 42, 107, .25);
        transform: translateX(105%);
        transition: transform .45s var(--ease), visibility .45s;
        visibility: hidden;
        overflow-y: auto;
    }
    .site-nav::before { /* spiral binding holes */
        content: "";
        position: absolute; top: 24px; bottom: 24px; left: 14px; width: 22px;
        background: radial-gradient(circle at 11px 12px, var(--paper-dark) 0 7px, rgba(27, 42, 107, .3) 7.5px 8.5px, transparent 9px) 0 0 / 22px 48px repeat-y;
    }
    .site-nav.is-open { transform: translateX(0); visibility: visible; }
    .nav-page-title { display: block; font-family: var(--font-hand); font-size: 2.2rem; font-weight: 700; color: var(--pink-dark); margin: 0 0 .4rem; line-height: 48px; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; line-height: 48px; padding: 0 .4rem; display: inline-block; }
    .site-nav ul a::after { inset: 4px -8px; }
    .nav-extra { display: grid; gap: 1rem; justify-items: start; margin-top: 1.6rem; }
    .nav-phone { display: flex; gap: .5rem; align-items: center; font-weight: 800; }
    .nav-phone svg { width: 22px; height: 22px; }
    body.menu-open { overflow: hidden; }

    .hero-grid, .why-grid, .checklist-wrap, .visit-grid, .product-detail, .story-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .fd-ruler, .fd-eraser { display: none; }
    .page-hero-doodle { top: 10px; opacity: .5; }
}

@media (max-width: 599px) {
    :root { --gutter: 16px; }
    body { font-size: .98rem; }
    .section--margin::before { left: 6px; }
    .hero-title { margin-top: 1rem; }
    .hero-line { white-space: normal; }
    .hero-actions .btn-stamp { margin-left: 22px; }
    .hero-visual .sticky-mini { position: relative; left: auto; bottom: auto; margin: -1.4rem 0 0 auto; }
    .hero-visual .sticky-mini--pink { display: none; }
    .fd-pencil { width: 90px; top: 2%; right: -10px; opacity: .6; }
    .notebook { padding-left: 60px; background-image: linear-gradient(to right, transparent 0 44px, var(--margin-red) 44px 46px, transparent 46px), repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule-blue) 35px 36px); }
    .notebook::before { left: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .card-actions .btn-stamp { flex: 0 0 auto; }
    .back-to-top { right: 12px; }
    .page-hero-doodle { display: none; }
    .ticker { transform: rotate(-1.6deg); }
    /* Category tabs scroll sideways instead of stacking in many rows */
    .tab-notes { flex-wrap: nowrap; overflow-x: auto; padding: .6rem 4px 1rem; margin-inline: -4px; scroll-snap-type: x proximity; }
    .tab-note { flex: 0 0 auto; scroll-snap-align: start; }
}

@media (hover: none) {
    .index-card:hover { transform: rotate(var(--rot, 0deg)); box-shadow: var(--shadow); }
    .index-card:hover .card-img img { transform: none; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
    .ticker-track, .float-doodle svg, .polaroid--hero, .map-pin, .empty-doodle, .nf-eraser { animation: none !important; }
    .js .reveal { opacity: 1; translate: none; }
    .js .ltr { clip-path: none; }
    .pen-nib { display: none; }
    .ink-splash { opacity: 1; }
    .tagline-scribble path { stroke-dashoffset: 0; }
}
