@font-face {
  font-family: 'Ojuju';
  src: url('/fonts/ojuju.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

/* Nedum Labs: cream paper, plum ink, one orange module.
   Type is Ojuju by Chisaokwu Joboson. The N mark is ten modules on a four by four grid;
   on the home page it is built, iterated and scaled in a loop. */
:root {
  --field: #f4f0e7;
  --slot: #e8e0d5;
  --ink: #38283b;
  --plum: #462b45;
  --muted: #5b4e59;
  --line: #d9d0cb;
  --accent: #e87948;
  --accent-ink: #b44c27;
  --font: 'Ojuju', 'Avenir Next', 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: light;
}

::selection { background: var(--accent); color: var(--ink); }

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 580;
  line-height: 1.55;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 3px; }

/* Top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.brand svg { width: 22px; height: 22px; display: block; }
.brand path { fill: none; stroke: var(--plum); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand circle { fill: var(--accent); }

.nav { display: flex; gap: clamp(18px, 3vw, 32px); list-style: none; }
.nav { font-weight: 620; }
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current='page'] { color: var(--ink); }

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 6vh, 72px) var(--gutter);
}

.statement {
  font-weight: 660;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  max-width: 12ch;
  text-wrap: balance;
}

.stage {
  justify-self: center;
  width: min(100%, 460px);
  display: grid;
  gap: 22px;
}

#line { width: 100%; aspect-ratio: 1; display: block; }

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 1rem;
  font-weight: 620;
  color: var(--muted);
}

.phases span { display: grid; gap: 8px; transition: color 0.3s ease; }
.phases span.is-on { color: var(--ink); }

.phases i {
  display: block;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.phases i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.bottom {
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  color: var(--muted);
}

/* About */
.about {
  width: 100%;
  max-width: 44rem;
  padding: clamp(56px, 12vh, 120px) var(--gutter) 64px;
}

.about h1 {
  font-weight: 660;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.008em;
}

.intro {
  margin-top: 24px;
  font-size: clamp(1.2rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
}

.intro a { white-space: nowrap; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.intro a:hover { text-decoration-color: var(--accent); }

.list { list-style: none; margin-top: 56px; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 20px;
}

.row-name { font-weight: 660; font-size: 1.375rem; letter-spacing: 0; }
.row-note { color: var(--muted); font-weight: 600; text-align: right; }
a.row:hover .row-name { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.about h2 {
  margin-top: 72px;
  font-weight: 640;
  font-size: 1rem;
  color: var(--muted);
}

.about h2 + .list { margin-top: 14px; }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 40px;
  }

  .stage { order: -1; width: min(78vw, 340px); justify-self: start; }
  .statement { font-size: clamp(2.4rem, 10.5vw, 3.25rem); }
}
