/* ph_base.css — reset, typography, page shell */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-font-sans);
  font-size: var(--ph-fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ph-font-display);
  font-weight: 600;
  color: var(--ph-text);
  margin: 0 0 var(--ph-space-2);
}

h1 { font-size: var(--ph-fs-xl); }
h2 { font-size: var(--ph-fs-lg); }
h3 { font-size: var(--ph-fs-md); }

p { margin: 0 0 var(--ph-space-3); }

a { color: var(--ph-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.ph-mono { font-family: var(--ph-font-mono); font-variant-numeric: tabular-nums; }
.ph-muted { color: var(--ph-text-2); }
.ph-text-sm { font-size: var(--ph-fs-sm); }
.ph-text-xs { font-size: var(--ph-fs-xs); }

/* App shell */
.ph-app {
  display: flex;
  min-height: 100vh;
}

.ph-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ph-content {
  flex: 1;
  padding: var(--ph-space-6);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Focus visibility — accessibility floor, not optional */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
