/* Pro-Review.ro — re-skin of the Garden Perch theme structure.
   Steel-blue drench (header, footer, closing band), amber accents,
   system font stack (Romanian diacritics need no webfont subsetting). */

/* ---------- tokens ---------- */

:root {
  --brand-deep: oklch(0.32 0.05 255);
  --brand-shade: oklch(0.27 0.045 255);
  --brand: oklch(0.45 0.08 252);
  --accent: oklch(0.79 0.13 75);
  --accent-deep: oklch(0.56 0.11 62);
  --accent-wash: oklch(0.965 0.02 85);

  --paper: oklch(0.978 0.004 250);
  --card: oklch(1 0 0);
  --ink: oklch(0.27 0.02 255);
  --ink-soft: oklch(0.44 0.018 255);
  --line: oklch(0.89 0.01 250);
  --line-strong: oklch(0.73 0.03 252);

  /* text on the brand-deep drench */
  --on-brand: oklch(0.965 0.008 250);
  --on-brand-soft: oklch(0.84 0.03 250);

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-h3: 1.3125rem;
  --text-h2: clamp(1.4375rem, 1.15rem + 1.4vw, 1.875rem);
  --text-h1: clamp(1.875rem, 1.3rem + 2.8vw, 2.75rem);

  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(3rem, 3vw + 2rem, 4.5rem);

  --measure: 42rem;
  --gutter: 1.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.65;
  font-kerning: normal;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--brand-deep);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

a { color: var(--brand); }

a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 10;
  background: var(--accent);
  color: var(--brand-shade);
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: top 0.15s var(--ease-out);
}

.skip-link:focus { top: 0.5rem; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-wide { max-width: 58rem; }

/* seed-rule: fine ornamental divider, three amber diamonds on a hairline */
.seed-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 0;
  margin: var(--space-lg) 0;
}

.seed-rule::before,
.seed-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.seed-rule svg { display: block; color: var(--accent-deep); }

/* ---------- header (drenched) ---------- */

.site-header {
  background: var(--brand-deep);
  color: var(--on-brand);
  border-bottom: 5px double var(--accent);
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1rem, 2.5vw, 1.5rem);
}

.site-header .wrap {
  max-width: 58rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 2rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9375rem);
  color: var(--on-brand);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--accent); }

.tagline {
  margin: 0;
  color: var(--on-brand-soft);
  font-size: var(--text-sm);
  flex-basis: 100%;
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--on-brand);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 34rem) {
  .site-nav { margin-left: 0; }
}

/* ---------- article ---------- */

.site-main { padding: var(--space-xl) 0; }

/* pages that end in the drenched closing band meet the footer flush */
.site-main:has(.closing-band) { padding-bottom: 0; }

.article-header h1 { font-size: var(--text-h1); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin: var(--space-sm) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--accent-deep);
  rotate: 45deg;
}

.meta-cat {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.meta-cat:hover { text-decoration: underline; }

.intro {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: var(--space-md) 0 0;
  text-wrap: pretty;
}

.fine-note {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin: var(--space-sm) 0 0;
}

/* ---------- review body (markdown content) ---------- */

.review-body h2 {
  font-size: var(--text-h2);
  margin: var(--space-lg) 0 var(--space-sm);
}

.review-body h3 {
  font-size: var(--text-h3);
  margin: var(--space-md) 0 var(--space-xs);
}

.review-body p, .review-body li { text-wrap: pretty; }

.review-body ul, .review-body ol { margin: 0 0 1em; padding-left: 1.5rem; }

.review-body li { margin-bottom: 0.375rem; }

.review-body img {
  margin: var(--space-md) auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -7px;
  padding: 12px;
}

.review-body blockquote {
  margin: var(--space-md) 0;
  padding: 0.75rem 1.125rem;
  background: var(--accent-wash);
  border: 1px solid oklch(0.88 0.06 85);
  color: var(--ink-soft);
  font-style: italic;
}

.review-body blockquote p:last-child { margin-bottom: 0; }

.review-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--space-lg) 0;
}

/* comparison tables */
.review-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
  background: var(--card);
  border: 1px solid var(--line-strong);
}

.review-body th {
  background: var(--brand-deep);
  color: var(--on-brand);
  text-align: left;
  font-weight: 600;
  padding: 0.625rem 0.75rem;
}

.review-body td {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.review-body tr:nth-child(even) td { background: oklch(0.97 0.005 250); }

@media (max-width: 44rem) {
  .review-body table { display: block; overflow-x: auto; }
}

/* affiliate product pick */
.review-body .affiliate,
.affiliate {
  background: var(--accent-wash);
  border: 1px solid oklch(0.88 0.06 85);
  padding: 0.75rem 1rem;
  margin: var(--space-sm) 0;
  font-size: var(--text-sm);
}

.affiliate strong {
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.affiliate a { color: var(--brand); }

/* ---------- closing band (drenched): related reviews ---------- */

.closing-band {
  margin-top: var(--space-xl);
  background: var(--brand-deep);
  color: var(--on-brand);
  border-top: 5px double var(--accent);
  padding: var(--space-xl) 0;
}

.closing-band h2 {
  color: var(--on-brand);
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.closing-band .wrap { max-width: 58rem; }

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 44rem) {
  .related-list { grid-template-columns: 1fr 1fr; }
}

.related-list a {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-sm);
  align-items: center;
  color: var(--on-brand);
  text-decoration: none;
  border: 1px solid oklch(0.45 0.05 253);
  padding: 0.625rem;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.related-list a:hover {
  border-color: var(--accent);
  background: var(--brand-shade);
  color: var(--on-brand);
}

.related-list img {
  width: 4.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--card);
}

.related-list a:not(:has(img)) { grid-template-columns: 1fr; }

.related-list .related-title {
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1.3;
}

.hub-cta {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.hub-cta:hover { color: var(--on-brand); border-bottom-color: var(--on-brand); }

/* ---------- home & hub grids ---------- */

.hub-header h1 { font-size: var(--text-h1); }

.hub-header .intro { margin-top: var(--space-sm); }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}

.hub-grid .card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -6px;
  padding: 9px;
  transition: translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.hub-grid .card:hover {
  translate: 0 -3px;
  box-shadow: 0 10px 24px -14px oklch(0.32 0.05 255 / 0.45);
}

.hub-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hub-grid h2, .hub-grid h3 {
  font-size: var(--text-body);
  line-height: 1.3;
  padding: 0.75rem 0.25rem 0.375rem;
}

.hub-grid a {
  color: var(--brand-deep);
  text-decoration: none;
}

.hub-grid a:hover { color: var(--brand); }

.card-meta {
  padding: 0 0.25rem 0.375rem;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.section-label {
  color: var(--accent-deep);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cat-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cat-list a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 0.375rem 0.875rem;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: border-color 0.15s var(--ease-out);
}

.cat-list a:hover { border-color: var(--accent-deep); color: var(--brand); }

.cat-count {
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

/* ---------- boilerplate pages ---------- */

.boilerplate h1 { font-size: var(--text-h1); margin-bottom: var(--space-md); }

.boilerplate h2 { font-size: var(--text-h2); margin: var(--space-lg) 0 var(--space-sm); }

.boilerplate { padding-bottom: var(--space-xl); }

/* ---------- footer (drenched) ---------- */

.site-footer {
  background: var(--brand-shade);
  color: var(--on-brand-soft);
  padding: var(--space-lg) 0;
  font-size: var(--text-sm);
}

body:has(.closing-band) .site-footer {
  border-top: 1px solid oklch(0.45 0.05 253);
}

.site-footer .wrap { max-width: 58rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: var(--on-brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.ai-note {
  margin: var(--space-md) 0;
  padding: 0.875rem 1.125rem;
  border: 1px solid oklch(0.45 0.05 253);
  color: var(--on-brand-soft);
  max-width: 34rem;
  text-wrap: pretty;
}

.ai-note strong { color: var(--accent); font-weight: 700; }

.ai-note a { color: var(--on-brand); }

.ai-note a:hover { color: var(--accent); }

.copyright { margin: 0; color: var(--on-brand-soft); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
