:root {
  --background: #000;
  --text: #fff;
  --muted: #ababab;
  --divider: #383838;
  --max-page: 1440px;
  --page-x: 30px;
  --header-gap: 160px;
  --rail-width: 368px;
  --content-gap: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family:
    "Schibsted Grotesk", Geist, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.15px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

ul {
  padding-left: 1.5em;
}

li + li {
  margin-top: 8px;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 20px var(--page-x) 10px;
}

.site-header,
.page-grid {
  width: 100%;
  max-width: var(--max-page);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: var(--header-gap);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.48px;
  white-space: nowrap;
}

.brand {
  display: flex;
  width: 373px;
  flex-direction: column;
}

.brand strong,
.top-link {
  font-weight: 600;
}

.brand span {
  color: var(--muted);
}

.page-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--content-gap);
}

.contact-rail {
  position: sticky;
  top: 0;
  display: flex;
  width: min(31%, var(--rail-width));
  min-width: 270px;
  flex: 0 0 min(31%, var(--rail-width));
  flex-direction: column;
  padding-right: 10px;
}

.bio-card {
  min-height: 202px;
  padding: 30px 40px 40px 6px;
  border-top: 1px solid var(--divider);
}

.bio-card p {
  max-width: 312px;
}

.rail-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1px;
  padding: 12px 6px;
  border-top: 0.5px solid var(--divider);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
  white-space: nowrap;
}

.rail-link-strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.065px;
}

.rail-link span {
  font-size: 10px;
  font-weight: 600;
}

.content-column {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  padding-left: 20px;
}

.resume-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 37px;
  padding: 30px 0 80px;
  border-top: 1px solid var(--divider);
}

.resume-section > h2,
.split-sections h2,
.about-section h1,
.client-section h2 {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.065px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-right: 20px;
}

.entry {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
  border-top: 0.5px solid var(--divider);
}

.work-entry {
  padding-top: 20px;
  border-top: 0.5px solid var(--divider);
}

.entry-meta {
  min-width: 220px;
  flex: 1 0 0;
}

.entry-meta h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.16px;
}

.entry-meta p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
}

.entry-copy {
  min-width: 300px;
  flex: 1 0 0;
  font-family:
    Geist, "Schibsted Grotesk", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.075px;
}

.skill-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 37px;
}

.skill-columns > div {
  min-width: 300px;
  flex: 1 0 0;
}

.skill-columns h3 {
  margin-bottom: 1.4em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.skill-columns li {
  margin-top: 5px;
}

.two-column {
  display: flex;
  gap: 37px;
}

.two-column > * {
  min-width: 0;
  flex: 1 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.two-column span,
blockquote cite {
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.project-link span {
  font-size: 12px;
}

.split-sections {
  display: flex;
  gap: 37px;
  padding-bottom: 80px;
}

.split-sections section {
  display: flex;
  min-width: 0;
  flex: 1 0 0;
  flex-direction: column;
  gap: 37px;
  padding-top: 16px;
  border-top: 0.5px solid var(--divider);
}

blockquote {
  display: block;
}

blockquote + blockquote {
  margin-top: -16px;
}

blockquote cite {
  display: block;
  font-style: normal;
}

.page-footer {
  display: flex;
  min-height: 400px;
  align-items: flex-end;
  padding: 20px 0;
  border-top: 0.5px solid var(--divider);
}

.page-footer a {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.48px;
}

.about-column {
  gap: 37px;
}

.about-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 37px;
  padding: 30px 60px 60px 0;
  border-top: 0.5px solid var(--divider);
}

.about-copy {
  max-width: 720px;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -0.24px;
}

.about-copy p + p {
  margin-top: 1.45em;
}

.client-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 37px;
  padding: 16px 0 20px;
  border-top: 0.5px solid var(--divider);
}

.logo-grid {
  display: flex;
  min-height: 210px;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-mark {
  display: grid;
  width: 160px;
  min-width: 145px;
  height: 95px;
  place-items: center start;
  color: var(--muted);
  opacity: 0.92;
}

.logo-word {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.logo-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: -1px;
}

.logo-pill {
  justify-content: start;
  align-items: center;
  width: 88px;
  height: 28px;
  margin-left: 12px;
  padding: 0 16px;
  color: #000;
  background: var(--muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.logo-bolt,
.logo-flower {
  position: relative;
}

.logo-bolt::before,
.logo-bolt::after {
  position: absolute;
  content: "";
  width: 54px;
  height: 25px;
  background: var(--muted);
  transform: skewX(-32deg);
}

.logo-bolt::before {
  left: 16px;
  top: 35px;
  border-radius: 4px 10px 4px 10px;
}

.logo-bolt::after {
  left: 48px;
  top: 35px;
  border-radius: 10px 4px 10px 4px;
}

.logo-flower::before {
  content: "";
  width: 44px;
  height: 44px;
  background:
    radial-gradient(circle at 50% 50%, #000 0 8px, transparent 8px),
    conic-gradient(var(--muted) 0 12.5%, transparent 12.5% 25%, var(--muted) 25% 37.5%, transparent 37.5% 50%, var(--muted) 50% 62.5%, transparent 62.5% 75%, var(--muted) 75% 87.5%, transparent 87.5%);
  border-radius: 50%;
}

.about-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  :root {
    --page-x: 30px;
    --header-gap: 160px;
  }

  .site-shell {
    padding-bottom: 10px;
  }

  .page-grid {
    gap: 20px;
  }

  .contact-rail {
    width: 360px;
    min-width: 0;
    flex: 0 0 360px;
  }

  .content-column {
    width: 360px;
    flex: 0 1 360px;
    padding-left: 0;
  }

  .entry,
  .skill-columns {
    display: block;
  }

  .entry-copy,
  .skill-columns > div {
    min-width: 0;
  }

  .entry-copy {
    margin-top: 30px;
  }

  .skill-columns > div + div {
    margin-top: 37px;
  }

  .two-column {
    align-items: flex-start;
  }

  .split-sections {
    gap: 37px;
  }

  .about-section {
    padding-right: 0;
  }

  .about-copy {
    font-size: 24px;
  }
}

@media (max-width: 700px) {
  :root {
    --page-x: 20px;
    --header-gap: 160px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    font-size: 20px;
  }

  .brand {
    width: 277px;
  }

  .page-grid {
    display: block;
    max-width: 335px;
  }

  .contact-rail {
    position: static;
    width: 311px;
    margin: 0 auto 20px;
    padding-right: 0;
  }

  .bio-card {
    min-height: 190px;
    padding: 30px 40px 40px 0;
  }

  .rail-link {
    min-height: 38px;
    padding: 10px 0;
  }

  .content-column {
    width: 311px;
    margin: 0 auto;
    padding-left: 0;
  }

  .resume-section {
    gap: 37px;
    padding-top: 30px;
    padding-bottom: 80px;
  }

  .entry-list {
    padding-right: 0;
  }

  .entry-copy {
    padding-left: 1.35em;
  }

  .two-column,
  .split-sections {
    display: flex;
    gap: 37px;
  }

  .two-column > *,
  .split-sections section {
    width: calc((100% - 37px) / 2);
    flex: 1 1 0;
  }

  .split-sections h2 {
    overflow-wrap: anywhere;
  }

  .page-footer {
    min-height: 400px;
  }

  .page-footer a {
    font-size: 20px;
  }

  .about-copy {
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.2px;
  }

  .logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 347px;
    gap: 10px 20px;
  }

  .logo-mark {
    width: 145.5px;
    min-width: 0;
    height: 109px;
  }
}

@media (max-width: 370px) {
  .site-header,
  .page-grid {
    max-width: calc(100vw - 40px);
  }

  .brand {
    width: auto;
  }

  .contact-rail,
  .content-column {
    width: 100%;
  }

  .site-header {
    gap: 18px;
    font-size: 18px;
  }
}
