@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --paper: #121214;
  --panel: #18181c;
  --ink: #ebeae5;
  --heading: #cfccc3;
  --meta: #9cc3d4;
  --muted: #8f8c84;
  --rule: #2e2d2a;
  --link: #5c5a54;
  --shot-bg: #1c1c20;
  --accent: #ff6b3d;
  --title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Layout */

.wrap {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.wrap {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

section {
  padding: 3rem 0 4rem;
}

footer.wrap {
  padding: 3rem 1.5rem 4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.band {
  --band-bg: var(--panel);
  background: var(--band-bg);
  box-shadow: 0 0 0 100vmax var(--band-bg);
  clip-path: inset(0 -100vmax);
}

.band--black {
  --band-bg: #000;
}

/* Typography */

.name,
.lede,
h2,
h3 {
  font-family: var(--title);
  color: var(--heading);
  margin: 0;
}

.name {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}

.lede,
h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.lede {
  max-width: 34rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--meta);
  margin: 0 0 0.5rem;
}

/* Accent underline (shared by the name and section headings) */

.accent-rule {
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.accent-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 4rem;
  height: 3px;
  background: var(--accent);
}

.accent-rule--lg {
  border-bottom-width: 2px;
}

.accent-rule--lg::after {
  bottom: -2px;
  width: 6rem;
  height: 5px;
}

/* Link lists */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Projects */

.project {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: center;
  margin: 0 0 3rem;
}

.project:last-child {
  margin-bottom: 0;
}

.shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid #3d3b36;
  background: var(--shot-bg);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
}

/* List items (Projects, Contributions, Smaller things) */

.project p:not(.meta),
.small-list p:not(.meta) {
  margin: 0 0 0.6rem;
}

.project .links,
.small-list .links {
  margin-top: 0.75rem;
}

.small-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.small-list li {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.small-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Responsive */

@media (min-width: 601px) {
  .small-list:not(.three-up) li:nth-last-child(2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .three-up li {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  header.wrap {
    padding-top: 3rem;
  }

  .project,
  .small-list {
    grid-template-columns: 1fr;
  }

  .project {
    gap: 1.25rem;
  }
}
