/* Layout: a product page. Left = visual for the selected skill + gallery of skills; right = buy box (title, availability, skill picker, spec sheet, contact). */
:root {
  --bg: #fafaf8;
  --surface: #efeeea;
  --ink: #121211;
  --muted: #74726c;
  --rule: #e2e0db;
  --stock: #1f8a4c;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #1c1c1a; --ink: #f1f0ec; --muted: #9a988f; --rule: #2c2b28; --stock: #4cc27f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Top bar */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.bar .brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.bar nav { display: flex; gap: 20px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--ink); }
.bag { display: inline-flex; align-items: center; gap: 6px; }
.bag b { font-family: var(--mono); font-weight: 500; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--bg); }

.crumbs { padding: 14px var(--gutter) 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }

/* Product */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 20px var(--gutter) 64px;
  max-width: 1320px;
  margin: 0 auto;
}

.visual { display: grid; gap: 10px; align-content: start; min-width: 0; }
.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.stage .big {
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  padding: 0 6%;
  text-wrap: balance;
}
.stage .corner { position: absolute; }
.stage .tl { top: 16px; left: 16px; }
.stage .br { bottom: 16px; right: 16px; text-align: right; }
.stage .bl { bottom: 16px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 60%; }
.tool { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 999px; }
.fade { transition: opacity 0.28s ease, transform 0.28s ease; }
.fade.is-out { opacity: 0; transform: translateY(6px); }

.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumb {
  aspect-ratio: 1 / 1; max-width: 100%;
  border: 1px solid transparent; background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; padding: 8px;
  display: grid; align-content: space-between; justify-items: start; text-align: left;
}
.thumb span:last-child { font-size: 12px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb:hover { border-color: var(--muted); }

/* Buy box */
.buy { display: grid; gap: 22px; align-content: start; min-width: 0; position: sticky; top: 20px; }
.buy h1 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.buy .sub { margin: 6px 0 0; font-size: 18px; color: var(--muted); letter-spacing: -0.01em; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--stock); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stock) 18%, transparent); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
legend b { font-weight: 500; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants label { position: relative; }
.variants input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variants span {
  display: inline-block; padding: 8px 14px; font-size: 14px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--bg);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.variants label:hover span { border-color: var(--muted); }
.variants input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.variants input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.desc { margin: 0; font-size: 16px; line-height: 1.55; max-width: 52ch; }

.specs { margin: 0; border-top: 1px solid var(--ink); }
.specs .row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { padding-top: 2px; }
.specs dd { margin: 0; font-size: 14px; }

.actions { display: grid; gap: 10px; }
.btn {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%; padding: 15px 18px; font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  text-decoration: none; cursor: pointer; transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { opacity: 1; background: var(--surface); }
.btn:focus-visible, .thumb:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.email { font-family: var(--mono); font-size: 13px; }

details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 56ch; }

.reassure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.reassure div { display: grid; gap: 2px; font-size: 13px; align-content: start; min-width: 0; }
details p { line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bar nav a:not(.bag) { display: none; }
}
@media (max-width: 420px) {
  .reassure { grid-template-columns: minmax(0, 1fr); }
  .specs .row { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fade, .toast, .variants span { transition: none; }
}
