@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/geist-mono-latin.woff2") format("woff2");
}

:root {
  --paper: #f2f0ea;
  --ink: #171714;
  --muted: #6d6b63;
  --line: #c9c6bc;
  --signal: #ff5c35;
  --acid: #c8ed43;
  --inverse: #171714;
  --inverse-ink: #f2f0ea;
  --on-bright: #171714;
  --about-surface: #d8d5cc;
  --about-muted: #59574f;
  --font-geist-sans: "Geist";
  --font-geist-mono: "Geist Mono";
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171714;
    --ink: #f2f0ea;
    --muted: #aaa79e;
    --line: #484740;
    --signal: #ff7452;
    --acid: #d1f052;
    --inverse: #0c0c0a;
    --inverse-ink: #f2f0ea;
    --about-surface: #282824;
    --about-muted: #b9b6ad;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 4.4vw;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: fit-content;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.wordmark-dot {
  color: var(--signal);
}

.site-header nav {
  display: flex;
  gap: 2.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header nav a,
.header-link {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.header-link:hover {
  color: var(--signal);
}

.header-link {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  padding: 5.5vh 4.4vw 0;
  overflow: hidden;
}

.hero-kicker,
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.availability i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fb72b;
  box-shadow: 0 0 0 4px rgba(95, 183, 43, 0.14);
}

.hero h1 {
  margin: auto 0;
  max-width: 1400px;
  font-size: clamp(4.7rem, 10.4vw, 10.5rem);
  font-weight: 620;
  line-height: 0.83;
  letter-spacing: -0.078em;
}

.hero h1 em,
.about-copy h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 em {
  color: var(--signal);
}

.hero-footer {
  display: grid;
  grid-template-columns: minmax(280px, 470px) 1fr;
  align-items: end;
  gap: 3rem;
  padding: 5vh 0 4.5vh;
}

.hero-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
}

.round-link {
  justify-self: end;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.round-link b {
  font-size: 1.25rem;
  font-weight: 400;
}

.round-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-5deg);
}

.hero-rule {
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.apps-section {
  padding: 8rem 4.4vw;
  background: var(--inverse);
  color: var(--inverse-ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 4rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.3vw, 5.5rem);
  font-weight: 570;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section-intro {
  margin: 0;
  color: #a7a49b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.app-card {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: var(--on-bright);
}

.redsum-card {
  background: #ff6844;
}

.rssum-card {
  background: var(--acid);
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-icon {
  width: clamp(90px, 10vw, 144px);
  height: clamp(90px, 10vw, 144px);
  border-radius: 23%;
  box-shadow: 0 18px 35px rgba(24, 24, 20, 0.15);
}

.app-number {
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
}

.app-copy {
  margin-top: auto;
}

.app-platform {
  margin: 0 0 0.5rem;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-copy h3 {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.app-copy > p:last-child {
  max-width: 560px;
  margin: 1.5rem 0 2.2rem;
  font-size: 1rem;
  line-height: 1.55;
}

.app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 23, 20, 0.45);
  font-size: 0.85rem;
  font-weight: 650;
}

.app-actions a:first-child {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-actions a {
  transition: opacity 160ms ease;
}

.app-actions a:hover {
  opacity: 0.55;
}

.secondary-link {
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.secondary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
}

.projects-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.6fr;
  gap: 7vw;
  padding: 9rem 4.4vw;
}

.projects-lead {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.projects-lead h2 {
  margin: 1.3rem 0 2rem;
  font-size: clamp(3.4rem, 5.6vw, 6rem);
  font-weight: 570;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.projects-lead h2 span {
  color: var(--signal);
}

.projects-lead > p:not(.eyebrow) {
  max-width: 390px;
  margin: 0 0 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.projects-lead > a,
.profile-link {
  display: inline-flex;
  gap: 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
}

.project-list {
  border-top: 1px solid var(--ink);
}

.project-row {
  display: grid;
  grid-template-columns: 38px 1fr 46px;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 200ms ease, color 200ms ease;
}

.project-row:hover {
  padding-left: 0.8rem;
  color: #d74424;
}

.project-index {
  padding-top: 0.55rem;
  font-family: var(--font-geist-mono), monospace;
  color: var(--muted);
  font-size: 0.65rem;
}

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

.project-title h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 590;
  letter-spacing: -0.045em;
}

.project-title > span {
  flex: 0 0 auto;
  font-family: var(--font-geist-mono), monospace;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.project-main > p {
  max-width: 650px;
  margin: 0.85rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.project-arrow {
  align-self: center;
  justify-self: end;
  font-size: 1.4rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) 1.5fr;
  align-items: center;
  gap: 7vw;
  padding: 8rem 4.4vw;
  background: var(--about-surface);
}

.about-photo-wrap {
  position: relative;
  max-width: 470px;
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
}

.photo-label {
  position: absolute;
  right: -3.5rem;
  bottom: 3rem;
  display: block;
  padding: 0.8rem 1.1rem;
  background: var(--acid);
  color: var(--on-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  transform: rotate(-90deg);
  transform-origin: center;
}

.about-copy h2 {
  margin: 1.3rem 0 3rem;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 570;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.about-copy h2 em {
  color: #d74424;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 830px;
  margin-bottom: 2.3rem;
}

.about-columns p {
  margin: 0;
  color: var(--about-muted);
  line-height: 1.65;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 4rem 4.4vw;
  background: var(--signal);
  color: var(--on-bright);
}

.contact-strip p {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.contact-strip a {
  flex: 0 0 auto;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--on-bright);
  font-size: 0.82rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.contact-strip a:hover {
  background: var(--on-bright);
  color: #f2f0ea;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 160px;
  padding: 2rem 4.4vw;
  background: var(--inverse);
  color: var(--inverse-ink);
}

footer p,
footer > a:last-child {
  color: #8f8d85;
  font-size: 0.72rem;
}

footer p {
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

.footer-mark {
  font-size: 2rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    margin: 14vh 0 12vh;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .app-grid,
  .projects-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .projects-lead {
    position: static;
  }

  .about-photo-wrap {
    max-width: 380px;
  }

  .app-card {
    min-height: 540px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-kicker {
    align-items: flex-start;
    gap: 1rem;
  }

  .hero h1 {
    margin: 5rem 0 4rem;
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .hero-footer {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .round-link {
    justify-self: start;
    width: 110px;
    height: 110px;
  }

  .hero-rule span:nth-child(even) {
    display: none;
  }

  .apps-section,
  .projects-section,
  .about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .app-card {
    min-height: 510px;
  }

  .app-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .secondary-actions {
    margin-left: auto;
  }

  .app-copy h3 {
    font-size: 4.4rem;
  }

  .project-row {
    grid-template-columns: 30px 1fr 20px;
    gap: 0.65rem;
  }

  .project-title {
    display: block;
  }

  .project-title > span {
    display: block;
    margin-top: 0.4rem;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

  .photo-label {
    right: -3rem;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
