/*
Theme Name: Kitchen Label Studio
Theme URI: https://kitchenlabelstudio.com/
Author: Trendlytik
Author URI: https://trendlytik.com/
Description: A fast, lightweight theme for a free spice jar label maker. Includes a full browser-based label editor, 24 label templates, SEO-friendly style pages and print-ready output. Plain PHP and JavaScript, no build tools, no page builder.
Version: 1.4.0
Requires at least: 6.3
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: kls
*/

:root {
  --ink: #23302A;
  --ink-soft: #55625B;
  --paper: #FFFFFF;
  --pistachio: #EDF2E7;
  --saffron: #F2B630;
  --saffron-deep: #D99A12;
  --sumac: #8E2C48;
  --shelf: #B98B5E;
  --line: #E6D9D3;
  --linen: #F9F2EE;
  --oat: #F3E8DF;
  --blush: #F3E3DE;
  --rose: #EBD3CE;
  --rose-deep: #B97C7C;
  --sage: #E2E8DA;
  --mist: #ECE5EE;
  --plum: #4A2E3F;
  --plum-soft: #D9C6D1;
  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-1: 0.875rem;
  --s0: 1.125rem;
  --s1: 1.375rem;
  --s2: 1.75rem;
  --s3: 2.25rem;
  --s4: 3rem;
  --s5: 4rem;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--s0); line-height: 1.6; color: var(--ink); background: var(--linen); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sumac); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sumac); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, var(--s5)); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, var(--s4)); }
h3 { font-size: var(--s1); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 var(--s0)/1 var(--f-body); padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; background: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: var(--saffron-deep); color: var(--ink); }
.btn-quiet, .btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover, .btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: .7rem 1.2rem; font-size: 1rem; }
.btn-text { padding: .5rem .2rem; color: var(--ink-soft); font-weight: 500; border: 0; }
.btn-text:hover { color: var(--sumac); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--linen); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--f-display); font-size: 1.3rem; }
.logo:hover { color: var(--ink); }
.custom-logo { max-height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav .current-menu-item > a { color: var(--sumac); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: var(--s1); line-height: 1.5; }
.tint { background: var(--sage); }
.rose { background: var(--rose); }
.mist { background: var(--mist); }
.faq-sec { background: var(--oat); }
.faq-sec.scallop { --scallop: var(--oat); }
/* Scalloped top edge, like the border of a round label */
.scallop { position: relative; --scallop: var(--sage); }
.scallop::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: radial-gradient(circle at 14px 14px, var(--scallop) 13px, transparent 14px) repeat-x; background-size: 28px 14px; pointer-events: none; }
.rose.scallop { --scallop: var(--rose); }
.mist.scallop { --scallop: var(--mist); }
.ideas.scallop { --scallop: var(--plum); }

/* Hero */
.hero { padding: 64px 0 0; overflow: hidden; background: var(--blush); }
.home .site-header { background: var(--blush); border-bottom-color: transparent; }
.hero .playground { background: var(--sage); }
.steps-sec { background: var(--oat); }
.steps-sec.scallop { --scallop: var(--oat); }
.steps li { border-top-color: var(--rose-deep); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero .lede { font-size: var(--s1); color: var(--ink-soft); margin: 22px 0 32px; max-width: 30ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.reassure { margin: 22px 0 0; font-size: var(--s-1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; }
.reassure li { display: flex; align-items: center; gap: 6px; }
.playground { background: var(--pistachio); border-radius: 28px; padding: 28px 28px 0; }
.play-controls { display: grid; gap: 16px; margin-bottom: 18px; }
.play-controls label { font-weight: 600; font-size: var(--s-1); display: block; margin-bottom: 6px; }
.spice-input { width: 100%; font: 500 1.1rem var(--f-body); padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); }
.spice-input:focus { border-color: var(--ink); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .95rem var(--f-body); background: var(--paper); border: 2px solid var(--line); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shelf { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; padding: 0 4px; min-height: 120px; }
.shelf::after { content: ""; position: absolute; left: -28px; right: -28px; bottom: 0; height: 18px; background: var(--shelf); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.shelf .jar { position: relative; z-index: 1; margin-bottom: 14px; }
.shelf .jar:nth-child(2) { transform: translateY(-4px); }
.shelf .jar:nth-child(4) { transform: translateY(-2px); }
.play-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 22px; font-size: var(--s-1); color: var(--ink-soft); position: relative; z-index: 1; }
.play-foot a { font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-size: var(--s3); line-height: 1; display: block; margin-bottom: 14px; color: var(--sumac); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); max-width: 34ch; }

/* Label art (rendered by labels.js) */
.kls-label { display: block; aspect-ratio: 1; }
.kls-label svg { width: 100%; height: 100%; }

/* Style cards */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.style-card { background: var(--paper); border-radius: 22px; padding: 28px; color: var(--ink); display: flex; flex-direction: column; position: relative; }
.style-card .labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.style-card h3 a { color: inherit; text-decoration: none; }
.style-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.style-card:hover h3 a { color: var(--sumac); }
.style-card p { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }
.style-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; font-size: var(--s-1); color: var(--ink-soft); gap: 8px; }
.pin-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 600 .9rem var(--f-body); color: #fff; background: #E60023; padding: .45rem .8rem; border-radius: 999px; text-decoration: none; }
.pin-btn:hover { background: #ad081b; color: #fff; }
.style-card.more { background: transparent; border: 2px dashed var(--ink-soft); justify-content: center; }
.style-card.more h3 { font-size: var(--s2); margin-bottom: 10px; }
.tint .style-card:not(.more) { background: var(--paper); }
.style-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-grid.compact .style-card { padding: 20px; border: 1px solid var(--line); }
.style-grid.compact .labels { gap: 6px; margin-bottom: 14px; }

/* Batch */
.batch-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.batch-copy p { color: var(--ink-soft); font-size: var(--s1); line-height: 1.5; margin: 18px 0 28px; max-width: 34ch; }
.sheet-wrap { position: relative; }
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 8.5 / 11; padding: 7% 6%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; align-content: start; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(35,48,42,.45); transform: rotate(-1.5deg); max-width: 520px; margin-left: auto; }
.sheet-note { position: absolute; left: -8px; bottom: -18px; background: var(--saffron); font-weight: 600; padding: .7rem 1rem; border-radius: 14px; font-size: 1rem; max-width: 210px; line-height: 1.35; transform: rotate(2deg); }

/* Sizes */
.sizes { border-top: 0; }
.size-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.size-list li { display: flex; flex-direction: column; gap: 14px; }
.size-shape { height: 120px; display: flex; align-items: flex-end; }
.size-list strong { font-family: var(--f-display); font-weight: 400; font-size: var(--s1); }
.size-list span { color: var(--ink-soft); font-size: 1rem; }
.sizes-foot { margin-top: 44px; color: var(--ink-soft); }

/* Ideas */
.ideas { background: var(--plum); color: var(--paper); }
.ideas .section-head p { color: var(--plum-soft); }
.ideas-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.ideas-head .section-head { margin-bottom: 0; }
.btn-onink { color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn-onink:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.idea-topics { list-style: none; margin: -16px 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.idea-topics a { display: block; padding: .45rem 1rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: var(--paper); text-decoration: none; font-size: var(--s-1); }
.idea-topics a:hover { background: var(--paper); color: var(--ink); }
.idea-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.idea { color: var(--paper); text-decoration: none; display: flex; flex-direction: column; gap: 18px; }
.idea:hover { color: var(--paper); }
.idea .thumb { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--pistachio); display: flex; align-items: center; justify-content: center; padding: 8% 0; }
.idea .thumb.has-img { padding: 0; }
.idea .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.idea:hover .thumb img { transform: scale(1.03); }
.idea .thumb .kls-label { height: 100%; width: auto; }
.idea-body { display: flex; flex-direction: column; gap: 8px; }
.ideas .idea-cat { color: var(--saffron); }
.idea h3 { font-size: 1.25rem; line-height: 1.25; text-wrap: balance; }
.idea-lead h3 { font-size: var(--s3); line-height: 1.12; }
.idea:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.idea p { color: var(--plum-soft); font-size: 1.05rem; max-width: 52ch; }
.idea-time { font-size: var(--s-1); color: #B9A3B0; }
.idea-list { list-style: none; margin: 0; padding: 0; }
.idea-list li + li { border-top: 1px solid rgba(255,255,255,.14); }
.idea-list li { padding: 22px 0; }
.idea-list li:first-child { padding-top: 0; }
.idea-list .idea { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; }
.idea-list .thumb { border-radius: 12px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 16px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--s1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--sumac); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }

/* Signup */
.signup { padding: 0 0 104px; }
.signup-box { background: var(--saffron); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.signup-box p { margin-top: 12px; font-size: var(--s1); line-height: 1.45; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input[type="email"] { flex: 1 1 220px; font: 500 1.05rem var(--f-body); padding: 1rem 1.2rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.signup-form .btn { background: var(--ink); color: var(--paper); }
.signup-form .btn:hover { background: #121a16; }
.signup-form small { flex-basis: 100%; font-size: var(--s-1); }

/* Style pages */
.style-hero { padding: 72px 0 56px; }
.style-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.crumbs { font-size: var(--s-1); color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.style-hero .lede { font-size: var(--s1); color: var(--ink-soft); margin: 20px 0 30px; max-width: 34ch; line-height: 1.5; }
.style-hero-art { background: var(--pistachio); border-radius: 28px; padding: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.style-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: 1rem; }
.style-facts strong { color: var(--ink); font-weight: 600; }
.label-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.label-wall figure { margin: 0; }
.label-wall figcaption { text-align: center; font-size: var(--s-1); color: var(--ink-soft); margin-top: 6px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.cat-block + .cat-block { margin-top: 64px; }
.cat-block h2 { font-size: var(--s2); margin-bottom: 24px; }
.cat-block .style-card { border: 1px solid var(--line); }

/* Blog */
.page-head { padding: 64px 0 40px; }
.page-head p { margin-top: 12px; color: var(--ink-soft); font-size: var(--s1); max-width: 50ch; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 80px; }
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.post-card:hover h2 { color: var(--sumac); }
.post-card .thumb { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--pistachio); display: flex; align-items: center; justify-content: center; padding: 6% 0; }
.post-card .thumb .kls-label { height: 100%; width: auto; aspect-ratio: 1; }
.post-card .thumb.has-img { padding: 0; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-cat, .idea-cat { font-size: var(--s-1); font-weight: 600; color: var(--sumac); }
.post-card h2 { margin-top: -6px; }
.post-time { font-size: var(--s-1); color: var(--ink-soft); margin-top: auto; }
.post-card h2 { font-size: var(--s1); }
.post-card p { color: var(--ink-soft); font-size: 1rem; }
.pagination { padding-bottom: 80px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.entry { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.post-layout .entry { margin: 0; padding: 0; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--s-1); color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--sumac); text-decoration: underline; }
.entry-header { margin-bottom: 32px; }
.entry-meta { color: var(--ink-soft); font-size: var(--s-1); margin-top: 14px; }
.entry-thumb { margin: 0 0 40px; border-radius: 22px; overflow: hidden; }
.entry-content { font-size: 1.15rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: var(--s2); margin-top: 1.8em; }
.entry-content h3 { font-size: var(--s1); margin-top: 1.6em; }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--saffron); font-family: var(--f-display); font-size: var(--s1); }
.entry-content .alignwide { max-width: none; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: var(--s-1); color: var(--ink-soft); margin-top: 8px; }
.entry-cta { margin-top: 56px; padding: 32px; border-radius: 22px; background: var(--blush); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.entry-cta p { font-family: var(--f-display); font-size: var(--s1); }
.empty-state { padding: 40px 0 120px; max-width: 520px; }
.empty-state p { color: var(--ink-soft); margin: 14px 0 24px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 999px; }

/* Blog post layout + sidebar */
.post-layout { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.post-layout .entry { max-width: 740px; }
.blog-sidebar { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.sidebar-inner { display: grid; gap: 24px; }
.sidebar-sticky { flex: 1; margin-top: 24px; }
.maker-mini { position: sticky; top: 28px; display: grid; gap: 16px; padding: 24px; border-radius: 22px; background: var(--saffron); color: var(--ink); text-decoration: none; }
.maker-mini:hover { color: var(--ink); background: #F5C24F; }
.mm-labels { display: flex; gap: 10px; }
.mm-labels .kls-label { width: 64px; }
.mm-text { display: grid; gap: 4px; font-size: 1rem; }
.mm-text strong { font: 400 1.35rem/1.2 var(--f-display); }
.maker-mini .btn { background: var(--ink); color: var(--paper); width: 100%; }
.maker-mini:hover .btn { background: #34443C; }
.maker-banner { background: var(--plum); color: var(--paper); border-radius: 22px; padding: 28px 26px 26px; }
.mb-jars { display: flex; justify-content: center; margin: 0 0 22px; padding: 18px 0 24px; border-radius: 16px; background: var(--blush); }
.mb-jars .mb-label { width: 86px; filter: drop-shadow(0 6px 8px rgba(35,48,42,.22)); }
.mb-jars .mb-label:nth-child(1) { transform: rotate(-9deg) translateY(8px); margin-right: -12px; }
.mb-jars .mb-label:nth-child(2) { position: relative; z-index: 1; width: 96px; }
.mb-jars .mb-label:nth-child(3) { transform: rotate(8deg) translateY(8px); margin-left: -12px; }
.maker-banner h2 { font-size: 1.55rem; line-height: 1.15; text-wrap: balance; }
.maker-banner > p { color: var(--plum-soft); font-size: 1rem; margin: 10px 0 20px; }
.maker-banner .btn { width: 100%; }
.maker-banner .mb-style { font-size: var(--s-1); color: #B9A3B0; margin: 10px 0 0; text-align: center; }
.mb-points { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 8px; font-size: .95rem; }
.mb-points li { display: flex; gap: 10px; align-items: center; }
.mb-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); flex: none; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.side-title { font: 400 1.2rem/1.2 var(--f-display); margin: 0 0 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-topics a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: 1rem; border-bottom: 1px solid var(--line); }
.side-topics li:last-child a { border-bottom: 0; }
.side-topics a:hover, .side-topics a[aria-current] { color: var(--sumac); }
.side-topics .count { min-width: 28px; text-align: center; background: var(--blush); border-radius: 999px; font-size: var(--s-1); padding: 1px 8px; color: var(--ink-soft); }
.side-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-styles a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 14px; background: var(--blush); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.side-styles a:hover { background: var(--rose); }
.side-styles .kls-label { width: 70px; }
.side-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.side-box .widget ul, .widget ul { list-style: none; padding: 0; }

/* Share your design idea */
.page-head .btn-suggest { margin-top: 22px; }
.suggest-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 24px 0 112px; padding: 26px 30px; border-radius: 22px; background: var(--mist); }
.suggest-strip p { font: 400 var(--s1)/1.2 var(--f-display); margin: 0; }
.idea-sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.idea-lede { font-size: var(--s1); line-height: 1.5; color: var(--ink-soft); margin: 16px 0 32px; max-width: 34ch; }
.idea-preview-wrap { margin: 0 0 32px; display: flex; align-items: center; gap: 22px; }
.idea-preview-wrap figcaption { font-size: var(--s-1); color: var(--ink-soft); max-width: 16ch; }
.idea-preview { --ip-bg: #F3E3DE; --ip-ink: #4A2E3F; flex: none; width: 150px; height: 150px; border-radius: 50%; background: var(--ip-bg); color: var(--ip-ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; box-shadow: inset 0 0 0 7px var(--ip-bg), inset 0 0 0 9px var(--ip-ink), 0 14px 28px -18px rgba(74,46,63,.55); transition: border-radius .25s, width .25s, height .25s; }
.idea-preview.is-oval { width: 190px; height: 130px; border-radius: 50% / 50%; }
.idea-preview.is-rectangle { width: 190px; height: 112px; border-radius: 14px; }
.ip-name { font: 400 1.25rem/1.15 var(--f-display); overflow-wrap: anywhere; }
.idea-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1rem; }
.idea-next li { display: flex; gap: 12px; align-items: baseline; }
.idea-next li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); flex: none; transform: translateY(-1px); }
.idea-card { background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: 0 24px 48px -32px rgba(74,46,63,.45); }
.idea-form { display: grid; gap: 18px; }
.idea-form .field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.idea-form label, .idea-form legend { font-weight: 600; font-size: 1rem; padding: 0; }
.idea-form input[type="text"], .idea-form input[type="email"], .idea-form textarea { width: 100%; font: 400 1.05rem/1.4 var(--f-body); color: var(--ink); padding: .75rem .95rem; border: 2px solid var(--line); border-radius: 12px; background: var(--linen); }
.idea-form textarea { resize: vertical; min-height: 110px; }
.idea-form input:focus, .idea-form textarea:focus { outline: none; border-color: var(--rose-deep); background: var(--paper); }
.idea-form small { color: var(--ink-soft); font-size: var(--s-1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.colour-field { grid-template-columns: auto 1fr; align-items: center; }
.colour-field label { grid-column: 1 / -1; }
.idea-form input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; grid-column: 1 / -1; }
.shape-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.shape-pick label { font-weight: 500; }
.shape-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shape-pick span { display: block; padding: .5rem 1rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
.shape-pick input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.shape-pick input:focus-visible + span { outline: 3px solid var(--sumac); outline-offset: 2px; }
.idea-form input[type="file"] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; font-size: 1rem; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; background: var(--linen); }
.idea-form input[type="file"]::file-selector-button { font: 600 .95rem var(--f-body); margin-right: 12px; padding: .5rem 1rem; border: 0; border-radius: 999px; background: var(--blush); color: var(--ink); cursor: pointer; }
.idea-privacy { margin-top: -8px; }
.idea-form .btn { justify-self: start; }
.idea-form .btn[disabled] { opacity: .7; cursor: progress; }
.idea-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #F8E1E4; color: #7A1F35; font-size: 1rem; }
.idea-thanks { text-align: left; padding: 8px 0; }
.idea-thanks h3 { font-size: var(--s2); margin-bottom: 10px; }
.idea-thanks p { color: var(--ink-soft); margin: 0 0 22px; }
.idea-form[hidden], .idea-thanks[hidden], .idea-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 0; background: var(--blush); padding: 56px 0 40px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 600 1rem var(--f-body); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--sumac); text-decoration: underline; }
.footer-grid p { color: var(--ink-soft); max-width: 32ch; margin-top: 12px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: var(--s-1); }
.footer-base a { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 980px) {
  .idea-sec-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 40px; }
  .post-layout .entry { max-width: none; }
  .sidebar-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .sidebar-sticky { display: none; }
  .idea-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid, .batch-grid, .faq-grid, .signup-box, .style-hero-grid { grid-template-columns: 1fr; }
  .style-grid, .style-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .size-list { grid-template-columns: repeat(2, 1fr); }
  .sheet { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .label-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .field-row:not(.colours) { grid-template-columns: 1fr; }
  .idea-card { padding: 22px; }
  .suggest-strip { margin-bottom: 80px; }
  .sidebar-inner { grid-template-columns: minmax(0, 1fr); }
  .idea-list .idea { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .idea-topics { flex-wrap: nowrap; overflow-x: auto; margin-left: -24px; margin-right: -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .idea-topics a { white-space: nowrap; }
  .idea-lead h3 { font-size: var(--s2); }
  .idea-topics { margin-top: -24px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--linen); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 10px 0; }
  .nav .btn { margin-top: 8px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .playground { padding: 20px 18px 0; border-radius: 22px; }
  .shelf::after { left: -18px; right: -18px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .style-grid { grid-template-columns: 1fr; }
  .style-grid.compact { grid-template-columns: 1fr 1fr; }
  .ideas-head { flex-direction: column; align-items: start; }
  .signup-box { padding: 32px 24px; }
  .sheet-note { position: static; margin-top: 18px; transform: none; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .label-wall { grid-template-columns: repeat(3, 1fr); }
  .style-hero { padding: 40px 0; }
  .style-hero-art { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
