:root {
  --ink: #25211f;
  --paper: #fff9ef;
  --panel: #ffffffb8;
  --accent: #ef476f;
  --accent-2: #118ab2;
  --accent-3: #ffd166;
  --line: #25211f22;
  --shadow: 0 18px 50px #44352b18;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent-3) 42%, transparent) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 18%, transparent) 0 12rem, transparent 12.1rem),
    var(--paper);
}

a {
  color: inherit;
}

.shell {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: 0.45rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50% 45% 55% 40%;
  background: var(--accent-3);
  transform: rotate(-8deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff96;
  backdrop-filter: blur(12px);
}

.nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.color-button {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  cursor: pointer;
  transition: transform 160ms ease;
}

.color-button:hover {
  transform: rotate(18deg) scale(1.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: 72vh;
  padding: 4rem 0 6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

h1 em {
  position: relative;
  color: var(--accent);
  font-weight: inherit;
}

h1 em::after {
  position: absolute;
  right: -0.08em;
  bottom: -0.02em;
  left: 0.05em;
  height: 0.1em;
  border-radius: 99px;
  background: var(--accent-3);
  content: "";
  transform: rotate(-2deg);
  z-index: -1;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

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

.portrait-card {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 12% 12% / 35% 35% 10% 10%;
  background:
    linear-gradient(145deg, var(--accent-3), var(--accent) 52%, var(--accent-2));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.portrait-card::before,
.portrait-card::after {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.portrait-card::before {
  width: 5rem;
  height: 5rem;
  top: -2rem;
  right: -1rem;
  background: var(--accent-3);
}

.portrait-card::after {
  width: 2.5rem;
  height: 2.5rem;
  bottom: 8%;
  left: -1rem;
  background: var(--paper);
}

.portrait-inner {
  display: grid;
  height: 100%;
  padding: 2rem;
  place-items: end start;
  border: 2px solid var(--ink);
  border-radius: inherit;
  background: #fff8;
  backdrop-filter: blur(10px);
}

.portrait-inner span {
  max-width: 10ch;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.section {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card:nth-child(2) {
  transform: translateY(1.5rem);
}

.card h3 {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.card p,
.prose p,
.list li {
  line-height: 1.65;
}

.card-number {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 2.5rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-3);
  font-weight: 800;
}

.page-hero {
  max-width: 52rem;
  padding: 6rem 0 4rem;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 10vw, 7rem);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 8vw, 7rem);
  padding: 2rem 0 7rem;
}

.sticky-note {
  align-self: start;
  padding: 2rem;
  border: 2px solid var(--ink);
  background: var(--accent-3);
  box-shadow: 0.6rem 0.6rem 0 var(--ink);
  transform: rotate(-2deg);
}

.prose {
  font-size: 1.08rem;
}

.list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.project {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-tag {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-box {
  padding: clamp(2rem, 7vw, 5rem);
  border: 2px solid var(--ink);
  border-radius: 3rem 0.8rem 3rem 0.8rem;
  background: var(--accent-3);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-box h2 {
  max-width: none;
  margin-bottom: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.orb {
  position: fixed;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-3);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease;
  z-index: 20;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    justify-content: center;
  }

  .nav a {
    padding: 0.5rem;
    font-size: 0.76rem;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .portrait-card {
    width: min(25rem, 85%);
    margin: 0 auto;
  }

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

  .card:nth-child(2) {
    transform: none;
  }

  .project {
    grid-template-columns: 3rem 1fr;
  }

  .project-tag {
    grid-column: 2;
  }

  .orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .orb {
    display: none;
  }
}
