/* =====================================================================
   THEME · NOTEBOOK — lined paper, handwritten casual
   ===================================================================== */

[data-theme="notebook"] {
    --bg: #FDFCF4;
    --bg-alt: #FBF7E5;
    --bg-card: #FFFFFE;
    --fg: #1E2B4D;
    --fg-muted: #5A6A87;
    --accent: #3A5CCC;
    --accent-dark: #2A45A0;
    --accent-contrast: #FFFFFE;
    --accent-glow: rgba(58, 92, 204, 0.2);
    --border: rgba(30, 43, 77, 0.15);

    --font-head: "Caveat", "Kalam", "Patrick Hand", cursive;
    --font-body: "Kalam", "Patrick Hand", system-ui, cursive;
    --font-weight-head: 700;
    --font-weight-body: 400;

    --radius: 4px;
    --radius-sm: 4px;
    --stroke: 1.5px;
    --density: 1.1;
    --section-pad: clamp(3rem, 8vw, 6rem);
    --photo-filter: none;
    --shadow-card: 2px 2px 0 rgba(30,43,77,0.15);
    --btn-shape: 8px;
}

/* Ruled-paper background */
[data-theme="notebook"] body {
    background-image:
        linear-gradient(180deg, transparent 0, transparent calc(1.8em - 1px), rgba(58,92,204,0.18) calc(1.8em - 1px), rgba(58,92,204,0.18) 1.8em, transparent 1.8em);
    background-size: 100% 1.8em;
    background-position: 0 80px;
}

/* Red margin line left */
[data-theme="notebook"] body::after {
    content: "";
    position: fixed;
    top: 0; bottom: 0;
    left: 60px;
    width: 1px;
    background: rgba(200,50,50,0.35);
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 720px) { [data-theme="notebook"] body::after { display: none; } }

/* Hero — hand-written feel */
[data-theme="notebook"] .hero h1 {
    font-family: "Caveat", cursive;
    font-weight: 700;
    transform: rotate(-1deg);
}

/* Handdrawn-style headings underline */
[data-theme="notebook"] h2 {
    display: inline-block;
    position: relative;
}
[data-theme="notebook"] h2::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0; right: 0; height: 4px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'><path d='M2 4 Q 20 0, 40 4 T 80 4 T 120 4 T 160 4 T 198 4' stroke='%233A5CCC' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") repeat-x;
    background-size: 200px 8px;
}

/* Cards — sticky-note offset */
[data-theme="notebook"] .card,
[data-theme="notebook"] .paket,
[data-theme="notebook"] .work-card {
    background: #FFFFFE;
    border: 1.5px solid rgba(30,43,77,0.3);
    border-radius: 4px;
    box-shadow: 3px 3px 0 rgba(30,43,77,0.15);
    transform: rotate(-0.4deg);
}
[data-theme="notebook"] .card:nth-child(2),
[data-theme="notebook"] .paket:nth-child(2),
[data-theme="notebook"] .work-card:nth-child(2) { transform: rotate(0.5deg); background: #FBF7E5; }
[data-theme="notebook"] .card:nth-child(3),
[data-theme="notebook"] .paket:nth-child(3),
[data-theme="notebook"] .work-card:nth-child(3) { transform: rotate(-0.2deg); }

/* Buttons — sketch-style */
[data-theme="notebook"] .btn-primary {
    background: var(--accent);
    color: #FFF;
    border: 2px solid var(--accent-dark);
    border-radius: 8px;
    font-family: "Kalam", cursive;
    font-weight: 700;
    box-shadow: 2px 2px 0 rgba(30,43,77,0.25);
}
[data-theme="notebook"] .btn-primary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(30,43,77,0.35);
}
[data-theme="notebook"] .btn-secondary {
    background: #FDFCF4;
    color: var(--fg);
    border: 2px solid var(--fg);
    border-radius: 8px;
    font-family: "Kalam", cursive;
    box-shadow: 2px 2px 0 rgba(30,43,77,0.2);
}

[data-theme="notebook"] .section-eyebrow,
[data-theme="notebook"] .hero-eyebrow {
    font-family: "Caveat", cursive;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}

/* Tile */
.tile-preview[data-theme="notebook"] {
    background:
        linear-gradient(180deg, transparent calc(1.2em - 1px), rgba(58,92,204,0.3) calc(1.2em - 1px), rgba(58,92,204,0.3) 1.2em, transparent 1.2em) 0 18px / 100% 1.2em,
        #FDFCF4;
    color: #1E2B4D;
}
.tile-preview[data-theme="notebook"] .tile-head {
    font-family: "Caveat", cursive;
    font-weight: 700;
}
.tile-preview[data-theme="notebook"] .tile-dot { background: #3A5CCC; }
