/* skeleton.css — styles the THROWAWAY test-harness to the ExoHelix design system.
   Styling the skeleton is itself a test: it proves the self-hosted fonts + tokens render on host.
   All CSS is external (strict CSP forbids inline <style> and style attributes). */
@import url('/design-tokens.css');

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--sp-4xl) var(--container-x) var(--sp-4xl);
}

/* Header */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--helix-teal);
  margin: 0 0 var(--sp-md);
}
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--sp-sm);
}
.lede { color: var(--text-secondary); font-size: var(--fs-body-large); margin: 0 0 var(--sp-2xl); }
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: var(--sp-2xl) 0 var(--sp-md);
}
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); margin: 0 0 var(--sp-sm); }

/* Cards — white on off-white, hairline at rest */
.card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hairline);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-md); }
.cat {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.meta { color: var(--text-secondary); font-size: var(--fs-body-small); margin: var(--sp-xs) 0 var(--sp-md); }
.tally {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  font-feature-settings: 'tnum';
  color: var(--helix-teal);
}
.tally .unit { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-tertiary); letter-spacing: 0.05em; }

/* Controls */
label.check { display: flex; align-items: center; gap: var(--sp-sm); cursor: pointer; margin: var(--sp-sm) 0; user-select: none; }
input[type=text], textarea, select {
  width: 100%;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  border: none;
  box-shadow: var(--shadow-hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
input[type=text]:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 2px var(--helix-teal); }
textarea { min-height: 64px; resize: vertical; }
.field { margin-bottom: var(--sp-md); }
.field-label { display: block; font-weight: 500; font-size: var(--fs-body-small); margin-bottom: var(--sp-xs); }

button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--off-white);
  background: var(--helix-teal);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
}
button:hover { background: var(--teal-light); }
button.secondary { background: var(--off-white); color: var(--graphite); box-shadow: var(--shadow-hairline); }
button.secondary:hover { background: var(--surface-tinted); }
.row { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: flex-end; }

/* Comments */
.comment { padding: var(--sp-sm) 0; box-shadow: inset 0 1px 0 var(--hairline); }
.comment .who { font-weight: 600; font-size: var(--fs-body-small); }
.comment .when { color: var(--text-tertiary); font-size: var(--fs-caption); font-family: var(--font-mono); }

/* Badge */
.badge {
  display: inline-block;
  background: var(--helix-teal);
  color: var(--off-white);
  font-size: var(--fs-caption);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  letter-spacing: 0.02em;
}
.badge.dropped { background: var(--text-tertiary); }
.badge.picked { background: var(--teal-dark); }

/* Admin band — visually distinct (graphite) so it's obviously privileged */
.admin {
  background: var(--surface-dark);
  color: var(--text-inverse-primary);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
.admin h2 { color: var(--off-white); margin-top: 0; }
.admin .eyebrow { color: var(--teal-light); }
.admin input[type=text], .admin textarea, .admin select { box-shadow: 0 0 0 1px rgba(251,251,250,0.15); }

/* State readout */
#state-readout {
  font-family: var(--font-mono);
  font-size: var(--fs-body-small);
  background: var(--graphite);
  color: var(--text-inverse-secondary);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  overflow-x: auto;
  white-space: pre;
}

.notice { padding: var(--sp-md); border-radius: var(--radius-md); box-shadow: var(--shadow-hairline); background: var(--white); }
.notice.error { color: var(--teal-dark); }
.hidden { display: none; }
.flex1 { flex: 1; }
.flex2 { flex: 2; }
.mb-md { margin-bottom: var(--sp-md); }
.status-line { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-tertiary); margin-top: var(--sp-sm); min-height: 1em; }

@media (max-width: 640px) {
  .wrap { padding: var(--sp-2xl) var(--container-x); }
  h1 { font-size: var(--fs-display-mobile); }
}
