/*
Theme Name: Skillet
Theme URI: https://skillethq.com/
Author: Skillet
Author URI: https://skillethq.com/
Description: The Skillet blog theme. Matches skillethq.com: graphite header, Inter type, pistachio accents, fast and accessible. No page builder needed.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: skillet
*/

@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --graphite: #101211; --graphite-raised: #181b19; --ink: #141614; --stone: #5c605a; --muted: #6b6f69;
  --bone: #f5f4ef; --paper: #fbfaf6; --line: #e6e4dc;
  --pistachio: #8dbf5c; --pistachio-hover: #a3d072; --pistachio-deep: #4a7a2c; --pistachio-deeper: #3b6322; --mist: #f1f7ea;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px; --gutter: clamp(1rem, 4vw, 2.5rem); --radius: 16px; --radius-lg: 24px; --header-h: 72px;
  --shadow: 0 1px 2px rgba(16,18,17,.06), 0 24px 60px -24px rgba(16,18,17,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--pistachio-deep); text-underline-offset: .18em; }
a:hover { color: var(--pistachio-deeper); }
:focus-visible { outline: 3px solid var(--pistachio-deep); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); color: #f4f4f1; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__logo { display: block; }
.brand img { height: 36px; width: auto; display: block; }
.brand__blog { color: var(--pistachio); font-weight: 600; font-size: .95rem; text-decoration: none; border-left: 1px solid rgba(255,255,255,.2); padding: .35rem 0 .35rem .65rem; }
.brand__blog:hover { color: #fff; }
.nav { display: flex; gap: 1.4rem; margin-left: 1rem; }
.nav a { color: rgba(244,244,241,.88); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-cta { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: .95rem; text-decoration: none; background: var(--pistachio); color: #10170b; border: 1.5px solid var(--pistachio); transition: background .18s; }
.btn:hover { background: var(--pistachio-hover); color: #10170b; }
.btn--ghost { background: transparent; color: #f4f4f1; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #2a2e2a; color: #fff; }
@media (max-width: 860px) { .nav { display: none; } .header-cta .btn--ghost { display: none; } }

/* Blog hero */
.blog-hero { background: var(--graphite); color: #f4f4f1; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.blog-hero::after { content: ''; position: absolute; right: -200px; top: -260px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(141,191,92,.22), rgba(141,191,92,0) 65%); pointer-events: none; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pistachio); font-weight: 500; margin: 0 0 .9rem; }
.blog-hero h1 { margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; max-width: 18ch; }
.blog-hero p.lede { margin: 1.1rem 0 0; color: rgba(244,244,241,.78); font-size: 1.15rem; max-width: 58ch; }
.cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.cats a { display: inline-block; padding: .4rem .9rem; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); color: #f4f4f1; text-decoration: none; font-size: .9rem; font-weight: 600; }
.cats a:hover, .cats a.is-current { background: var(--pistachio); border-color: var(--pistachio); color: #10170b; }

/* Post grid */
.band { padding: clamp(3rem, 6vw, 5rem) 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { display: block; aspect-ratio: 16 / 10; background: var(--bone); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__img--blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--graphite), #26301f); }
.card__img--blank img { width: 64px; height: 64px; object-fit: contain; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card__meta a { color: var(--pistachio-deep); text-decoration: none; }
.card h2, .card h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; color: var(--stone); font-size: .98rem; }
.card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.card--lead .card__img { aspect-ratio: auto; min-height: 320px; }
.card--lead .card__body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
.card--lead h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--lead { grid-template-columns: minmax(0, 1fr); } .card--lead .card__img { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.empty { text-align: center; color: var(--stone); padding: 3rem 0; }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Single post */
.post-head { background: var(--graphite); color: #f4f4f1; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .9rem; margin-bottom: 1.25rem; color: rgba(244,244,241,.7); }
.crumbs a { color: rgba(244,244,241,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.post-head h1 { margin: 0; font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.post-head .excerpt { margin: 1rem 0 0; font-size: 1.2rem; color: rgba(244,244,241,.8); }
.post-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; color: rgba(244,244,241,.7); }
.post-meta b { color: #fff; font-weight: 600; }
.post-feature { margin-top: calc(-1 * clamp(0rem, 2vw, 1.5rem)); }
.post-feature img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post-feature figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.entry { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; font-size: 1.125rem; }
.entry > * + * { margin-top: 1.25em; }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; letter-spacing: -.02em; margin-top: 2.2em; }
.entry h3 { font-size: 1.3rem; line-height: 1.3; margin-top: 1.8em; }
.entry p, .entry li { color: #262a26; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--pistachio-deep); font-weight: 700; }
.entry blockquote { margin-left: 0; padding: .4rem 0 .4rem 1.25rem; border-left: 4px solid var(--pistachio); color: var(--stone); font-size: 1.2rem; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figure img { border-radius: var(--radius); display: block; }
.entry figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.entry table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry th, .entry td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.entry .wp-block-table { overflow-x: auto; }
.entry code { font-family: var(--font-mono); font-size: .92em; background: var(--bone); padding: .1em .35em; border-radius: 6px; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry .callout, .entry .wp-block-group.has-background { border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.entry a { font-weight: 600; }
.entry .wp-block-button__link { background: var(--pistachio); color: #10170b; border-radius: 12px; font-weight: 700; padding: .75rem 1.25rem; text-decoration: none; }
.alignwide { width: min(100vw - 2 * var(--gutter), 1100px); margin-left: 50%; transform: translateX(-50%); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 2rem 0 0; }
.tags a { display: inline-block; padding: .35rem .8rem; border-radius: 99px; background: var(--bone); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }

/* End-of-post CTA */
.cta-card { margin: 3rem 0 0; background: var(--graphite); color: #f4f4f1; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 1rem; position: relative; overflow: hidden; }
.cta-card::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(141,191,92,.3), rgba(141,191,92,0) 65%); }
.cta-card h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.cta-card p { margin: 0; color: rgba(244,244,241,.78); max-width: 52ch; }
.cta-card .row { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }

.related { background: var(--bone); }
.related h2 { margin: 0 0 1.5rem; font-size: 1.6rem; letter-spacing: -.02em; }

/* Pages, search, 404 */
.page-head { background: var(--graphite); color: #f4f4f1; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.08; }
.page-head p { margin: .8rem 0 0; color: rgba(244,244,241,.78); }
.search-form { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; border: 1px solid #c9ccc6; font: inherit; font-size: 1rem; }
.search-form button { min-height: 48px; padding: 0 1.1rem; border-radius: 12px; border: 0; background: var(--pistachio); color: #10170b; font: inherit; font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { background: var(--graphite); color: rgba(244,244,241,.78); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 0; font-size: .95rem; }
.site-footer .top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer .line { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.15; margin: 0; }
.site-footer .line span { color: var(--pistachio); }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,244,241,.6); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: rgba(244,244,241,.92); text-decoration: none; }
.site-footer a:hover { color: var(--pistachio); text-decoration: underline; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(244,244,241,.12); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .88rem; color: var(--muted); }
.sticky, .bypostauthor { }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
