:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #626262;
  --line: #dedede;
  --soft: #f6f6f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.25em; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.container {
  width: min(1088px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.brand-mark { width: 32px; height: 32px; flex-shrink: 0; fill: currentColor; }
nav { display: flex; gap: 30px; }
nav a { padding-block: 12px; font-size: 14px; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { padding-block: 98px 100px; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 1.8px; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 88px); font-weight: 700; letter-spacing: -5px; line-height: 1.04; }
.hero h1 span { font-weight: 400; }
.hero-description { margin-top: 28px; font-size: 18px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  margin-top: 32px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.button:hover { background: #3b3b3b; }
.button:focus-visible { outline-color: var(--ink); }
.link-arrow { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
section[id] { scroll-margin-top: 32px; }
.tools-section { padding-top: 32px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h2 { margin-top: 9px; font-size: 32px; letter-spacing: -1px; font-weight: 600; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.section-count { margin-left: 12px; font-size: 12px; letter-spacing: 0; color: var(--muted); vertical-align: top; line-height: 2; font-weight: 400; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.project-grid > li { min-width: 0; }
.project-card { height: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 14px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.project-icon { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; background: var(--soft); border: 1px solid #eaeaea; border-radius: 14px; }
.project-icon svg { width: 32px; height: 32px; }
.status { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.project-card h3 { font-size: 23px; letter-spacing: -0.6px; font-weight: 650; }
.project-description { margin-top: 14px; font-size: 15px; }
.project-tagline { margin-top: 4px; color: var(--muted); font-size: 14px; }
.project-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
.section-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.games-section { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 64px; padding-block: 36px; border-top: 1px solid var(--line); }
.games-section > p { margin-right: auto; font-size: 15px; }
.games-section > p span { color: var(--muted); font-size: 14px; }
.games-section .status { flex-shrink: 0; }
.site-footer { margin-top: 40px; padding-block: 25px 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* A shared shell for the future standalone tool integrations. */
.placeholder-layout { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.placeholder-layout main { flex: 1; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.placeholder { max-width: 620px; margin-inline: auto; padding-block: 88px 72px; text-align: center; }
.placeholder .project-icon { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 18px; }
.placeholder h1 { margin-top: 20px; font-size: clamp(36px, 7vw, 56px); letter-spacing: -2px; }
.placeholder .project-description { font-size: 18px; }
.placeholder .project-tagline { font-size: 16px; }
.notice { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); text-align: left; }
.notice h2 { margin-top: 0; font-size: 20px; letter-spacing: -0.4px; }
.notice p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.notice strong { color: var(--ink); font-weight: 600; }
.placeholder > .back-link { margin-top: 24px; text-decoration: underline; }

@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 16px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  .hero { padding-block: 72px; }
  .hero h1 { letter-spacing: -2.8px; }
  .hero-description { max-width: 290px; margin-inline: auto; font-size: 16px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card { padding: 24px; }
  .games-section { flex-wrap: wrap; justify-content: flex-start; gap: 20px; margin-top: 48px; }
  .games-section > p { order: 1; width: 100%; margin: 0; }
  .games-section .status { margin-left: auto; }
  .site-footer { margin-top: 24px; }
  .placeholder { padding-block: 56px 40px; }
  .notice { padding: 22px; }
}

@media (max-width: 370px) {
  .site-header { flex-wrap: wrap; justify-content: center; gap: 0; padding-block: 16px 8px; }
  .site-header nav { justify-content: center; width: 100%; }
  .placeholder-layout .site-header { justify-content: flex-start; padding-block: 16px; }
  .project-card { padding: 20px; }
}
