/* Minimal portfolio styles.
   Sections: tokens, base, header, hero, work, skills, contact, footer. */

:root {
  --bg: #fafafa;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e3e3e3;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

::selection {
  background: #d9d9d9;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(44rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.lede {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #000;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  background: transparent;
}

/* Sections */

.band {
  padding-bottom: 3.25rem;
  scroll-margin-top: 4.5rem;
}

h2 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.project h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.when {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.project h3 a {
  text-decoration: none;
}

.project h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.role {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.project > p:not(.role):not(.project-url) {
  margin-top: 0.65rem;
  max-width: 40rem;
  color: var(--muted);
}

.project-url {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.project-url + .project-url {
  margin-top: 0.2rem;
}

.project-url a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Skills */

.skills {
  margin: 0;
}

.skills div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.skills dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.skills dd {
  margin: 0;
  color: var(--muted);
}

/* Contact */

.contact {
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.contact li + li {
  margin-top: 0.35rem;
}

.contact a:hover {
  text-decoration: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-inner a {
  color: var(--muted);
}

@media (max-width: 560px) {
  .wrap {
    width: min(44rem, calc(100% - 2rem));
  }

  .hero {
    padding-top: 2.75rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0;
  }

  .skills div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
