/*
Theme Name: Review Tactics
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Locked WordPress theme package for Review Tactics based on the approved exact layout.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: review-tactics-theme
*/

:root {
  --bg: #f6f4ef;
  --bg-soft: #faf8f3;
  --bg-softer: #fcfbf8;
  --panel: #ffffff;
  --panel-soft: #f7f3eb;
  --panel-soft-2: #faf7f1;
  --panel-soft-3: #f0eadf;
  --border: #d8d1c2;
  --border-soft: #ece7dc;
  --border-softer: #efeadf;
  --text: #24211c;
  --text-2: #26221d;
  --text-3: #27231e;
  --muted: #6b6963;
  --muted-2: #7a746a;
  --accent: #8b6f47;
  --accent-dark: #2b261f;
  --button-dark: #24211c;
  --shadow: 0 1px 2px rgba(0,0,0,0.04);
  --max: 1360px;
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-shell {
  min-height: 100vh;
  background: var(--bg);
}

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

.site-header {
  border-bottom: 1px solid #d9d3c7;
  background: var(--bg);
}

.site-header-top {
  padding: 16px 0;
}

.site-header-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
}

.site-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.site-title {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-description {
  margin: 10px 0 0;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.ad-slot-header {
  width: 100%;
  max-width: 420px;
  border: 1px solid #d6cfbf;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.slot-label,
.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #7a7a75;
}

.slot-copy {
  margin-top: 8px;
  font-size: 14px;
  color: #4b4a45;
}

.top-nav-wrap {
  border-top: 1px solid #d9d3c7;
  background: #fff;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a4843;
}

.top-nav a:hover,
.top-nav a:focus {
  color: #000;
}

.main-area {
  padding: 32px 0;
}

.main-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.main-panel {
  padding: 24px;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 12px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
}

.placeholder-media,
.thumb-media,
.post-card-media {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d9d2c5, #bca98d);
  overflow: hidden;
}

.placeholder-media {
  aspect-ratio: 16 / 9;
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e7e0d3, #c9b497);
}

.placeholder-fill {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.feature-title {
  margin: 20px 0 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  color: #1f1c18;
}

.feature-excerpt {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: 16px;
  line-height: 2;
  color: #4f4c46;
}

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

.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.btn:hover,
.btn:focus {
  opacity: 0.9;
}

.btn-dark {
  background: var(--button-dark);
  color: #fff;
}

.btn-light {
  border: 1px solid #cfc6b6;
  background: var(--bg-soft);
  color: var(--accent-dark);
}

.secondary-stories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.secondary-story {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
}

.secondary-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.story-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.story-title {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-2);
}

.infeed-slot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
  padding: 16px;
}

.section-divider {
  margin-top: 32px;
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #221f1a;
}

.section-copy {
  font-size: 14px;
  color: var(--muted);
}

.posts-grid {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  border-bottom: 1px solid var(--border-softer);
  padding-bottom: 24px;
}

.post-card:nth-last-child(-n + 2) {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-card-title {
  margin: 16px 0 0;
  font-size: 1.6rem;
  line-height: 1.45;
  font-weight: 600;
  color: #25211c;
}

.post-card-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.inline-slot {
  margin-top: 16px;
  border: 1px solid #dbd2c2;
  border-radius: var(--radius);
  background: var(--panel-soft-2);
  padding: 16px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.sidebar-title {
  margin: 16px 0 0;
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: #231f1a;
}

.sidebar-copy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #4f4c46;
}

.email-input {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #d7cfbf;
  border-radius: var(--radius);
  background: var(--bg-softer);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.email-input:focus {
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
  margin-top: 12px;
  text-align: center;
  background: var(--accent);
  color: #fff;
}

.ad-box {
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--panel-soft-3);
  padding: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: #4f4c46;
}

.list-stack {
  margin-top: 16px;
}

.list-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0ece3;
}

.list-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.list-link {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-3);
}

.category-pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9cfbe;
  border-radius: 3px;
  background: #faf7f2;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--accent-dark);
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
}

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

.wp-caption,
.gallery,
.alignleft,
.alignright,
.aligncenter {
  max-width: 100%;
}


@media (min-width: 640px) {
  .site-header-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 16px;
  }

  .site-header-flex > :first-child {
    min-width: 0;
  }

  .ad-slot-header {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 899px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .ad-slot-header {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .main-panel {
    padding: 18px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    border-bottom: 1px solid var(--border-softer);
    padding-bottom: 24px;
  }

  .post-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border-softer);
    padding-bottom: 24px;
  }

  .post-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .top-nav {
    gap: 10px 18px;
  }
}




.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-copy {
  color: var(--muted);
  min-width: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: #000;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .footer-legal {
    justify-content: flex-end;
  }
}


/* Minimal WordPress / Elementor compatibility */
.entry-content > * + * { margin-top: 1rem; }
.entry-content img { border-radius: var(--radius); }
.top-nav .menu { display: contents; margin: 0; padding: 0; list-style: none; }
.top-nav .menu-item { list-style: none; }
