@font-face {
  font-family: "SkyPixel";
  src: url("./fonts/skypixel.woff") format("woff");
  font-display: block;
}

:root {
  color-scheme: light;
  --pixel: "SkyPixel", ui-monospace, monospace;
  --ink: #fff8f2;
  --edge: #24112e;
  --panel: #3d2452;
  --panel-light: #4d2f66;
  --gold: #ffd25e;
  --teal: #7ff7e0;
  --shadow: rgba(36, 17, 46, .55);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--edge);
  background: #ffd9a8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  background: linear-gradient(180deg, #6f7fd9 0%, #a98ad8 26%, #ee9fc0 56%, #ffbf98 82%, #ffd9a8 100%);
  font-size: 16px;
  line-height: 1.6;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--edge); outline-offset: 5px; }
.panel :focus-visible { outline-color: var(--teal); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, .wordmark, .button, figcaption {
  font-family: var(--pixel);
  font-weight: 400;
  -webkit-font-smoothing: none;
}
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 40px; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.4; }
p { max-width: 65ch; }
section { scroll-margin-top: 24px; }
.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; position: relative; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 5; padding: 12px 18px; background: var(--ink); }
.skip-link:focus { top: 12px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; }
.wordmark { font-size: 20px; line-height: 1.15; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; gap: 32px; padding-block: 20px 48px; }
.hero-copy p { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border: 3px solid var(--edge);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), 0 5px 0 var(--shadow);
  color: #3a1406;
  background: linear-gradient(#ffc94a, #ff9346);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 60ms steps(1);
}
.button:hover { background: #ffd25e; }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shadow); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.frame, .panel { border: 3px solid var(--edge); background: var(--panel); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); }
.hero-art { align-self: center; animation: bob 7s ease-in-out infinite; }
.panel { padding: 24px 20px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12), 6px 6px 0 var(--shadow); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.highlight { color: var(--teal); }
.features { display: grid; gap: 16px; }
.features article { padding: 20px; background: var(--panel-light); border-top: 3px solid var(--gold); }
.features h3 { color: var(--gold); margin-bottom: 10px; }
.maps { padding-block: 52px; }
.map-grid { display: grid; gap: 24px; }
figcaption { padding: 14px 18px; font-size: 20px; line-height: 1.4; border-top: 3px solid var(--edge); }
.studio-grid { display: grid; gap: 24px; }
.studio-grid h2 { margin-bottom: 20px; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; margin-top: 18px; color: var(--gold); font-weight: 650; overflow-wrap: anywhere; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 30px 24px; font-size: 14px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.sky { position: absolute; inset: 0 0 auto; height: 1100px; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; top: 145px; left: 4%; width: 150px; height: 55px; background: var(--ink); opacity: .19; clip-path: polygon(0 45%, 15% 45%, 15% 20%, 35% 20%, 35% 0, 65% 0, 65% 20%, 85% 20%, 85% 45%, 100% 45%, 100% 80%, 85% 80%, 85% 100%, 15% 100%, 15% 80%, 0 80%); animation: drift 90s ease-in-out infinite alternate; }
.cloud:nth-child(2) { top: 440px; left: 62%; width: 200px; height: 75px; animation-duration: 120s; animation-delay: -40s; }
.cloud:nth-child(3) { top: 820px; left: 16%; animation-duration: 110s; animation-delay: -70s; }
@keyframes drift { to { transform: translateX(22vw); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

@media (min-width: 600px) {
  .wrap { width: min(100% - 64px, 1200px); }
  .topbar { padding-block: 28px; }
  .wordmark { font-size: 30px; }
  .hero { gap: 40px; padding-block: 32px 56px; }
  h1 { font-size: 50px; }
  .features, .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 30px; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: 40px; padding-block: 48px 64px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .maps { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:active { transform: none; }
}
