/* alexandrow.dev — one stylesheet, no build step.
   Design: "Swiss grid, dark". Fonts: self-hosted Inter subsets (OFL, see assets/fonts/OFL.txt);
   the system sans-serif stack takes over if they fail to load. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/inter-display-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0d0f0e;
  --text: #ecece6;
  --text-2: #c3c5bf;
  --muted: #b4b7b0;
  --subtle: #9a9d97;
  --rule: #262a27;
  --rule-strong: #4a4f4b;
  --accent: #8ea2ff;
  --accent-hover: #c3cdff;
  --on-accent: #0d0f0e;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --label-col: 17.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.1875rem;
  }
}

p,
h1,
h2,
dl,
dd,
ul {
  margin: 0;
}

/* ---------- Links, focus, skip link ---------- */

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

main:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-color: var(--text);
}

/* ---------- Page frame ---------- */

.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-block: 0.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.nav .nav-external {
  color: var(--accent);
  font-weight: 600;
}

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

.hero {
  padding-block: clamp(4rem, 10vw, 8.75rem) clamp(3.5rem, 8vw, 7rem);
  scroll-margin-top: 1rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.dot {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
}

.name {
  font-family: var(--display);
  font-size: clamp(3.25rem, 10.5vw, 10.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.name span {
  display: block;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-name {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--subtle);
}

.legal-label,
.legal-value {
  display: block;
}

.legal-value {
  color: var(--text);
  font-weight: 600;
}

.statement {
  max-width: 47.5rem;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---------- Numbered rows ---------- */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 4rem;
  padding-block: 3rem 4.5rem;
  border-top: 1px solid var(--rule-strong);
  scroll-margin-top: 1rem;
}

.row-label {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.row-body {
  min-width: 0;
}

/* Two-column grid from tablet-landscape up: labels left, content right, one shared edge. */
@media (min-width: 60rem) {
  .hero-meta,
  .row {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
  }
}

.prose {
  max-width: 47.5rem;
}

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

.secondary {
  color: var(--text-2);
}

/* Areas: large terms on hairline rows */
.area {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 2rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--rule);
}

.area:first-child {
  padding-top: 0;
}

.area:last-child {
  border-bottom: 0;
}

.area dt {
  flex: 1 1 13.75rem;
  font-family: var(--display);
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.area dd {
  flex: 2 1 18.75rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .area dd {
    font-size: 1.125rem;
  }
}

.area-earlier dt {
  color: var(--subtle);
}

/* Background: small labelled facts */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
  gap: 1.75rem 2.5rem;
}

.fact dt {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: var(--subtle);
}

.fact dd {
  font-size: 1.0625rem;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .fact dd {
    font-size: 1.125rem;
  }
}

/* Contact */
.row-contact {
  padding-bottom: 6rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.contact-line {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding-inline: 1.625rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button:focus-visible {
  outline-color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.button-secondary:hover {
  background: rgba(142, 162, 255, 0.12);
  color: var(--accent-hover);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--subtle);
}

/* ---------- 404 ---------- */

.notfound {
  padding-block: clamp(4rem, 10vw, 8.75rem);
  max-width: 47.5rem;
}

.notfound h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.notfound p + p {
  margin-top: 1rem;
}

/* ---------- Motion ---------- */

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

  a,
  .button {
    transition: color 120ms ease-out, background-color 120ms ease-out;
  }
}

/* ---------- Print: light paper, no chrome ---------- */

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --text: #000;
    --text-2: #222;
    --muted: #333;
    --subtle: #444;
    --rule: #bbb;
    --rule-strong: #000;
    --accent: #000;
  }

  .skip-link,
  .site-header nav {
    display: none;
  }

  .button {
    background: none;
    color: #000;
    padding: 0;
    min-height: 0;
  }

  .button::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: 0.8em;
  }
}
