:root {
  --bg: #070708;
  --surface: #161618;
  --elevated: #1c1c20;
  --fg: #f3f1ec;
  --muted: #b4b2ab;
  --subtle: #7a7872;
  --border: #2e2e32;
  --accent: #d4d6db;
  --accent-fg: #0a0a0b;
  --good: #7d9b7a;
  --warn: #c4a574;
  --bad: #c47a72;
  --gold: #d4af6a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Barlow, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgb(7 7 8 / 0.8), rgb(7 7 8 / 0.8)),
    url("gym-plate.jpg") center / cover no-repeat;
}

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 768px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: rgb(7 7 8 / 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img { width: 56px; height: 56px; object-fit: cover; }

nav { display: flex; gap: 24px; font-family: Oswald, sans-serif; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
nav a { color: var(--muted); text-decoration: none; }
nav a.on, nav a:hover { color: var(--fg); }

.wrap { width: 100%; max-width: 768px; margin: 0 auto; padding: 40px 20px; flex: 1; }

.hero { text-align: center; margin-bottom: 40px; }
h1 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.subtitle, .lede { margin-top: 12px; color: var(--muted); }
.disclaimer { margin-top: 8px; color: var(--warn); font-size: 0.9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.target-item { background: var(--elevated); border-radius: 12px; padding: 14px; text-align: center; }
.target-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 4px; }
.target-value { font-family: Oswald, sans-serif; font-size: 1.15rem; color: var(--accent); }

.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  outline: none;
}
input:focus { border-color: var(--accent); }

.btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 0.95rem Barlow, sans-serif;
  cursor: pointer;
}

.results { display: none; }
.results.show { display: block; }

.ratio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ratio-row:last-child { border-bottom: 0; }
.ratio-name { color: var(--muted); }
.ratio-value { font-family: Oswald, sans-serif; font-size: 1.4rem; font-variant-numeric: tabular-nums; }

.status { font-size: 0.75rem; margin-left: 10px; font-weight: 600; }
.status.good { color: var(--good); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }

.goal-table, .modeler-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9rem; }
.goal-table th, .modeler-table th {
  text-align: left; padding: 10px 8px; color: var(--subtle);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.goal-table td, .modeler-table td { padding: 11px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.goal-table tr:last-child td, .modeler-table tr:last-child td { border-bottom: 0; }
.pos-within { color: var(--good); font-weight: 600; }
.pos-below { color: var(--warn); }
.pos-above { color: var(--bad); font-weight: 600; }

.suggestion-item, .explain-block, .note, .modeler-note {
  background: var(--elevated);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.suggestion-title, .explain-title { font-weight: 600; margin-bottom: 6px; color: var(--accent); }
.suggestion-detail, .explain, .modeler-delta { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.explain-value { color: var(--accent); font-weight: 600; }
.explain-list { margin: 8px 0 0 18px; color: var(--muted); }
.note, .modeler-note { border-left: 3px solid var(--warn); font-size: 0.8rem; color: var(--muted); }

.readout {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--elevated);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-foot {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  background: rgb(7 7 8 / 0.55);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.site-foot img { width: 56px; height: 56px; margin-bottom: 16px; object-fit: cover; }
.site-foot a { color: var(--fg); }
.credit { margin-top: 20px; font-size: 0.75rem; color: var(--subtle); }

.list { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.list article { padding: 28px 24px; border-bottom: 1px solid var(--border); }
.list article:last-child { border-bottom: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.row h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.row h2 img { width: 1.25rem; height: 1.25rem; }
.meta { font-family: Oswald, sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.code {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.note { background: none; border: 0; padding: 0; margin: 8px 0 0; }
.items { margin-top: 16px; }
.visit {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
}
.foot-note { text-align: center; margin-top: 32px; color: var(--muted); }
.foot-note a { color: var(--fg); }
.legal { text-align: center; margin-top: 24px; font-size: 0.75rem; color: var(--subtle); }

a { color: var(--fg); }
