/* Fonts: self-hosted variable WOFF2 (OFL), latin subset. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mist: #EDF1F0;
  --paper: #FFFFFF;
  --ink: #13233F;
  --slate: #55617A;
  --rule: #C7D0D4;
  --ball: #F4C430;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --prose: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 1.125rem;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 8px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Top bar */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding: 1.75rem 0 0;
  font-family: var(--display);
}
.top .name { font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.top nav { display: flex; gap: 1.5rem; font-size: 1rem; }

/* Hero */
.hero { padding: 4rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 700; }
.hero .lede { margin-top: 1.5rem; color: var(--slate); font-size: 1.25rem; }
.meta { margin-top: 1.5rem; display: grid; gap: 0.35rem; font-family: var(--display); font-size: 1.0625rem; color: var(--slate); }
.meta b { color: var(--ink); font-weight: 600; }
.where::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--ball); margin-right: 0.55em; vertical-align: middle;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.2rem; border-radius: 8px;
  border: 1.5px solid var(--ink);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--paper); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #0B1628; }
.btn.ball { background: var(--ball); border-color: var(--ball); color: var(--ink); }
.btn.ball:hover { background: #E8B71F; }

/* Public project */
.tag {
  display: inline-block;
  font-family: var(--display); font-size: 0.875rem; font-weight: 600;
  padding: 0.15rem 0.65rem; border-radius: 999px; line-height: 1.5;
}
.tag.public { background: var(--ball); color: var(--ink); }
.feature {
  background: var(--paper); border-radius: 14px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem; align-items: center;
  padding: 2.25rem;
}
.feature h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; margin: 0.9rem 0 1rem; }
.feature p { max-width: 46ch; }
.feature .facts { color: var(--slate); font-size: 1rem; margin-top: 0.9rem; }

/* Private work */
.work { padding: 4.5rem 0 0; }
.work > h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.work .note { max-width: 62ch; color: var(--slate); margin-bottom: 1.75rem; }
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 2rem; padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}
.case h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.75rem; }
.case p { max-width: 58ch; }
.case .part { margin-top: 0.75rem; }
.case .part b { font-family: var(--display); font-weight: 600; }
.case .stack { margin-top: 0.75rem; font-size: 1rem; color: var(--slate); }

/* Screenshots */
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.shot figcaption { font-family: var(--display); font-size: 0.875rem; color: var(--slate); margin-top: 0.5rem; }
/* Desktop app window sitting in front of its web screen */
.shot.pair .stage { position: relative; padding: 0 1rem 1rem 0; }
.shot.pair .app {
  position: absolute; right: 0; bottom: 0; height: 84%; width: auto;
  border-radius: 8px; border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -12px rgba(19, 35, 63, 0.45), 0 2px 6px rgba(19, 35, 63, 0.15);
}

/* Contact */
.contact { padding: 2.75rem 0 3.5rem; border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; max-width: 22ch; }
.contact .lines { margin-top: 1.5rem; font-family: var(--display); font-size: 1.25rem; display: grid; gap: 0.35rem; justify-items: start; }

@media (max-width: 48rem) {
  .wrap { padding: 0 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .feature { grid-template-columns: 1fr; padding: 1.5rem; }
  .case { grid-template-columns: 1fr; gap: 0.75rem; }
  .case .shot { margin-top: 0.75rem; }
}

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