/* ============================================================
   brandon grossutti — brand tokens
   v1.0 · 2026
   Single source of truth for the personal brand system.
   Import this file and use variables. Do not hard-code values.
   ============================================================ */

/* ------------------------------------------------------------
   Font loading
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

:root {
  /* --------------------------------------------------------
     Canvas
     -------------------------------------------------------- */
  --bg:              #000000;  /* primary canvas */
  --bg-raised:       #0f0f0f;  /* elevated surfaces, cards */
  --bg-sunken:       #1a1a1a;  /* footer, recessed sections */

  /* --------------------------------------------------------
     Ink
     -------------------------------------------------------- */
  --fg:              #ffffff;  /* wordmark, H1 only */
  --fg-muted:        #eaeaea;  /* body copy — the default */
  --fg-subtle:       #bfbfbf;  /* secondary labels */
  --fg-faint:        #8c8c8c;  /* captions, metadata */
  --fg-placeholder:  #595959;  /* input placeholders */

  /* --------------------------------------------------------
     Structure
     -------------------------------------------------------- */
  --rule:            #262626;  /* borders, dividers, hairlines */

  /* --------------------------------------------------------
     Typography
     -------------------------------------------------------- */
  --font:            'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-wordmark:     48px;
  --fs-h1:           32px;
  --fs-h2:           14px;   /* tracked uppercase */
  --fs-h3:           20px;
  --fs-body:         17px;
  --fs-small:        13px;
  --fs-label:        11px;   /* tracked uppercase */

  --fw-light:        300;
  --fw-regular:      400;
  --fw-medium:       500;
  --fw-bold:         700;

  --lh-tight:        1.15;
  --lh-heading:      1.3;
  --lh-body:         1.6;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;   /* headings */
  --tracking-wider:  0.12em;   /* labels */

  /* --------------------------------------------------------
     Layout
     -------------------------------------------------------- */
  --measure:         680px;    /* reading width */
  --wide:            1040px;   /* full content width */

  --space-1:         8px;
  --space-2:         16px;
  --space-3:         24px;
  --space-4:         32px;
  --space-5:         48px;
  --space-6:         64px;
  --space-7:         96px;
  --space-8:         128px;

  --rule-weight:     1px;
  --radius:          0;        /* system has no rounded corners */

  /* --------------------------------------------------------
     Motion
     -------------------------------------------------------- */
  --transition:      150ms ease-out;
}


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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-muted);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ============================================================
   Typography primitives
   ============================================================ */

/* Wordmark — the identity */
.wordmark {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: var(--fs-wordmark);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  text-transform: lowercase;
  margin: 0;
}

/* Headings */
h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0 0 var(--space-4);
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg);
  margin: var(--space-6) 0 var(--space-3);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  color: var(--fg-muted);
  margin: var(--space-5) 0 var(--space-2);
}

/* Body */
p {
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
}

small, .small {
  font-size: var(--fs-small);
  color: var(--fg-faint);
}

/* Labels — tracked uppercase caption style */
.label {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--fg-faint);
}

/* Tabular numerals — for tables, timestamps, data */
.tnum,
table,
time {
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   Links
   ============================================================ */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--fg-faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: text-decoration-color var(--transition);
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}


/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

section {
  padding-block: var(--space-7);
}

hr,
.rule {
  border: 0;
  border-top: var(--rule-weight) solid var(--rule);
  margin: var(--space-5) 0;
}


/* ============================================================
   Lists
   ============================================================ */
ul, ol {
  padding-left: var(--space-3);
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
}

li {
  margin-bottom: var(--space-1);
}

ul.plain {
  list-style: none;
  padding: 0;
}

ul.plain li {
  padding-left: var(--space-3);
  text-indent: calc(-1 * var(--space-3));
}

ul.plain li::before {
  content: '— ';
  color: var(--fg-faint);
}


/* ============================================================
   Buttons — text-first, hairline box on hover
   ============================================================ */
.btn {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--fg);
  color: var(--fg);
  text-decoration: none;
}


/* ============================================================
   Forms — slight off-black fill so the field area reads against
   the pure-black canvas without introducing rounded corners or
   heavy chrome.
   ============================================================ */
input,
textarea,
select {
  font: inherit;
  color: var(--fg-muted);
  background: var(--bg-raised);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--space-2);
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-placeholder);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--fg);
}


/* ============================================================
   Tables
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
}

th, td {
  text-align: left;
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--fg-faint);
}


/* ============================================================
   Code
   ============================================================ */
code,
pre,
kbd,
samp {
  font-family: ui-monospace, 'SF Mono', 'Consolas', monospace;
  font-size: 0.9em;
}

code {
  color: var(--fg);
  padding: 0 0.25em;
  background: var(--bg-raised);
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: var(--space-3);
  overflow-x: auto;
  line-height: var(--lh-body);
}

pre code {
  padding: 0;
  background: transparent;
}


/* ============================================================
   Header / Footer regions
   ============================================================ */
.site-header,
.site-footer {
  padding-block: var(--space-4);
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunken);
  color: var(--fg-faint);
  font-size: var(--fs-small);
}

/* Nav is horizontal, tracked uppercase labels */
nav ul {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--fg-muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--fg);
}


/* ============================================================
   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;
}

.stack > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-4); }

.muted   { color: var(--fg-subtle); }
.faint   { color: var(--fg-faint); }
.lower   { text-transform: lowercase; }
.upper   { text-transform: uppercase; letter-spacing: var(--tracking-wide); }


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --fs-wordmark: 40px;
    --fs-h1:       28px;
  }

  section {
    padding-block: var(--space-5);
  }

  .container {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 480px) {
  :root {
    --fs-wordmark: 32px;
    --fs-body:     16px;
  }
}


/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
