@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f4f6;
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #909096;
  --border: #e8e8ec;
  --border-strong: #d4d4da;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef0ff;
  --secondary-accent: #20970b;
  --display: 'General Sans', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-height: 56px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #101116;
  --surface: #17191f;
  --surface-muted: #202229;
  --text: #f0f0f2;
  --text-secondary: #b0b0b8;
  --text-tertiary: #81828b;
  --border: #2d2f38;
  --border-strong: #484a56;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: #25284a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; transition: background-color .2s ease, color .2s ease; }
body, button, input { font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; transform: translateY(-150%); padding: 8px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 90%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 180px; }
.brand-mark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--text); border-radius: 50%; font-family: var(--display); font-weight: 600; font-size: 14px; }
.brand strong { display: block; font-family: var(--display); font-size: 15px; letter-spacing: -.02em; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--text-tertiary); font-family: var(--mono); font-size: 8px; letter-spacing: .03em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 29px; color: var(--text-secondary); font-size: 13px; }
.nav-links a, .mobile-nav a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active, .mobile-nav a:hover { color: var(--text); }
.nav-links a.active { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 9px; min-width: 180px; justify-content: flex-end; }
.search-trigger { display: flex; align-items: center; gap: 8px; min-width: 126px; height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-secondary); font-size: 12px; text-align: left; transition: border-color .2s ease, box-shadow .2s ease; }
.search-trigger:hover { border-color: var(--border-strong); box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.search-trigger kbd { margin-left: auto; padding: 1px 4px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-muted); font-family: var(--mono); font-size: 9px; }
.search-icon { position: relative; display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1.5px; background: currentColor; content: ''; transform: rotate(45deg); }
.icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 22px; line-height: 1; }
.icon-button:hover { border-color: var(--border); background: var(--surface); color: var(--text); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.moon-icon { display: none; }
html[data-theme='dark'] .sun-icon { display: none; }
html[data-theme='dark'] .moon-icon { display: block; }
.mobile-menu-button, .mobile-nav { display: none; }

main { overflow: hidden; }
.hero, .archive-section, .collections-section, .contribute-section { max-width: 1280px; margin: 0 auto; padding-right: 24px; padding-left: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(48px, 8vw, 124px); align-items: center; min-height: 650px; padding-top: 86px; padding-bottom: 90px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-rule { display: inline-block; width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.055em; }
h1 { max-width: 620px; margin-bottom: 23px; font-size: clamp(46px, 6vw, 76px); line-height: .98; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 470px; margin-bottom: 30px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 61px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 600; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent); }
.button-primary:hover { background: var(--accent-hover); box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.button-secondary { border-color: var(--border-strong); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.text-link { color: var(--text-secondary); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.text-link span { margin-left: 5px; color: var(--accent); }
.text-link:hover { color: var(--accent); }
.hero-facts { display: flex; gap: 30px; margin: 0; }
.hero-facts div { padding-right: 30px; border-right: 1px solid var(--border); }
.hero-facts div:last-child { padding-right: 0; border: 0; }
.hero-facts dt { margin-bottom: 2px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.hero-facts dd { margin: 0; color: var(--text-tertiary); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.hero-visual { min-width: 0; }
.canvas-wrap { position: relative; height: clamp(400px, 47vw, 548px); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
#genesis-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.canvas-label { position: absolute; z-index: 1; display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.canvas-label-top { top: 18px; left: 18px; }
.canvas-label-bottom { right: 18px; bottom: 18px; }
.canvas-label-bottom span:last-child { color: var(--text-tertiary); }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: .03em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-accent) 17%, transparent); }
.canvas-crosshair { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.canvas-crosshair::before, .canvas-crosshair::after { position: absolute; background: color-mix(in srgb, var(--accent) 52%, transparent); content: ''; }
.canvas-crosshair::before { top: 50%; left: -10px; width: calc(100% + 20px); height: 1px; }
.canvas-crosshair::after { top: -10px; left: 50%; width: 1px; height: calc(100% + 20px); }
.visual-caption { display: flex; align-items: center; gap: 10px; margin: 11px 2px 0; color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.visual-caption span:first-child { color: var(--text-secondary); }
.caption-line { width: 22px; height: 1px; background: var(--border-strong); }

.archive-section { padding-top: 88px; padding-bottom: 108px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .contribute-section h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.03; }
.section-description { max-width: 330px; margin: 0 0 2px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 29px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9999px; background: transparent; color: var(--text-secondary); font-size: 12px; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.result-count { color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kit-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kit-card:hover { border-color: var(--border-strong); box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.kit-preview { position: relative; height: 202px; overflow: hidden; border-bottom: 1px solid var(--border); border-radius: 11px 11px 0 0; }
.preview-code, .preview-meta { position: absolute; z-index: 1; color: rgba(255,255,255,.72); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.preview-code { top: 15px; left: 16px; }
.preview-meta { right: 16px; bottom: 15px; color: rgba(255,255,255,.54); }
.preview-orbit { background: #171d3b; }
.preview-orbit::before, .preview-orbit::after { position: absolute; content: ''; border: 1px solid rgba(157,167,255,.32); border-radius: 50%; }
.preview-orbit::before { width: 270px; height: 270px; top: -84px; left: -24px; transform: rotate(-26deg) scaleX(.45); }
.preview-orbit::after { width: 170px; height: 170px; top: 20px; right: -26px; transform: rotate(26deg) scaleY(.5); }
.preview-orbit-mark { position: absolute; top: 76px; left: 50%; width: 62px; height: 62px; border: 2px solid #9da7ff; border-radius: 50%; transform: translateX(-50%); }
.preview-orbit-mark::before { position: absolute; top: 50%; left: -18px; width: 96px; height: 1px; background: #9da7ff; content: ''; transform: rotate(-30deg); }
.preview-signal { background: #173b35; }
.signal-lines { position: absolute; top: 61px; left: 16px; right: 16px; display: flex; align-items: flex-end; gap: 9px; height: 88px; }
.signal-lines i { display: block; flex: 1; border-top: 1px solid #93d5b8; background: #4caa7e; }
.signal-lines i:nth-child(1) { height: 30%; }.signal-lines i:nth-child(2) { height: 62%; }.signal-lines i:nth-child(3) { height: 45%; }.signal-lines i:nth-child(4) { height: 88%; }.signal-lines i:nth-child(5) { height: 72%; }
.preview-field { background: #252328; }
.field-grid { position: absolute; top: 61px; left: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: 150px; }
.field-grid b { display: block; width: 44px; height: 32px; border: 1px solid #beb0d9; background: #55486f; }
.field-grid b:nth-child(2), .field-grid b:nth-child(6), .field-grid b:nth-child(8) { background: #2c2a31; }
.preview-monument { background: #3e2825; }.monument-blocks { position: absolute; top: 54px; right: 36px; display: flex; align-items: flex-end; gap: 9px; height: 101px; }.monument-blocks i { display: block; width: 39px; border: 1px solid #e2a38b; background: #8e5145; }.monument-blocks i:nth-child(1) { height: 56%; }.monument-blocks i:nth-child(2) { height: 100%; }.monument-blocks i:nth-child(3) { height: 73%; }
.preview-common { background: #342b19; }.common-shapes { position: absolute; top: 51px; left: 48px; display: flex; align-items: center; gap: 0; }.common-shapes i { display: block; width: 75px; height: 75px; border: 1px solid #ded28d; border-radius: 50%; }.common-shapes i:nth-child(2) { margin-left: -28px; background: #76652d; }.common-shapes i:nth-child(3) { margin-left: -28px; background: #40361e; }
.preview-tide { background: #1d3340; }.tide-rings { position: absolute; top: 42px; left: 50%; width: 180px; height: 110px; transform: translateX(-50%); }.tide-rings i { position: absolute; left: 50%; display: block; border: 1px solid #8cc6d2; border-radius: 50%; transform: translateX(-50%); }.tide-rings i:nth-child(1) { top: 0; width: 180px; height: 62px; }.tide-rings i:nth-child(2) { top: 23px; width: 130px; height: 45px; }.tide-rings i:nth-child(3) { top: 45px; width: 78px; height: 28px; background: #437585; }
.kit-info { display: flex; align-items: flex-start; justify-content: space-between; padding: 17px 17px 0; }.kit-type { margin-bottom: 5px; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }.kit-info h3 { margin: 0; font-size: 23px; letter-spacing: -.04em; }.arrow-button { color: var(--accent); font-size: 20px; line-height: 1; }.kit-description { min-height: 46px; margin: 12px 17px 17px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }.kit-footer { display: flex; align-items: center; justify-content: space-between; margin: 0 17px; padding: 12px 0 15px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; }.kit-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-family: var(--body); font-size: 11px; }.avatar { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; font-family: var(--mono); font-size: 7px; }.avatar-blue { background: #566bc1; }.avatar-green { background: #4a9474; }.avatar-purple { background: #8161a6; }.avatar-orange { background: #c2754e; }.avatar-pink { background: #a45577; }.avatar-yellow { background: #a08b3d; }
.empty-state { padding: 35px 0; color: var(--text-secondary); text-align: center; }

.collections-section { padding-top: 91px; padding-bottom: 112px; }.compact-heading { align-items: center; margin-bottom: 28px; }.compact-heading .eyebrow { margin-bottom: 12px; }.compact-heading .text-link { margin-top: 21px; }.collection-list { border-top: 1px solid var(--border); }.collection-row { display: grid; grid-template-columns: 55px minmax(230px, 1fr) 1fr 24px; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); transition: padding .2s ease, color .2s ease; }.collection-row:hover { padding-right: 7px; padding-left: 7px; color: var(--accent); }.collection-number { color: var(--text-tertiary); font-family: var(--mono); font-size: 11px; }.collection-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }.collection-detail { color: var(--text-secondary); font-size: 13px; }.collection-arrow { font-size: 19px; }
.contribute-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; margin-bottom: 95px; padding-top: 61px; padding-bottom: 62px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }.contribute-copy { max-width: 380px; }.contribute-copy p { margin-bottom: 25px; color: var(--text-secondary); font-size: 15px; }.site-footer { display: grid; grid-template-columns: 1fr 60px 1fr 1fr; align-items: center; gap: 18px; max-width: 1280px; margin: 0 auto; padding: 0 24px 34px; color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; letter-spacing: .02em; text-transform: uppercase; }.site-footer a { justify-self: end; color: var(--text-secondary); }.site-footer a:hover { color: var(--accent); }.footer-rule { height: 1px; background: var(--border); }

dialog { max-width: calc(100% - 30px); padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.18); }.search-dialog { width: 560px; }.kit-dialog { width: 470px; }.dialog-shell { padding: 21px; }.dialog-header { display: flex; align-items: center; justify-content: space-between; }.dialog-header .eyebrow { margin-bottom: 0; }.dialog-header .icon-button { font-size: 25px; }.search-dialog::backdrop, .kit-dialog::backdrop { background: rgba(10,10,10,.45); backdrop-filter: blur(3px); }.search-field { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: 6px; }.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent); }.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }.search-hint { margin: 13px 0 0; color: var(--text-tertiary); font-size: 11px; }.search-hint kbd { padding: 2px 4px; border: 1px solid var(--border); border-radius: 3px; font-family: var(--mono); }.kit-dialog-content { padding-top: 28px; }.kit-dialog-content h2 { margin-bottom: 12px; font-size: 42px; }.kit-dialog-content > p:not(.kit-type) { max-width: 340px; color: var(--text-secondary); }.dialog-meta { display: flex; gap: 16px; margin: 26px 0; padding-top: 13px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 61px; }.hero-visual { max-width: 720px; }.kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.contribute-section { gap: 40px; } }
@media (max-width: 680px) { .site-nav { padding: 0 16px; }.brand { min-width: 0; }.nav-links, .search-trigger { display: none; }.nav-actions { min-width: 0; }.mobile-menu-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }.mobile-menu-button span { display: block; width: 14px; height: 1px; background: currentColor; }.mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 0; overflow: hidden; padding: 0 16px; transition: height .2s ease, padding .2s ease; }.mobile-nav.is-open { height: 57px; padding-top: 12px; padding-bottom: 12px; }.mobile-nav a { padding: 4px 0; color: var(--text-secondary); font-size: 12px; text-align: center; }.hero, .archive-section, .collections-section, .contribute-section { padding-right: 16px; padding-left: 16px; }.hero { min-height: 0; padding-top: 54px; padding-bottom: 70px; }.hero-intro { font-size: 15px; }.hero-actions { gap: 16px; margin-bottom: 45px; }.hero-facts { gap: 16px; }.hero-facts div { padding-right: 16px; }.hero-facts dt { font-size: 19px; }.hero-facts dd { font-size: 8px; }.canvas-wrap { height: 390px; }.section-heading { display: block; }.section-description { margin-top: 18px; }.filter-row { display: block; }.result-count { display: block; margin-top: 15px; }.kit-grid { grid-template-columns: 1fr; }.kit-preview { height: 215px; }.collections-section { padding-top: 70px; padding-bottom: 80px; }.compact-heading { display: flex; align-items: flex-end; }.compact-heading .text-link { margin-top: 0; white-space: nowrap; }.collection-row { grid-template-columns: 34px 1fr 21px; gap: 8px; }.collection-detail { grid-column: 2 / 3; grid-row: 2; font-size: 12px; }.collection-arrow { grid-column: 3; grid-row: 1 / 3; }.contribute-section { display: block; margin-bottom: 70px; padding-top: 45px; padding-bottom: 45px; }.contribute-copy { margin-top: 28px; }.site-footer { grid-template-columns: 1fr auto; gap: 13px; padding-right: 16px; padding-left: 16px; font-size: 9px; }.site-footer .footer-rule { display: none; }.site-footer span:last-of-type { display: none; }.site-footer a { grid-column: 1 / -1; justify-self: start; }.dialog-shell { padding: 17px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
