/* garagem7.site — palette P11 (industrial gray / signal orange), type T9 (Baskerville display vs Optima text), signature device: simmer rings */
:root {
  --paper: #f5f6f7;
  --ink: #101317;
  --accent: #d64b1f;
  --muted: #6b7280;
  --shell: #0d1014;
  --plate: #e8eaed;
  --line: #cdd2d8;
  --display: 'Hoefler Text', 'Baskerville Old Face', Baskerville, Georgia, serif;
  --text: 'Optima', 'Candara', 'Gill Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
main { display: block; }
h1, h2, h3, .wm-name {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
}
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 18px; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
a:hover, a:focus-visible { color: var(--shell); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* masthead */
.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 28px;
  padding: 22px clamp(18px, 4vw, 56px);
  background: var(--shell); color: var(--paper);
  border-bottom: 4px solid var(--accent);
}
.wordmark { text-decoration: none; color: var(--paper); }
.wm-name { font-size: 24px; }
.wm-tag { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--text); }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.mainnav a {
  color: var(--paper); text-decoration: none; font-family: var(--text);
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a:focus-visible { border-bottom-color: var(--paper); color: var(--paper); }
.mainnav a.on { border-bottom-color: var(--accent); }

/* hero — S03T sticky_toc */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 78% 60%, rgba(214, 75, 31, .08) 0 120px, transparent 121px),
    radial-gradient(circle at 78% 60%, rgba(214, 75, 31, .05) 0 200px, transparent 201px),
    var(--paper);
  align-items: center;
}
.kicker { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.lede { font-size: 20px; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 12px 22px; background: var(--accent); color: #fff;
  text-decoration: none; font-size: 14px; border: 2px solid var(--accent);
}
.btn:hover, .btn:focus-visible { background: var(--shell); border-color: var(--shell); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--shell); color: #fff; }
.hero-fig { margin: 0; }
.hero-fig figcaption, .fig figcaption, .fig-note {
  font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5;
}

/* vin plate with simmer rings — signature device */
.vin-plate { width: 100%; height: auto; display: block; }
.ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
.vin-cell { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.vin-n { font-family: var(--display); font-size: 18px; fill: var(--ink); }
.vin-g { font-size: 12px; fill: var(--muted); }

/* layout with sticky toc */
.layout {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px;
  padding: 0 clamp(18px, 4vw, 56px);
}
.toc {
  position: sticky; top: 20px; align-self: start;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--plate); padding: 16px 18px; margin-top: 28px;
}
.toc strong { font-family: var(--display); font-size: 15px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.content { min-width: 0; }

/* split sections */
.split {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px;
  padding: clamp(26px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.shead h2 { position: sticky; top: 20px; }
.shead h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 10px; }
.sbody { max-width: 72ch; }
.sbody p { max-width: 68ch; }

/* wide + pagehead */
.wide { padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.layout .wide, .layout .faq { padding-left: 0; padding-right: 0; }
.narrow-cta { text-align: center; }
.pagehead { padding: clamp(30px, 5vw, 56px) clamp(18px, 4vw, 56px) clamp(18px, 3vw, 30px); }
.pagehead h1 { max-width: 24ch; }
.pagehead .lede { max-width: 68ch; }
main > .split, main > .wide, main > .procedure, main > .faq, main > .pull { padding-left: clamp(18px, 4vw, 56px); padding-right: clamp(18px, 4vw, 56px); }

/* tables */
.fig { margin: 0 0 8px; }
.fig table, table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--paper); }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--shell); color: var(--paper); font-size: 13px; }
tbody th { font-size: 14px; color: var(--ink); }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: var(--plate); }
.fig--plain { overflow-x: auto; }

/* pullquote */
.pull {
  margin: 24px 0; padding: 20px 24px;
  border-left: 6px solid var(--accent); background: var(--plate);
}
.pull p { font-family: var(--display); font-size: 21px; line-height: 1.45; margin: 0 0 10px; }
.pull cite { font-size: 14px; color: var(--muted); font-style: normal; }

/* procedure */
.procedure { padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 14px 16px 14px 62px; margin-bottom: 10px;
  background: var(--plate); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 17px;
}

/* definition list */
.defs { margin: 0; }
.defs dt { font-family: var(--display); font-size: 17px; margin-top: 14px; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 4px 0 0; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 16px; }

/* mistakes */
.mistakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.mistake { background: var(--plate); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 16px 18px; }
.mistake p { font-size: 15px; margin: 0; }

/* lists */
.lines { margin: 0; padding-left: 20px; }
.lines li { margin-bottom: 10px; }

/* faq */
.faq { padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.faq-item { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper); margin-bottom: 10px; }
.faq-item summary {
  cursor: pointer; padding: 14px 18px; font-family: var(--display);
  font-size: 16px; font-weight: 600;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 18px 16px; margin: 0; max-width: 72ch; }

/* footer */
.foot { background: var(--shell); color: var(--paper); padding: 30px clamp(18px, 4vw, 56px); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.foot a { color: var(--paper); }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footnav a { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.footnav a:hover { text-decoration: underline; }
.foot div { font-size: 15px; line-height: 1.6; }

/* scroll reveal — transform only */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .split, .wide, .faq-item { animation: rise .6s ease-out both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { transform: translateY(18px); } to { transform: translateY(0); } }
  }
}

/* mobile */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shead h2 { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .footnav { justify-content: flex-start; }
  .mainnav { margin-left: 0; }
}
