/* AZ Scales — design tokens from design-reference/DESIGN.md */
:root {
  --surface: #fbf8ff;
  --surface-lowest: #ffffff;
  --on-surface: #1a1b22;
  --on-surface-variant: #434655;
  --outline-variant: #c4c5d7;
  --primary: #0037b0;
  --primary-container: #1d4ed8;
  --on-primary: #ffffff;
  --secondary: #565e74;
  --secondary-container: #dae2fd;
  --surface-container-high: #e8e7f1;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 1.5rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;

  --header-h: 4rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

::selection { background: var(--surface-container-high); color: var(--on-surface); }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

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

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared type: label-mono */
.eyebrow,
.btn-ghost,
.byline__name,
.byline__role,
.mail-link,
.site-footer__inner {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgb(251 248 255 / 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--outline-variant);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border: 1px solid var(--outline-variant);
  border-radius: 0.125rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { border-color: var(--on-surface); color: var(--on-surface); }

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  padding-top: var(--header-h);
}

.site-main__inner {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Hero card */
.hero {
  max-width: 48rem;
  margin: 1rem auto 3rem;
}

.hero__card {
  position: relative;
  overflow: hidden;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 0.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero__glow {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgb(218 226 253 / 0.2);
  border-radius: 0.75rem;
  filter: blur(40px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--on-surface);
}

.hero__lead {
  max-width: 42rem;
  margin: 0 0 2rem;
  font-size: 17px;
  line-height: 1.625;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(196 197 215 / 0.6);
}

.byline__photo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--outline-variant);
  border-radius: 0.75rem;
}

.byline__text { display: flex; flex-direction: column; }

.byline__name {
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.byline__role {
  font-size: 10px;
  line-height: 15px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Story */
.story {
  max-width: 36rem;
  margin: 0 auto 5rem;
  padding: 0 1rem;
  font-size: 17px;
  line-height: 1.625;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
}

.story > * { margin: 0; }
.story > * + * { margin-top: 1.5rem; }

.cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(196 197 215 / 0.5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0.125rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s;
}
.btn-primary:hover { background: var(--primary-container); }

.btn-primary__icon { transition: transform 0.15s; }
.btn-primary:hover .btn-primary__icon { transform: translateX(2px); }

.mail-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
  color: var(--secondary);
  overflow-wrap: anywhere;
  transition: color 0.15s;
}
.mail-link:hover { color: var(--on-surface); }
.mail-link svg { flex-shrink: 0; }

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--outline-variant);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  color: var(--secondary);
}

.site-footer__inner a { transition: color 0.15s; }
.site-footer__inner a:hover { color: var(--on-surface); }

.site-footer__brand { color: var(--on-surface); }

/* ≥640px */
@media (min-width: 640px) {
  .hero { margin: 2rem auto 4rem; }
  .hero__card { padding: 3rem; }
  .hero__title { font-size: 44px; line-height: 52px; }
  .byline__photo { width: 2.75rem; height: 2.75rem; }
  .story { padding: 0; }
  .cta { flex-direction: row; align-items: center; gap: 1.5rem; }
  .site-footer__inner { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
