:root {
  --bg: #000000;
  --ink: #d4d0c8;
  --ink-soft: #9a9589;
  --muted: #6b6860;
  --rule: #2a2825;
  --max-width: 700px;
  --mono: "SF Mono", "Cascadia Mono", "Fira Mono", "Droid Sans Mono",
    "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 160ms ease;
}

a:hover {
  opacity: 0.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}

.brand {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  opacity: 0.6;
}

.site-nav {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: baseline;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  opacity: 1;
}

.site-nav .dot {
  color: var(--muted);
  user-select: none;
}

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

.content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  flex: 1;
}

.lede {
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.lede a {
  text-decoration: underline;
}

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

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0 1.5rem;
}

.section-heading {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

/* ---- Rows with dot leaders ---- */

.row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 0;
  overflow: hidden;
}

.row-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.row-dots {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: var(--muted);
  margin: 0 0.35rem;
  letter-spacing: 0.15em;
}

.row-value {
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

.row-value a {
  text-decoration: underline;
}

/* ---- Tag line (inline skill list) ---- */

.tag-line {
  margin: 0;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---- Contact section (stacked, no dots) ---- */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-block a {
  text-decoration: underline;
}

.contact-note {
  color: var(--muted);
}

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

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  opacity: 1;
}

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

@media (max-width: 600px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  .site-header {
    padding: 1.25rem 1.25rem 0;
  }

  .content {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .lede {
    margin-bottom: 1rem;
  }

  .rule {
    margin: 1.5rem 0 1.25rem;
  }

  .section-heading {
    margin-bottom: 0.75rem;
  }

  .row-list {
    gap: 0.6rem;
  }

  .row {
    flex-direction: column;
    gap: 0.1rem;
  }

  .row-dots {
    display: none;
  }

  .row-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }

  .row-value {
    text-align: left;
    white-space: normal;
    font-size: 14px;
  }

  .tag-line {
    line-height: 1.7;
  }

  .site-footer {
    padding: 1.5rem 1.25rem 2rem;
  }
}

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