/* ==========================================================================
   Stacy's Cozy Crumbs – Hobby version (A2 "Warm & Bold")
   ========================================================================== */

/* Fonts: self-hosted (GDPR). Put the woff2 files into assets/fonts/ (see README).
   Until then the fallback fonts are used. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
	--cream: #FBF3E8;
	--white: #FFFFFF;
	--ink: #2E160A;
	--brown: #7B3F1E;
	--kicker: #8A4B22;
	--muted: #6E3D1C;
	--sand: #F4D9B8;
	--blush: #E9D3C7;
	--line: #D9B892;
	--off-bg: #E8DCCB;
	--off-fg: #7F6A54;
	--ok: #2F5D2E;
	--error: #9B2C1F;
	--display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', Georgia, serif;
	--body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	--border: 2px solid var(--ink);
	--r-card: 28px;
	--r-box: 18px;
	--pad-x: clamp(20px, 4vw, 56px);
	--pad-y: clamp(56px, 7vw, 104px);
	--max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--ink); }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Type ---------- */
.scc-h1, .scc-h1-sub, .scc-h2, .scc-h3, .scc-price { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.scc-h1 { font-size: clamp(52px, 8vw, 120px); line-height: 0.92; letter-spacing: -0.04em; }
.scc-h1-sub { font-size: clamp(48px, 7vw, 100px); margin-bottom: 20px; }
.scc-h2 { font-size: clamp(38px, 5vw, 72px); }
.scc-h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; line-height: 1.1; }
.scc-kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); margin-bottom: 20px; }
.scc-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; max-width: 560px; }
.scc-hint, .scc-small { color: var(--muted); font-size: 15px; }
.scc-small { font-size: 13px; }
.scc-muted { color: var(--muted); }

/* ---------- Layout ---------- */
.scc-wrap { max-width: var(--max); margin: 0 auto; }
.scc-wrap--text { max-width: 780px; }
.scc-section { padding: var(--pad-y) var(--pad-x); }
.scc-section--tight { padding-top: 0; }
.scc-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 40px; }
.scc-section__head p { max-width: 420px; margin: 0; }
.scc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.scc-card { background: var(--white); border: var(--border); border-radius: var(--r-card); overflow: hidden; }

/* ---------- Buttons ---------- */
.scc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scc-actions--center { justify-content: center; }
.scc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.scc-btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.scc-btn--block { width: 100%; }
.scc-btn--primary { background: var(--brown); color: #FFF8EF; }
.scc-btn--primary:hover { background: #632F14; color: #FFF8EF; }
.scc-btn--dark { background: var(--ink); color: var(--cream); }
.scc-btn--dark:hover { background: #4A2614; color: var(--cream); }
.scc-btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.scc-btn--ghost:hover { background: var(--ink); color: var(--cream); }
.scc-btn--light { background: #FFF8EF; color: var(--ink); }
.scc-btn--light:hover { background: var(--sand); color: var(--ink); }

/* ---------- Header ---------- */
.scc-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad-x); border-bottom: var(--border); background: var(--cream); }
.scc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.scc-brand img { width: 64px; height: 64px; }
.scc-nav { display: flex; align-items: center; gap: 12px 28px; }
.scc-menu { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.scc-menu a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.scc-burger { display: none; width: 48px; height: 48px; border: var(--border); border-radius: 50%; background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.scc-burger__close { display: none; }

@media (max-width: 900px) {
	.scc-burger { display: inline-flex; }
	.scc-brand span { font-size: 18px; }
	.scc-brand img { width: 52px; height: 52px; }
	.scc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; flex-direction: column; align-items: stretch; gap: 8px; padding: 20px var(--pad-x) 28px; background: var(--cream); border-bottom: var(--border); }
	.scc-menu { flex-direction: column; gap: 0; font-size: 20px; }
	.scc-menu a { min-height: 52px; width: 100%; border-bottom: 1px solid var(--line); }
	.scc-nav-open .scc-nav { display: flex; }
	.scc-nav-open .scc-burger__open { display: none; }
	.scc-nav-open .scc-burger__close { display: inline-flex; }
}

/* ---------- Hero ---------- */
.scc-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(40px, 6vw, 88px) var(--pad-x); max-width: calc(var(--max) + 2 * 56px); margin: 0 auto; }
.scc-hero__text { flex: 1 1 460px; min-width: 0; }
.scc-hero__text .scc-lead { margin: 28px 0 36px; }
.scc-hero__media { flex: 1 1 380px; min-width: 0; position: relative; }
.scc-hero__img { width: 100%; height: clamp(380px, 48vw, 600px); object-fit: cover; border: var(--border); border-radius: min(280px, 40vw) min(280px, 40vw) 32px 32px; }
.scc-hero__sticker { position: absolute; left: clamp(-36px, -2vw, -8px); bottom: 40px; width: clamp(100px, 12vw, 150px); height: auto; background: var(--cream); border: var(--border); border-radius: 50%; transform: rotate(-12deg); }

/* ---------- Band ---------- */
.scc-band { background: var(--ink); color: var(--sand); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 8px -8px; }
.scc-band__track { display: flex; width: max-content; animation: scc-scroll 32s linear infinite; }
.scc-band__group { display: flex; gap: 32px; padding-right: 32px; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase; white-space: nowrap; }
.scc-band__star { color: #D29A62; }
@keyframes scc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Products ---------- */
.scc-product { display: flex; flex-direction: column; }
.scc-product > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: var(--border); }
.scc-product__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.scc-product__body > p { margin: 0; font-size: 15px; }
.scc-tag { align-self: flex-start; display: inline-block; background: var(--sand); padding: 6px 12px; border-radius: 14px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.scc-tag--cookie { background: var(--blush); }
.scc-price { font-size: 22px; margin-top: auto; padding-top: 6px; }
.scc-price small { font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.scc-details { border-top: 2px dashed var(--line); padding-top: 10px; font-size: 15px; }
.scc-details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.scc-details p { margin: 6px 0 0; overflow-wrap: anywhere; }

/* ---------- Teaser band ---------- */
.scc-teaser { background: var(--brown); color: #FFF8EF; padding: var(--pad-y) var(--pad-x); }
.scc-teaser__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.scc-teaser__inner > div { flex: 1 1 480px; min-width: 0; }
.scc-teaser p { margin: 18px 0 0; font-size: 19px; color: #F6E3CC; max-width: 640px; }

/* ---------- Gallery ---------- */
.scc-insta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; min-height: 44px; }
.scc-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.scc-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: var(--border); border-radius: 24px; }
.scc-gallery-content .wp-block-gallery img, .scc-gallery-content .wp-block-image img { border: var(--border); border-radius: 24px; }

/* ---------- About ---------- */
.scc-about { display: flex; flex-wrap: wrap; background: var(--sand); border: var(--border); border-radius: 40px; overflow: hidden; }
.scc-about img { flex: 1 1 380px; min-width: 0; height: clamp(280px, 40vw, 480px); object-fit: cover; }
.scc-about__text { flex: 1 1 380px; min-width: 0; padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 18px; font-size: 18px; }

/* ---------- Footer ---------- */
.scc-footer { background: var(--ink); color: var(--sand); padding: 56px var(--pad-x) 32px; }
.scc-footer a { color: var(--sand); }
.scc-footer a:hover { color: #FFF8EF; }
.scc-footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.scc-footer__brand { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); color: var(--cream); }
.scc-footer__brand img { width: 88px; height: 88px; background: var(--cream); border-radius: 50%; }
.scc-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.scc-footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
.scc-footer__copy { max-width: var(--max); margin: 40px auto 0; font-size: 14px; color: #CDA884; }

/* ---------- Content pages ---------- */
.scc-content { font-size: 18px; }
.scc-content h2, .scc-content h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.scc-content a { color: var(--brown); }

/* ---------- Language switch ---------- */
.scc-lang { display: inline-flex; border: var(--border); border-radius: 999px; overflow: hidden; }
.scc-lang a { min-width: 48px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; padding: 0 12px; }
.scc-lang a.is-active { background: var(--ink); color: var(--cream); }
@media (max-width: 900px) { .scc-lang { align-self: flex-start; } }

/* ---------- Helpers ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.scc-center { text-align: center; margin-top: 40px; }
.scc-note { margin-top: 22px; background: var(--sand); border-radius: 20px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.scc-note p { flex: 1 1 360px; margin: 0; font-size: 16px; }
.scc-more { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; text-decoration: none; }
.scc-more__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.scc-product__link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.scc-product__soon { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- "How it works" timeline ---------- */
.scc-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.scc-timeline__step { position: relative; background: var(--white); border: var(--border); border-radius: var(--r-card); padding: 22px 18px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.scc-timeline__step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -18px; width: 20px; height: 2px; background: var(--ink); }
.scc-timeline__day { background: var(--ink); color: #FFF8EF; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.scc-timeline__step.is-key .scc-timeline__day { background: var(--brown); }
.scc-timeline__art { width: 120px; height: 120px; border-radius: 50%; background: var(--cream); border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.scc-timeline__step p { margin: 0; font-size: 15px; line-height: 1.5; }
.scc-timeline__note { margin: 22px 0 0; background: var(--sand); border-radius: 20px; padding: 16px 22px; font-size: 16px; }
@media (max-width: 1100px) {
	.scc-timeline { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.scc-timeline__step::after { display: none; }
}
@media (max-width: 600px) {
	.scc-timeline__step { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 8px 16px; }
	.scc-timeline__art { width: 84px; height: 84px; flex: 0 0 auto; }
	.scc-timeline__art svg { width: 64px; height: 64px; }
	.scc-timeline__day { order: -1; flex: 0 0 100%; text-align: center; }
	.scc-timeline__step h3 { flex: 1 1 140px; }
	.scc-timeline__step p { flex: 1 1 100%; }
}

/* ---------- Contact ---------- */
.scc-contact { padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.scc-contact__text { flex: 1 1 460px; min-width: 0; }
.scc-contact__text .scc-h2 { font-size: clamp(34px, 3.6vw, 52px); }
.scc-contact__text p { margin: 12px 0 0; font-size: 18px; }

/* ---------- Recipes ---------- */
.scc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.scc-chip { min-height: 46px; padding: 0 22px; border-radius: 999px; border: var(--border); background: var(--white); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.scc-chip.is-active { background: var(--ink); color: var(--cream); }
.scc-grid--recipes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scc-recipe-card { display: flex; flex-direction: column; }
.scc-recipe-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--border); }
.scc-recipe-card h2 a { text-decoration: none; }
.scc-recipe-card .scc-btn { margin-top: auto; align-self: flex-start; }
.scc-recipe-card__cat { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); }
.scc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.scc-pill { background: var(--sand); padding: 6px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.scc-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; margin-bottom: 16px; }
.scc-recipe__head { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 48px; }
.scc-recipe__head > img { flex: 1 1 420px; min-width: 0; height: clamp(280px, 40vw, 480px); object-fit: cover; border-radius: var(--r-card); border: var(--border); }
.scc-recipe__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.scc-recipe__intro .scc-h1-sub { margin: 0; }
.scc-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; margin: 0; }
.scc-meta div { background: var(--sand); border-radius: var(--r-box); padding: 14px 16px; min-width: 0; }
.scc-meta dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scc-meta dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25; overflow-wrap: anywhere; }
.scc-recipe__body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.scc-recipe__ingredients { flex: 1 1 300px; min-width: 0; padding: 28px; }
.scc-recipe__ingredients ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.scc-recipe__steps { flex: 2 1 460px; min-width: 0; }
.scc-recipe__steps ol { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.scc-recipe__steps li { counter-increment: s; position: relative; padding: 6px 0 14px 62px; border-bottom: 1px solid var(--line); min-height: 52px; overflow-wrap: anywhere; }
.scc-recipe__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.scc-recipe__tips { margin-top: 40px; padding: 28px 32px; }
.scc-recipe__tips ul { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.scc-recipe__tips li::marker { color: var(--brown); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.scc-band__track { animation: none; }
}
