/*
Theme Name: Odd Horizons
Theme URI: https://oddhorizons.com
Author: Odd Horizons
Description: A minimal, mint-green theme for beauty and home decor affiliate content. Featured post plus grid homepage, category sections, review-friendly post layout, and a built-in Amazon Associates disclosure.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: odd-horizons
*/

:root {
  --mint: #8FD9B6;
  --mint-soft: #EAF8F1;
  --mint-line: #CDEFDD;
  --green: #2F8F6B;
  --green-dark: #236F53;
  --ink: #1F2A27;
  --muted: #6B7C76;
  --bg: #FAFDFB;
  --white: #fff;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; color: var(--ink); font-weight: 600; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }
.narrow { width: min(740px, 92%); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--mint-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand img { height: 52px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.primary-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: var(--mint-soft); color: var(--green-dark); }
.nav-toggle { display: none; background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }

/* Hero / featured */
.intro { padding: 56px 0 8px; text-align: center; }
.intro h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; }
.intro h1 em { color: var(--green); }
.intro p { color: var(--muted); margin: 0 auto; max-width: 560px; }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--mint-line); border-radius: 20px; overflow: hidden; margin: 36px 0 20px; }
.featured-media { background: var(--mint-soft); min-height: 320px; display: block; }
.featured-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-body h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body p { color: var(--muted); margin: 0; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; }

/* Cards */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 48px 0 18px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head a { font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--mint-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(47, 143, 107, .12); }
.card-media { aspect-ratio: 4 / 3; background: var(--mint-soft); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--mint-soft), var(--mint-line)); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 20px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pill { align-self: flex-start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--mint-soft); color: var(--green-dark); padding: 3px 10px; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Archive */
.archive-head { padding: 48px 0 8px; text-align: center; }
.archive-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.archive-head p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.pagination { margin: 40px 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 6px 14px; border-radius: 999px; text-decoration: none; margin: 0 2px; }
.pagination .current { background: var(--mint); color: var(--ink); }

/* Single post */
.post-head { padding: 48px 0 8px; text-align: center; }
.post-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 12px 0; }
.post-meta { color: var(--muted); font-size: 14px; }
.disclosure { background: var(--mint-soft); border-left: 4px solid var(--mint); padding: 10px 16px; border-radius: 8px; font-size: 14px; color: var(--muted); margin: 20px 0; }
.disclosure a { color: var(--green-dark); }
.entry { padding-bottom: 20px; }
.entry h2 { margin-top: 2em; font-size: 28px; }
.entry h3 { margin-top: 1.6em; font-size: 22px; }
.entry img { border-radius: 12px; margin-inline: auto; }
.entry blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--mint); color: var(--muted); font-family: var(--serif); font-size: 1.1em; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--mint-line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--mint-soft); }

/* Review building blocks (use these in posts) */
.oh-product { background: var(--white); border: 1px solid var(--mint-line); border-radius: 16px; padding: 22px; margin: 2em 0; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.oh-product img { background: var(--mint-soft); border-radius: 12px; padding: 10px; }
.oh-product h3 { margin: 0 0 6px; }
.oh-product p { margin: 0 0 12px; }
.oh-button, .entry a.oh-button { display: inline-block; background: var(--green); color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.oh-button:hover, .entry a.oh-button:hover { background: var(--green-dark); color: #fff; }
.oh-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.oh-proscons > div { background: var(--mint-soft); border-radius: 12px; padding: 14px 18px; }
.oh-proscons h4 { margin: 0 0 6px; font-size: 16px; }
.oh-proscons ul { margin: 0; padding-left: 18px; }
.oh-verdict { background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 12px; padding: 16px 20px; margin: 1.5em 0; }

.related { border-top: 1px solid var(--mint-line); margin-top: 40px; padding-bottom: 20px; }

/* Footer */
.site-footer { margin-top: 70px; background: var(--mint-soft); border-top: 1px solid var(--mint-line); padding: 36px 0 28px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--green-dark); }
.footer-disclosure { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mint-line); }

/* Misc */
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.search-form { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.search-form input[type=search] { padding: 10px 16px; border: 1px solid var(--mint-line); border-radius: 999px; font: inherit; min-width: 220px; }
.search-form input[type=submit] { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 220px; }
  .oh-product { grid-template-columns: 1fr; }
  .oh-proscons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--mint-line); padding: 8px 4%; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .featured-body { padding: 24px; }
}
