/* Review site shell: the presentation system (Instrument Serif, Inter, IBM Plex Mono, white, one red).
   Product screens never use this file; they load their own Direction B styles inside the frame. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Bare black and white. The review shell carries no colour; product screens bring their own. */
  --ink: #000000;
  --ink-2: #444444;
  --muted: #888888;
  --line: #e6e6e6;
  --line-2: #cccccc;
  --ground: #ffffff;
  --ground-2: #f5f5f5;
  --red: #000000;
  --red-tint: #f0f0f0;
  --green: #000000;
  --green-tint: #f0f0f0;
  --amber: #444444;
  --amber-tint: #f5f5f5;
  --navy: #444444;
  --navy-tint: #f0f0f0;
  --serif: 'Inter', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 0 0 1px #e6e6e6, 0 8px 24px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.brand small { display: none; }
.topbar nav { display: flex; gap: 4px; margin-left: -12px; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.topbar nav a:hover { background: var(--ground-2); }
.topbar nav a[aria-current="page"] { color: var(--ink); background: var(--ground-2); font-weight: 500; }

/* type */
.eyebrow { font: 500 13px/1 var(--sans); color: var(--muted); margin: 0 0 12px; }
h1, .h1 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; margin: 0; }
h2, .h2 { font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--sans); letter-spacing: -.01em; margin: 0; }
h3 { font: 600 17px/1.3 var(--sans); margin: 0; }
h1 em, h2 em { font-style: normal; color: inherit; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 15px; cursor: pointer; }
.btn:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ground-2); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: #222; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans);
  padding: 5px 8px; border-radius: 6px; background: var(--ground-2); color: var(--ink-2); }
.tag--red { background: var(--red-tint); color: var(--red); }
.tag--green { background: var(--green-tint); color: var(--green); }
.tag--amber { background: var(--amber-tint); color: var(--amber); }
.tag--navy { background: var(--navy-tint); color: var(--navy); }

/* fields */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius); font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 300;
  transition: .2s ease; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 600px) {
  .brand small { display: none; }
  .topbar__in { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 4px; }
  .topbar nav { margin-left: 0; width: 100%; padding-bottom: 6px; }
  .topbar nav a { padding: 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
