:root {
  --bg: #fafaf7; --ink: #14141a; --muted: #6b6b76; --card: #ffffff; --line: #e8e6df;
  --accent: #ff4d6d; --accent-2: #ff8a5c; --radius: 18px; --c: #ff4d6d;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Space Grotesk", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f0f14; --ink: #f4f4f6; --muted: #9a9aa6; --card: #181820; --line: #2a2a35; }
}
:root[data-theme="dark"] { --bg: #0f0f14; --ink: #f4f4f6; --muted: #9a9aa6; --card: #181820; --line: #2a2a35; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.5px; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.logo img { max-height: 40px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--muted); transition: .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a, .main-nav .current-menu-ancestor > a { background: var(--ink); color: var(--bg); }
.bar-actions { display: flex; gap: 8px; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.icon-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Search form ---------- */
.search-form { display: flex; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 20px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.search-form button { border: 0; background: var(--ink); color: var(--bg); padding: 10px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; }
.hero-search { display: flex; justify-content: center; }
.hero-search--left { justify-content: flex-start; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 80px 0 36px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); letter-spacing: -3px; line-height: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 20px auto 28px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.chips--left { justify-content: flex-start; }
.chip { font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); transition: .15s; }
.chip:hover, .chip.is-active { background: var(--c); color: #fff; border-color: var(--c); }
.chip--sm { font-size: .8rem; padding: 5px 12px; --c: var(--muted); }
.subs { align-items: center; margin-top: 10px; }

/* ---------- Sections ---------- */
.block { padding: 36px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sec-head h2 { font-size: 1.7rem; display: flex; align-items: center; gap: 10px; }
.sec-head .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }
.view-all { font-weight: 600; font-size: .92rem; color: var(--c); white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.sec-desc { margin: -8px 0 18px; }

/* ---------- Grid + cards (gradient-border style) ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid__feature { grid-column: 1 / -1; }

.card { position: relative; display: flex; padding: 2px; border-radius: 22px; background-image: linear-gradient(163deg, var(--c) 0%, #6d1230 100%); transition: all .3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 0 30px 1px color-mix(in srgb, var(--c) 45%, transparent); }
.card__in { display: flex; flex-direction: column; width: 100%; background: #1a1a1a; color: #f4f4f6; border-radius: 19px; overflow: hidden; transition: all .2s; }
.card:hover .card__in { transform: scale(.98); border-radius: 20px; }
.card__img { position: relative; display: block; aspect-ratio: 16/10; background: #23232d; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.07); }
.card__rank { position: absolute; top: 10px; left: 12px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: #fff; background: rgba(0,0,0,.6); padding: 2px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.12rem; line-height: 1.28; color: #fff; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.card__title a:hover { background-size: 100% 2px; }
.card__excerpt { margin: 0; color: #b4b4c0; font-size: .92rem; }
.card .meta { color: #9a9aa6; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: auto; }
.pill { align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); transition: .2s; }
.pill:hover { background: var(--c); color: #fff; }
.card .pill { background: color-mix(in srgb, var(--c) 22%, #1a1a1a); filter: brightness(1.25); }
.card .pill:hover { filter: none; }

.card--big .card__in { flex-direction: row; }
.card--big .card__img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.card--big .card__body { flex: 1; justify-content: center; padding: 34px; gap: 14px; }
.card--big .card__title { font-size: 2rem; }
.card--big .card__excerpt { font-size: 1.02rem; }
.card--big .meta { margin-top: 6px; }

/* ---------- Archive ---------- */
.archive-head { padding: 48px 0 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), transparent); border-bottom: 1px solid var(--line); }
.archive-head h1 { font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -2px; margin: 8px 0; }
.archive-head h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--c); margin-top: 12px; }
.archive-desc { color: var(--muted); max-width: 620px; font-size: 1.1rem; }
.count { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--c); }
.pagination { margin-top: 36px; }
.nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--card); }
.page-numbers.current, a.page-numbers:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Single post ---------- */
.single-head { padding: 48px 0 8px; }
.single-title { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -1.5px; margin: 16px 0; line-height: 1.08; }
.single-lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.byline img, .author-box img { border-radius: 50%; }
.single-cover { margin-top: 32px; }
.single-cover img { width: 100%; border-radius: 24px; max-height: 560px; object-fit: cover; }
.single-body { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; padding-top: 40px; padding-bottom: 20px; }
.single-body:not(:has(.toc:not([hidden]))) { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; border-left: 3px solid var(--line); padding-left: 16px; }
.toc strong { font-family: var(--head); display: block; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); }
.toc a:hover, .toc a.is-on { color: var(--c); font-weight: 600; }

.entry-content { font-size: 1.14rem; line-height: 1.8; overflow-wrap: break-word; }
.article .entry-content { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.85rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.entry-content h3 { font-size: 1.4rem; margin: 1.7em 0 .5em; scroll-margin-top: 90px; }
.entry-content h4 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.entry-content a { color: var(--c); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.8em 0; padding: 6px 0 6px 22px; border-left: 5px solid var(--c); font-family: var(--head); font-size: 1.4rem; line-height: 1.4; }
.entry-content blockquote p { margin: 0 0 .5em; }
.entry-content blockquote cite { font-size: .9rem; color: var(--muted); font-style: normal; font-family: var(--font); }
.entry-content pre { background: #14141a; color: #f4f4f6; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: .9rem; }
.entry-content code { background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: color-mix(in srgb, var(--c) 10%, transparent); }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; width: auto; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: 0 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-button__link { background: var(--c); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 26px; font-weight: 600; }
.entry-content .wp-block-pullquote { border-top: 4px solid var(--c); border-bottom: 4px solid var(--c); padding: 24px 0; text-align: center; }
.entry-content .has-ink-color { color: #14141a; } .entry-content .has-ink-background-color { background: #14141a; }
.entry-content .has-pink-color { color: #ff4d6d; } .entry-content .has-pink-background-color { background: #ff4d6d; }
.entry-content .has-rose-color { color: #c2184a; } .entry-content .has-rose-background-color { background: #c2184a; }
.entry-content .has-orange-color { color: #ff8a5c; } .entry-content .has-orange-background-color { background: #ff8a5c; }
.entry-content .has-peach-color { color: #ffd9cf; } .entry-content .has-peach-background-color { background: #ffd9cf; }
.entry-content .has-gray-color { color: #6b6b76; } .entry-content .has-gray-background-color { background: #6b6b76; }
.entry-content .has-cream-color { color: #fafaf7; } .entry-content .has-cream-background-color { background: #fafaf7; }
.entry-content .has-background { padding: 1.2em 1.4em; border-radius: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags a { font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.tags a::before { content: "#"; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 2em 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.share a, .share button { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--c); color: #fff; border-color: var(--c); }
.author-box { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 1rem; line-height: 1.5; }
.author-box p { margin: 6px 0 0; color: var(--muted); }
.author-box strong { display: block; font-family: var(--head); font-size: 1.15rem; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.post-nav > div { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.post-nav span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.post-nav .next { text-align: right; }
.post-nav a { font-family: var(--head); font-weight: 700; }
.post-nav a:hover { color: var(--c); }
.related { background: color-mix(in srgb, var(--c) 5%, transparent); margin-top: 24px; }

/* ---------- Page ---------- */
.article-head { padding: 48px 0 12px; }
.article-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.article-cover { margin: 0 0 24px; }

/* ---------- Tools ---------- */
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); color: #fff; min-height: 130px; transition: transform .15s; }
.tool:hover { transform: translateY(-3px); }
.tool strong { font-family: var(--head); font-size: 1.15rem; }
.tool span { opacity: .9; font-size: .9rem; }
.tool--0 { background: linear-gradient(135deg, #ff4d6d, #ff8a5c); }
.tool--1 { background: linear-gradient(135deg, #14141a, #4a1a2a); }
.tool--2 { background: linear-gradient(135deg, #e8365d, #8b1538); }
.tool--3 { background: linear-gradient(135deg, #2a2a33, #14141a); }

/* ---------- Newsletter ---------- */
.news { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 48px 24px; text-align: center; margin: 24px 0 56px; }
.news h2 { font-size: 2rem; }
.news p { opacity: .75; margin: 8px 0 22px; }
.news form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.news input { flex: 1; min-width: 200px; padding: 13px 20px; border-radius: 999px; border: 0; font: inherit; }
.news button { padding: 13px 26px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ---------- Comments ---------- */
.comments { padding-top: 32px; padding-bottom: 48px; }
.comments h2 { font-size: 1.5rem; margin-bottom: 18px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.comment-form .submit { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 24px; margin-top: 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-cats { display: flex; flex-direction: column; gap: 6px; }
.footer-cats a, .footer-menu a { color: var(--muted); }
.footer-cats a:hover, .footer-menu a:hover { color: var(--accent); }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.copy { color: var(--muted); font-size: .85rem; text-align: center; margin: 32px 0 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-body { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .card--big { flex-direction: column; }
  .card--big .card__img { min-height: 220px; }
  .card--big .card__body { padding: 22px; }
  .card--big .card__title { font-size: 1.5rem; }
  .hero { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav .next { text-align: left; }
  .author-box { flex-direction: column; }
}

/* ---------- Tool pages ---------- */
.tool__icon { font-size: 1.8rem; line-height: 1; }
.tool-app { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input[type="number"] { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1.1rem; width: 100%; }
.field input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.split-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets .chip { cursor: pointer; font-family: inherit; --c: var(--accent-2); }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.tool-warn { color: #e03131; font-weight: 600; margin: 0; }
.bar-split { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bar-split span { display: block; transition: width .25s; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.res { background: color-mix(in srgb, var(--c) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.res small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: .72rem; }
.res strong { font-family: var(--head); font-size: 1.7rem; color: var(--c); }
.res em { font-style: normal; color: var(--muted); font-size: .82rem; }
.res--hero { grid-column: 1 / -1; background: var(--c); border-color: var(--c); }
.res--hero small, .res--hero strong, .res--hero em { color: #fff; }
.res--hero strong { font-size: 2.6rem; }
.tool-note { font-size: .85rem; margin: 0; }
.breakdown summary { cursor: pointer; font-weight: 600; }
.breakdown table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
.breakdown td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.q { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.q legend { font-family: var(--head); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.qn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; margin-right: 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.opt:hover { border-color: var(--accent-2); }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.opt input { accent-color: var(--accent); }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn--ghost { background: none; border: 1px solid var(--ink) !important; color: var(--ink); }
.verdict { text-align: center; padding: 8px 0; }
.verdict__emoji { font-size: 4rem; line-height: 1; }
.verdict h2 { font-size: 2rem; margin: 10px 0; }
.verdict__msgs { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.verdict__msgs ul { margin: 8px 0 0; padding-left: 20px; }
.tool-about { margin-top: 36px; }

.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c, var(--accent)); margin-bottom: 4px; }
.card__img img[src$=".svg"] { object-fit: cover; }
.tool-app small.muted { font-weight: 400; }

/* =========================================================
   Motion, slider, footer, responsive (v1.1)
   ========================================================= */
.pill--lg { font-size: .78rem; padding: 6px 14px; display: inline-block; }
html { scroll-padding-top: 84px; }
body { overflow-x: clip; }

/* ---------- Scroll reveal ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: fadeUp .75s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0s); }

/* ---------- Hero ---------- */
.hero h1 em { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); animation: gradShift 6s linear infinite; }
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .28; z-index: -1; animation: floaty 7s ease-in-out infinite; }
.hero::before { width: 320px; height: 320px; background: var(--accent); top: -80px; left: 6%; }
.hero::after { width: 280px; height: 280px; background: var(--accent-2); bottom: -60px; right: 8%; animation-delay: -3s; }
.hero .wrap { position: relative; }

/* ---------- Header polish + micro-interactions ---------- */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header .bar { transition: height .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.site-header.scrolled .bar { height: 58px; }
.chip, .btn, .icon-btn, .tool, .pill, .share a, .share button, .page-numbers { transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, box-shadow .2s, border-color .2s; }
.chip:hover, .btn:hover { transform: translateY(-2px); }
.btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.icon-btn:hover { transform: rotate(12deg) scale(1.06); }
.tool:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.sec-head h2 .dot { animation: floaty 3s ease-in-out infinite; }

/* ---------- Tools slider (under every blog post) ---------- */
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c, var(--accent)); margin-bottom: 4px; }
.tools-slider { padding-bottom: 48px; }
.slider { position: relative; margin: 0 -20px; }
.slider__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 20px 18px; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slide.tool { flex: 0 0 min(340px, 82%); scroll-snap-align: start; min-height: 210px; justify-content: flex-start; gap: 8px; }
.slide .tool__icon { font-size: 2rem; }
.slide strong { font-size: 1.25rem; }
.tool__desc { opacity: .92; font-size: .95rem; }
.tool__cta { margin-top: auto; align-self: flex-start; background: #fff; color: #14141a; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 999px; transition: transform .2s, padding .2s; }
.slide:hover .tool__cta { transform: translateX(4px); padding-right: 22px; }
.slider-nav { display: flex; gap: 8px; }
.tools-slider.no-scroll .slider-nav { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 56px; }
.footer-logo { display: inline-block; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; margin-bottom: 10px; }
.footer-logo img, .footer-logo .custom-logo { max-height: 90px; width: auto; }
.footer-tag { letter-spacing: 2px; font-weight: 600; font-size: .85rem; margin: 6px 0 0; }
.footer-cats strong { font-family: var(--head); color: var(--ink); margin-bottom: 4px; }
.footer-cats a { width: fit-content; transition: color .2s, transform .2s; }
.footer-cats a:hover { transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-top { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; }

/* ---------- Responsive ---------- */
img, video, iframe, embed, svg { max-width: 100%; }
.entry-content iframe, .entry-content video { width: 100%; }

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card--big .card__in { flex-direction: column; }
  .card--big .card__img { min-height: 240px; flex: none; aspect-ratio: 16/9; }
  .card--big .card__body { padding: 24px; }
  .card--big .card__title { font-size: 1.6rem; }
  .single-body { padding-top: 24px; }
}
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding-left: 16px; padding-right: 16px; }
  .slider { margin: 0 -16px; }
  .slider__track { padding-left: 16px; padding-right: 16px; }
  .bar { height: 60px; padding: 0; flex-wrap: nowrap; }
  .site-header.scrolled .bar { height: 54px; }
  .logo { font-size: 1.3rem; }
  .main-nav { top: 100%; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .icon-btn { width: 42px; height: 42px; }
  .hero { padding: 44px 0 20px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero p { font-size: 1rem; }
  .sec-head { flex-wrap: wrap; align-items: flex-end; }
  .sec-head h2 { font-size: 1.4rem; }
  .block { padding: 24px 0; }
  .archive-head { padding: 32px 0 20px; }
  .single-head { padding-top: 28px; }
  .single-lead { font-size: 1.1rem; }
  .entry-content { font-size: 1.05rem; line-height: 1.75; }
  .entry-content h2 { font-size: 1.5rem; }
  .entry-content blockquote { font-size: 1.2rem; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .share a, .share button { padding: 9px 16px; }
  .news { padding: 34px 18px; border-radius: 22px; }
  .news form { flex-direction: column; }
  .news input, .news button { width: 100%; min-width: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-form button { padding: 10px 16px; }
  .tool-app { padding: 18px; border-radius: 18px; }
  .res--hero strong { font-size: 2rem; }
  .res strong { font-size: 1.4rem; }
  .presets .chip { flex: 1 1 auto; text-align: center; }
  .verdict h2 { font-size: 1.5rem; }
  .comment-list .children { padding-left: 14px; }
  .to-top { right: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
  .chip { font-size: .82rem; padding: 7px 13px; }
  .post-nav > div { padding: 12px 14px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none) {
  .card:hover, .tool:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slider__track { scroll-behavior: auto; }
}

/* =========================================================
   v1.2: logo colours, bigger logos, footer alignment, tools
   ========================================================= */
[hidden] { display: none !important; }
:root { --accent: #ff4d6d; --accent-2: #ff8a5c; }

/* Logo: black + coral (matches the LIFEIRL wordmark) */
.logo { font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.logo span { color: var(--accent); }
.site-header .logo { font-size: 2.1rem; }
.site-header .logo img, .site-header .custom-logo { max-height: 56px; width: auto; }
.site-header .bar { height: 78px; }
.site-header.scrolled .bar { height: 64px; }
.site-header.scrolled .logo { font-size: 1.8rem; }
.logo { transition: font-size .3s; }

/* Footer: clean 4-column layout, everything top-aligned */
.site-footer { padding: 64px 0 24px; }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 40px 56px;
  align-items: start;
}
.site-footer .footer-top > * { min-width: 0; }
.site-footer .footer-logo { display: inline-block; font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -2.5px; line-height: .95; margin: 0 0 14px; }
.site-footer .footer-logo img, .site-footer .footer-logo .custom-logo { max-height: 100px; width: auto; }
.site-footer .footer-tag { margin: 0; letter-spacing: 2px; font-weight: 600; font-size: .82rem; }
.site-footer .footer-cats { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .footer-cats strong { margin: 0 0 6px; font-size: 1rem; }
.site-footer .footer-cats a { line-height: 1.3; }
.site-footer .footer-bottom { margin-top: 44px; }

/* Tool pages: results appear only after the user types */
.tool-app [data-f="out"] { display: grid; gap: 18px; }
.tool-app [data-f="hint"] { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 400; }
.res--hero strong, .res--hero small, .res--hero em { color: #fff; }

/* Slider: make sure the strip is a real horizontal slider */
.slider__track { flex-wrap: nowrap; }
.slide.tool { min-width: 260px; }
.tool__icon { line-height: 1; }

@media (max-width: 1000px) {
  .site-footer .footer-top { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
  .site-footer .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-header .logo { font-size: 1.75rem; }
  .site-header.scrolled .logo { font-size: 1.55rem; }
  .site-header .bar { height: 64px; }
  .site-header.scrolled .bar { height: 56px; }
  .site-header .logo img, .site-header .custom-logo { max-height: 44px; }
  .site-footer { padding-top: 44px; }
}
@media (max-width: 640px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .slide.tool { min-width: 0; }
}
@media (max-width: 420px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
}

/* header side padding on small screens (the .bar rule had reset it to 0) */
.wrap.bar { padding-left: 16px; padding-right: 16px; }
@media (min-width: 761px) { .wrap.bar { padding-left: 20px; padding-right: 20px; } }
