/* ==========================================================================
   Made With Deezle — madewithdeezle.com
   Plain CSS. No framework, no build step, no JavaScript.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL — see fonts/) ------- */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Type */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Scale */
  --step-hero: clamp(2.35rem, 6.4vw, 4.5rem);
  --step-h2: clamp(1.6rem, 3.2vw, 2.35rem);
  --step-h3: clamp(1.3rem, 2.2vw, 1.6rem);
  --step-body: clamp(1rem, 0.97rem + 0.16vw, 1.125rem);
  --step-mono: 0.75rem;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --page: 1160px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Colour — dark, always. The palette is part of the design, not a
     device preference. */
  --bg: #0b0d0d;
  --bg-panel: #14181a;
  --ink: #f2f4f3;
  --ink-2: #b7bfc0;
  --ink-3: #949c9e;
  --rule: #272c2d;
  --rule-strong: #f2f4f3;
  --accent: #ffc400;
  --on-accent: #0b0d0d;
  --focus: #ffc400;
}


/* ---------- Reset -------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Focus -------------------------------------------------------- */

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

.skip {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ---------- Layout primitives ------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  border-top: 1px solid var(--rule);
  padding-block: var(--section-y);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .section-grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* ---------- Mono label --------------------------------------------------- */

.label {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-label {
  align-self: start;
  padding-top: 0.35rem;
}

@media (min-width: 900px) {
  .section-label {
    position: sticky;
    top: 5.5rem;
  }
}

.section-label .num {
  display: block;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  width: 2.5rem;
}

/* ---------- Masthead ----------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

@supports not (backdrop-filter: blur(10px)) {
  .masthead { background: var(--bg); }
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  flex: none;
}

.nav {
  display: none;
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 760px) {
  .nav { display: flex; }
}

.nav a {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }

.nav-compact {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

@media (min-width: 760px) {
  .nav-compact { display: none; }
}

/* ---------- Hero --------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 11vw, 8rem) clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* Fine measuring-rule texture. Decorative only. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 5rem
  );
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero h1 {
  font-size: var(--step-hero);
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
  margin-top: 1.25rem;
  text-wrap: balance;
}

.lede {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.mark {
  background: linear-gradient(to top, var(--accent) 0.32em, transparent 0.32em);
  padding-inline: 0.06em;
}

/* Spec strip ------------------------------------------------------------- */

.plate {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  background: var(--bg-panel);
}

.plate p {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: 88ch;
}

/* ---------- Section intro ------------------------------------------------ */

.section h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  font-stretch: 103%;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}

.section-intro {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--ink-2);
}

/* ---------- Product cards ------------------------------------------------ */

/* A section whose payload spans both columns: the side label must not stick,
   or it would scroll down over the full-width content beneath it. */
.section--full .section-label { position: static; }
.section-grid > .cards { grid-column: 1 / -1; }

.cards {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 880px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--bg);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.card-index {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.card h3 {
  font-size: var(--step-h3);
  font-weight: 700;
  font-stretch: 103%;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: -0.15rem;
}

.card-desc { color: var(--ink-2); font-size: 1rem; }

.card-note {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.card-quote {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--rule-strong);
  padding-left: 0.85rem;
}

/* Status chips ------------------------------------------------------------ */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  flex: none;
}

.status.is-ready {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* Structural commitment --------------------------------------------------- */

.commit {
  margin-top: auto;
  padding: 0.95rem 1rem;
  background: var(--bg-panel);
  border-left: 4px solid var(--accent);
}

.commit .label { color: var(--ink-3); display: block; margin-bottom: 0.4rem; }
.commit p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }

/* Card action -------------------------------------------------------------- */

.card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.8rem 1.2rem;
}

.card-action:hover,
.card-action:focus-visible {
  background: var(--rule-strong);
  color: var(--bg);
}

/* ---------- Method list --------------------------------------------------- */

.method {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.method li {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  display: grid;
  gap: 0.5rem 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .method li { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
}

.method h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.method p { color: var(--ink-2); font-size: 1rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  padding: 0.05em 0.32em;
}

/* ---------- Who ----------------------------------------------------------- */

.who {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 720px) {
  .who { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}

.portrait {
  border: 1px solid var(--rule);
  max-width: 15rem;
}

.portrait img { width: 100%; filter: saturate(0.9) contrast(1.02); }

.bio p + p { margin-top: 0.9rem; }
.bio p { color: var(--ink-2); max-width: 58ch; }
.bio p:first-child { color: var(--ink); }

h2.who-name {
  font-size: var(--step-h3);
  font-weight: 700;
  font-stretch: 103%;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: none;
  margin-bottom: 0.25rem;
}

.who-role { margin-bottom: 1.25rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.links a {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.2rem;
}

.links a:hover,
.links a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Contact ------------------------------------------------------- */

.contact-email {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.85rem + 1.9vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.2rem;
  word-break: break-word;
}

.contact-email:hover { border-bottom-color: var(--rule-strong); }

.contact-note { margin-top: 1.5rem; max-width: 52ch; color: var(--ink-2); }

.contact-fineprint {
  margin-top: 1rem;
  max-width: 52ch;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------- Footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer .wordmark { margin-bottom: 0.6rem; }

/* The base .links spacing is sized for the bio; the footer wants it tighter. */
.footer .links {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.footer p {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

/* ---------- Screens: the products, at the size they are used ------------- */

/* Both products are portrait phone apps, so they are shown at a phone's
   proportions rather than cropped into a landscape band. */
.screens {
  grid-column: 1 / -1;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 340px);
  justify-content: start;
}

@media (min-width: 560px) {
  .screens {
    /* Flush left, on the same grid edge the cards above sit on. */
    grid-template-columns: repeat(2, minmax(0, 340px));
    align-items: start;
  }
}

.screen {
  width: 100%;
}

.screen picture {
  display: block;
  border: 1px solid var(--rule);
  /* The phone's own corner radius, scaled to the rendered width. */
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

.screen figcaption {
  margin-top: 0.85rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--accent);
}
