/* ==========================================================================
   Shared design system — fonts, tokens, reset, and typography scale.
   Used by the homepage and every /work page so the whole site reads as one
   consistent voice. Homepage-only layout lives in home.css; work-section
   layout lives in work/work.css.
   ========================================================================== */

@font-face {
  font-family: 'iaWriter';
  src: url('iAWriterMonoS-Regular.woff2') format('woff2'),
       url('iAWriterMonoS-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #ffffff;
  --fg: #33333A;
  --hover: #555;
  --muted: #999;
  --line: #e4e4e6;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'iaWriter', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* ---------- Typography scale ---------- */

/* Small uppercase label — section tags, meta info, nav */
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Page title — one per page, e.g. "Work" or a project name */
.page-title {
  font-size: 26px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

/* Secondary title — section headers within a page, e.g. Problem/Process/Results */
.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-title:first-of-type { margin-top: 32px; }

/* Sub-heading — numbered steps or minor headings inside a section */
.subheading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fg);
  margin: 24px 0 8px;
}
.subheading:first-child { margin-top: 0; }

/* General/body text — normal case, comfortable reading measure */
.body-text {
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: 640px;
}
.body-text + .body-text { margin-top: 14px; }

.body-list {
  list-style: none;
  max-width: 640px;
}
.body-list li {
  font-size: 14px;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0.01em;
  padding-left: 16px;
  position: relative;
}
.body-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.body-list li + li { margin-top: 6px; }

/* Numbered variant — use <ol class="body-list"> for the same spacing,
   size, and marker color as <ul class="body-list">, but auto-numbered. */
ol.body-list { counter-reset: body-list; }
ol.body-list li { counter-increment: body-list; }
ol.body-list li::before { content: counter(body-list) '.'; }

/* Meta row — Role · Team · Year style breadcrumbs */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.meta-row span:not(:last-child)::after {
  content: '\00B7';
  margin: 0 8px;
  color: var(--line);
}

/* Image captions */
.caption {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 8px;
}

/* Nav / back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--fg); }

/* Image placeholder block — swap the <img src> later with real screenshots */
.image-block { margin: 20px 0; }
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Fade-up entrance, reused wherever content is revealed */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.fade-up {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.35s forwards ease-out;
}
