/* wisperbird.ca  Plumage colourway (locked 2026-11-27)
   Mostly black. Six feather colours, one per project. */
:root {
  --bg: #050506;
  --bg-raised: #0c0c0e;
  --line: #1c1c20;
  --fg: #edebe6;
  --fg-dim: #8f8d88;
  --kingfisher: #1fb6ff;
  --violet: #9b6bff;
  --flamingo: #ff5fa2;
  --macaw: #ff3b30;
  --canary: #ffd60a;
  --parrot: #2ee86b;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.booting { overflow: hidden; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- flying version: ASCII intro (#sky) over the pixel-art level (#game) ---- */
#game, #sky {
  position: fixed; inset: 0; width: 100vw; height: 100vh; display: block;
  transition: opacity 1.3s ease;
}
#game { z-index: 0; opacity: 0; image-rendering: pixelated; touch-action: none; cursor: crosshair; outline: 0;
  transition: opacity 1.3s ease, filter .5s ease; }
#sky { z-index: 2; pointer-events: none; }
body.game-on #game { opacity: 1; }
body.game-on #sky { opacity: 0; }
body.dead #game { filter: saturate(.3) brightness(.62); }

/* smooth effects layer (glows, rings, streaks, flashes) and a faint screen texture over the pixel art */
#fx, #crt { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.3s ease; }
#fx { mix-blend-mode: screen; }
#crt {
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .16) 2px 3px);
}
body.game-on #fx, body.game-on #crt { opacity: 1; }

#dead {
  position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; font-family: var(--mono);
  background: radial-gradient(ellipse at center, rgba(5, 5, 6, .5), rgba(5, 5, 6, .88));
  animation: dead-in .45s ease both;
}
#dead[hidden] { display: none; }
#dead h2 { margin: 0; font: 900 clamp(34px, 7vw, 92px)/.95 var(--sans); letter-spacing: -.02em; color: var(--macaw); text-shadow: 4px 4px 0 #000; }
#dead p { margin: 0; color: var(--fg-dim); font-size: 14px; letter-spacing: .06em; }
#dead button {
  margin-top: 10px; padding: 14px 34px; cursor: pointer;
  font: 700 16px var(--mono); letter-spacing: .18em; color: var(--bg);
  background: var(--canary); border: 0; box-shadow: 5px 5px 0 #000;
}
#dead button:hover, #dead button:focus-visible { background: var(--fg); outline: 2px solid var(--canary); outline-offset: 4px; }
#dead span { font-size: 12px; letter-spacing: .1em; color: var(--fg-dim); }
@keyframes dead-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
body.game { overflow: hidden; overscroll-behavior: none; }
body.game .hero, body.game main, body.game footer { display: none; }
body:not(.game) #fx, body:not(.game) #crt, body:not(.game) #dead,
body:not(.game) #game, body:not(.game) #sky, body:not(.game) .skip,
body:not(.game) #hud, body:not(.game) #panel { display: none; }

#hud {
  position: fixed; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 16px; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font: 12px var(--mono); letter-spacing: .06em; color: var(--fg-dim); pointer-events: none;
}
#hud #feathers { color: var(--canary); white-space: nowrap; }
#hud .how { text-align: right; max-width: 34em; }

#panel {
  --c: var(--fg);
  position: fixed; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 3;
  width: min(560px, calc(100vw - 32px));
  padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(10, 10, 12, .95); border: 2px solid var(--c); box-shadow: 6px 6px 0 #000;
}
#panel[hidden] { display: none; }
#panel .no, #panel .kind { font: 12px var(--mono); letter-spacing: .12em; color: var(--c); }
#panel .kind { color: var(--fg-dim); }
#panel h2, #panel h3 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; }
#panel p { margin: 0; color: var(--fg-dim); font-size: 15.5px; line-height: 1.5; }
#panel p strong { color: var(--fg); }
#panel a { color: var(--c); }
#panel a.mail { font: 18px var(--mono); }

@media (max-width: 560px) {
  #hud { flex-direction: column-reverse; align-items: flex-start; gap: 4px; font-size: 11px; }
  #hud .how { text-align: left; }
  #panel { bottom: 76px; }
  .skip { bottom: 64px; }
}

/* the chrome waits for the intro to land; on the plain page it is simply there */
.land { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
body:not(.game) .land { opacity: 1; transform: none; transition: none; }
body.ready .land { opacity: 1; transform: none; }
body.ready .land.d1 { transition-delay: .12s; }
body.ready .land.d2 { transition-delay: .24s; }

.skip {
  position: fixed; right: 20px; bottom: 18px; z-index: 5;
  font: 12px var(--mono); letter-spacing: .08em; color: var(--fg-dim);
  background: none; border: 0; padding: 8px; cursor: pointer;
  transition: opacity .4s ease;
}
.skip:hover { color: var(--fg); }
body.ready .skip { opacity: 0; pointer-events: none; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  font: 13px var(--mono); letter-spacing: .06em;
  background: linear-gradient(var(--bg), transparent);
}
nav a { text-decoration: none; color: var(--fg-dim); margin-left: 22px; }
nav a:hover, nav a:focus-visible { color: var(--fg); }
nav button {
  margin-left: 22px; padding: 6px 10px; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: var(--fg);
  background: none; border: 1px solid var(--line);
}
nav button:hover, nav button:focus-visible { border-color: var(--canary); color: var(--canary); }
@media (max-width: 560px) { nav a:not(.mark) { margin-left: 12px; } nav button { margin-left: 12px; padding: 5px 7px; } nav .mark { display: none; } }
nav .mark { color: var(--fg); margin: 0; }
nav .mark b { color: var(--canary); font-weight: 400; }

.hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 80px 16px 9vh; text-align: center;
}
.hero h1 {
  margin: 0 0 28px; font-size: clamp(54px, 13vw, 190px); line-height: .88; letter-spacing: -.03em;
  font-weight: 900; text-transform: uppercase;
  background: linear-gradient(90deg, var(--kingfisher), var(--violet), var(--flamingo), var(--macaw), var(--canary), var(--parrot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; max-width: 34em; color: var(--fg); font-size: clamp(16px, 1.5vw, 20px); }
.hero .cue { margin-top: 26px; font: 12px var(--mono); letter-spacing: .14em; color: var(--fg-dim); text-decoration: none; }
.hero .cue:hover { color: var(--fg); }

main { position: relative; z-index: 1; background: var(--bg); }
section { max-width: 1180px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px); }
.eyebrow { font: 12px var(--mono); letter-spacing: .16em; color: var(--fg-dim); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 44px; font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.card {
  --c: var(--fg);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 20px; min-height: 250px;
  background: var(--bg-raised); border: 1px solid var(--line); border-top: 2px solid var(--c);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--c); background: #101013; }
.card .no { font: 12px var(--mono); letter-spacing: .14em; color: var(--c); }
.card h3 { margin: 0; font-size: 26px; letter-spacing: -.01em; line-height: 1.15; }
.card p { margin: 0; color: var(--fg-dim); font-size: 15.5px; flex: 1; }
.card .kind { font: 12px var(--mono); letter-spacing: .08em; color: var(--fg-dim); }
.card pre {
  position: absolute; right: 16px; top: 14px; margin: 0;
  font: 10px/1.05 var(--mono); color: var(--c); opacity: .85;
}
.c1 { --c: var(--kingfisher); } .c2 { --c: var(--violet); } .c3 { --c: var(--flamingo); }
.c4 { --c: var(--macaw); } .c5 { --c: var(--canary); } .c6 { --c: var(--parrot); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
.about h2 { margin: 0; }
.about p { margin: 0 0 1em; color: var(--fg-dim); font-size: 18px; }
.about p strong { color: var(--fg); font-weight: 600; }
.about a { color: var(--canary); text-underline-offset: 3px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 20px; } }

.contact { text-align: center; padding-bottom: 120px; }
.contact h2 { margin-bottom: 18px; }
.contact a.mail {
  font: clamp(18px, 2.6vw, 30px) var(--mono); color: var(--fg); text-decoration: none;
  border-bottom: 2px solid var(--flamingo); padding-bottom: 4px;
}
.contact a.mail:hover { color: var(--flamingo); }

.stripe { display: flex; height: 3px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--kingfisher); } .stripe i:nth-child(2) { background: var(--violet); }
.stripe i:nth-child(3) { background: var(--flamingo); } .stripe i:nth-child(4) { background: var(--macaw); }
.stripe i:nth-child(5) { background: var(--canary); } .stripe i:nth-child(6) { background: var(--parrot); }
footer { position: relative; z-index: 1; background: var(--bg); padding: 22px clamp(16px, 4vw, 48px) 30px; font: 12px var(--mono); color: var(--fg-dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .land, .card { transition: none; }
}
