/* Kage Mastering — site styles */
:root {
  --bg: #0d0d0c;
  --surface: #161614;
  --surface-2: #1d1d1a;
  --line: #2b2a26;
  --text: #ede9e1;
  --muted: #9b968b;
  --accent: #e9a43c;      /* VU-meter / tube amber */
  --accent-dim: #b37a22;
  --radius: 6px;
  --max: 1120px;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  color: var(--text); font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 15px; white-space: nowrap;
}
.brand span { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a {
  color: var(--muted); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero img { width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; object-position: center 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,0) 35%, rgba(13,13,12,0.95) 100%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: 36px; }
.hero-text h1, .hero-text .kicker { text-shadow: 0 2px 16px rgba(0,0,0,0.85); }
@media (max-width: 760px) {
  .hero img { height: 240px; object-position: 62% 30%; }
  .hero::after { display: none; }
  .hero-text { position: static; padding: 28px 0 8px; }
  .nav { gap: 2px 16px; }
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
}
.card .price { font-size: 40px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.02em; }
.card .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card ul { padding-left: 18px; color: var(--muted); margin: 14px 0 24px; }
.card ul li { margin-bottom: 6px; }
.card .btn { margin-top: auto; align-self: flex-start; }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #141210; border: 1px solid var(--accent);
}
.btn:hover { background: #f3b553; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Tables ---------- */
table.rates { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
table.rates th, table.rates td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.rates td:last-child, table.rates th:last-child { text-align: right; white-space: nowrap; }
table.rates td strong { display: block; }
table.rates td span { color: var(--muted); font-size: 15px; }

/* ---------- Genre tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted);
}

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.note {
  border-left: 3px solid var(--accent); background: var(--surface);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}

.photo { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; }

.gear { columns: 2 240px; column-gap: 40px; list-style: none; padding: 0; }
.gear li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-form { max-width: 640px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 46px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field.invalid input, .field.invalid textarea { border-color: #d9534f; }
.contact-form .btn { cursor: pointer; min-height: 46px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 16px 0 0; min-height: 1.6em; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e8807c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-side p { margin-top: 0; }

.field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); min-height: 46px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 40px 12px 14px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field.invalid select { border-color: #d9534f; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-grid .photo { max-width: 360px; } }
.names { columns: 4 180px; column-gap: 32px; list-style: none; padding: 0; margin: 24px 0 8px; }
.names li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ---------- Stem guide ---------- */
ol.stems { list-style: none; padding: 0; counter-reset: stem; columns: 2 260px; column-gap: 32px; }
ol.stems li { counter-increment: stem; break-inside: avoid; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
ol.stems li::before { content: "Stem " counter(stem); font-family: var(--mono); font-size: 12px; color: var(--accent); min-width: 58px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.studio-photos { display: grid; gap: 20px; }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; gap: 28px; } }
.gear-list { list-style: none; padding: 0; margin: 8px 0 0; }
.gear-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Credits (home) ---------- */
.credits { background: var(--surface); padding: 72px 0 64px; }
.credits-title { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.credit-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.credit-names li {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--text);
}
.credit-names li:nth-child(even) { color: var(--muted); }
.credit-names li:not(:last-child)::after { content: "·"; color: var(--accent); margin: 0 0.32em; font-weight: 400; }
.credit-labels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.credit-labels ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.credit-labels li { font-size: 17px; font-weight: 600; color: var(--text); }
.credits-more { display: inline-block; margin-top: 28px; font-weight: 700; }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: auto; }

/* ---------- Purchase ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.product-art { background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 36px 20px 28px; }
.product-art img { width: 120px; height: auto; }
.product-art span { font-size: 28px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.product-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-body h2 { margin-bottom: 4px; }
.product-price { font-size: 22px; font-weight: 700; margin: 0 0 14px; }
.product-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.product-body > p { color: var(--muted); margin: 0 0 12px; }
.product-body .product-meta { color: var(--text); }
.product-body .field { margin-top: 8px; }
.product-body .btn { align-self: flex-start; cursor: pointer; min-height: 46px; border: 0; }
.product-note { font-size: 15px; margin-top: 16px !important; }
.formats { list-style: none; padding: 0; margin: 4px 0 20px; border-top: 1px solid var(--line); }
.formats li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.formats li strong { white-space: nowrap; }
