@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Gary's wardrobe: plaid trousers, mustard tie, a navy blazer he never wears. */
  --paper: #f5efe3;
  --paper-2: #ebe1cd;
  --card: #fffdf8;
  --fg: #1a1d24;
  --muted: #5d574f;
  --line: #d8cdb8;
  --edge: #1a1d24;      /* outlines and hard shadows */
  --red: #c0352b;
  --mustard: #e3a72f;
  --navy: #1e2b45;
  --teal: #2c5e57;
  --ink: #171a20;
  --radius: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: max(24px, calc((100% - 1080px) / 2 + 24px));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15161a;
    --paper-2: #1c1e23;
    --card: #23262c;
    --fg: #f0ebe1;
    --muted: #aaa398;
    --line: #34363d;
    --edge: #000000;
    --ink: #0e1013;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.45em; font-weight: 750; }
h2 { font-size: clamp(32px, 5vw, 52px); max-width: 16ch; }
h3 { font-size: 26px; letter-spacing: -0.015em; }
code, pre { font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
p { margin: 0 0 1em; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px var(--display); text-decoration: none; letter-spacing: -0.03em; }
.mark { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--edge); }
.top nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 550; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--red); }
.top nav .gh { color: var(--fg); display: inline-flex; }
@media (max-width: 760px) { .top nav a:not(.gh) { display: none; } }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* Plaid, after his trousers */
.mark, .banner, .plaid {
  background-color: var(--red);
  background-image:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.30) 0 7px, transparent 7px 24px, rgb(255 255 255 / 0.45) 24px 25px, transparent 25px 34px, rgb(0 0 0 / 0.18) 34px 36px, transparent 36px 48px),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.30) 0 7px, transparent 7px 24px, rgb(255 255 255 / 0.45) 24px 25px, transparent 25px 34px, rgb(0 0 0 / 0.18) 34px 36px, transparent 36px 48px);
}

/* Buttons */
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font: 650 17px var(--display); letter-spacing: -0.01em;
  text-decoration: none; color: var(--fg); background: var(--card); border: 2px solid var(--edge);
  box-shadow: 4px 4px 0 var(--edge); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--edge); }
.btn.primary { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.tag, .kicker {
  display: inline-block; margin: 0 0 22px; padding: 5px 12px; border: 1.5px solid currentColor; border-radius: 999px;
  font: 700 12.5px var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 56px var(--gutter) 88px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; right: calc(var(--gutter) - 120px); top: 20px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mustard) 55%, transparent), transparent 68%);
}
.hero > * { position: relative; z-index: 1; }
.hero .tag { color: var(--red); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -0.035em; font-weight: 800; max-width: 12ch; }
.hero h1 mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--mustard) 80%, transparent) 58% 92%, transparent 92%); color: inherit; padding: 0 2px; }
.lead { font-size: 21px; color: var(--muted); margin: 0 0 30px; max-width: 34ch; }
.hint { color: var(--muted); font-size: 15px; margin: 30px 0 0; max-width: 46ch; }
.hint::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--red); vertical-align: 1px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
}
.footnote { color: var(--muted); font-size: 13px; margin: 8px 0 0; font-style: italic; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
  .hero::before { top: auto; bottom: 0; right: -140px; }
}

/* Gary's profile, in the style of a professional network */
.profile {
  width: 100%; max-width: 440px; justify-self: end; overflow: hidden;
  background: #fff; color: rgb(0 0 0 / 0.9); border: 1px solid rgb(0 0 0 / 0.1); border-radius: 10px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.06), 0 24px 60px rgb(30 43 69 / 0.22);
  font: 15px/1.45 -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: 0;
}
@media (max-width: 900px) { .profile { justify-self: center; } }
.profile .banner { height: 112px; }
.profile .avatar {
  display: block; width: 164px; height: 164px; margin: -104px 0 0 22px; position: relative; z-index: 1;
  border-radius: 50%; border: 4px solid #fff; background: #dbe4ee; object-fit: cover; object-position: 50% 30%;
}
.profile .body { padding: 10px 24px 20px; }
.profile .name, .profile .about h3 { font-family: inherit; font-weight: 600; letter-spacing: 0; }
.profile .name { font-size: 26px; line-height: 1.2; margin: 0 0 4px; max-width: none; }
.profile .headline { margin: 0 0 8px; font-size: 16px; }
.profile .connections { margin: 0 0 14px; color: #0a66c2; font-weight: 600; font-size: 14px; }
.profile .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.li-btn {
  display: inline-block; padding: 6px 18px; border-radius: 999px; border: 1px solid #0a66c2; color: #0a66c2;
  font-weight: 600; font-size: 15px; text-decoration: none; background: #fff;
}
.li-btn:hover { background: #eaf3fc; box-shadow: inset 0 0 0 1px #0a66c2; }
.li-btn.solid { background: #0a66c2; color: #fff; }
.li-btn.solid:hover { background: #004182; border-color: #004182; box-shadow: none; }
.profile .about { border-top: 1px solid rgb(0 0 0 / 0.08); padding: 18px 24px 22px; }
.profile .about h3 { font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.profile .about p { margin: 0; font-size: 14px; }

/* Jargon ticker */
.ticker { overflow: hidden; background: var(--red); color: #fff; border-block: 2px solid var(--edge); }
.track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.track span { padding: 14px 0; font: 700 18px var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.track span::after { content: "✶"; margin: 0 26px; color: var(--mustard); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* Bands */
.band { padding: 104px var(--gutter); }
@media (max-width: 600px) { .band { padding-block: 72px; } }
.sub { color: var(--muted); font-size: 19px; margin: 0 0 48px; max-width: 46ch; }
.paper { background: var(--paper); }
.paper .kicker { color: var(--red); }
#characters { background: var(--paper-2); }

.navy { background: var(--navy); color: #f3efe6; }
.navy .kicker { color: var(--mustard); }
.navy h2 { max-width: none; }
.navy .sub, .navy .steps li { color: #c6cedd; }
.navy a { color: #fff; text-decoration-color: var(--mustard); }

.mustard { background: var(--mustard); color: #1a1d24; border-block: 2px solid var(--edge); }

.ink { background: var(--ink); color: #ece6da; }
.band.ink .kicker { color: var(--mustard); }
.band.ink p { color: #b8b1a5; }
.ink .live { color: var(--mustard); }

/* Hire Gary */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 28px; max-width: 860px; }
.steps li { min-width: 0; counter-increment: step; position: relative; padding-left: 60px; font-size: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--mustard); color: #1a1d24; font: 800 19px var(--display);
  border: 2px solid #0b111d; box-shadow: 3px 3px 0 #0b111d;
}
.steps li b { color: #fff; }
.steps code { background: rgb(255 255 255 / 0.1); border-radius: 5px; padding: 1px 6px; color: #fff; }
.snippet { position: relative; margin-top: 14px; background: #111a2c; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px; }
.snippet pre { margin: 0; padding: 18px 100px 18px 20px; overflow-x: auto; color: #f0b44c; }
.snippet code { background: none; padding: 0; color: inherit; }
.copy {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%); cursor: pointer;
  font: 700 14px var(--display); padding: 7px 16px; border-radius: 8px; border: 2px solid #0b111d; background: var(--mustard); color: #1a1d24;
}

/* Demos */
.frame { border: 2px solid var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 10px 10px 0 var(--accent, var(--red)); }
.frame::before {
  content: ""; display: block; height: 30px; border-bottom: 2px solid var(--edge); background-color: var(--paper-2);
  background-image: radial-gradient(circle, var(--red) 5px, transparent 5.5px), radial-gradient(circle, var(--mustard) 5px, transparent 5.5px), radial-gradient(circle, var(--teal) 5px, transparent 5.5px);
  background-size: 18px 30px; background-repeat: no-repeat; background-position: 12px 0, 30px 0, 48px 0;
}
.frame.red { --accent: var(--red); }
.frame.mustard { --accent: var(--mustard); }
.frame.navy { --accent: var(--navy); }
.frame.teal { --accent: var(--teal); }
video { display: block; width: 100%; aspect-ratio: 960 / 640; height: auto; object-fit: cover; background: var(--card); }

.demo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.demo:last-child { margin-bottom: 0; }
.demo.flip { grid-template-columns: 1fr 1.55fr; }
.demo.flip .frame { order: 2; }
.demo > * { min-width: 0; }
.demo p { color: var(--muted); }
.demo code { display: inline-block; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 10px; margin-bottom: 16px; }
.live { display: inline-block; margin-right: 18px; font: 700 17px var(--display); color: var(--red); text-decoration: none; }
.live:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .demo, .demo.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .demo.flip .frame { order: 0; }
  .frame { box-shadow: 6px 6px 0 var(--accent, var(--red)); }
}

/* Features */
.features ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features li {
  background: #fffaf0; color: #4d473f; border: 2px solid #1a1d24; border-radius: 12px; padding: 22px 22px 24px; font-size: 15.5px;
  box-shadow: 5px 5px 0 #1a1d24;
}
.features li span { display: block; font: 800 14px var(--display); color: var(--red); margin-bottom: 10px; }
.features li b { display: block; color: #1a1d24; font: 750 21px/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 6px; }
@media (max-width: 860px) { .features ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .features ul { grid-template-columns: 1fr; } }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > .frame { order: 2; }
.split p { color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > .frame { order: 0; }
}

.editor { background: #0d1015; border: 1px solid #2b2f37; border-radius: var(--radius); overflow: hidden; box-shadow: 10px 10px 0 var(--red); }
.editor-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #161a21; border-bottom: 1px solid #2b2f37; }
.editor-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.editor-bar i:nth-child(2) { background: var(--mustard); }
.editor-bar i:nth-child(3) { background: #3f8a7e; }
.editor-bar span { margin-left: 10px; color: #8a8f99; font: 13px ui-monospace, Menlo, monospace; }
.editor pre { margin: 0; padding: 20px 22px; overflow-x: auto; color: #d8d3c8; }
.editor .k { color: #f0b44c; }
.editor .s { color: #9ed4a5; }
.editor .n { color: #f28b7d; }
.editor .t { color: #8fb4ea; }

/* Outro */
.outro { padding-block: 120px; }
.outro-card {
  max-width: 720px; margin: 0 auto; text-align: center; background: var(--card); color: var(--fg);
  border: 2px solid var(--edge); border-radius: 18px; padding: 56px 48px; box-shadow: 12px 12px 0 var(--edge);
}
.outro-card .kicker { color: var(--red); }
.outro-card h2 { margin-inline: auto; }
.outro-card p:not(.kicker) { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; font-size: 18px; }
.outro-card .ctas { justify-content: center; }
@media (max-width: 600px) { .outro-card { padding: 40px 22px; box-shadow: 7px 7px 0 var(--edge); } }

/* Footer */
footer { background: var(--navy); color: #b9c2d3; padding: 40px var(--gutter) 56px; font-size: 14px; border-top: 2px solid var(--edge); }
footer p { margin: 0 0 6px; max-width: 780px; }
footer a { color: #fff; }
footer .credit { margin-top: 18px; font-size: 15px; }
footer .credit a { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
