/* Jaxter Labs — jaxterlabs.com
   Single stylesheet. No build step, no dependencies. */

:root {
  --bg: #0e0f11;
  --surface: #16181b;
  --text: #e9eaec;
  --text-muted: #9a9ea6;
  --text-faint: #6b7079;
  --rule: #24272c;
  --accent: #d8dade;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 6vw, 4rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1em;
  transition: border-color 140ms ease, color 140ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 1;
  background: var(--surface);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

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

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
  max-width: 60rem;
  margin: 0 auto;
}

.masthead {
  padding: clamp(1.75rem, 5vw, 2.75rem) 0;
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

main {
  flex: 1;
  padding-bottom: clamp(4rem, 12vw, 8rem);
}

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

.hero {
  padding: clamp(4rem, 16vw, 10rem) 0 clamp(4rem, 14vw, 9rem);
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.032em;
}

/* Sections ------------------------------------------------------------ */

.section {
  padding-top: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--rule);
}

.section + .section {
  margin-top: clamp(3.5rem, 10vw, 6rem);
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: 1.25em;
}

.contact-line {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  letter-spacing: -0.012em;
}

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

.footer {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Preferences --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
