/*
Theme Name: Clean Cut SVG
Theme URI: https://cleancutsvg.com/
Description: Custom theme for Clean Cut SVG — free cut files and cutting-machine guides.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: cleancutsvg
*/

:root {
	--paper: #f8f3ea;
	--paper-2: #f1e8d8;
	--card: #ffffff;
	--ink: #22303a;
	--ink-2: #4b5862;
	--muted: #7a847f;
	--coral: #d45d3c;
	--coral-dk: #b3462a;
	--sage: #6f8f6a;
	--sage-lt: #e3ecdf;
	--mustard: #d9a431;
	--mat: #dfeee9;
	--mat-line: #c3ddd5;
	--line: #e4d9c6;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(34, 48, 58, .06), 0 6px 22px rgba(34, 48, 58, .07);
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hand: "Caveat", "Comic Sans MS", cursive;
	--wrap: 1180px;
	--read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dk); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); margin: 1.6em 0 .55em; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: .2em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* ---------- cut line: the brand motif (dashed line + scissors) */
.cutline { position: relative; border: 0; border-top: 2px dashed var(--line); margin: 48px 0; overflow: visible; }
.cutline::before { content: "\2702"; position: absolute; left: 10%; top: -15px; background: var(--paper); padding: 0 8px; color: var(--muted); font-size: 20px; line-height: 1; }

/* ---------- header */
.site-header { background: rgba(248, 243, 234, .94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font: 800 1.35rem/1 var(--display); letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--coral); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.nav a:hover, .nav .current-menu-item a, .nav .current-cat a { background: var(--paper-2); color: var(--coral-dk); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 700 .9rem var(--body); color: var(--ink); cursor: pointer; }
.header-search { display: flex; }
.header-search input { width: 150px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; }
@media (max-width: 980px) {
	.header-search { display: none; }
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; }
}

/* ---------- hero */
.hero { padding: 64px 0 56px; background:
	linear-gradient(var(--mat-line) 1px, transparent 1px) 0 0 / 28px 28px,
	linear-gradient(90deg, var(--mat-line) 1px, transparent 1px) 0 0 / 28px 28px,
	var(--mat); border-bottom: 1px solid var(--mat-line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 16px; }
.hero h1 .hand { font-family: var(--hand); color: var(--coral); font-size: 1.12em; font-weight: 700; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-art { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 18px; transform: rotate(1.5deg); }
.hero-art img { border-radius: 12px; }
.hero-search { display: flex; gap: 8px; margin-top: 22px; max-width: 480px; }
.hero-search input { flex: 1; border: 2px solid var(--ink); border-radius: 12px; padding: 13px 16px; font: inherit; background: #fff; }
.btn, .hero-search button { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff; border: 0; border-radius: 12px; padding: 13px 22px; font: 800 1rem var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--coral-dk); transition: transform .08s; }
.btn:hover, .hero-search button:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line); border: 1.5px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.chip:hover { border-color: var(--coral); color: var(--coral-dk); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } .hero { padding: 40px 0; } }

/* ---------- sections + cards */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 800; text-decoration: none; white-space: nowrap; }
.kicker { font-family: var(--hand); font-size: 1.5rem; color: var(--sage); line-height: 1; display: block; margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(34,48,58,.07), 0 14px 30px rgba(34,48,58,.12); color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.card-title { font: 700 1.14rem/1.3 var(--display); margin: 0; }
.card-meta { margin-top: auto; font-size: .85rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.badge-free { background: var(--sage-lt); color: #3f5f3b; font-weight: 800; font-size: .74rem; border-radius: 999px; padding: 3px 9px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-tile { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.cat-tile strong { font: 700 1.1rem var(--display); }
.cat-tile span { color: var(--muted); font-size: .9rem; }
.cat-tile:hover { border-color: var(--coral); color: var(--ink); }

/* ---------- "why our files cut clean" */
.promise { background: var(--ink); color: #eef2f0; border-radius: 22px; padding: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise h2 { color: #fff; grid-column: 1 / -1; margin: 0 0 4px; }
.promise h3 { color: #fff; margin: 0 0 6px; font-size: 1.1rem; }
.promise p { margin: 0; color: #c9d3d0; font-size: .98rem; }
.promise .num { font: 800 2rem var(--display); color: var(--mustard); display: block; }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- article */
.article-head { padding: 36px 0 8px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--coral-dk); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .92rem; align-items: center; }
.article-meta .badge-free { font-size: .8rem; }
.article-hero { margin: 26px auto 28px; max-width: 1056px; }
.article-hero img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; }
.layout { display: grid; grid-template-columns: minmax(0, var(--read)) 280px; gap: 56px; justify-content: center; }
.entry { min-width: 0; }
.entry > *:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--coral); font-weight: 800; }
.entry img { border-radius: 12px; margin: 1.4em 0; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: -.6em; }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mustard); font-style: italic; color: var(--ink-2); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.entry th, .entry td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { background: var(--paper-2); font-weight: 800; }
.entry tr:last-child td { border-bottom: 0; }
.entry h2 { padding-top: .2em; }
.entry h2::before { content: ""; display: block; width: 44px; border-top: 3px dashed var(--coral); margin-bottom: 14px; }
.entry kbd, .entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--paper-2); border-radius: 6px; padding: 2px 6px; }
.table-scroll { overflow-x: auto; }
.sidebar { position: relative; }
.sidebar .sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; font-size: .95rem; }
.side-box h3 { margin: 0 0 10px; font-size: 1.05rem; }
.side-box ol { margin: 0; padding-left: 1.2em; }
.side-box ol li { margin: .35em 0; }
.side-box a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.side-box a:hover { color: var(--coral-dk); }
@media (max-width: 1060px) { .layout { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; } }

/* callouts */
.tip, .note, .warn { border-radius: 12px; padding: 16px 18px 16px 52px; margin: 1.5em 0; position: relative; font-size: .98rem; }
.tip { background: var(--sage-lt); }
.note { background: #eef3f7; }
.warn { background: #fbeee5; }
.tip::before, .note::before, .warn::before { position: absolute; left: 16px; top: 13px; font-size: 1.25rem; }
.tip::before { content: "\2702"; color: var(--sage); }
.note::before { content: "\270E"; color: #4b6d86; }
.warn::before { content: "!"; color: #fff; background: var(--coral); border-radius: 50%; width: 24px; height: 24px; font: 800 .95rem/24px var(--body); text-align: center; top: 16px; }
.tip p:last-child, .note p:last-child, .warn p:last-child { margin: 0; }
.supplies { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.5em 0; }
.supplies h3 { margin: 0 0 8px; font-size: 1.1rem; }
.supplies ul { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1.1em; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1rem/34px var(--body); text-align: center; }

/* ---------- download box */
.dl { background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin: 2em 0; overflow: hidden; border: 2px solid var(--ink); }
.dl-head { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--ink); color: #fff; }
.dl-head strong { font: 700 1.15rem var(--display); }
.dl-head .badge-free { margin-left: auto; }
.dl-preview { background: var(--paper); padding: 10px; }
.dl-preview img { margin: 0 auto; border-radius: 10px; max-height: 520px; width: auto; }
.dl-files { width: 100%; border-collapse: collapse; font-size: .92rem; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; }
.dl-files td, .dl-files th { padding: 9px 20px !important; }
.dl-check { color: #3f5f3b; font-weight: 800; white-space: nowrap; }
.dl-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.dl-foot small { color: var(--muted); flex: 1 1 260px; line-height: 1.5; }
.dl-formats { display: flex; gap: 6px; }
.dl-formats span { font: 800 .72rem var(--body); letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--ink-2); }

/* related + footer */
.related { padding: 40px 0 10px; }
.related h2 { margin-top: 0; }
.site-footer { background: var(--ink); color: #c9d3d0; margin-top: 72px; padding: 52px 0 30px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-grid h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; font-family: var(--body); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* archive */
.archive-head { padding: 44px 0 20px; }
.archive-head p { color: var(--ink-2); max-width: 44em; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 800; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* page */
.page-body { max-width: var(--read); margin: 0 auto; padding: 36px 0 20px; }
@media (max-width: 600px) {
	.dl-files th:nth-child(4), .dl-files td:nth-child(4) { display: none; }
	.dl-files td, .dl-files th { padding: 8px 10px !important; font-size: .85rem; }
}
