/*
Theme Name: PurrWise Picks
Theme URI: https://example.com/purrwise-picks
Author: PurrWise Picks
Description: Lightweight affiliate review theme for indoor cat product guides.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: purrwise-picks
*/

:root {
  --ink: #18201d;
  --muted: #5c6963;
  --paper: #fffdf8;
  --soft: #f4eee4;
  --line: #ded6c8;
  --leaf: #2f6b4f;
  --leaf-dark: #204a38;
  --gold: #c9852b;
  --sky: #e9f3f0;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: var(--leaf-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 29, 0.1);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner,
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.95rem;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sky);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.86) 38%, rgba(255, 253, 248, 0.16) 68%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--leaf-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 0.98;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--leaf);
  background: var(--leaf);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  color: var(--leaf-dark);
}

.section {
  padding: 58px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-title h2,
.entry-title {
  margin: 0;
  line-height: 1.12;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card,
.post-card,
.disclosure-box,
.product-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card,
.post-card {
  padding: 20px;
}

.card h3,
.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.card p,
.post-card p {
  margin: 0;
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 48px 0;
}

.entry-content {
  font-size: 1.03rem;
}

.entry-content h2 {
  margin-top: 38px;
  line-height: 1.2;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--soft);
}

.disclosure-box {
  padding: 14px 16px;
  margin: 0 0 24px;
  color: var(--muted);
  background: #fff8e8;
  font-size: 0.94rem;
}

.product-box {
  padding: 18px;
  margin: 24px 0;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.sidebar-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #f7f2ea;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-menu {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.84) 50%, rgba(255, 253, 248, 0.28) 100%),
      var(--hero-image);
    background-position: center bottom;
  }

  .grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

