:root {
  --ink: #111014; --paper: #fffdf5; --teal: #37b5a9; --mint: #78e6c9; --pink: #f49bcb;
  --display: 'Sigmar One', sans-serif; --pixel: 'Press Start 2P', monospace;
  color: var(--ink); font: 16px Arial, Helvetica, sans-serif;
  scroll-behavior: smooth; scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; background-color: #23a6d5;
  background-image: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  background-position: 0% 50%;
  animation: gradient 15s ease infinite;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 5px; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--ink); outline-offset: 6px; }
.page { max-width: 1440px; margin: 0 auto; padding: 25px 42px 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 16px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; isolation: isolate; }
.site-header::before { content: ''; position: absolute; width: 100%; height: 4px; background: var(--ink); z-index: -1; }
.wordmark { background: var(--paper); border: 3px solid var(--ink); border-radius: 12px 4px 11px 5px; padding: 1px 18px 4px; font: 400 clamp(1.4rem, 3vw, 2.4rem)/1.4 var(--display); text-decoration: none; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.site-header nav { display: flex; gap: 22px; }
.nav-tab { background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: 15px 19px; min-height: 44px; font: .86rem/1.3 var(--pixel); text-decoration: none; box-shadow: 2px 3px 0 var(--ink); }
.nav-tab:hover { background: var(--mint); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; padding: 48px 0 33px; }
.hero-copy { position: relative; z-index: 1; }
h1 { font-size: clamp(2.4rem, 3.6vw, 3.3rem); line-height: 1.13; letter-spacing: -.04em; }
h1::after { content: ''; display: block; height: 8px; width: 42%; margin: 8px 2% 17px auto; background: var(--mint); border: 2px solid var(--paper); border-radius: 60%; transform: rotate(-2deg); }
.medium-break { display: none; }
.pixel-button { display: inline-block; width: fit-content; border: 3px solid var(--ink); border-radius: 1px; padding: 13px 19px; background: var(--teal); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: .78rem/1.5 var(--pixel); text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.pixel-button:hover { background: #87efd5; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pixel-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hero-button { padding: 17px 25px; font-size: 1rem; }
.hero-button span { padding-left: 12px; }
.dog-collage { position: relative; padding: 12px 65px 15px 15px; isolation: isolate; }
.dog-collage::before, .dog-collage::after { content: ''; position: absolute; z-index: -1; inset: 18% 13% 4% 0; border: 2px solid white; clip-path: polygon(1% 3%, 17% 1%, 32% 4%, 46% 0, 61% 3%, 78% 0, 98% 3%, 97% 21%, 100% 39%, 96% 62%, 100% 83%, 97% 100%, 81% 97%, 61% 100%, 41% 98%, 22% 100%, 0 97%, 3% 79%, 0 62%, 3% 43%, 0 20%); }
.dog-collage::before { background: #f052a3; transform: rotate(12deg); }
.dog-collage::after { background: #74e4cf; transform: rotate(-12deg); inset: 10% 8% 14% 9%; }
.dog-photo { position: relative; padding: 11px; background: #fff; border-radius: 12px; box-shadow: 0 5px 10px #16133238; transform: rotate(-4deg); }
.dog-photo::before { content: ''; position: absolute; z-index: 1; top: -17px; left: 35%; width: 110px; height: 35px; transform: rotate(-4deg); background-color: #7ae2ccdd; background-image: conic-gradient(#fff9 25%, transparent 0 50%, #fff9 0 75%, transparent 0); background-size: 22px 22px; box-shadow: 0 1px 2px #0002; }
#bodhi-img { width: 100%; height: clamp(220px, 23vw, 325px); object-fit: cover; object-position: center 65%; border-radius: 6px; }
.dog-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 2px 3px; }
.dog-photo figcaption > span { font: clamp(.9rem, 1.65vw, 1.4rem)/1.1 var(--display); }
#start { font-size: .65rem; min-height: 44px; padding: 10px 8px; white-space: nowrap; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.9rem); line-height: 1.2; letter-spacing: -.025em; }
.projects { padding-top: 6px; }
.projects > h2 { margin-bottom: 29px; }
.spark { color: #006b5e; display: inline-block; margin-left: 12px; font: 1.1em/1 Arial, sans-serif; transform: rotate(12deg); }
.project-grid, .scratch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 11px; box-shadow: 8px 9px 0 var(--mint), 10px 11px 0 var(--ink); }
.rally-card { box-shadow: 8px 9px 0 var(--pink), 10px 11px 0 var(--ink); }
.image-link { display: block; border-radius: 10px; overflow: hidden; }
.project-image { width: 100%; aspect-ratio: 1.85; height: auto; object-fit: cover; border-radius: 10px; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 10px 7px 5px; }
.card-copy h3 { font-size: clamp(1.25rem, 2.08vw, 1.9rem); line-height: 1.13; letter-spacing: -.035em; margin-bottom: 7px; }
.card-copy > p { font-size: clamp(1rem, 1.43vw, 1.15rem); line-height: 1.4; margin-bottom: 16px; }
.card-copy > .pixel-button { margin-top: auto; }
.scratch-games, .maker-projects { margin-top: 65px; padding-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.profile-link { font-weight: bold; background: var(--paper); padding: 9px 13px; border: 2px solid var(--ink); border-radius: 8px; }
.scratch-game { display: block; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); overflow: hidden; text-decoration: none; box-shadow: 4px 5px 0 #111; }
.scratch-game > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.scratch-game > div { padding: 16px; }
.scratch-game h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 13px; }
.pixel-label { display: inline-block; font: .75rem/1.5 var(--pixel); color: #006b5e; }
.scratch-game:hover .pixel-label { text-decoration: underline; }
.maker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.maker-grid .project-image { aspect-ratio: 4/3; object-fit: contain; }
footer { text-align: center; padding: 30px 0; font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1440px) { .hero { min-height: 465px; } }
@media (max-width: 1100px) {
  .page { padding-inline: 28px; }
  .hero { gap: 8px; }
  .medium-break { display: block; }
  .dog-collage { padding-right: 40px; }
  .dog-photo figcaption { flex-direction: column; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
}
@media (max-width: 760px) {
  .page { padding: 22px 20px 0; }
  .site-header { gap: 12px; }
  .site-header nav { gap: 10px; }
  .nav-tab { font-size: .6rem; padding: 12px 10px; border-width: 2px; }
  .wordmark { font-size: 1.25rem; padding-inline: 10px; border-width: 2px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  h1 { font-size: clamp(2.3rem, 7.3vw, 3.4rem); }
  .medium-break { display: none; }
  h1::after { margin-left: 33%; margin-right: auto; width: 40%; }
  .dog-collage { width: min(100%, 490px); margin: 0 auto 15px; padding: 10px 60px 15px 12px; }
  #bodhi-img { height: 300px; }
  .dog-photo figcaption { flex-direction: row; }
  .dog-photo figcaption > span { font-size: 1.25rem; }
  .projects > h2 { margin-bottom: 35px; font-size: 2rem; }
  h2 .spark { display: none; }
  .project-grid, .scratch-grid, .maker-grid { grid-template-columns: 1fr; }
  .project-grid, .maker-grid { gap: 47px; }
  .project-image { aspect-ratio: 1.9; }
  .project-card { padding: 12px; }
  .card-copy { padding: 14px 5px 7px; }
  .card-copy h3 { font-size: 1.7rem; }
  .card-copy > p { font-size: 1.1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .scratch-game { display: grid; grid-template-columns: 40% 1fr; align-items: center; }
  .scratch-game > img { height: 100%; min-height: 130px; aspect-ratio: auto; }
  .scratch-game > div { padding: 14px; }
  .scratch-game h3 { font-size: 1rem; }
}
@media (max-width: 390px) {
  .page { padding-inline: 16px; }
  .site-header nav { gap: 6px; }
  .nav-tab { font-size: .5rem; padding: 12px 8px; }
  .wordmark { font-size: 1.1rem; padding-inline: 7px; }
  .dog-collage { padding-right: 40px; }
  .dog-photo figcaption { flex-direction: column; gap: 10px; }
}
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  body { animation: none; }
  .pixel-button { transition: none; }
}
