/* Torque Garage — blog of TorqueTops */
:root {
  --bg: #121214;
  --bg-elev: #19191c;
  --bg-card: #1c1c20;
  --amber: #e8a11a;
  --amber-2: #f3b43a;
  --cream: #f0e6d0;
  --text: #ece8e1;
  --muted: #9a958c;
  --line: #2c2c31;
  --max: 1120px;
  --measure: 40.5rem;
  --radius: 12px;
  --header-h: 72px;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-2); }
h1, h2, h3, h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin-top: 1.8em; }
h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1.15em; }
p.lead { font-size: 1.22rem; color: var(--cream); line-height: 1.55; }
.muted, .meta { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.measure { width: min(var(--measure), 100%); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.22rem;
  text-transform: uppercase;
}
nav.primary { display: flex; align-items: center; gap: 1.25rem; }
nav.primary a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}
nav.primary a:hover { color: var(--amber); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--amber);
  color: #161410;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--amber-2); color: #161410; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }

/* Hero */
.hero { padding: 3.4rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.hero h1 { margin-bottom: 0.7rem; max-width: 16ch; }
.hero .lead { max-width: 36rem; }

/* Cards / grids */
.section { padding: 3rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; }
.grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.15s ease;
}
a.card:hover { border-color: var(--amber); color: inherit; }
.card-art {
  background: #0e0e10;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.25rem 1.4rem;
}
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.35rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.price {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.card-actions .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* Article */
.article-hero { padding: 2.6rem 0 1.2rem; }
.article-hero .meta { font-size: 0.92rem; margin: 0.4rem 0 0; }
article.post { padding: 0 0 3.5rem; }
article.post .measure p,
article.post .measure ul { max-width: var(--measure); }
article.post ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
article.post li { margin: 0 0 0.4em; }
.product-block { margin: 2.2rem 0 0.4rem; }
.callout {
  background: var(--bg-elev);
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  color: var(--cream);
}
.callout strong { color: var(--amber); }
.disclosure {
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 1.4rem; }
@media (min-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.footer-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* Misc */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
time { font-variant-numeric: tabular-nums; }
.byline { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .brand-tag { display: none; }
  nav.primary { gap: 0.8rem; }
  .hero { padding-top: 2.2rem; }
}
