:root {
  --paper: #ece9e2;
  --panel: #f7f5f0;
  --ink: #1d1c1a;
  --muted: #625e56;
  --rule: #d2cec4;
  --accent: #1f5d4c;
  --sun: #ffd447;
  --live: #23804f;
  --test: #a8620a;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--hand); font-weight: 600; }

/* ---------- Header ---------- */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 28px; padding-bottom: 8px;
}
.mark {
  font: 700 1.2rem/1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-decoration: none;
}
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: .95rem; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text photo" "stickers stickers";
  gap: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(72px, 10vw, 136px);
}
.hero-text { grid-area: text; }
.hero h1 {
  font: 700 clamp(3rem, 8.4vw, 6.6rem)/.95 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  color: var(--muted);
}
.avail {
  margin-top: 22px;
  font-weight: 500;
}
.links {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-weight: 500;
}

.polaroid {
  grid-area: photo;
  position: relative;
  margin: 0;
  width: clamp(210px, 25vw, 300px);
  padding: 13px 13px 4px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(40, 30, 10, .08), 0 18px 40px rgba(40, 30, 10, .14);
  transform: rotate(3deg);
}
/* a strip of masking tape */
.polaroid::before {
  content: "";
  position: absolute; top: -14px; left: 50%;
  width: 96px; height: 28px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 212, 71, .75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { text-align: center; color: #3a3550; font-size: 1.8rem; line-height: 1.5; }

/* project logos laid out like laptop stickers */
.stickers { grid-area: stickers; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.stickers-note { font-size: 1.6rem; color: var(--accent); transform: rotate(-2deg); }
.stickers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.stickers a {
  display: block;
  padding: 5px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(40, 30, 10, .1), 0 6px 14px rgba(40, 30, 10, .1);
  transition: transform .2s ease;
}
.stickers li:nth-child(1) a { transform: rotate(-6deg); }
.stickers li:nth-child(2) a { transform: rotate(4deg); }
.stickers li:nth-child(3) a { transform: rotate(-3deg); }
.stickers li:nth-child(4) a { transform: rotate(7deg); }
.stickers li:nth-child(5) a { transform: rotate(-5deg); }
.stickers li:nth-child(6) a { transform: rotate(3deg); }
.stickers li:nth-child(7) a { transform: rotate(-2deg); }
.stickers a:hover { transform: rotate(0) scale(1.08); }
.stickers img { width: 52px; height: 52px; border-radius: 13px; }
@media (prefers-reduced-motion: reduce) { .stickers a { transition: none; } }

/* ---------- Sections ---------- */
.section { padding-bottom: clamp(80px, 11vw, 144px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 60ch; }
.section-head h2 {
  font: 700 clamp(2.3rem, 5.4vw, 3.8rem)/1.02 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 120;
  letter-spacing: -.03em;
}
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "media about";
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(72px, 10vw, 128px);
}
.project.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "about media"; }

.media {
  grid-area: media;
  position: sticky; top: 24px;
  background: var(--tint);
  border-radius: 28px;
  padding: clamp(18px, 3.4vw, 44px);
}
/* screenshots sit in a little browser window */
.window {
  display: block;
  background: #f1efeb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 24px 48px -12px rgba(0, 0, 0, .3);
}
.window::before {
  content: "";
  display: block; height: 22px;
  background:
    radial-gradient(circle at 14px 11px, #ff6159 4px, transparent 4.5px),
    radial-gradient(circle at 28px 11px, #ffbd2e 4px, transparent 4.5px),
    radial-gradient(circle at 42px 11px, #28c941 4px, transparent 4.5px),
    #f1efeb;
}
.window img { width: 100%; display: block; }

.stack-two { display: grid; }
.stack-two .window { grid-area: 1 / 1; width: 82%; align-self: start; }
.stack-two .window:last-child { justify-self: end; margin-top: 40%; }

.media.phone { display: grid; place-items: center; padding-bottom: 0; overflow: hidden; }
.media.phone img {
  width: min(58%, 260px);
  border-radius: 28px 28px 0 0;
  border: 8px solid #111; border-bottom: 0;
  margin-top: 12px;
}

.about { grid-area: about; padding-top: 8px; }
.id { display: flex; align-items: center; gap: 10px; }
.id img { width: 40px; height: 40px; border-radius: 10px; }
.id .status { margin-left: 6px; }
.about h3 {
  font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  letter-spacing: -.02em;
  margin: 16px 0 12px;
  overflow-wrap: anywhere;
}
.about h3 a { text-decoration: none; }
.about h3 a:hover { text-decoration: underline; }
.about h3 .and { color: var(--muted); font-weight: 400; }
.desc { color: var(--muted); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  background: var(--panel);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--live); }
.status.test { color: var(--test); }

.note {
  margin: 16px 0 4px;
  color: var(--accent);
  font-size: 1.6rem; line-height: 1.15;
  transform: rotate(-1.5deg);
  transform-origin: left;
  display: flex; gap: 8px; align-items: flex-start;
}
.note::before {
  content: "";
  flex: none; width: 26px; height: 20px; margin-top: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 3c4 9 10 13 20 12m0 0-5-5m5 5-5 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 3c4 9 10 13 20 12m0 0-5-5m5 5-5 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.about h4 { margin: 28px 0 12px; font-size: .95rem; font-weight: 600; }

/* the flow is a real sequence, so it's numbered and joined */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 38px;
  color: var(--muted);
  font-size: .95rem; line-height: 1.45;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  display: grid; place-items: center;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font: 600 .78rem/1 var(--sans);
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute; left: 12px; top: 28px; bottom: 2px;
  border-left: 1.5px dashed var(--rule);
}
.flow b { color: var(--ink); font-weight: 600; }

.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stack span {
  font-size: .8rem; font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.more { margin-top: 16px; font-size: .95rem; font-weight: 500; }

/* ---------- Smaller things ---------- */
.small-head {
  font: 700 clamp(1.6rem, 3vw, 2rem)/1.2 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  margin-bottom: 24px;
}
.smalls {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.smalls li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--panel);
  border-radius: 22px;
}
.thumb { display: block; }
.thumb img, .leaf {
  width: 92px; aspect-ratio: 3 / 5; object-fit: cover; object-position: top;
  border-radius: 12px;
  border: 1px solid var(--rule);
}
.leaf { display: grid; place-items: center; background: #dcebd9; color: var(--live); }
.smalls h4 {
  display: flex; align-items: center; gap: 8px;
  font: 700 1.15rem/1.3 var(--serif); font-variation-settings: "SOFT" 100;
  margin-bottom: 6px;
}
.smalls h4 img { width: 22px; height: 22px; border-radius: 6px; }
.emoji { font-size: 1rem; }
.smalls p { font-size: .92rem; color: var(--muted); }
.smalls .stack { margin-top: 12px; }
.smalls .stack span { font-size: .74rem; padding: 2px 8px; }

/* ---------- Work ---------- */
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs > li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px;
  padding: 36px 0;
  border-top: 1.5px solid var(--ink);
}
.jobs > li + li { border-top: 1px solid var(--rule); }
.brand {
  display: grid; place-items: center;
  height: 96px;
  padding: 18px 26px;
  background: #fff;
  border-radius: 18px;
}
.brand img { max-height: 46px; width: auto; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.when { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.role {
  font: 700 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
  letter-spacing: -.015em;
  margin: 4px 0 10px;
}
.what { max-width: 64ch; color: var(--muted); }
.figs {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  font-size: .9rem; color: var(--muted);
}
.figs b {
  display: block;
  font: 700 2rem/1.05 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--ink);
}

/* ---------- Toolkit ---------- */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kit > div { background: var(--panel); border-radius: 22px; padding: 22px; }
.kit h3 {
  font: 700 1.25rem/1.3 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1;
  margin-bottom: 10px;
  display: inline-block;
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  padding: 0 2px;
}
.kit p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.contact::before { content: ""; display: block; border-top: 1.5px solid var(--ink); margin-bottom: clamp(40px, 6vw, 64px); }
.contact h2 {
  font: 700 clamp(1.8rem, 3.6vw, 2.4rem)/1.1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  letter-spacing: -.02em;
}
.contact > p { margin-top: 10px; color: var(--muted); max-width: 56ch; }
.contact .links { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .project, .project.flip {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "about";
  }
  .media { position: static; }
  .smalls { grid-template-columns: 1fr; }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "stickers"; }
  .polaroid { width: 176px; padding: 9px 9px 2px; transform: rotate(-3deg); margin-top: 12px; }
  .polaroid figcaption { font-size: 1.4rem; }
  .stickers { gap: 8px; }
  .stickers ul { gap: 10px; }
  .stickers img { width: 42px; height: 42px; border-radius: 10px; }
  .jobs > li { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .brand { justify-self: start; width: 180px; height: 80px; padding: 14px 22px; }
  .kit { grid-template-columns: 1fr; }
  .figs { gap: 12px 28px; }
  .figs b { font-size: 1.6rem; }
  .media { border-radius: 22px; }
}
