@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #edf2f8;
  --ink: #172640;
  --muted: #54647b;
  --blue: #2945ed;
  --lavender: #b8c5fa;
  --mint: #cff6e2;
  --line: #ccd5e3;
  --surface: #e3eaf4;
  --hover: #dfe7f5;
  --board-shadow: #dce3f2;
  --connect: #cff6e2;
  --connect-muted: #3d6355;
  color-scheme: light;
  --display: "Space Grotesk", sans-serif;
  --header-height: 112px;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

:root[data-theme="dark"] {
  --paper: #121c2d;
  --ink: #edf2f8;
  --muted: #adbcd1;
  --blue: #9badff;
  --line: #34445f;
  --surface: #1a2940;
  --hover: #253750;
  --board-shadow: #0b1322;
  --connect: #173e36;
  --connect-muted: #a4d3bd;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button, a, canvas { touch-action: manipulation; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { color: var(--paper); background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 20px; color: white; background: #2945ed; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); }
.wordmark { font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -6px; padding-right: 6px; line-height: 1; }
.wordmark span { color: var(--blue); }
.site-switcher { position: relative; }
.site-switcher summary { cursor: pointer; list-style: none; min-width: 44px; }
.site-switcher summary::-webkit-details-marker { display: none; }
.site-links { position: absolute; top: calc(100% + 16px); left: 0; width: 250px; max-width: calc(100vw - 44px); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 30px #17264018; }
.site-links a { display: block; padding: 12px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.site-links a:hover { background: var(--hover); }
.site-links small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.theme-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 12px; margin-top: 6px; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.theme-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.site-header nav { display: flex; gap: 36px; }
.site-header nav a, .header-github { font-size: 13px; font-weight: 600; padding-block: 12px; }
.site-header nav a:hover, .header-github:hover { color: var(--blue); }
.header-github { display: flex; align-items: center; gap: 6px; }
.header-github svg { width: 17px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 56px; padding-top: 62px; }
.hero-copy { align-self: center; padding-bottom: 18px; }
.hello { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.hello-line { width: 27px; height: 2px; background: var(--blue); }
h1 { font-family: var(--display); font-size: clamp(56px, 5.9vw, 82px); font-weight: 500; line-height: 1.035; letter-spacing: -.065em; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 17px 22px; border-radius: 7px; font-size: 13px; font-weight: 600; transition: background .18s; }
.button-primary { background: #2945ed; color: white; }
.button-primary:hover { background: #1e36c6; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: #a3afc3; text-underline-offset: 5px; }
.text-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.text-link svg { width: 17px; }
.opportunities { display: flex; align-items: center; gap: 9px; margin-top: 31px; color: var(--muted); font-size: 11px; }
.opportunities > span { width: 6px; height: 6px; background: #347859; border-radius: 50%; }

.playground { min-width: 0; transform: rotate(2deg); }
.playground-top { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 13px; font-size: 11px; font-weight: 600; }
.small-symbol { color: var(--blue); font-size: 26px; line-height: 1; }
.pixel-board { position: relative; isolation: isolate; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 16px; background: #2945ed; box-shadow: 12px 14px 0 var(--board-shadow); }
.pixel-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.monogram-fallback { display: grid; place-items: center; height: 100%; padding-bottom: 35px; font-family: var(--display); font-weight: 700; font-size: clamp(120px, 24vw, 310px); color: var(--mint); letter-spacing: -.1em; }
.canvas-ready .monogram-fallback { visibility: hidden; }
.board-corner { position: absolute; z-index: 1; width: 16px; height: 16px; opacity: .7; pointer-events: none; }
.corner-top { left: 22px; top: 22px; border-left: 1px solid var(--lavender); border-top: 1px solid var(--lavender); }
.corner-bottom { right: 22px; bottom: 22px; border-right: 1px solid var(--lavender); border-bottom: 1px solid var(--lavender); }
.board-caption { position: absolute; bottom: 25px; left: 0; right: 0; color: #e2e8ff; text-align: center; font-size: 10px; pointer-events: none; }
.playground-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 3px 0; }
.playground-bottom p { color: var(--muted); font-size: 10px; }
.play-controls { display: flex; gap: 6px; }
.play-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 38px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: 10px; }
.play-controls button:hover { background: var(--hover); }
.play-controls svg { width: 15px; height: 15px; }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 78px; padding-block: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.hero-foot a { display: flex; align-items: center; gap: 10px; }
.hero-foot svg { width: 15px; }

h2 { font-family: var(--display); font-size: clamp(32px, 3.3vw, 45px); line-height: 1.13; font-weight: 500; letter-spacing: -.05em; }
.about-section { background: var(--surface); margin-top: 50px; padding-block: 88px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; }
.about-copy > p { max-width: 58ch; color: var(--muted); font-size: 13px; line-height: 1.9; }
.about-copy > .large-copy { font-family: var(--display); font-size: 21px; line-height: 1.55; letter-spacing: -.025em; color: var(--ink); margin-bottom: 20px; }
.about-copy > a { margin-top: 25px; }

.work-section { padding-block: 95px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.section-heading > span { font-size: 11px; color: var(--muted); }
.work-placeholder { display: flex; align-items: center; gap: 65px; padding: 60px; background: var(--surface); border-radius: 12px; position: relative; overflow: hidden; }
.folder-art { width: 185px; height: 158px; flex-shrink: 0; position: relative; transform: rotate(-9deg); }
.folder-back { position: absolute; inset: 20px 0 0; background: #97a9f5; border-radius: 8px; }
.folder-back::before { content: ""; position: absolute; top: -13px; left: 0; width: 73px; height: 24px; background: #97a9f5; border-radius: 8px 12px 0 0; }
.folder-paper { position: absolute; inset: 24px 16px 15px; background: var(--paper); border-radius: 4px; transform: rotate(7deg); }
.folder-front { position: absolute; inset: 48px -4px -2px; display: flex; align-items: center; justify-content: center; background: #bcc9fa; border: 1px solid #aabbf5; border-radius: 6px 6px 9px 9px; transform: skewX(-7deg); }
.folder-front > span { font-family: var(--display); font-size: 43px; letter-spacing: -5px; color: #4963c2; }
.work-status { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
h3 { font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: -.035em; }
.work-placeholder-copy > p:not(.work-status) { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 14px; }
.work-placeholder-copy > a { margin-top: 22px; }
.work-doodle { position: absolute; right: 28px; bottom: 14px; color: #c8d3e6; font-family: var(--display); font-size: 76px; letter-spacing: -.12em; transform: rotate(12deg); pointer-events: none; }

.connect-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 55px 58px; background: var(--connect); border-radius: 12px; }
.connect-copy > p { font-size: 12px; margin-bottom: 15px; color: var(--connect-muted); }
.connect-copy h2 { font-size: clamp(34px, 3.8vw, 49px); }
.connect-action { text-align: center; }
.button-ink { color: white; background: var(--ink); }
.button-ink:hover { background: #2b4268; }
:root[data-theme="dark"] .button-ink { background: var(--mint); color: #172640; }
:root[data-theme="dark"] .button-ink:hover { background: #b3e6ce; }
.connect-action > p { color: var(--connect-muted); font-size: 10px; margin-top: 13px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 49px 33px; }
.site-footer .wordmark { font-size: 32px; letter-spacing: -4px; }
.site-footer > p, .site-footer > a:last-child { font-size: 10px; color: var(--muted); }
.site-footer > a:last-child { display: flex; align-items: center; gap: 10px; }
.site-footer svg { width: 14px; }

@media (min-width: 1500px) {
  .hero { padding-top: 80px; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 32px; padding-top: 40px; }
  h1 { font-size: clamp(49px, 6.7vw, 70px); }
  .hero-actions { gap: 18px; }
  .button { padding: 15px 17px; gap: 12px; }
  .about-layout { gap: 40px; }
  .work-placeholder { padding: 45px 35px; gap: 40px; }
  .connect-section { padding: 45px 35px; }
  .playground-bottom { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 44px); }
  :root { --header-height: 88px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 12px; }
  .header-github { display: none; }
  .wordmark { font-size: 39px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 46px; }
  .hero-copy { padding-bottom: 0; }
  .hello { margin-bottom: 22px; }
  h1 { font-size: clamp(58px, 11.5vw, 80px); }
  .hero-description { font-size: 13px; margin-top: 24px; }
  .hero-actions { gap: 26px; margin-top: 25px; }
  .opportunities { margin-top: 25px; }
  .playground { margin: 0 6px; transform: rotate(1.5deg); }
  .pixel-board { aspect-ratio: 1.13; }
  .playground-top { padding-bottom: 13px; }
  .playground-bottom { flex-wrap: nowrap; }
  .hero-foot { margin-top: 8px; padding-block: 20px; font-size: 10px; gap: 10px; }
  .hero-foot a { gap: 3px; }
  .about-section { margin-top: 25px; padding-block: 55px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-copy > .large-copy { font-size: 20px; }
  .work-section { padding-block: 60px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading > span { display: inline-block; margin-top: 12px; }
  .work-placeholder { flex-direction: column; align-items: flex-start; gap: 34px; padding: 36px 26px; }
  .folder-art { width: 140px; height: 118px; margin-left: 12px; }
  .folder-front { top: 39px; }
  .work-doodle { right: 22px; top: 25px; bottom: auto; }
  .work-placeholder h3 { font-size: 23px; }
  .connect-section { align-items: flex-start; flex-direction: column; padding: 35px 26px; gap: 28px; }
  .connect-action { text-align: left; }
  .site-footer { padding-block: 35px 25px; gap: 10px; }
}

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