/* ============================================================
   Garrett Bradham — gbradham.github.io
   Bold display: white ground, heavy sans, black rules, crimson accent.
   No web fonts, no JavaScript, no build step.
   ============================================================ */

:root {
  /* Surfaces and ink */
  --bg:            #ffffff;
  --ink:           #101014;
  --body:          #45454e;
  --muted:         #55555e;

  /* Lines. --rule is STRUCTURAL and near-black: 2px rules only.
     --rule-soft is the 1px hairline used between list items and rows. */
  --rule:          #101014;
  --rule-soft:     #e3e3e6;

  /* Accent */
  --accent:        #be123c;
  --accent-line:   #e8a3b2;
  --accent-bg:     #fdf2f4;
  --accent-dash:   #e8a3b2;

  /* Tags — solid black chips with white text */
  --tag-bg:        #101014;
  --tag-ink:       #ffffff;

  /* Figure blocks (the "instrument" treatment, used only inside figures) */
  --fig-bg:        #0a0e13;
  --fig-accent:    #4ade80;
  --fig-muted:     #6f8091;
  --fig-rule:      #1c2530;

  /* Type — system stacks only, no web fonts */
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Measure */
  --wrap:    880px;
  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Skip link ------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Focus ---------------------------------------------------- */

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

/* --- Header / nav --------------------------------------------- */

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

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-home {
  font-size: 12.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  text-decoration: none;
}
.nav-home:hover { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

.nav-links a.nav-resume { color: var(--accent); font-weight: 750; }

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

.site-footer {
  border-top: 2px solid var(--rule);
  margin-top: 72px;
  padding: 24px 0 48px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* --- Main ----------------------------------------------------- */

main { padding-top: 56px; }

/* --- Simple centered page (404) ------------------------------- */

.centered {
  text-align: center;
  padding: 80px 0 40px;
}
.centered h1 { font-size: 42px; line-height: 1; margin-bottom: 14px; }
.centered p { margin: 0 auto; max-width: 46ch; }

/* --- Responsive ----------------------------------------------- */

@media (max-width: 640px) {
  .nav { padding: 13px 18px; }
  .nav-links { gap: 13px; font-size: 10px; }
  .wrap { padding: 0 18px; }
  main { padding-top: 36px; }
  .centered h1 { font-size: 32px; }
}

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

.hero { padding-bottom: 8px; }

.kicker {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.hero-dot { color: var(--accent); }

.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  max-width: 46ch;
  margin: 0;
}

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

.section { margin-top: 64px; }

.section-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 2px solid var(--rule);
  padding-top: 10px;
  margin-bottom: 4px;
}

.prose {
  max-width: var(--measure);
  margin: 14px 0 0;
}

/* --- Project rows --------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
}

/* Rows carrying a thumbnail get a third, leading column. Rows without one
   still use the two-column form, so this stays opt-in per row. */
.row:has(.row-thumb) { grid-template-columns: 108px 1fr auto; }

.row-thumb {
  display: block;
  width: 108px;
  height: 72px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}

.row-thumb-empty { border-style: dashed; }

.row:hover { background: rgba(190, 18, 60, 0.03); }

.row-title { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 5px; }

.row-title a {
  text-decoration: none;
  color: var(--ink);
}
.row-title a:hover { color: var(--accent); }

/* Makes the whole row clickable while keeping the link's accessible
   name short — screen readers announce "GLIDER", not the full row. */
.row-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 58ch;
}

.row-kind {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 9px;
  white-space: nowrap;
  justify-self: end;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 11px 0 0;
  padding: 0;
}
.tags li {
  font-size: 9.5px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-ink);
}

.more { margin: 20px 0 0; font-size: 11px; text-transform: uppercase;
        letter-spacing: 0.09em; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* --- Contact links -------------------------------------------- */

.links { list-style: none; margin: 14px 0 0; padding: 0; }

.links li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px;
}

.links span {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  padding-top: 5px;
}

.links a { text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.links a:hover { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .lede { font-size: 15.5px; }
  .section { margin-top: 46px; }
  .row, .row:has(.row-thumb) { grid-template-columns: 1fr; gap: 8px; }
  .row-kind { justify-self: start; order: -1; }
  .row-thumb { order: -2; width: 100%; height: 132px; margin-bottom: 4px; }
  .links li { grid-template-columns: 1fr; gap: 2px; }
  .links span { padding-top: 0; }
}

/* --- Page head (interior pages) -------------------------------- */

.page-head { padding-bottom: 4px; }
.page-head h1 { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.page-head .lede { font-size: 16px; }

/* --- Minor work list ------------------------------------------- */

.minor { list-style: none; margin: 14px 0 0; padding: 0; }

.minor li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.minor a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.minor a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.minor .note { color: var(--body); }

.minor .lang {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* --- Project pages --------------------------------------------- */

.back {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.kind {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 9px;
  display: inline-block;
  margin: 20px 0 10px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 24px 0 8px;
  padding: 16px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
}

.meta dt {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta dd { margin: 0; font-size: 14px; color: var(--ink); }
.meta dd a { text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.meta dd a:hover { border-bottom-color: var(--accent); }

.body-prose { max-width: var(--measure); margin: 0 0 14px; font-size: 15px; line-height: 1.6; }

.body-list { max-width: var(--measure); margin: 0; padding-left: 20px; font-size: 15px; }
.body-list li { margin-bottom: 6px; }

/* Figure blocks — the dark "instrument" treatment, used only here */

.figure {
  background: var(--fig-bg);
  border: 1px solid var(--fig-rule);
  border-radius: 0;
  padding: 16px 18px;
  margin: 22px 0;
}

.figure-cap {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fig-accent);
  margin: 0;
}

.figure-slot {
  height: 48px;
  margin-top: 10px;
  background: linear-gradient(var(--fig-accent), var(--fig-accent)) 0 64% / 100% 1px no-repeat;
  opacity: 0.5;
}

.figure-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fig-muted);
  margin: 10px 0 0;
}

.figure img {
  display: block;
  max-width: 100%;   /* fill the figure, but never upscale past native size */
  height: auto;
  border-radius: 0;
  margin-top: 10px;
}

/* Unwritten content — deliberately conspicuous */

.fill {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px dashed var(--accent-dash);
  border-radius: 0;
  padding: 12px 14px;
  margin: 0 0 14px;
  max-width: var(--measure);
}

@media (max-width: 640px) {
  .page-head h1 { font-size: 32px; }
  .minor li { grid-template-columns: 1fr; gap: 2px; }
  .meta { grid-template-columns: 1fr; gap: 12px; }
}
