:root {
  --bg: #F2F1EA;
  --ink: #111611;
  --muted: #5C635B;
  --line: rgba(17, 22, 17, .18);
  --accent: #2E7D3A;
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --theme: .7s var(--ease);
}

html[data-theme="dark"] {
  --bg: #0D110D;
  --ink: #ECEBE3;
  --muted: #9BA298;
  --line: rgba(236, 235, 227, .2);
  --accent: #A6E66E;
}

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

html {
  background: var(--bg);
  transition: background-color var(--theme);
  -webkit-text-size-adjust: 100%;
}
html[data-motion="on"] { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: color var(--theme);
}

body * { transition: color var(--theme), border-color var(--theme), background-color var(--theme); }

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

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip {
  position: fixed; left: var(--pad); top: -4rem; z-index: 20;
  padding: .5rem .75rem; background: var(--ink); color: var(--bg);
  font: 500 .8125rem var(--mono);
}
.skip:focus { top: .75rem; }

/* field */
#field {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* type */
.label, dt {
  font: 400 .8125rem/1.4 var(--mono);
  color: var(--muted);
}

h1 {
  font: 500 clamp(2.75rem, 8.6vw, 9.25rem)/.9 var(--sans);
  font-stretch: 88%;
  letter-spacing: -.035em;
}
.wider { display: inline-block; font-stretch: 125%; }
.js .wider { transition: font-stretch 1.8s var(--ease) .35s; }
.js .wider:not(.is-wide) { font-stretch: 62%; }

.statement {
  font: 500 clamp(1.75rem, 3.6vw, 3.5rem)/1.05 var(--sans);
  font-stretch: 88%;
  letter-spacing: -.025em;
  max-width: 22em;
}

h3 {
  font: 500 1.25rem/1.2 var(--sans);
  font-stretch: 92%;
  letter-spacing: -.01em;
}

.lede { font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.fine { font-size: .9375rem; color: var(--muted); max-width: 34em; }

/* header */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--pad);
  font: 400 .8125rem/1 var(--mono);
  background: var(--bg);
}
/* the logo is a mask so it takes the ink colour in both themes */
.brand {
  display: block; margin-right: auto;
  height: 1.125rem; aspect-ratio: 1480 / 124;
  background: var(--ink);
  -webkit-mask: url(assets/logo.png) left center / contain no-repeat;
  mask: url(assets/logo.png) left center / contain no-repeat;
}
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.motion {
  font: inherit; color: var(--muted); background: none; cursor: pointer;
  border: 0; padding: .5rem 0;
}
.motion:hover { color: var(--ink); }
.motion span { color: var(--ink); }

/* layout */
main { position: relative; z-index: 1; }

section { padding: 16vh var(--pad) 14vh; }

.head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 clamp(3rem, 10vh, 7rem);
}

.col { max-width: min(46vw, 44rem); }
.col > * + * { margin-top: 1.75rem; }

.status {
  display: inline-flex; align-items: center; gap: .6em;
  font: 400 .8125rem/1 var(--mono);
  color: var(--ink);
}

.dot, .ring { display: inline-block; flex: none; width: .6rem; height: .6rem; border-radius: 50%; }
.dot { background: var(--accent); }
.ring { border: 1.5px solid var(--ink); }

/* hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1.5rem, 4vh, 3rem);
  padding-top: 22vh; padding-bottom: 9vh;
}

/* notes */
.notes { margin-top: clamp(3rem, 10vh, 6rem); max-width: 58rem; }
.notes > div {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .5rem 2rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
}
.notes dd { max-width: 36em; }
.facts { margin-top: 2.5rem !important; }
.facts > div { grid-template-columns: 7rem minmax(0, 1fr); padding: .75rem 0; }
.facts dd { font-size: 1rem; }

/* work */
.features { margin-top: 24vh; max-width: min(46vw, 44rem); }
.features li {
  min-height: 58vh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem;
  border-top: 1px solid var(--line);
}
.features h3 {
  font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1;
  font-stretch: 88%; letter-spacing: -.02em;
}
.features p { color: var(--muted); max-width: 30em; }
.built { padding-top: 2rem; border-top: 1px solid var(--line); }

/* explorations */
.plans { margin-top: clamp(3rem, 9vh, 6rem) !important; }
.plans li {
  display: flex; gap: 1.25rem; align-items: baseline;
  border-top: 1px dashed var(--line);
  padding: 1.5rem 0 2rem;
}
.plans p { color: var(--muted); margin-top: .5rem; max-width: 30em; }

/* contact */
.contact { min-height: 80vh; }
.email {
  display: inline-block;
  margin-top: 1.5rem;
  font: 500 clamp(1.5rem, 6.4vw, 6.75rem)/1 var(--sans);
  font-stretch: 80%;
  letter-spacing: -.035em;
}
.email:hover { color: var(--accent); }

/* footer */
.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 2rem var(--pad) 3rem;
}
.legend { display: flex; gap: 1.5rem; }
.legend > span { display: inline-flex; align-items: center; gap: .6em; }

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  transition: none !important; animation: none !important;
}

/* small screens */
@media (max-width: 899px) {
  .nav { display: none; }
  .col, .features { max-width: none; }
  .features li { min-height: 44vh; }
}
@media (max-width: 539px) {
  .notes > div { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 6rem minmax(0, 1fr); }
  .head { flex-wrap: wrap; }
}
