/*
Theme Name: Redline
Theme URI: https://example.com/redline
Author: Your Name
Author URI: https://example.com
Description: A bold, dark automotive theme with signature spec-stat cards (power, 0–60, price, drivetrain), a big review hero and hard-edged segmented sections. A technical display face (Chakra Petch) with a clean Inter body, per-category accents, dark and light modes, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: redline
Tags: blog, news, magazine, automotive, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
  --bg: #14161c;
  --surface: #1c1f28;
  --surface-2: #252932;
  --text: #eef1f6;
  --text-2: #b8c0cc;
  --muted: #7f8896;
  --line: #2e333f;
  --accent: #e8352e;
  --accent-ink: #ffffff;
  --accent-hover: #eef1f6;
  --accent-hover-ink: #14161c;

  --font-display: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 700;
  --lh-display: 1.08;
  --track-display: 0;

  --radius: 6px;
  --radius-ui: 4px;
  --footer-bg: #0e1014;
  --footer-text: #eef1f6;
  --footer-muted: #8b93a0;
  --footer-line: rgba(255,255,255,.12);
  --overlay: linear-gradient(180deg, rgba(8,9,12,0) 28%, rgba(8,9,12,.92) 100%);
}
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #ebedf1;
  --text: #14161c;
  --text-2: #434a56;
  --muted: #7e8692;
  --line: #e0e3e9;
  --accent: #d62218;
  --accent-ink: #ffffff;
  --accent-hover: #14161c;
  --accent-hover-ink: #ffffff;
  --footer-bg: #14161c;
  --footer-text: #eef1f6;
  --footer-muted: #8b93a0;
  --overlay: linear-gradient(180deg, rgba(20,22,28,0) 30%, rgba(20,22,28,.9) 100%);
}

body { font-size: 16.5px; }
.meta, .cat, .primary-menu a, .mobile-menu a, .section-link, .widget-title, .btn, .header-cta { font-family: var(--font-ui); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; text-transform: uppercase; }
h1, h2, h3, h4, .card__title, .mini__title, .entry-title, .section-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.entry-content { font-family: var(--font-body); }

.site-header { border-bottom: 1px solid var(--line); }
.primary-menu > li > a { font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }
.header-cta { background: var(--accent); color: #fff; border-radius: var(--radius-ui); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.cat { color: hsl(var(--cat-hue,2) 78% 62%); font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
:root[data-theme="light"] .cat { color: hsl(var(--cat-hue,2) 70% 45%); }
.card-overlay .cat { color: #fff; }
.section-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); text-transform: uppercase; }
.section-head { border-bottom: 2px solid var(--accent); padding-bottom: .5rem; }
.card__title { line-height: 1.14; }

/* ---------- Spec badges (compact) ---------- */
.rl-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; font-family: var(--font-display); font-size: .78rem; }
.rl-spec { display: inline-flex; align-items: baseline; gap: .3rem; padding: .24rem .6rem; background: var(--surface-2); border-radius: var(--radius-ui); color: var(--text); font-weight: 600; letter-spacing: .02em; }
.rl-spec__k { color: var(--muted); font-size: .66rem; text-transform: uppercase; }

/* ---------- Spec grid (single) ---------- */
.rl-single-specs { margin-bottom: 1.6rem; }
.rl-single-specs__head { display: block; font-family: var(--font-display); text-transform: uppercase; color: var(--accent); font-size: .8rem; letter-spacing: .08em; margin-bottom: .6rem; }
.rl-specgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rl-specgrid__item { background: var(--surface); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.rl-specgrid__val { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text); }
.rl-specgrid__label { font-family: var(--font-ui); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Hero ---------- */
.rl-hero__grid { display: grid; gap: 12px; }
@media (min-width: 800px) { .rl-hero__grid { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.rl-hero__big .card-overlay { height: 100%; min-height: 440px; border-radius: var(--radius); overflow: hidden; }
.rl-hero__big .card__title { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.rl-hero__side { display: grid; gap: 12px; grid-template-rows: 1fr 1fr; }
.rl-hero__side .card-overlay { min-height: 214px; border-radius: var(--radius); overflow: hidden; }
.rl-hero__side .card__title { font-size: 1.25rem; }

/* ---------- Sections ---------- */
.rl-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(32px, 4vw, 52px); }

/* ---------- Signup ---------- */
.rl-signup .signup--band { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.rl-signup .signup--band .signup__title { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.rl-signup .signup--band .signup__desc { color: rgba(255,255,255,.9); }
.rl-signup .signup--band .signup__form { min-width: 320px; }
.rl-signup .signup--band .signup__button { background: #14161c; color: #fff; }
.rl-signup .signup--band .signup__note { color: rgba(255,255,255,.82); }
@media (max-width: 760px) { .rl-signup .signup--band { grid-template-columns: 1fr; } .rl-signup .signup--band .signup__form { min-width: 0; } }

.entry-content { font-size: 1.08rem; line-height: 1.72; }
.entry-content blockquote { border-left: 3px solid var(--accent); font-style: italic; font-size: 1.2rem; }
