:root,
[data-theme="light"] {
  --font-body: 'General Sans', sans-serif;
  --font-display: 'Cabinet Grotesk', sans-serif;
  --bg: #f6f4ee;
  --surface: #fffdf8;
  --surface-2: #f1ede4;
  --panel: #fbf9f3;
  --line: #d9d1c4;
  --line-strong: #c9beae;
  --text: #1d1b17;
  --muted: #68645c;
  --primary: #01696f;
  --primary-2: #0c8a90;
  --primary-soft: #d9ece9;
  --accent: #d19900;
  --accent-soft: #f4ebca;
  --success: #437a22;
  --danger: #a12c7b;
  --header-bg: rgba(246, 244, 238, 0.88);
  --panel-bg: rgba(255, 253, 248, 0.82);
  --card-bg: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(241, 237, 228, 0.94));
  --card-bg-soft: linear-gradient(180deg, rgba(251, 249, 243, 0.98), rgba(241, 237, 228, 0.92));
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.05);
  --shadow-md: 0 18px 48px rgba(20, 18, 14, 0.08);
  --shadow-lg: 0 28px 72px rgba(20, 18, 14, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1240px;
  --header-h: 78px;
  --transition: 220ms cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #10120f;
  --surface: #171a18;
  --surface-2: #202420;
  --panel: #1a1d1b;
  --line: #2f342f;
  --line-strong: #434a44;
  --text: #eff1eb;
  --muted: #a5ada1;
  --primary: #4f98a3;
  --primary-2: #7fbec8;
  --primary-soft: #203338;
  --accent: #edb336;
  --accent-soft: #3a3320;
  --success: #6baa45;
  --danger: #d163a7;
  --header-bg: rgba(16, 18, 15, 0.9);
  --panel-bg: rgba(23, 26, 24, 0.84);
  --card-bg: linear-gradient(180deg, rgba(23, 26, 24, 0.98), rgba(32, 36, 32, 0.94));
  --card-bg-soft: linear-gradient(180deg, rgba(26, 29, 27, 0.98), rgba(32, 36, 32, 0.92));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(1, 105, 111, 0.1), transparent 16%),
    radial-gradient(circle at left bottom, rgba(209, 153, 0, 0.08), transparent 22%),
    var(--bg);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: transform var(--transition);
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-sm);
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 56px;
}

.custom-logo-link img {
  max-height: 46px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.desktop-nav,
.desktop-nav .menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.desktop-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta,
.btn,
.hero-search button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.header-cta,
.btn-primary,
.hero-search button,
.front-page-builder .wp-block-button.is-style-fill .wp-block-button__link,
.front-page-builder .btn.btn-primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(1, 105, 111, 0.16);
}

.header-cta:hover,
.btn:hover,
.hero-search button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.btn-secondary,
.front-page-builder .btn.btn-secondary .wp-block-button__link {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.icon-btn,
.menu-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.icon-btn:hover,
.menu-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.menu-btn {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 320;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  padding: 22px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-links,
.mobile-links .menu,
.footer-links,
.footer-links .menu {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.mobile-links a {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mobile-links .current-menu-item > a,
.mobile-links .current_page_item > a {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.mobile-cta {
  width: 100%;
  margin-top: auto;
}

.home-builder .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.home-builder .entry-content > .wp-block + .wp-block {
  margin-top: 0;
}

.home-section {
  padding: 34px 0;
}

.home-section:first-child {
  padding-top: 28px;
}

.section,
.listing-hero {
  margin-top: 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: stretch;
}

.hero-card,
.showcase-card,
.section-shell,
.content-card,
.post-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.hero-card,
.showcase-card {
  padding: clamp(22px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 105, 111, 0.18), transparent 68%);
  pointer-events: none;
}

.section-shell,
.content-card,
.empty-state {
  padding: clamp(22px, 3vw, 32px);
}

.showcase-card {
  background: var(--card-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-cover {
  margin: -8px -8px 6px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
}

.showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tools-hero {
  max-width: none;
  text-align: left;
  margin: 0;
}

.tools-hero__eyebrow,
.eyebrow,
.section-pill,
.section-puck,
.hero-chip,
.tool-card__badge,
.video-card__duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tools-hero__title,
.archive-title,
.section-title,
.single-article h1,
.page-article h1,
.listing-hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
}

.tools-hero__title {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
}

.tools-hero__title span {
  display: block;
}

.tools-hero__title .is-accent {
  color: var(--primary);
}

.archive-title,
.section-title,
.listing-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.tools-hero__description,
.archive-description,
.section-description,
.listing-hero p {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.tools-hero__description {
  max-width: 58ch;
  margin: 18px 0 0;
}

.archive-description,
.section-description,
.listing-hero p {
  margin: 12px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-start;
}

.hero-chip-row,
.hero-taxonomies {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-chip-row {
  margin-top: 20px;
}

.hero-chip {
  background: var(--panel);
  border-color: var(--line);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.hero-highlights,
.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card,
.hero-stat {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
}

.mini-card strong,
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.04em;
}

.mini-card span,
.hero-stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-search {
  margin-top: 24px;
  max-width: 760px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-search__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 999px;
}

.hero-search input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: var(--muted);
}

.hero-taxonomies {
  margin-top: 18px;
}

.hero-taxonomy {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.hero-taxonomy.is-active,
.hero-taxonomy:hover {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}

.showcase-top,
.section-head,
.post-meta,
.tool-card__top,
.tool-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.showcase-top {
  flex-wrap: wrap;
}

.showcase-top h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.showcase-list {
  display: grid;
  gap: 14px;
}

.showcase-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.showcase-item:hover,
.tool-card:hover,
.news-card:hover,
.video-card:hover,
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.showcase-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.showcase-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.showcase-link,
.section-link,
.news-card__link,
.video-card__link,
.card-link,
.post-card a {
  color: var(--primary);
  font-weight: 800;
}

.section-head {
  margin-bottom: 22px;
}

.section-heading-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.section-puck {
  background: var(--primary-soft);
  color: var(--primary);
}

.section-link {
  white-space: nowrap;
}

.tool-grid,
.news-grid,
.video-grid,
.post-grid {
  display: grid;
  gap: 18px;
}

.tool-grid,
.news-grid,
.video-grid,
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.news-card,
.video-card,
.post-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tool-card__inner,
.video-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card__inner {
  padding: 22px;
}

.tool-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-card__badge {
  background: var(--panel);
  border-color: var(--line);
  color: var(--muted);
}

.tool-card__badge.is-hot {
  background: rgba(161, 44, 123, 0.12);
  color: var(--danger);
}

.tool-card__badge.is-new {
  background: rgba(67, 122, 34, 0.14);
  color: var(--success);
}

.tool-card__badge.is-free {
  background: rgba(1, 105, 111, 0.12);
  color: var(--primary);
}

.tool-card__badge.is-ai {
  background: rgba(209, 153, 0, 0.16);
  color: var(--accent);
}

.tool-card__badge.is-plain {
  background: var(--panel);
  color: var(--muted);
}

.tool-card__title,
.news-card__title,
.video-card__title,
.post-card h2 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.52rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--text);
}

.tool-card__excerpt,
.news-card__excerpt,
.video-card__excerpt,
.post-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.tool-card__footer {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.tool-card__meta {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.tool-card__arrow {
  color: var(--primary);
  font-size: 1.1rem;
}

.news-card__thumb,
.video-card__media,
.featured-media,
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel);
}

.news-card__thumb img,
.video-card__media img,
.featured-media img,
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body,
.video-card__body,
.post-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.news-card__date,
.video-card__platform,
.post-meta span {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.video-card__media {
  display: grid;
  place-items: center;
}

.video-card__fallback {
  color: var(--primary);
  font-size: 3rem;
}

.video-card__duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(29, 27, 23, 0.86);
  color: #fff;
}

.content-shell,
.archive-shell {
  padding: 34px 0 72px;
}

.archive-hero {
  display: grid;
  gap: 18px;
}

.page-article,
.single-article,
.single-tool-shell {
  display: grid;
  gap: 20px;
}

.tool-app-shell {
  padding: 12px;
}

.tool-app-frame {
  width: 100%;
  min-height: 920px;
  border: 0;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #ffffff;
  display: block;
}

.single-content-card,
.entry-content,
.content-card {
  color: var(--muted);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content strong,
.entry-content blockquote,
.entry-content li,
.entry-content code {
  color: var(--text);
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--primary);
  background: var(--panel-bg);
  border-radius: 0 14px 14px 0;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-meta {
  margin-bottom: 16px;
}

.post-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid transparent;
}

.pagination-wrap {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.nav-links .current {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
}

.empty-state,
.compact-empty {
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text);
}

.empty-state p {
  margin: 12px auto 0;
  max-width: 720px;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent), var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-col,
.footer-widget {
  display: grid;
  gap: 12px;
}

.footer-col h4,
.footer-widget h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.footer-col p,
.footer-widget p {
  margin: 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.blk-editor-placeholder {
  min-height: 140px;
}

@media (max-width: 1180px) {
  .hero-shell,
  .tool-grid,
  .news-grid,
  .video-grid,
  .post-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .tool-grid,
  .news-grid,
  .video-grid,
  .post-grid,
  .footer-inner,
  .hero-highlights,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search__icon {
    display: none;
  }

  .showcase-item {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .showcase-link {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .tools-hero__title,
  .archive-title,
  .listing-hero h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-card,
  .showcase-card,
  .section-shell,
  .content-card,
  .empty-state {
    padding-left: 18px;
    padding-right: 18px;
  }

  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .home-section:first-child {
    padding-top: 20px;
  }

  .hero-actions .btn,
  .hero-actions .header-cta {
    width: 100%;
  }
}
