:root {
  /* Colour */
  --ink: #1a1c1f;
  --ink-soft: #4b4f55;
  --ink-faint: #8a8e94;
  --paper: #fdfdfc;
  --rule: #e7e6e3;
  --accent: #3a5a8c;

  /* Type */
  --font-sans: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --size-body: 17px;
  --size-lead: 19px;
  --size-hero: clamp(28px, 5.4vw, 37px);
  --size-label: 12px;
  --leading: 1.65;

  /* Space */
  --gutter: 28px;
  --measure: 660px;
  --section-gap: 96px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  padding: 0 var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font: var(--size-body)/var(--leading) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: var(--measure);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
::selection { background: #dfe4ec; }

h1, h2, h3 { font-weight: 500; }
p { text-wrap: pretty; }

/* Header + wordmark */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.wordmark .bit {
  width: 8px;
  height: 8px;
  background: var(--ink);
  transition: background 180ms ease, box-shadow 180ms ease;
}
.wordmark:hover .bit { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

.nav { display: flex; gap: 22px; font-size: 13px; color: var(--ink-faint); }
.nav a { transition: color 160ms ease; }
.nav a:hover { color: var(--ink); }

/* Sections */
main { flex: 1; }
section { padding-top: var(--section-gap); scroll-margin-top: 40px; }
.hero { padding-top: 130px; }
/* The sidebit "bit" after the product name, as in the wordmark */
.title-bit { display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.16em; background: var(--ink); }
.hero h1 { margin: 0; font-size: var(--size-hero); line-height: 1.2; letter-spacing: -0.028em; max-width: 15em; }
.hero p { margin: 26px 0 0; max-width: 34em; color: var(--ink-soft); }

.label {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.prose p { margin: 0; }
.prose p + p { color: var(--ink-soft); }

/* Work list — duplicate one <li class="item"> to add a project */
.work .label { margin-bottom: 6px; }
.items { list-style: none; margin: 0; padding: 0; }
.item {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
}
.item h3 { margin: 0; font-size: var(--size-body); letter-spacing: -0.012em; }
.item h3 a { color: inherit; text-decoration: none; }
.item .meta {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-align: right;
}
.item p { margin: 0; grid-column: 1 / -1; color: var(--ink-soft); max-width: 32em; }
.item--note { padding-bottom: 0; color: var(--ink-faint); }
.item--note p { color: inherit; }

/* Contact */
.contact-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.email {
  font-size: var(--size-lead);
  letter-spacing: -0.014em;
  border-bottom: 1px solid #d9d8d4;
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.email:hover { color: var(--accent); border-color: var(--accent); }
.secondary { font-size: 14px; color: var(--ink-faint); transition: color 160ms ease; }
.secondary:hover { color: var(--ink); }

/* Footer */
.foot {
  margin-top: 120px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

@media (max-width: 520px) {
  :root { --gutter: 22px; --section-gap: 76px; }
  .hero { padding-top: 96px; }
}

/* PastePage page: install prompt, screenshot, inline links */

/* Install: a terminal line in ink, with the sidebit "bit" as its cursor. */
.install { margin-top: 34px; }
.install-tabs { display: flex; gap: 18px; margin-bottom: 10px; }
.install-tabs button {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.install-tabs button:hover { color: var(--ink); }
.install-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.install-tabs button:focus-visible, .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #f3f2ee;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
}
.prompt .ps1 { color: var(--ink-faint); user-select: none; }
.prompt .cmd {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: inherit;
  scrollbar-width: none;
}
.prompt .cmd::-webkit-scrollbar { display: none; }
.prompt .cursor {
  flex: none;
  width: 0.6em;
  height: 1.15em;
  margin-left: -6px;
  background: var(--ink);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.copy {
  flex: none;
  margin-left: auto;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 160ms ease;
}
.copy:hover { color: var(--ink); }
.install-note {
  margin: 10px 0 0 !important;
  max-width: none !important;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.02em;
  color: var(--ink-faint) !important;
}
.install-note .inline { margin-left: 8px; }

/* Screenshot: wider than the text column, so the app is readable. */
.shot { margin: 88px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }

.inline {
  border-bottom: 1px solid #d9d8d4;
  transition: color 160ms ease, border-color 160ms ease;
}
.inline:hover { color: var(--accent); border-color: var(--accent); }
/* Features: one per line, each name followed by a small "bit" */
.features .item h3::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  background: var(--ink);
}

.foot a { transition: color 160ms ease; }
.foot a:hover { color: var(--ink); }
