/* Oliver Hazard — personal site.
   Design language: one statement, then small print. Black, quiet, no ornament. */

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f4f4f2;
  --muted: #8c8c88;
  --dim: #5a5a56;
  --rule: #1e1e1c;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;
  --pad: 1.4rem;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding: 0 var(--pad);
}

a { color: inherit; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- shared small print ---------- */

.eyebrow,
.site-head,
.site-foot,
.meta,
.method-number,
.entry-meta,
.entry-links {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.6rem 0 0;
  color: var(--muted);
}

.site-head .mark { text-decoration: none; color: var(--muted); }
.site-head .mark:hover { color: var(--fg); }

.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.site-head a,
.site-foot a,
.meta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--dim);
  transition: color .15s ease, text-decoration-color .15s ease;
}

.site-head a:hover,
.site-foot a:hover,
.meta a:hover { color: var(--fg); text-decoration-color: var(--fg); }

.site-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  margin: 5rem 0 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.site-foot div { display: flex; gap: 1.1rem; }

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

/* ---------- landing ---------- */

body.landing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2.6rem;
}

.statement {
  font-size: clamp(2rem, 8.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 22ch;
  padding: 34svh 0 4rem;
}

.statement a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--fg);
}

.statement a:hover { color: var(--muted); text-decoration-color: var(--muted); }

.meta { display: flex; flex-direction: column; gap: 1.9rem; }

.meta .status { color: var(--fg); max-width: 46ch; line-height: 1.55; }

.meta nav { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; }

.meta .label { color: var(--dim); }

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

/* ---------- work ---------- */

.work { max-width: 40rem; padding-top: 4rem; }

.work > .eyebrow { display: block; margin-bottom: .9rem; }

.work > h1 {
  font-size: clamp(1.8rem, 6.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.14;
  margin-bottom: 3rem;
}

.work-entry { padding: 3.4rem 0 1rem; border-top: 1px solid var(--rule); }
.work-entry:first-of-type { border-top: 0; padding-top: 0; }

.work-entry h2 {
  font-size: clamp(1.5rem, 5.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.8rem;
  margin: 1.5rem 0 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.entry-meta div { display: flex; flex-direction: column; gap: .35rem; }
.entry-meta .k { color: var(--dim); }
.entry-meta .v { color: var(--fg); }

.entry-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .42rem;
  margin: 0 0 2rem;
}

.entry-links .label { color: var(--dim); }

.entry-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--dim);
}

.entry-links a:hover { color: var(--fg); text-decoration-color: var(--fg); }

.work-entry p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.work-entry p strong { color: var(--fg); font-weight: 600; }

.work-entry p a,
.prose a,
.method-card a,
.methods-intro a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--dim);
}

.work-entry p a:hover,
.prose a:hover,
.method-card a:hover,
.methods-intro a:hover { text-decoration-color: var(--fg); }

/* ---------- essays ---------- */

.essay, .methods { max-width: 38rem; padding-top: 4.5rem; }

.essay h1, .methods h1 {
  font-size: clamp(1.8rem, 6.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.14;
  margin: .9rem 0 2.4rem;
}

.essay .eyebrow, .methods .eyebrow { display: block; }

.prose p, .methods-intro {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

.prose.lede > p:first-child { color: var(--fg); }

.prose h2 {
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin: 2.8rem 0 1.1rem;
}

.methods-intro { margin-bottom: 2.5rem; }

.method-card {
  display: flex;
  gap: 1.4rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule);
}

.method-number { color: var(--dim); flex: none; padding-top: .4rem; }

.method-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.method-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: .98rem;
}

.method-card p strong { color: var(--fg); font-weight: 600; }
.method-card p:last-child { margin-bottom: 0; }

/* ---------- bar chart (methods) ---------- */

.bar-chart { margin: 1.4rem 0 1.6rem; display: flex; flex-direction: column; gap: .85rem; }

.bar-chart > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .35rem .9rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bar-chart span { color: var(--dim); order: 0; }
.bar-chart strong { color: var(--fg); font-weight: 400; order: 0; }

.bar-chart i {
  order: 1;
  grid-column: 1 / -1;
  display: block;
  height: 2px;
  width: var(--value);
  background: var(--fg);
}

/* ---------- desktop ---------- */

@media (min-width: 46rem) {
  :root { --pad: 3.2rem; }
  body { font-size: 17px; }
  .statement { padding-top: 30svh; }
  .site-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
