/*
Theme Name: Tari Yousuo
Theme URI: https://tariyousuo.co
Author: Tari Yousuo Technologies Ltd
Description: Custom theme for the Tari Yousuo brand. Dark by default, with a light theme and a visible toggle. No page builder and no plugin required; works with the Tari Mail plugin for the newsletter and live subscriber count.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: tari-yousuo
*/

/* ==========================================================================
   Fonts: self-hosted. Source Sans 3 (everything) + IBM Plex Mono (data only).
   Latin-ext is included so names with ẹ, ọ, ṣ and similar render correctly.
   ========================================================================== */
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/source-sans-3-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/source-sans-3-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/source-sans-3-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/source-sans-3-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/source-sans-3-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/source-sans-3-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/source-sans-3-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/source-sans-3-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/source-sans-3-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/source-sans-3-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2')}

/* ==========================================================================
   Design tokens. Dark is the default; the toggle sets data-theme on <html>.
   Dark values are taken from the approved homepage comp.
   ========================================================================== */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030508;
  --surface: #0A0D10;
  --band: #0D1013;
  --card-border: #171A1D;
  --heading: #F5F4F1;
  --body: #E4E2DD;
  --muted: #C6C3BD;
  --line: #1C1F22;
  --accent: #49D8E9;
  --accent-text: #49D8E9;
  --accent-hover: #6CE2F0;
  --btn-bg: #0E7D8D;
  --btn-hover: #0B6B7A;
  --on-btn: #FFFFFF;
  --card-shadow: none;
  --danger: #E26D6D;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F8F6F2;
  --surface: #EEEAE3;
  --band: #EEEAE3;
  --card-border: transparent;
  --heading: #16181A;
  --body: #26292B;
  --muted: #666D73;
  --line: #D8D5CF;
  --accent: #35C6D8;
  --accent-text: #0E7D8D;
  --accent-hover: #25B7CB;
  --btn-bg: #35C6D8;
  --btn-hover: #25B7CB;
  --on-btn: #16181A;
  --card-shadow: 0 2px 8px rgba(22, 24, 26, 0.06);
  --danger: #C84B4B;
}
:root {
  --font-sans: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 250ms ease-out, color 250ms ease-out;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-weight: 600; }
p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 16px; left: 16px; z-index: 100; width: auto; height: auto; margin: 0; padding: 12px 16px;
  clip: auto; background: var(--surface); color: var(--heading); border: 1px solid var(--line); border-radius: 8px;
}

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 80px; padding-right: 80px; }
.container--reading { max-width: 720px; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent-text); }
.icon { display: inline-block; flex: none; vertical-align: middle; }

/* Arrow links, quiet imperatives */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading); }
.arrow-link--accent { color: var(--accent-text); }
.arrow-link:hover { color: var(--accent-text); }
.arrow-link .icon { transition: transform 250ms ease-out; }
.arrow-link:hover .icon { transform: translateX(2px); }
.arrow-link--underline { padding-bottom: 8px; border-bottom: 1px solid var(--accent-text); }

/* Buttons */
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--heading);
}
.btn-secondary:hover { border-color: var(--accent-text); color: var(--accent-text); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--heading); cursor: pointer;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.icon-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: background 250ms ease-out; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 16px; font-weight: 600; letter-spacing: 0.12em; color: var(--heading); white-space: nowrap; }
.brand span { color: var(--accent-text); }

.primary-nav__list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { font-size: 14px; color: var(--heading); padding: 4px 0; border-bottom: 1px solid transparent; }
.primary-nav__list a:hover { color: var(--accent-text); }
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current_page_item > a { border-bottom-color: var(--accent-text); }
.primary-nav .btn-cta--panel { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: inline-block; }

/* theme toggle shows the icon of the theme you would switch to */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { padding-left: 24px; padding-right: 24px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-cta--bar { display: none; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list li { border-bottom: 1px solid var(--line); }
  .primary-nav__list a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 0; }
  .primary-nav .btn-cta--panel { display: flex; margin-top: 24px; height: 48px; font-size: 16px; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero { display: grid; grid-template-columns: 5fr 4fr 2.5fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__title { font-size: 60px; line-height: 1.1; letter-spacing: -0.01em; }
.hero__title em { font-style: normal; color: var(--accent-text); }
.hero__lede { margin: 0; max-width: 38ch; font-size: 18px; color: var(--muted); }
.hero__photo { display: flex; justify-content: center; }
.hero__photo img { width: 100%; height: auto; }
.hero__photo img.only-dark { display: block; }
.hero__photo .only-light { max-width: 420px; margin-left: auto; border-radius: 8px; }
.only-light, .hero__photo img.only-light { display: none; }
[data-theme="light"] .hero__photo img.only-light, [data-theme="light"] .only-light { display: block; }
[data-theme="light"] .hero__photo img.only-dark, [data-theme="light"] .only-dark { display: none; }
.hero__aside { display: flex; flex-direction: column; gap: 16px; }
.hero__aside .rule { display: block; width: 32px; border-top: 1px solid var(--line); }
.hero__aside p { margin: 0; font-size: 18px; color: var(--muted); }
.hero__aside .by { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 48px; padding-bottom: 64px; }
  .hero__aside { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
  .hero__aside .rule { display: none; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 40px; }
  .hero__photo { justify-content: flex-start; }
  .hero__photo .only-light { margin-left: 0; }
  .hero__aside { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Pull quote */
.pullquote { display: flex; justify-content: center; padding-bottom: 64px; }
.pullquote blockquote { margin: 0; max-width: 640px; display: flex; gap: 16px; align-items: flex-start; }
.pullquote .mark { font-size: 48px; line-height: 1; color: var(--accent-text); }
.pullquote p { margin: 0; font-size: 24px; line-height: 1.5; color: var(--heading); text-align: center; }
.pullquote .hl { color: var(--accent-text); }
@media (max-width: 700px) { .pullquote p { font-size: 20px; text-align: left; } .pullquote .mark { font-size: 36px; } }

/* Three pillars */
.pillars { display: flex; flex-wrap: wrap; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; padding: 0 40px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar__n { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.pillar h2 { font-size: 32px; line-height: 1.2; }
.pillar p { margin: 0; max-width: 30ch; color: var(--muted); }
.pillar .arrow-link { align-self: flex-start; }
@media (max-width: 900px) { .pillar { border-left: 0; padding: 0; } }

/* Section heads */
.section { padding-top: 64px; }
.section--last { padding-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head__links { display: flex; gap: 24px; }

/* Post rows */
.post-list { display: flex; flex-direction: column; }
.post-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.post-list > .post-row:first-child { border-top: 0; }
.post-row:hover .post-row__title { color: var(--accent-text); }
.thumb { flex: none; width: 220px; height: 88px; border-radius: 8px; border: 1px solid var(--card-border); background: var(--surface); overflow: hidden; }
.thumb svg, .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-row__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.post-row__title { font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--heading); transition: color 150ms ease-out; }
.post-row__excerpt { max-width: 48ch; font-size: 14px; color: var(--muted); }
.post-row__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty-note { margin: 0; padding: 24px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .thumb { width: 100%; height: 120px; } .post-row__meta { white-space: normal; } }

/* Generic thumbnail graphics: flat, one accent mark */
.g-line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-acc { stroke: var(--accent); stroke-width: 2.5; }
.g-fill { fill: var(--accent); stroke: none; }

/* Offers (products and services) */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 8px; box-shadow: var(--card-shadow); }
.offer h3 { font-size: 20px; line-height: 1.2; }
.offer p { margin: 0; flex: 1; font-size: 14px; color: var(--muted); }
.offer .icon { color: var(--heading); }
.offer .arrow-link { margin-top: auto; padding-top: 12px; }

/* ==========================================================================
   Inner pages: articles, pages, archives
   ========================================================================== */
.page-head { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; }
.page-head p { margin: 0; max-width: 56ch; font-size: 18px; color: var(--muted); }
.entry__header { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.entry__title { font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; }
.entry__meta { font-size: 12px; color: var(--muted); margin: 0; }
.entry__figure { max-width: 1200px; margin: 0 auto 48px; padding: 0 24px; }
.entry__figure img { display: block; width: 100%; border-radius: 8px; }

.entry-content { padding-bottom: 64px; font-size: 18px; line-height: 1.6; color: var(--body); }
.entry-content > * + * { margin-top: 1.25em; margin-bottom: 0; }
.entry-content h2 { font-size: 32px; line-height: 1.2; margin-top: 2em; }
.entry-content h3 { font-size: 24px; line-height: 1.2; margin-top: 1.75em; }
.entry-content h4 { font-size: 20px; line-height: 1.2; margin-top: 1.5em; }
.entry-content a { color: var(--accent-text); border-bottom: 1px solid currentColor; }
.entry-content a:hover { color: var(--heading); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 8px 0 8px 24px; border-left: 1px solid var(--line); font-size: 24px; line-height: 1.5; color: var(--heading); }
.entry-content blockquote p { margin: 0; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content code, .entry-content pre { font-family: var(--font-mono); font-size: 14px; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .page-head h1, .entry__title { font-size: 34px; }
  .entry-content { font-size: 17px; }
  .entry-content blockquote { font-size: 20px; }
}

.pagination { padding: 32px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--heading); }
.pagination a.page-numbers:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pagination .page-numbers.current { border-color: var(--heading); font-weight: 600; }

.notfound { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound h1 { font-size: 48px; line-height: 1.1; }
.notfound p { margin: 0; color: var(--muted); font-size: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 96px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col--brand { flex: 2 1 260px; gap: 16px; }
.footer-col .eyebrow { color: var(--heading); }
.footer-col p { margin: 0; font-size: 14px; color: var(--muted); max-width: 30ch; }
.footer-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-list a, .footer-link { font-size: 14px; color: var(--muted); }
.footer-list a:hover, .footer-link:hover { color: var(--accent-text); }
.social { display: flex; gap: 16px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--accent-text); }
.footer-loc { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--muted); }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Catalogues: Tools, Creography, Resources
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; color: var(--heading); }
.chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip.is-active { border-color: var(--heading); font-weight: 600; }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.item-card { display: flex; }
.item-card__inner { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--card-border); border-radius: 8px; box-shadow: var(--card-shadow); overflow: hidden; transition: border-color 150ms ease-out, transform 250ms ease-out; }
a.item-card__inner:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.item-card__media { aspect-ratio: 2.5 / 1; background: var(--band); border-bottom: 1px solid var(--line); overflow: hidden; }
.item-card__media img, .item-card__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px; }
.item-card__title { font-size: 20px; line-height: 1.2; color: var(--heading); }
.item-card__excerpt { margin: 0; font-size: 14px; color: var(--muted); }
.item-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; }
.item-card__price, .item-card__soon { font-size: 12px; color: var(--muted); }
.item-card.is-soon .item-card__media, .item-card.is-soon .item-card__title { opacity: 0.7; }

.entry__lede { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--btn-bg); color: var(--on-btn); font-size: 16px; font-weight: 600; }
.entry-content a.btn-primary { color: var(--on-btn); border-bottom: 0; }
.btn-primary:hover { background: var(--btn-hover); }
.arrow-link .flip { transform: rotate(180deg); }
.arrow-link:hover .flip { transform: rotate(180deg) translateX(2px); }
