:root {
  --ink: #292722;
  --paper: #f7f1e8;
  --white: #fffdf9;
  --muted: #6f6a61;
  --line: #d8d0c3;
  --blue: #a9c8f5;
  --pink: #f2b6c1;
  --yellow: #f3d77b;
  --green: #b9d7b0;
  --purple: #cbbce9;
  --orange: #efb183;
  --max: 1320px;
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(169, 200, 245, .35), transparent 22rem),
    radial-gradient(circle at 92% 30%, rgba(242, 182, 193, .25), transparent 24rem),
    var(--paper);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 11px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header,
main,
footer {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.wordmark {
  width: max-content;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.06em;
  text-decoration: none;
}

.wordmark span { color: #e17e8e; }

nav { display: flex; gap: 32px; }
nav a, footer a { text-underline-offset: 5px; }
nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible { text-decoration-thickness: 3px; }

.status { justify-self: end; color: var(--muted); }
.status i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--ink);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, calc(100svh - 82px));
  padding: clamp(80px, 13vh, 150px) 0 70px;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .project-type {
  margin: 0;
  color: var(--muted);
  font: 700 13px/1.2 "Courier New", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1100px;
  margin: 26px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 10.5vw, 150px);
  font-weight: 500;
  line-height: .83;
  letter-spacing: -.075em;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  font-style: italic;
}

.hero h1 span::after {
  position: absolute;
  right: -.04em;
  bottom: .03em;
  left: -.02em;
  z-index: -1;
  height: .18em;
  border-radius: 999px;
  background: var(--yellow);
  content: "";
  transform: rotate(-2deg);
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-top: clamp(60px, 10vh, 115px);
}

.lede {
  max-width: 650px;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.action {
  display: inline-flex;
  min-width: 220px;
  padding: 15px 19px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.action:hover, .action:focus-visible {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.doodle { position: absolute; pointer-events: none; }
.doodle-flower {
  top: 12%;
  right: 5%;
  color: #d97f90;
  font-size: clamp(45px, 6vw, 84px);
  transform: rotate(12deg);
}
.doodle-loop {
  right: 13%;
  bottom: 14%;
  width: 90px;
  height: 45px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.curious {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  padding: 100px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.curious h2, .section-heading h2, .more h2 {
  margin: 15px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.curious h2 { max-width: 500px; font-size: clamp(44px, 5vw, 72px); line-height: .98; }
.curious ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
.curious li {
  padding: 11px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: 700 13px/1 "Courier New", monospace;
  transform: rotate(var(--tilt, 0));
}
.curious li:nth-child(odd) { --tilt: -2deg; }
.curious li:nth-child(even) { --tilt: 2deg; }
.pill-blue { background: var(--blue); }
.pill-pink { background: var(--pink); }
.pill-yellow { background: var(--yellow); }
.pill-green { background: var(--green); }
.pill-purple { background: var(--purple); }
.pill-orange { background: var(--orange); }

.work, .fresh { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: clamp(54px, 7vw, 96px); line-height: .95; }

.project {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 530px;
  margin-top: 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 30px;
  box-shadow: 7px 7px 0 var(--ink);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s, transform .5s;
}
.project[data-visible="true"] { opacity: 1; transform: none; }
.project-blue { background: #dceafa; }
.project-pink { background: #f6d9df; }
.project-green { background: #dcebdd; }
.project-yellow { background: #f8e9aa; }
.project-copy { padding: clamp(38px, 6vw, 78px); }
.project-copy h3 {
  max-width: 650px;
  margin: 22px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.05em;
}
.project-copy > p:not(.project-type) { max-width: 610px; font-size: 18px; line-height: 1.5; }
.project-copy ul {
  display: flex;
  margin: 34px 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.project-copy li {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 249, .55);
  font: 13px/1 "Courier New", monospace;
}
.project-copy a { font-weight: 700; text-underline-offset: 6px; }

.project-visual {
  display: grid;
  min-height: 400px;
  place-items: center;
  border-left: 2px solid var(--ink);
  background: rgba(255, 253, 249, .5);
}
.route-map {
  position: relative;
  width: min(78%, 430px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background:
    linear-gradient(rgba(41,39,34,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,39,34,.1) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
}
.route {
  position: absolute;
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #628cc7;
  transform-origin: left center;
}
.r1 { top: 22%; left: 8%; width: 70%; transform: rotate(32deg); }
.r2 { top: 76%; left: 17%; width: 77%; transform: rotate(-48deg); }
.r3 { top: 47%; left: 4%; width: 90%; transform: rotate(6deg); }
.stop {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.s1 { top: 24%; left: 27%; } .s2 { top: 43%; left: 64%; }
.s3 { top: 69%; left: 34%; } .s4 { top: 50%; left: 80%; }
.route-map b {
  position: absolute;
  right: 22px;
  bottom: 26px;
  font: 500 82px/.7 Georgia, serif;
}
.route-map small {
  position: absolute;
  right: 23px;
  bottom: 10px;
  font: 12px/1 "Courier New", monospace;
}
.diff-window {
  width: min(80%, 470px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  font: 14px/1.5 "Courier New", monospace;
}
.window-bar { display: flex; gap: 7px; padding: 14px; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.window-bar i { width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); }
.diff-window p { margin: 0; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.diff-window p span { display: inline-block; width: 30px; }
.diff-window .clean { background: #e4f1df; }
.diff-window .alert { background: #f6d9df; }
.diff-window strong { display: block; padding: 22px 20px; color: #a94f60; }

.queue-map {
  width: min(80%, 430px);
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.queue-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font: 13px/1 "Courier New", monospace;
  text-transform: uppercase;
}
.queue-row i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
}
.queue-row.active i {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(233, 198, 85, .28);
}
.queue-row b { font-size: 18px; font-weight: 500; }
.queue-map > small {
  display: block;
  margin-top: 20px;
  font: 12px/1 "Courier New", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.packet-window {
  width: min(80%, 470px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  font: 14px/1.5 "Courier New", monospace;
}
.packet-window p { margin: 0; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.packet-window p span { display: inline-block; width: 55px; }
.packet-window .clean { background: #e4f1df; }
.packet-window .alert { background: #f6d9df; }
.packet-window strong { display: block; padding: 22px 20px; color: #a94f60; }

.ledger-window {
  width: min(80%, 430px);
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.ledger-total { display: flex; flex-direction: column; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 22px; }
.ledger-total small, .ledger-window > small {
  font: 12px/1 "Courier New", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ledger-total b { font: 500 64px/.9 Georgia, serif; letter-spacing: -.05em; }
.ledger-bars { display: flex; align-items: end; gap: 12px; height: 150px; margin-top: 28px; }
.ledger-bars i { flex: 1; border: 2px solid var(--ink); border-bottom: 0; background: var(--orange); }
.ledger-bars i:nth-child(1) { height: 42%; }
.ledger-bars i:nth-child(2) { height: 68%; }
.ledger-bars i:nth-child(3) { height: 54%; }
.ledger-bars i:nth-child(4) { height: 82%; }
.ledger-bars i:nth-child(5) { height: 64%; }
.ledger-bars i:nth-child(6) { height: 92%; }
.ledger-window > small { display: block; margin-top: 16px; }

.network-map {
  position: relative;
  width: min(80%, 450px);
  aspect-ratio: 1.15;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 25%, rgba(185, 215, 176, .8), transparent 14rem), var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.network-map .link {
  position: absolute;
  height: 3px;
  border-radius: 4px;
  background: #759b71;
  transform-origin: left center;
}
.network-map .l1 { top: 28%; left: 24%; width: 42%; transform: rotate(20deg); }
.network-map .l2 { top: 28%; left: 24%; width: 43%; transform: rotate(78deg); }
.network-map .l3 { top: 70%; left: 24%; width: 42%; transform: rotate(-21deg); }
.network-map .l4 { top: 28%; left: 66%; width: 32%; transform: rotate(102deg); }
.network-map .l5 { top: 70%; left: 24%; width: 61%; transform: rotate(-36deg); }
.network-map .node {
  position: absolute;
  z-index: 1;
  width: 27px;
  height: 27px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.network-map .n1 { top: 18%; left: 17%; background: var(--pink); }
.network-map .n2 { top: 18%; left: 61%; }
.network-map .n3 { top: 61%; left: 17%; background: var(--blue); }
.network-map .n4 { top: 61%; left: 61%; background: var(--purple); }
.network-map .n5 { top: 38%; left: 39%; background: var(--green); }
.network-map .n6 { top: 39%; left: 82%; background: var(--orange); }
.network-map b { position: absolute; right: 22px; bottom: 25px; font: 500 72px/.7 Georgia, serif; }
.network-map small { position: absolute; right: 23px; bottom: 10px; font: 12px/1 "Courier New", monospace; }

.project-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shelf-card {
  display: flex;
  min-height: 270px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  flex-direction: column;
}

.shelf-card:nth-child(3n + 1) { background: #dceafa; }
.shelf-card:nth-child(3n + 2) { background: #f6d9df; }
.shelf-card:nth-child(3n) { background: #f8e9aa; }

.shelf-card h3 {
  margin: 20px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: capitalize;
}

.shelf-card > p:not(.project-type) {
  margin: 0 0 28px;
  line-height: 1.45;
}

.shelf-card a {
  margin-top: auto;
  font-weight: 700;
  text-underline-offset: 5px;
}

.more {
  position: relative;
  min-height: 650px;
  padding: 130px 0;
  overflow: hidden;
}
.more h2 { max-width: 1000px; font-size: clamp(58px, 8vw, 112px); line-height: .9; }
.more .action { margin-top: 55px; background: var(--yellow); }
.orbit {
  position: absolute;
  right: 4%;
  bottom: 17%;
  display: grid;
  width: 180px;
  height: 180px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  place-items: center;
}
.orbit::after { position: absolute; width: 235px; height: 75px; border: 3px solid var(--pink); border-radius: 50%; content: ""; transform: rotate(-35deg); }
.orbit span { color: #d97f90; font-size: 54px; }

footer {
  display: flex;
  padding: 28px 0 40px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 13px/1.3 "Courier New", monospace;
}

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: 720px; }
  .hero-bottom { align-items: start; flex-direction: column; }
  .curious, .project { grid-template-columns: 1fr; }
  .project-shelf { grid-template-columns: repeat(2, 1fr); }
  .project-visual { border-top: 2px solid var(--ink); border-left: 0; }
  .doodle-loop { display: none; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, var(--max)); }
  .status { font-size: 12px; }
  .hero { min-height: 650px; padding-top: 70px; }
  .hero h1 { font-size: clamp(58px, 20vw, 92px); }
  .doodle-flower { top: 5%; }
  .curious, .work, .fresh { padding: 80px 0; }
  .project-shelf { grid-template-columns: 1fr; }
  .project { border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
  .project-copy { padding: 35px 24px 45px; }
  .project-copy h3 { font-size: 43px; }
  .project-visual { min-height: 350px; }
  .route-map, .diff-window, .queue-map, .packet-window, .ledger-window { width: 87%; }
  .more { min-height: 600px; padding: 100px 0; }
  .orbit { right: -75px; bottom: 8%; opacity: .7; }
  footer { gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action, .project { transition: none; }
  .project { opacity: 1; transform: none; }
}
