@import url("./tokens.css");

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  text-transform: lowercase;        /* brand rule: everything is lowercase */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
abbr { text-transform: none; text-decoration: none; border: 0; font-variant: normal; font-size: inherit; letter-spacing: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-lime); outline-offset: 3px; }

/* --- typography primitives --- */
.display {
  font-family: var(--f-display);
  font-weight: var(--fw-light);
  font-size: var(--t-display);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.h1 {
  font-family: var(--f-display);
  font-weight: var(--fw-regular);
  font-size: var(--t-h1);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h2 {
  font-family: var(--f-display);
  font-weight: var(--fw-medium);
  font-size: var(--t-h2);
  line-height: 1.15;
}
.h3 {
  font-weight: var(--fw-medium);
  font-size: var(--t-h3);
  line-height: 1.25;
}
.meta {
  font-size: var(--t-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
}
.muted { color: var(--c-muted); }
.accent-lime { color: var(--c-lime); }
.accent-magenta { color: var(--c-magenta); }
.accent-cyan { color: var(--c-cyan); }

/* --- layout primitives --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--s-12);
}
.section-sm { padding-block: var(--s-8); }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: var(--s-2); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 8px 12px; margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--c-lime);
  color: var(--c-black);
  z-index: 1000;
}
