/* ===========================================================================
   Applied Agents — single static page.
   Black canvas, white type, monochrome. Geist Sans for prose, Geist Mono for
   the mark, labels, and stack. Hierarchy from scale, weight, and whitespace.
   Self-hosted fonts, no external requests, no scripts.
   =========================================================================== */

/* --- Fonts (self-hosted, variable) --------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --background: #050505;
  --foreground: #f4f4f5;
  --bright: #d4d4d8; /* prominent secondary text */
  --muted: #8a8a8f; /* secondary text */
  --line: #1c1c1f; /* hairline dividers */
  --sans: "Geist", system-ui, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  background: var(--background);
  color: var(--foreground);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

a {
  color: inherit;
}

/* Visible focus for keyboard users */
a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 48rem; /* 768px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

main {
  flex: 1;
}

.header {
  padding-top: 2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.mark {
  font-family: var(--mono);
  letter-spacing: -0.02em;
  user-select: none;
}

.header .mark {
  font-size: 1.5rem;
  line-height: 1;
}

.wordmark {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

h1 {
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--bright);
}

.hero-sub {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* --- Sections ------------------------------------------------------------- */
.block {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}

.label {
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* What we work on */
.areas {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.areas li {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.areas .lead {
  font-weight: 500;
  color: var(--foreground);
}

.areas .body {
  color: var(--muted);
}

/* How we build */
.prose {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prose p {
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.prose .closing {
  font-weight: 500;
  color: var(--foreground);
}

/* Stack */
.stack {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

/* Get in touch */
.intro + .email {
  margin-top: 0;
}

.email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease;
}

.email:hover {
  text-decoration-color: var(--foreground);
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  padding-block: 2.5rem;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-row a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-row a:hover {
  color: var(--foreground);
  text-decoration-color: var(--foreground);
}

/* --- Desktop (>= 640px) --------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }

  .header {
    padding-top: 3rem;
  }

  .hero {
    padding-top: 4.25rem;
    padding-bottom: 3.25rem;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-lead,
  .hero-sub,
  .intro,
  .areas li,
  .prose p {
    font-size: 1.25rem;
  }

  .email {
    font-size: 1.25rem;
  }

  .block {
    padding-block: 3.25rem;
  }

  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
