/* Greywire Studio site styles */

:root {
  --bg: #141619;
  --surface: #1c1f23;
  --surface-2: #24282d;
  --line: #33383e;
  --text: #e8e6e1;
  --muted: #9ba0a6;
  --copper: #d07a3e;
  --copper-soft: #e9a46f;
  --signal: #5fd38a;
  --max: 1080px;
  --radius: 10px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--copper-soft); text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.8em;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 25, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 400; color: var(--muted); }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--copper); }

/* Sections */

.hero { padding: 80px 0 64px; }
.hero .lead { margin-bottom: 1.6em; }

.section { padding: 64px 0; border-top: 1px solid var(--line); }

.page-head { padding: 64px 0 40px; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: #1a1209;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--copper-soft); border-color: var(--copper-soft); color: #1a1209; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--muted); color: var(--text); }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }

.num {
  font-family: var(--mono);
  color: var(--copper);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

/* Pedal cards and pages */

.pedal-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.pedal-card:hover { border-color: var(--muted); color: var(--text); }
.pedal-card h3 { margin-bottom: 0.2em; }
.pedal-card .type { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8em; }

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  margin-right: 7px;
  vertical-align: 1px;
}

.product {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 48px;
  align-items: start;
}
.product figure { margin: 0; }
.product figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--muted); text-align: center; }

.spec { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; padding-right: 16px; font-weight: 600; }
.spec td { color: var(--muted); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { position: relative; padding-left: 22px; margin-bottom: 0.6em; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--copper);
}

.diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 24px;
}

.note {
  border-left: 3px solid var(--copper);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}
.note p:last-child { margin-bottom: 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .page-head { padding: 40px 0 24px; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product figure { max-width: 240px; margin: 0 auto; }
  .pedal-card { grid-template-columns: 90px 1fr; gap: 16px; }
  .spec th { width: 40%; }
}
