/*
Theme Name: Aroostook Reviews
Theme URI: https://reviews.aroostook.me
Author: Aroostook Reviews
Author URI: https://reviews.aroostook.me
Description: Editorial, community-focused review and consumer guide theme for Aroostook County, Maine. Replicates the Aroostook Reviews design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aroostook-reviews
Tags: blog, review, local, editorial, accessibility-ready
*/

/* paste the full editorial stylesheet below */
/* ============================================================
   Aroostook Reviews — editorial stylesheet
   Warm, local, newspaper-inspired. Less "template", more place.
   ============================================================ */

:root {
  --bg: #f5efe4;
  --bg-deep: #efe7d6;
  --surface: #fffdf7;
  --surface-2: #f0e9d9;
  --text: #1c1a17;
  --text-muted: #5a534a;
  --text-soft: #7a7268;
  --primary: #2a4a3a;        /* forest green */
  --primary-dark: #1a3326;
  --primary-soft: #e4ece6;
  --accent: #9a4a20;         /* burnt amber (darkened for contrast) */
  --accent-soft: #f3e2d5;
  --success: #2a6b4a;
  --danger: #a63a2a;
  --border: #e2d9c9;
  --border-strong: #cfc3ae;
  --shadow-sm: 0 1px 0 rgba(28,26,23,.06);
  --shadow: 0 8px 24px rgba(28,26,23,.08);
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --maxw: 1180px;
  --header-h: auto;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; filter: saturate(.92) contrast(1.02); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Masthead / Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 3px double var(--border-strong);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: none;
}
.top-strip {
  border-bottom: 1px solid var(--border);
  font-size: .78rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase;
}
.top-strip .container { display: flex; justify-content: space-between; padding: 6px 24px; }
.masthead {
  text-align: center; padding: 18px 0 10px;
}
.brand {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-display); font-weight: 700; color: var(--text); text-decoration: none;
  letter-spacing: -.01em;
}
.brand-mark {
  display: none;
}
.brand-name {
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1;
  font-variation-settings: "opsz" 144, "wght" 700;
}
.brand-name .amp { font-style: italic; font-weight: 400; color: var(--accent); }
.brand-tag {
  font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}
.site-header .nav-row {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}
.nav {
  display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.nav a {
  padding: 6px 14px; color: var(--text); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
  border-right: 1px solid var(--border-strong);
}
.nav a:last-child { border-right: none; }
.nav a:hover { color: var(--accent); text-decoration: none; background: none; }
.nav a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 10px; font-size: 1.1rem; }
@media (max-width: 760px) {
  .top-strip .container { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: center; }
  .nav-toggle { display: inline-flex; margin: 0 auto 8px; }
  .site-header .nav-row { text-align: center; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: .9rem;
  border: 1px solid var(--border-strong); text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  cursor: pointer; background: var(--surface); color: var(--text);
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #7e3d1a; border-color: #7e3d1a; color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-outline.active { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-link { background: none; border: none; padding: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--accent); }

/* ---------- Hero (editorial) ---------- */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: var(--accent); margin-bottom: 14px;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 600;
  font-variation-settings: "opsz" 144;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 24px; max-width: 560px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .meta { font-size: .85rem; color: var(--text-soft); }

.hero-card {
  background: var(--surface); border: 1px solid var(--border-strong); padding: 24px;
}
.hero-card h3 { font-family: var(--font-display); margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; }
.hero-card .stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--border-strong); font-size: .9rem; }
.hero-card .stat:last-child { border-bottom: none; }
.hero-card .stat b { color: var(--primary); font-family: var(--font-display); font-size: 1.1rem; }
.hero-card .stat-label { color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section.alt { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; border-bottom: 1px solid var(--border-strong); padding-bottom: 12px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.01em; }
.section-head .eyebrow { margin-bottom: 6px; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Cards (editorial rows) ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.card:hover { border-color: var(--primary); text-decoration: none; }
.card-media { aspect-ratio: 3/2; background: var(--bg-deep); overflow: hidden; border-bottom: 1px solid var(--border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 8px;
}
.card-tag::before { content: "— "; color: var(--text-soft); }
.card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.18rem; line-height: 1.2; font-weight: 600; }
.card p { margin: 0 0 12px; color: var(--text-muted); font-size: .92rem; line-height: 1.5; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-soft); padding-top: 10px; border-top: 1px dotted var(--border); }
.stars { color: var(--accent); letter-spacing: 1px; font-size: .85rem; }

/* ---------- Review article ---------- */
.review-hero { padding: 40px 0 20px; border-bottom: 1px solid var(--border-strong); }
.review-hero .crumbs { color: var(--text-soft); font-size: .82rem; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.review-hero .crumbs a { color: var(--text-muted); }
.review-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; letter-spacing: -.01em; font-weight: 600; line-height: 1.1; }
.review-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: .85rem; margin-bottom: 6px; align-items: center; }
.review-meta .badge { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: var(--radius); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.review-meta .sep { color: var(--border-strong); }
.review-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 36px 0 60px; }
@media (max-width: 900px) { .review-body { grid-template-columns: 1fr; } }
.review-content h2 { margin: 32px 0 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.review-content h3 { margin: 22px 0 6px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.review-content p { margin: 0 0 16px; }
.review-content ul, .review-content ol { margin: 0 0 16px; padding-left: 22px; }
.review-content li { margin-bottom: 6px; }
.review-content blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 20px 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--text);
}
.sidebar-card { background: var(--surface); border: 1px solid var(--border-strong); padding: 22px; position: sticky; top: 100px; }
.sidebar-card h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.sidebar-card .price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 6px 0 14px; }
.affiliate-note { font-size: .78rem; color: var(--text-soft); margin-top: 12px; line-height: 1.45; border-top: 1px dotted var(--border); padding-top: 10px; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--border-strong); padding: 32px; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; background: var(--surface); color: var(--text); transition: border-color .12s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { font-size: .8rem; color: var(--text-soft); margin-top: 4px; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #e8e2d6; padding: 48px 0 20px; margin-top: 40px; border-top: 3px double var(--accent); }
.site-footer a { color: #f3e2d5; }
.site-footer a:hover { color: #fff; }
.site-footer .grid-4 { gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; font-size: .9rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: #bfb8aa; }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: var(--primary); border: 1px solid var(--primary); padding: 4px 10px;
}
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 20px; margin: 20px 0; }
.callout strong { color: var(--accent); }
.disclosure { background: var(--surface-2); border-left: 3px solid var(--text-soft); padding: 14px 18px; font-size: .85rem; color: var(--text-muted); margin: 18px 0; line-height: 1.5; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty h3 { color: var(--text); font-family: var(--font-display); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--primary-dark); color: #fff; padding: 12px 22px; border-radius: var(--radius); opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; font-size: .9rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 10px; top: 10px; background: var(--primary); color: #fff; padding: 8px; border-radius: var(--radius); z-index: 100; }

/* HR divider utility */
.hr { border: none; border-top: 1px solid var(--border-strong); margin: 24px 0; }
.hr-double { border: none; border-top: 3px double var(--border-strong); margin: 24px 0; }

@media print { .site-header, .site-footer, .btn { display: none; } }

