/* Sandra's Book Reviews — Seasons & holidays theme for Ghost
   One playful layout; colors and decorations change with the season setting. */

:root {
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.16);
    --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-script: 'Caveat', 'Comic Sans MS', cursive;
    --font-body: 'Nunito', system-ui, sans-serif;
}

/* Seasonal palettes. The season is set on <html data-season="…"> by the theme setting (or automatically by date). */
:root, [data-season="autumn"] {
    --ground: #FFF6E9;
    --dot: #F1DFC4;
    --pale: #FFE9A6;
    --primary: #F2711C;
    --primary-fg: #2E1A0E;
    --secondary: #FFB627;
    --secondary-fg: #2E1A0E;
    --accent: #C2273D;
    --accent-fg: #FFFFFF;
    --extra: #8DB33A;
    --extra-fg: #3B2314;
    --deep: #8A4B2A;
    --deep-fg: #FFF6E9;
    --ink: #3B2314;
    --body: #5A3E2B;
    --muted: #7A5A44;
    --kick: #B4470A;
}
[data-season="halloween"] {
    --ground: #FFF3E6;
    --dot: #F4DCC3;
    --pale: #FFE2C2;
    --primary: #FF7A1A;
    --primary-fg: #22182B;
    --secondary: #7B3FBF;
    --secondary-fg: #FFFFFF;
    --accent: #9BD14B;
    --accent-fg: #22182B;
    --extra: #22182B;
    --extra-fg: #FFE2C2;
    --deep: #2B2233;
    --deep-fg: #FFE2C2;
    --ink: #2B2233;
    --body: #4A3D55;
    --muted: #6A5B75;
    --kick: #7B3FBF;
}
[data-season="thanksgiving"] {
    --ground: #FFF8EE;
    --dot: #F1E0C8;
    --pale: #FBE6C8;
    --primary: #D9692B;
    --primary-fg: #2A160A;
    --secondary: #E9B44C;
    --secondary-fg: #2A160A;
    --accent: #8C3B1A;
    --accent-fg: #FFFFFF;
    --extra: #9AA35A;
    --extra-fg: #2A160A;
    --deep: #5B2E17;
    --deep-fg: #FFF8EE;
    --ink: #3A2414;
    --body: #5A3A26;
    --muted: #7A5640;
    --kick: #9A3F14;
}
[data-season="holidays"] {
    --ground: #FFF9F2;
    --dot: #F3E1CF;
    --pale: #FDE7C8;
    --primary: #D62839;
    --primary-fg: #FFFFFF;
    --secondary: #1A7A48;
    --secondary-fg: #FFFFFF;
    --accent: #F2B705;
    --accent-fg: #3A1F1F;
    --extra: #FFB3B8;
    --extra-fg: #3A1F1F;
    --deep: #8B1E2D;
    --deep-fg: #FFF9F2;
    --ink: #3A1F1F;
    --body: #5A3A3A;
    --muted: #7A5656;
    --kick: #B11F2F;
}
[data-season="winter"] {
    --ground: #F3F8FF;
    --dot: #DCE7F5;
    --pale: #DCEEFB;
    --primary: #4FA3E0;
    --primary-fg: #14213D;
    --secondary: #A7D8F0;
    --secondary-fg: #14213D;
    --accent: #6152D9;
    --accent-fg: #FFFFFF;
    --extra: #C9D6E8;
    --extra-fg: #14213D;
    --deep: #1B2A4A;
    --deep-fg: #F3F8FF;
    --ink: #14213D;
    --body: #34405E;
    --muted: #556080;
    --kick: #2A63A0;
}
[data-season="valentine"] {
    --ground: #FFF5F7;
    --dot: #F8DCE4;
    --pale: #FFDDE6;
    --primary: #D42A62;
    --primary-fg: #FFFFFF;
    --secondary: #FF9DB8;
    --secondary-fg: #3D1525;
    --accent: #B8326B;
    --accent-fg: #FFFFFF;
    --extra: #FFC7D6;
    --extra-fg: #3D1525;
    --deep: #7A1F45;
    --deep-fg: #FFF5F7;
    --ink: #3D1525;
    --body: #5C3343;
    --muted: #7D5262;
    --kick: #B8255A;
}
[data-season="stpatricks"] {
    --ground: #F4FBF1;
    --dot: #DCEFD6;
    --pale: #DDF3D2;
    --primary: #2DB45D;
    --primary-fg: #0E2A17;
    --secondary: #F6C531;
    --secondary-fg: #2B2208;
    --accent: #0F7A3B;
    --accent-fg: #FFFFFF;
    --extra: #9BDB6E;
    --extra-fg: #13301D;
    --deep: #0D5A31;
    --deep-fg: #F4FBF1;
    --ink: #13301D;
    --body: #2F4A37;
    --muted: #55705C;
    --kick: #0F7A3B;
}
[data-season="spring"] {
    --ground: #FBFFF5;
    --dot: #E6F0DA;
    --pale: #FFE3F0;
    --primary: #FF7EB6;
    --primary-fg: #2F2040;
    --secondary: #B79CED;
    --secondary-fg: #2F2040;
    --accent: #4CAF5E;
    --accent-fg: #14301A;
    --extra: #FFE066;
    --extra-fg: #2F2040;
    --deep: #4D3A73;
    --deep-fg: #FBFFF5;
    --ink: #2F2040;
    --body: #4D4060;
    --muted: #6B5F7D;
    --kick: #B5307A;
}
[data-season="summer"] {
    --ground: #FFFBEA;
    --dot: #F3E7B5;
    --pale: #FFF1B8;
    --primary: #FFC93C;
    --primary-fg: #173638;
    --secondary: #2EC4B6;
    --secondary-fg: #173638;
    --accent: #FF6B4A;
    --accent-fg: #173638;
    --extra: #9BE15D;
    --extra-fg: #173638;
    --deep: #0E5E6F;
    --deep-fg: #FFFBEA;
    --ink: #173638;
    --body: #2F4F52;
    --muted: #4F6B6E;
    --kick: #0B6B74;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--ground);
    background-image: radial-gradient(var(--dot) 1.3px, transparent 1.3px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kick); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Type ---------- */

.h-xl, .h-lg, .h-sm { margin: 0; font-family: var(--font-head); font-weight: 400; }
.h-xl { font-size: clamp(44px, 6vw, 82px); line-height: 1.02; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; }
.h-sm { font-size: 30px; line-height: 1.1; }
.script { margin: 0; font-family: var(--font-script); font-weight: 700; line-height: 1.05; }
.script-sm { font-size: 24px; }
.script-md { font-size: 28px; }
.script-lg { font-size: 31px; }
.script-xl { font-size: 38px; line-height: 1; }
.accent { color: var(--kick); }
.tilt-left { transform: rotate(-2deg); transform-origin: left; }

/* ---------- Pill buttons ---------- */

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--font-body); font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pill-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.pill-pumpkin, .pill-pumpkin:hover { background: var(--primary); color: var(--primary-fg); box-shadow: 3px 3px 0 var(--ink); }
.pill-gold, .pill-gold:hover { background: var(--secondary); color: var(--secondary-fg); box-shadow: 4px 4px 0 var(--ink); }
.pill-deep, .pill-deep:hover { background: var(--deep); color: var(--deep-fg); box-shadow: 4px 4px 0 var(--ink); }
.pill-cranberry { background: var(--accent); color: var(--accent-fg); box-shadow: 4px 4px 0 var(--ink); }
.pill-white { background: var(--white); }
.pill-lg.pill-white { box-shadow: 4px 4px 0 var(--ink); }
.pill:hover { transform: translate(-1px, -2px); color: var(--ink); }
.pill-cranberry:hover { color: var(--accent-fg); }

/* ---------- Header ---------- */

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-badge { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); color: var(--primary-fg); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-script { font-family: var(--font-script); font-weight: 700; font-size: 30px; color: var(--kick); }
.wordmark-main { font-family: var(--font-head); font-size: 26px; }
.site-logo { max-height: 64px; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 700; font-size: 16px; }
.nav a { display: inline-block; padding: 8px 18px; border: 2px solid transparent; border-radius: 999px; color: var(--ink); text-decoration: none; }
.nav a:hover { border-color: var(--ink); color: var(--ink); }
.nav-current a { background: var(--pale); border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-top: 48px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-greeting { color: var(--accent); transform: rotate(-2deg); transform-origin: left; }
.squiggle { position: relative; display: inline-block; }
.squiggle::after {
    content: ""; position: absolute; left: -6px; right: -6px; bottom: -12px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 20 2, 40 18, 60 9 S 100 2, 118 10' fill='none' stroke='%23F2711C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-intro { margin: 0; max-width: 30em; font-size: 20px; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-psst { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.hero-latest { position: relative; flex: 0 1 400px; min-width: 0; width: 100%; max-width: 400px; margin: 0 auto; color: var(--ink); text-decoration: none; transform: rotate(3deg); }
.hero-latest:hover { color: var(--ink); }
.hero-latest .polaroid-caption { padding-right: 120px; font-size: 30px; }
.hero-latest-stars { position: absolute; right: 18px; bottom: 20px; }
.hero-latest-stars .stars { color: var(--accent); font-size: 18px; }
.hero-sticker { position: absolute; right: -16px; bottom: -22px; width: 96px; height: 96px; font-size: 24px; transform: rotate(9deg); }

/* ---------- Stickers ---------- */

.sticker { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%; border: 2px solid var(--ink); font-family: var(--font-script); font-weight: 700; line-height: 0.95; color: var(--ink); }
.sticker-gold { background: var(--secondary); color: var(--secondary-fg); }
.sticker-cranberry { background: var(--accent); color: var(--accent-fg); }
.sticker-sm { position: absolute; top: 0; right: -10px; width: 52px; height: 52px; font-size: 24px; transform: rotate(10deg); z-index: 3; }

/* ---------- Stats ---------- */

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; padding-bottom: 88px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 12px 26px 12px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; }
.stat-num { width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 400; font-size: 22px; }
.stat-butter { background: var(--pale); transform: rotate(-2deg); }
.stat-peach { background: var(--pale); transform: rotate(1.5deg); }
.stat-sage { background: var(--pale); transform: rotate(-1deg); }

/* ---------- Polaroids ---------- */

.polaroid { position: relative; display: block; padding-top: 14px; }
.tape { position: absolute; top: 0; left: 50%; width: 96px; height: 30px; margin-left: -48px; background: var(--secondary); opacity: 0.78; transform: rotate(-4deg); z-index: 2; }
.polaroid-frame { display: flex; flex-direction: column; gap: 10px; background: var(--white); padding: 12px 12px 16px; border-radius: 4px; box-shadow: 0 10px 22px var(--shadow); }
.polaroid-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--primary); }
.polaroid-photo-square { aspect-ratio: 1 / 1; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.standin { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; background: var(--primary); color: var(--primary-fg); }
.standin-author { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.standin-title { font-family: var(--font-head); font-size: 24px; line-height: 1.05; }
.polaroid-caption { font-family: var(--font-script); font-weight: 700; font-size: 25px; line-height: 1.05; color: var(--ink); }

.hero-latest .standin, .review-cover .standin { padding: 28px 24px; }
.hero-latest .standin-title, .review-cover .standin-title { font-size: clamp(32px, 3.6vw, 42px); }
.hero-latest .standin-author, .review-cover .standin-author { font-size: 12px; }

.polaroid-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 48px 32px; }
.polaroid-link { position: relative; display: block; color: var(--ink); text-decoration: none; transition: transform 0.2s ease; }
.polaroid-link:hover { transform: translateY(-6px) rotate(0deg); color: var(--ink); }
.polaroid-item:nth-child(8n+1) { transform: rotate(-3deg); }
.polaroid-item:nth-child(8n+2) { transform: rotate(2deg); }
.polaroid-item:nth-child(8n+3) { transform: rotate(-1.5deg); }
.polaroid-item:nth-child(8n+4) { transform: rotate(3deg); }
.polaroid-item:nth-child(8n+5) { transform: rotate(-2.5deg); }
.polaroid-item:nth-child(8n+6) { transform: rotate(1.5deg); }
.polaroid-item:nth-child(8n+7) { transform: rotate(-1deg); }
.polaroid-item:nth-child(8n+8) { transform: rotate(2.5deg); }
.polaroid-item:nth-child(4n+2) .tape { background: var(--extra); transform: rotate(3deg); }
.polaroid-item:nth-child(4n+3) .tape { background: var(--primary); transform: rotate(-2deg); }
.polaroid-item:nth-child(4n+4) .tape { background: var(--pale); opacity: 0.95; transform: rotate(5deg); }
.polaroid-item:nth-child(5n+2) .standin { background: var(--secondary); color: var(--secondary-fg); }
.polaroid-item:nth-child(5n+3) .standin { background: var(--accent); color: var(--accent-fg); }
.polaroid-item:nth-child(5n+4) .standin { background: var(--extra); color: var(--extra-fg); }
.polaroid-item:nth-child(5n+5) .standin { background: var(--deep); color: var(--deep-fg); }

/* ---------- Sections ---------- */

.section { display: flex; flex-direction: column; gap: 40px; }
.section-pad { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 4px; }
.section-head-center { flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.section-head-center .script { transform: rotate(-2deg); }
.section-intro { margin: 8px 0 0; max-width: 36em; color: var(--body); }

.favorites { background: var(--pale); border-top: 3px dashed var(--primary); border-bottom: 3px dashed var(--primary); }
.favorites > .section { padding-top: 80px; padding-bottom: 96px; gap: 48px; }

/* ---------- Review cards ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; }
.chip:hover { background: var(--pale); color: var(--ink); }
.chip-on, .chip-on:hover { background: var(--secondary); color: var(--secondary-fg); box-shadow: 3px 3px 0 var(--ink); }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.review-card-link { height: 100%; display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--primary); color: var(--ink); text-decoration: none; transition: transform 0.15s ease; }
.review-card-link:hover { transform: translate(-2px, -3px) rotate(-0.5deg); color: var(--ink); }
.review-card:nth-child(5n+2) .review-card-link { box-shadow: 5px 5px 0 var(--secondary); }
.review-card:nth-child(5n+3) .review-card-link { box-shadow: 5px 5px 0 var(--accent); }
.review-card:nth-child(5n+4) .review-card-link { box-shadow: 5px 5px 0 var(--extra); }
.review-card:nth-child(5n+5) .review-card-link { box-shadow: 5px 5px 0 var(--deep); }
.review-card-thumb { flex: 0 0 auto; width: 72px; height: 104px; overflow: hidden; border-radius: 6px; background: var(--primary); }
.review-card:nth-child(5n+2) .review-card-thumb { background: var(--secondary); }
.review-card:nth-child(5n+3) .review-card-thumb { background: var(--accent); }
.review-card:nth-child(5n+4) .review-card-thumb { background: var(--extra); }
.review-card:nth-child(5n+5) .review-card-thumb { background: var(--deep); }
.review-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.review-card-title { font-family: var(--font-head); font-size: 20px; line-height: 1.15; }
.review-card-author { font-size: 15px; color: var(--muted); }
.review-card-author:empty, .journal-author:empty, .standin-author:empty { display: none; }
.stars { color: var(--kick); letter-spacing: 0.06em; font-size: 16px; }
.review-card-date { font-size: 13px; font-weight: 700; color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; padding-top: 8px; font-weight: 700; color: var(--muted); }

/* ---------- Sticky notes ---------- */

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: start; padding-bottom: 112px; }
.note { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 30px; border-radius: 6px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12); }
.note p { margin: 0; font-size: 17px; }
.note-sage { background: var(--pale); transform: rotate(-1.5deg); }
.note-peach { background: var(--pale); transform: rotate(1.2deg); }
.note-butter { background: var(--pale); transform: rotate(-0.8deg); }
.note-head { display: flex; align-items: center; gap: 16px; }
.note-photo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px dashed var(--muted); display: flex; align-items: center; justify-content: center; color: var(--extra); }
.note-ps { color: var(--ink); }
.note-link { font-weight: 800; color: var(--ink); padding: 6px 0; }

/* ---------- Newsletter ---------- */

.letters { position: relative; background: var(--primary); color: var(--primary-fg); margin-top: 40px; }
.letters-wave { position: absolute; left: 0; top: -39px; width: 100%; height: 40px; display: block; fill: var(--primary); }
.letters-inner { max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; padding-top: 72px; padding-bottom: 80px; }
.letters-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.letters-text .h-lg { font-size: clamp(32px, 4vw, 50px); }
.letters-thanks { flex: 1 1 420px; }
.subscribe-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.subscribe-label { font-weight: 800; font-size: 16px; }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 12px; }
.subscribe-input { flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: inherit; font-size: 17px; color: var(--ink); }
.subscribe-msg { display: none; margin: 0; font-weight: 800; }
.subscribe-form.success .subscribe-msg-success, .subscribe-form.error .subscribe-msg-error { display: block; }
.subscribe-form.loading .pill { opacity: 0.7; pointer-events: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep); color: var(--deep-fg); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 48px; padding-bottom: 48px; }
.site-footer-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-nav .nav { gap: 0 22px; font-size: 15px; }
.footer-nav .nav a { padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--deep-fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav .nav a:hover { color: var(--deep-fg); text-decoration-thickness: 3px; }

/* ---------- Single review (reading diary) ---------- */

.review { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-top: 32px; padding-bottom: 96px; }
.review-aside { flex: 0 1 340px; min-width: 0; width: 100%; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.review-cover { position: relative; }
.review-cover .polaroid-frame { transform: rotate(-2.5deg); }
.review-cover .tape { background: var(--extra); transform: rotate(3deg); }
.review-cover .standin { background: var(--accent); color: var(--accent-fg); }
.review-cover .polaroid-caption { text-align: center; font-size: 28px; }
.sticker-rating { position: absolute; right: -12px; bottom: 40px; width: 88px; height: 88px; font-family: var(--font-body); transform: rotate(10deg); }
.sticker-num { font-family: var(--font-head); font-size: 30px; line-height: 1; }
.sticker-label { font-size: 12px; font-weight: 800; }

.book-notes { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--primary); }
.book-notes dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 16px; }
.book-notes dt { font-weight: 800; }
.book-notes dd { margin: 0; }
.book-notes .stars { color: var(--accent); }
.plus { font-family: var(--font-script); font-weight: 700; font-size: 22px; color: var(--accent); }
.tag-stickers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-stickers a { display: inline-block; padding: 4px 14px; background: var(--pale); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--ink); text-decoration: none; }
.tag-stickers li:nth-child(even) a { background: var(--pale); }

.journal {
    position: relative; flex: 1 1 600px; min-width: 0; max-width: 760px; margin: 0 auto;
    padding: 52px 52px 56px 76px;
    background-color: var(--white);
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--dot) 35px, var(--dot) 36px);
    border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.journal::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 2px; background: var(--secondary); }
.journal-date { line-height: 1.3; }
.journal-title { margin-top: 8px; font-size: clamp(42px, 5.4vw, 72px); }
.journal-author { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--muted); }
.quick-take { margin-top: 28px; padding: 18px 22px; background: var(--pale); border-radius: 4px 14px 4px 14px; transform: rotate(-0.6deg); }
.quick-take .script { margin-bottom: 4px; }
.quick-take p:last-child { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.journal-body { margin-top: 28px; }
.journal-signoff { margin-top: 36px; font-size: 40px; color: var(--ink); }
.journal-comments { margin-top: 48px; }

.related { padding-bottom: 112px; }

/* ---------- Ghost editor content ---------- */

.gh-content { font-size: 19px; line-height: 1.85; color: var(--body); }
.gh-content > * + * { margin-top: 1.05em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 0; }
.gh-content h2, .gh-content h3 { margin: 1.4em 0 0; font-family: var(--font-head); font-weight: 400; color: var(--ink); line-height: 1.15; }
.gh-content h2 { font-size: 32px; }
.gh-content h3 { font-size: 26px; }
.gh-content a { color: var(--kick); font-weight: 700; }
.gh-content strong { color: var(--ink); }
.gh-content blockquote:not([class]) { position: relative; margin: 1.2em 0; padding: 8px 0 8px 64px; font-family: var(--font-head); font-size: 28px; line-height: 1.3; color: var(--ink); }
.gh-content blockquote:not([class])::before { content: "“"; position: absolute; left: 0; top: -12px; font-size: 96px; line-height: 1; color: var(--primary); }
.gh-content blockquote.kg-blockquote-alt { font-family: var(--font-script); font-weight: 700; font-size: 36px; line-height: 1.2; color: var(--accent); text-align: center; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption { margin-top: 8px; font-family: var(--font-script); font-weight: 700; font-size: 22px; color: var(--muted); text-align: center; }
.gh-content img { border-radius: 8px; }
.gh-content hr { border: 0; height: 18px; margin: 2em auto; width: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 20 2, 40 18, 60 9 S 100 2, 118 10' fill='none' stroke='%23F2711C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.gh-content .kg-button-card a.kg-btn { border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.gh-content .kg-callout-card { border-radius: 14px; }

.kg-width-wide { position: relative; width: min(1000px, calc(100vw - 48px)); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* ---------- Pages ---------- */

.page-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-top: 40px; padding-bottom: 112px; }
.page-photo { flex: 0 1 340px; min-width: 0; width: 100%; max-width: 360px; margin: 0 auto; transform: rotate(-2deg); }
.page-photo .polaroid-caption { text-align: center; font-size: 28px; }

/* ARC Teams template: the bulleted list becomes name stickers */
.arc-page { max-width: 1000px; }
.arc-content { text-align: center; }
.arc-content p { max-width: 40em; margin-left: auto; margin-right: auto; }
.arc-content ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.6em; }
.arc-content li { margin: 0; padding: 8px 20px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--primary); font-weight: 800; font-size: 17px; color: var(--ink); }
.arc-content li:nth-child(5n+2) { box-shadow: 3px 3px 0 var(--secondary); transform: rotate(-1.5deg); }
.arc-content li:nth-child(5n+3) { box-shadow: 3px 3px 0 var(--accent); transform: rotate(1deg); }
.arc-content li:nth-child(5n+4) { box-shadow: 3px 3px 0 var(--extra); }
.arc-content li:nth-child(5n+5) { box-shadow: 3px 3px 0 var(--deep); transform: rotate(-1deg); }

.error-page { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    body { font-size: 17px; }
    .hero { padding-top: 24px; gap: 56px; }
    .hero-latest .polaroid-caption { padding-right: 0; }
    .hero-latest-stars { position: static; display: block; margin-top: 10px; text-align: center; }
    .section-pad { padding-top: 64px; padding-bottom: 64px; }
    .polaroid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
    .polaroid-caption { font-size: 21px; }
    .standin-title { font-size: 19px; }
    .journal { padding: 36px 22px 40px 40px; }
    .journal::before { left: 26px; }
    .gh-content { font-size: 17px; }
    .gh-content blockquote:not([class]) { font-size: 22px; padding-left: 44px; }
    .gh-content blockquote:not([class])::before { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .pill, .polaroid-link, .review-card-link { transition: none; }
}

/* ---------- Spotlight review template (custom-spotlight.hbs) ---------- */

.h-xxl { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(52px, 7vw, 100px); line-height: 0.98; letter-spacing: -0.015em; }

.spotlight-hero {
    position: relative; overflow: hidden;
    background-color: var(--secondary); color: var(--secondary-fg);
    background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    border-top: 3px solid var(--ink);
}
.falling-leaf { position: absolute; display: block; fill: currentColor; stroke: var(--ink); stroke-width: 0.6; }
.leaf-1 { left: 4%; top: 40px; width: 64px; height: 64px; transform: rotate(-25deg); }
.leaf-1, .leaf-5 { color: var(--accent); }
.leaf-2 { left: 44%; top: 26px; width: 44px; height: 44px; transform: rotate(40deg); }
.leaf-2 { color: var(--extra); }
.leaf-3 { right: 5%; top: 60px; width: 72px; height: 72px; transform: rotate(80deg); }
.leaf-3 { color: var(--primary); }
.leaf-4 { right: 12%; bottom: 150px; width: 52px; height: 52px; transform: rotate(-60deg); }
.leaf-4 { color: var(--deep); }
.leaf-5 { left: 30%; bottom: 140px; width: 40px; height: 40px; transform: rotate(150deg); }

.spotlight-hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; padding-top: 72px; padding-bottom: 176px; }
.spotlight-cover { position: relative; flex: 0 1 420px; min-width: 0; width: 100%; max-width: 420px; margin: 0 auto; }
.spotlight-cover .tape { width: 130px; height: 36px; margin-left: -65px; background: var(--ground); opacity: 0.85; transform: rotate(4deg); }
.spotlight-cover .polaroid-frame { padding: 18px 18px 22px; transform: rotate(-4deg); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28); }
.spotlight-cover .standin { padding: 30px 26px; background: var(--accent); color: var(--accent-fg); }
.spotlight-cover .standin-title { font-size: clamp(34px, 4vw, 46px); }
.spotlight-cover .standin-author { font-size: 12px; }
.spotlight-cover .polaroid-caption { text-align: center; font-size: 30px; }
.spotlight-sticker { position: absolute; right: -22px; top: 30px; width: 112px; height: 112px; border-width: 3px; font-family: var(--font-body); transform: rotate(12deg); z-index: 3; }
.spotlight-sticker .sticker-num { font-size: 40px; }

.spotlight-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ribbon {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 36px 10px 22px; background: var(--accent); color: var(--accent-fg);
    font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%);
    transform: rotate(-2deg);
}
.spotlight-author { font-size: 42px; line-height: 1; color: inherit; }
.spotlight-author:empty { display: none; }
.spotlight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-weight: 800; font-size: 15px; }
.spotlight-meta .stars { font-size: 24px; color: inherit; }
.spotlight-meta .plus { margin-left: -14px; font-size: 30px; color: inherit; }

.bubble { color: var(--ink); position: relative; max-width: 34em; margin-top: 10px; padding: 20px 24px; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.bubble::before { content: ""; position: absolute; left: 34px; top: -12px; width: 20px; height: 20px; background: var(--white); border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.bubble-label { margin-bottom: 2px; color: var(--accent); }
.bubble p:last-child { margin: 0; font-size: 19px; font-weight: 600; }

.spotlight-card-wrap { position: relative; max-width: 860px; margin: -112px auto 0; padding: 0 24px; }
.spotlight-card { padding: 56px 60px 52px; background: var(--white); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--primary); }
.spotlight-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 28px; border-bottom: 2px dashed var(--dot); }
.spotlight-card-top .tag-stickers { margin: 0; }
.spotlight-card-top .tag-stickers li:nth-child(3n) a { background: var(--pale); }
.spotlight-body { margin-top: 32px; font-size: 20px; }
.spotlight-body > p:first-of-type::first-letter { float: left; padding: 6px 12px 0 0; font-family: var(--font-head); font-size: 96px; line-height: 0.85; color: var(--primary); }
.spotlight-body blockquote.kg-blockquote-alt { margin: 1.2em 0; font-size: 46px; line-height: 1.1; transform: rotate(-1.5deg); }
.spotlight-signoff { margin-top: 40px; font-size: 44px; line-height: 1; }

.spotlight-more { padding-top: 104px; padding-bottom: 120px; }

@media (max-width: 640px) {
    .spotlight-hero-inner { padding-top: 40px; padding-bottom: 140px; }
    .spotlight-sticker { right: -6px; width: 92px; height: 92px; }
    .spotlight-sticker .sticker-num { font-size: 32px; }
    .spotlight-author { font-size: 34px; }
    .spotlight-card { padding: 36px 24px 36px; border-radius: 20px; }
    .spotlight-body { font-size: 18px; }
    .spotlight-body > p:first-of-type::first-letter { font-size: 76px; }
    .spotlight-body blockquote.kg-blockquote-alt { font-size: 34px; }
    .falling-leaf { opacity: 0.6; }
}

/* =====================================================================
   Seasons & holidays additions
   ===================================================================== */

/* Fredoka headings are bolder than the old serif */
.h-xl, .h-lg, .h-sm, .h-xxl, .gh-content h2, .gh-content h3 { font-weight: 700; }
.standin-title, .review-card-title, .wordmark-main, .stat-num, .sticker-num { font-weight: 600; }
.wordmark-main { font-size: 28px; }
.wordmark-script { color: var(--kick); }

/* Seasonal wording: only the current season's text shows */
.st { display: none; }
html:not([data-season]) .st-autumn,
[data-season="autumn"] .st-autumn,
[data-season="halloween"] .st-halloween,
[data-season="thanksgiving"] .st-thanksgiving,
[data-season="holidays"] .st-holidays,
[data-season="winter"] .st-winter,
[data-season="valentine"] .st-valentine,
[data-season="stpatricks"] .st-stpatricks,
[data-season="spring"] .st-spring,
[data-season="summer"] .st-summer { display: inline; }

.season-banner { background: var(--deep); color: var(--deep-fg); padding: 10px 24px; text-align: center; font-weight: 700; font-size: 15px; }

/* Decorations */
.motif { display: block; fill: currentColor; }
.brand-badge .motif { width: 30px; height: 30px; }
.site-header { padding-bottom: 10px; }

/* Seasonal garland: one watercolor picture per season, repeated across the page (assets/images/art/garland-*.png) */
.garland { height: 104px; background-repeat: repeat-x; background-position: left top; background-size: 720px 104px; background-image: url("../images/art/garland-autumn.png"); }
[data-season="halloween"] .garland { background-image: url("../images/art/garland-halloween.png"); }
[data-season="thanksgiving"] .garland { background-image: url("../images/art/garland-thanksgiving.png"); }
[data-season="holidays"] .garland { background-image: url("../images/art/garland-holidays.png"); }
[data-season="winter"] .garland { background-image: url("../images/art/garland-winter.png"); }
[data-season="valentine"] .garland { background-image: url("../images/art/garland-valentine.png"); }
[data-season="stpatricks"] .garland { background-image: url("../images/art/garland-stpatricks.png"); }
[data-season="spring"] .garland { background-image: url("../images/art/garland-spring.png"); }
[data-season="summer"] .garland { background-image: url("../images/art/garland-summer.png"); }

/* Hero */
.hero-wrap { position: relative; overflow: hidden; }
.scatter .motif { position: absolute; opacity: 0.9; }
.scatter-1 { left: 3%; top: 30%; width: 70px; height: 70px; color: var(--primary); transform: rotate(-20deg); }
.scatter-2 { left: 44%; top: 8%; width: 44px; height: 44px; color: var(--secondary); transform: rotate(30deg); }
.scatter-3 { left: 92%; top: 36%; width: 76px; height: 76px; color: var(--accent); transform: rotate(70deg); }
.scatter-4 { left: 85%; top: 74%; width: 54px; height: 54px; color: var(--extra); transform: rotate(-50deg); }
.scatter-5 { left: 30%; top: 86%; width: 40px; height: 40px; color: var(--primary); transform: rotate(140deg); }
.scatter-6 { left: 56%; top: 62%; width: 32px; height: 32px; color: var(--secondary); transform: rotate(10deg); }
.scatter-7 { left: 12%; top: 70%; width: 50px; height: 50px; color: var(--accent); transform: rotate(200deg); }
.hero { position: relative; padding-top: 48px; padding-bottom: 88px; }
.hero-text { flex: 1 1 540px; gap: 20px; }
.hero-greeting { font-size: 36px; line-height: 1; color: var(--kick); transform: rotate(-2deg); transform-origin: left; }
.hero-headline { font-size: clamp(50px, 6.6vw, 92px); line-height: 0.98; }
.headline-chip { display: inline-block; padding: 0 16px; background: var(--secondary); color: var(--secondary-fg); border: 3px solid var(--ink); border-radius: 18px; transform: rotate(-3deg); }
.hero-actions { gap: 14px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 15px; }
.stat-chip-num { padding: 2px 10px; background: var(--pale); border-radius: 999px; font-family: var(--font-head); font-weight: 600; }

.hero-latest { flex: 0 1 390px; max-width: 390px; }
.hero-latest .standin-title { font-family: var(--font-head); font-weight: 600; }
.hero-latest-stars .stars { color: var(--kick); }
.hero-sticker { right: -18px; top: -6px; bottom: auto; width: 104px; height: 104px; padding: 10px; border-width: 3px; font-size: 23px; transform: rotate(12deg); }

/* Seasonal reading list */
.season-list { background: var(--pale); border-top: 3px dashed var(--ink); border-bottom: 3px dashed var(--ink); }
.season-list > .section { padding-top: 80px; padding-bottom: 96px; gap: 48px; }
.season-list[hidden], .js-season-item[hidden], .js-season-link[hidden] { display: none; }
.polaroid-motif { position: absolute; top: -8px; right: -12px; width: 50px; height: 50px; color: var(--accent); stroke: var(--ink); stroke-width: 0.8; transform: rotate(15deg); z-index: 3; }
.polaroid-item:nth-child(2n) .polaroid-motif { color: var(--primary); }

/* Review cards: rounder, season-colored shadows */
.review-card-link { border-radius: 20px; }
.review-card-thumb { border-radius: 8px; }

/* Notes become white cards with season-colored shadows */
.note { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 30px 28px; gap: 12px; box-shadow: 6px 6px 0 var(--primary); }
.note p { color: var(--body); }
.note-1 { transform: rotate(-1deg); }
.note-2 { transform: rotate(1deg); box-shadow: 6px 6px 0 var(--secondary); }
.note-3 { transform: rotate(-0.6deg); box-shadow: 6px 6px 0 var(--accent); }
.note .h-sm { font-size: 28px; }
.pill-pale, .pill-pale:hover { background: var(--pale); color: var(--ink); }

/* Reading-diary review page picks up the season too */
.journal::before { opacity: 0.6; }
.book-notes { box-shadow: 5px 5px 0 var(--primary); }

@media (max-width: 640px) {
    .scatter-2, .scatter-6 { display: none; }
    .hero-sticker { width: 88px; height: 88px; font-size: 19px; right: -6px; }
    .garland { height: 78px; background-size: 540px 78px; }
}


/* ---------- Watercolor artwork (Sandra's illustrations, one set per season) ----------
   main.js fills in each season's pictures and adds "has-art" to the page.
   Without JavaScript the simple colored shapes show instead. */
.season-art { display: none; }
.has-art .season-art { display: block; }
.has-art .not-art { display: none; }
.has-art .brand-badge { background: var(--white); }
.badge-art { width: 40px; height: 40px; object-fit: contain; }

.scatter-art { position: absolute; width: auto; height: var(--h, 70px); transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)); }
.scatter-art-1 { left: 1%; top: 64%; }
.scatter-art-2 { left: 44%; top: 8%; }
.scatter-art-3 { left: 92%; top: 36%; }
.scatter-art-4 { left: 85%; top: 74%; }
.scatter-art-5 { left: 30%; top: 86%; }
.scatter-art-6 { left: 56%; top: 62%; }
.scatter-art-7 { left: 17%; top: 84%; }
.scatter-art-3 { margin-left: calc(var(--h, 70px) * -0.4); }

.polaroid-art { position: absolute; top: -18px; right: -18px; width: 64px; height: 64px; object-fit: contain; transform: rotate(10deg); z-index: 3; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.15)); }

.falling-art { position: absolute; width: auto; height: var(--h, 60px); transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)); }
.falling-art-1 { left: 4%; top: 40px; }
.falling-art-2 { left: 44%; top: 26px; }
.falling-art-3 { right: 5%; top: 60px; }
.falling-art-4 { right: 12%; bottom: 150px; }
.falling-art-5 { left: 30%; bottom: 140px; }

/* Homepage headline: a serif (Fraunces) so the capital "I" is easy to read; "So do I!" sits in the color badge */
.hero-headline { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -0.015em; line-height: 1.04; }
.headline-chip { margin-top: 10px; padding: 2px 22px 8px; border-radius: 20px; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); }

@media (max-width: 640px) {
    .has-art .scatter-art-2, .has-art .scatter-art-6 { display: none; }
    .scatter-art { height: calc(var(--h, 70px) * 0.62); }
    .falling-art { height: calc(var(--h, 60px) * 0.8); }
    .headline-chip { padding: 0 14px 6px; box-shadow: 3px 3px 0 var(--ink); }
}
