/*
Theme Name: The Cake Design
Theme URI: https://thecakedesign.com/
Author: The Cake Design
Description: Bright bakery-style gallery theme for cake designs: rounded design cards with weight, servings and flavour, a baker's tip on every cake, chip navigation, full-screen viewer and image SEO.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thecakedesign
*/

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/karla-latin-700-normal.woff2") format("woff2"); }

:root {
	--cream: #fff6ef;
	--white: #ffffff;
	--choc: #3d2620;
	--cocoa: #7a4a3a;
	--muted: #8a6e64;
	--berry: #e2567a;
	--berry-dk: #b8365a;
	--mint: #d8f1e6;
	--butter: #ffe9a8;
	--blush: #fde3e8;
	--line: #f1dccf;
	--r: 22px;
	--wrap: 1180px;
	--round: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--text: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; background: var(--cream); color: var(--choc); font: 400 17px/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry-dk); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--choc); }
h1, h2, h3 { font-family: var(--round); font-weight: 600; line-height: 1.15; color: var(--choc); }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: .3em 0 .35em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 1.6em 0 .45em; }
h3 { font-size: 1.12rem; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* header: brand + dropdown on top row, group chips underneath */
.ck-head { position: sticky; top: 0; z-index: 30; background: var(--white); box-shadow: 0 2px 0 var(--line); }
.ck-head > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ck-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--choc); }
.ck-brand svg { width: 36px; height: 36px; }
.ck-brand b { font: 600 1.35rem/1 var(--round); white-space: nowrap; }
.ck-menu > summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ck-menu > summary::-webkit-details-marker { display: none; }
.ck-menu[open] > summary { background: var(--choc); }
.ck-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 22px 40px rgba(61, 38, 32, .16); max-height: calc(100vh - 110px); overflow: auto; border-radius: 0 0 var(--r) var(--r); }
.ck-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 26px; padding-top: 14px; padding-bottom: 20px; align-items: start; }
.ck-panel h3 { color: var(--berry-dk); font-size: 1.02rem; margin: 10px 0 4px; }
.ck-panel ul { list-style: none; margin: 0; padding: 0; }
.ck-panel li a { display: block; padding: 4px 0; color: var(--choc); text-decoration: none; font-size: .95rem; }
.ck-panel li a:hover { color: var(--berry-dk); }
.ck-chips { border-top: 1px solid var(--line); }
.ck-chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 9px; scrollbar-width: none; }
.ck-chips .wrap::-webkit-scrollbar { display: none; }
.ck-chips a { flex: none; text-decoration: none; color: var(--cocoa); background: var(--cream); border-radius: 999px; padding: 5px 13px; font-size: .86rem; font-weight: 700; }
.ck-chips a:hover { background: var(--blush); color: var(--berry-dk); }
@media (max-width: 420px) { .ck-brand b { font-size: 1.15rem; } .ck-brand svg { width: 30px; height: 30px; } .ck-menu > summary { padding: 7px 11px; font-size: .84rem; } }

/* page head */
.ck-crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.ck-crumbs a { color: var(--muted); text-decoration: none; }
.ck-crumbs span[aria-hidden] { margin: 0 6px; }
.ck-hero { background: var(--white); border-radius: var(--r); padding: 6px 22px 6px; margin: 12px 0 18px; }
.ck-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ck-kicker li { font-size: .82rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--butter); color: var(--cocoa); }
.ck-kicker li:nth-child(2) { background: var(--mint); }
.ck-kicker li:nth-child(3) { background: var(--blush); }
.ck-intro { max-width: 780px; font-size: 1.04rem; }
.ck-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.ck-jump a { text-decoration: none; font-size: .86rem; font-weight: 700; color: var(--cocoa); padding: 6px 13px; border-radius: 12px; background: var(--white); border: 2px dashed var(--line); }
.ck-jump a:hover { border-color: var(--berry); color: var(--berry-dk); }

/* gallery */
.ck-sec > p { max-width: 780px; }
.ck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
@media (min-width: 760px) { .ck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.ck-card { margin: 0; background: var(--white); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; border: 2px solid var(--line); }
.ck-zoom { display: block; aspect-ratio: 1 / 1; background: var(--blush); overflow: hidden; }
.ck-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ck-zoom:hover img { transform: scale(1.04); }
.ck-card figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: .9rem; line-height: 1.5; }
.ck-facts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ck-facts li { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--cocoa); }
.ck-facts li:first-child { background: var(--butter); }
.ck-facts li:nth-child(2) { background: var(--mint); }
.ck-card .cap { margin: 0; }
.ck-card .tip { margin: auto 0 0; font-size: .82rem; color: var(--muted); border-left: 3px solid var(--berry); padding-left: 9px; }
.ck-card .tip b { color: var(--berry-dk); }
@media (max-width: 480px) { .ck-card figcaption { padding: 9px 10px 11px; font-size: .84rem; } .ck-card { border-radius: 16px; } }

/* guide + faq */
.ck-guide { background: var(--white); border-radius: var(--r); padding: 4px 22px 10px; margin: 28px 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92rem; }
th, td { padding: 9px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--blush); color: var(--berry-dk); }
.ck-faq h2 { text-align: center; }
.ck-faq details { background: var(--white); border-radius: 16px; margin: 10px 0; border: 2px solid var(--line); }
.ck-faq summary { cursor: pointer; padding: 14px 46px 14px 18px; position: relative; list-style: none; }
.ck-faq summary::-webkit-details-marker { display: none; }
.ck-faq summary::after { content: "+"; position: absolute; right: 14px; top: 9px; width: 28px; height: 28px; border-radius: 50%; background: var(--berry); color: #fff; text-align: center; font: 600 1.2rem/28px var(--round); }
.ck-faq details[open] summary::after { content: "\2212"; background: var(--choc); }
.ck-faq summary h3 { display: inline; font-size: 1.05rem; }
.ck-faq details > div { padding: 0 18px 8px; }

/* tiles */
.ck-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 8px; }
@media (min-width: 640px) { .ck-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .ck-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ck-tile { display: block; text-decoration: none; color: var(--choc); background: var(--white); border-radius: 18px; overflow: hidden; border: 2px solid var(--line); }
.ck-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ck-tile span { display: block; padding: 8px 10px 10px; text-align: center; }
.ck-tile b { display: block; font: 600 1rem/1.2 var(--round); }
.ck-tile small { color: var(--muted); font-size: .76rem; }
.ck-tile:hover { border-color: var(--berry); }
.ck-more { margin: 34px 0 10px; }

/* home */
.ck-home-hero { padding: 34px 0 10px; text-align: center; }
.ck-home-hero p.lead { color: var(--muted); max-width: 620px; margin: 0 auto 16px; font-size: 1.08rem; }
.ck-groupnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.ck-groupnav a { display: inline-block; text-decoration: none; padding: 8px 15px; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 700; font-size: .9rem; }
.ck-groupnav a:hover { background: var(--choc); }
.ck-group h2 small { font: 400 .9rem var(--text); color: var(--muted); margin-left: 8px; }

.ck-main { padding-bottom: 40px; }
.ck-static { max-width: 780px; padding: 10px 0 40px; }
.ck-ad { margin: 26px 0; text-align: center; }

/* footer */
.ck-foot { background: var(--choc); color: #f3e3d8; margin-top: 30px; padding: 34px 0 22px; font-size: .92rem; border-radius: 28px 28px 0 0; }
.ck-foot a { color: #fff; text-decoration: none; }
.ck-foot a:hover { color: var(--butter); }
.ck-foot .cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 24px; }
.ck-foot h3 { color: var(--butter); font-size: 1.05rem; margin: 10px 0 6px; }
.ck-foot ul { list-style: none; margin: 0; padding: 0; }
.ck-foot li { padding: 3px 0; }
.ck-foot .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 22px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* viewer */
.ck-view { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(40, 24, 20, .96); color: #fff; }
.ck-view::backdrop { background: rgba(40, 24, 20, .96); }
.ck-view .stage { position: absolute; inset: 54px 0 116px; display: flex; align-items: center; justify-content: center; }
.ck-view .stage img { max-width: 94vw; max-height: 100%; object-fit: contain; border-radius: 18px; }
.ck-view .bar { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.ck-view .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 16px; text-align: center; }
.ck-view .info p { margin: 0 auto 10px; max-width: 760px; font-size: .92rem; color: #f6e4da; }
.ck-view button, .ck-view .act a { font: 700 .86rem var(--text); color: #fff; background: var(--berry); border: 0; border-radius: 999px; padding: 8px 15px; cursor: pointer; text-decoration: none; }
.ck-view .act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ck-view .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; font-size: 1.4rem; }
.ck-view .prev { left: 10px; } .ck-view .next { right: 10px; }
.ck-view .count { font-size: .85rem; opacity: .85; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ck-zoom img { transition: none; } }
