/* DOZER Weightlifting — shared brand system
   Matches the printed manual: near-black surfaces, bone text, amber accent. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap');

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

:root {
  --ink: #0b0b0b;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --line: #282828;
  --line-soft: #1f1f1f;
  --bone: #ece9e3;
  --muted: #a09d97;
  --muted-dim: #6d6a65;
  --amber: #f2b23e;
  --amber-dim: #c98f24;
  --good: #3fbf7f;
  --bad: #e4574c;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --page: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a { color: inherit; }

img, iframe, video { max-width: 100%; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.rule { width: 44px; height: 3px; background: var(--amber); border-radius: 2px; }

.muted { color: var(--muted); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary { background: var(--amber); color: #14100a; }
.btn-primary:hover { background: #ffc45c; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------- inputs */

input, textarea, select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 178, 62, 0.16);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field + .field { margin-top: 16px; }

.error-text { color: var(--bad); font-size: 14px; margin: 12px 0 0; }
.ok-text { color: var(--good); font-size: 14px; margin: 12px 0 0; }

/* -------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 700;
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 80px;
  padding: 28px 0 40px;
  color: var(--muted-dim);
  font-size: 13px;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* ------------------------------------------------------------ misc utility */

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20, 16, 10, 0.35);
  border-top-color: #14100a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, #232323 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
