/* Pidca public site — same tokens as src/theme/tokens.ts (dark + light). */
:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --line: #e2ded5;
  --text: #121314;
  --text-dim: #5e6369;
  --label: #5f646b;
  --gap: #a93d0c;
  --aligned: #1f5f8b;
  --track: #ddd8ce;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #15171a;
    --line: #23262a;
    --text: #f2efe8;
    --text-dim: #a3a7ad;
    --label: #8a8f96;
    --gap: #ff8a3d;
    --aligned: #8cc8ff;
    --track: #2a2e33;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

main,
header,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.label,
nav a {
  font: 500 12px/1.4 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--text);
}

h1 {
  font: 600 clamp(40px, 9vw, 64px) / 1.02 'Geist', system-ui, sans-serif;
  letter-spacing: -0.035em;
  margin: 48px 0 20px;
}

h2 {
  font: 600 24px/1.25 'Geist', system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

h3 {
  font: 600 18px/1.35 'Geist', system-ui, sans-serif;
  margin: 28px 0 8px;
}

.voice {
  font: italic 400 clamp(30px, 7vw, 46px) / 1.08 'Instrument Serif', Georgia, serif;
  color: var(--text-dim);
  margin: 0 0 28px;
}

p,
li {
  color: var(--text-dim);
}

strong {
  color: var(--text);
  font-weight: 600;
}

ul {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

.meter {
  position: relative;
  height: 24px;
  margin: 40px 0 8px;
}

.meter::before {
  content: '';
  position: absolute;
  inset: 11px 0 auto;
  height: 2px;
  background: var(--track);
}

.meter .span {
  position: absolute;
  top: 6px;
  left: 22%;
  right: 34%;
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--gap) 0 2px, transparent 2px 6px);
}

.meter .dot,
.meter .ring {
  position: absolute;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.meter .dot {
  left: calc(22% - 22px);
  background: var(--gap);
}

.meter .ring {
  right: calc(34% - 22px);
  border: 2px solid var(--text);
  background: var(--bg);
}

.legend {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.legend .done {
  color: var(--gap);
}

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

.card p {
  margin: 8px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}

th {
  color: var(--text);
  font-weight: 600;
}

.updated {
  margin-top: 8px;
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
