:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --background: #111813;
  --surface: #172019;
  --line: #344437;
  --text: #f3f8f0;
  --muted: #becbc0;
  --accent: #cef681;
  --ink: #17210e;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e2f2a5; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 2; transform: translateY(-150%); background: var(--accent); color: var(--ink); padding: 0.8rem; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; font-weight: 820; text-decoration: none; white-space: nowrap; }
.brand-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; transform: rotate(-12deg); }
.brand-icon i { aspect-ratio: 1; background: var(--accent); }
.brand-icon i:nth-child(2) { opacity: 0.45; }
.brand-icon i:nth-child(3) { opacity: 0.7; }
.site-header nav { display: flex; align-items: center; gap: clamp(0.55rem, 2vw, 1.65rem); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: clamp(0.77rem, 2.35vw, 0.92rem); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.hero { display: grid; isolation: isolate; overflow: hidden; position: relative; border: 1px solid #425d43; min-height: 25rem; background: radial-gradient(ellipse at 100% 100%, #4a6a36, transparent 70%), linear-gradient(130deg, #222e22, #19271d 70%); border-radius: 1.25rem; }
.hero-copy { z-index: 1; padding: clamp(1.25rem, 5vw, 4.5rem); align-self: center; }
.eyebrow { color: var(--accent); margin: 0 0 0.65rem; font-size: 0.75rem; font-weight: 760; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 9vw, 6.15rem); line-height: 0.96; letter-spacing: -0.062em; margin-bottom: 1rem; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 26rem; line-height: 1.55; margin-bottom: 1.3rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 46px; padding: 0.7rem 1rem; border-radius: 0.5rem; text-decoration: none; font-weight: 760; }
.primary-button { background: var(--accent); color: var(--ink); }
.primary-button:hover { background: #e2ffa5; }
.secondary-button { border: 1px solid #6d8958; color: var(--accent); }
.secondary-button:hover { background: #263725; }
.hero-art { position: relative; height: clamp(9.5rem, 41vw, 15rem); background: url("./assets/voxel-island.webp") center 42% / contain no-repeat; }
.tool-section { padding-top: clamp(2rem, 6vw, 4rem); scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2.6rem); line-height: 1.14; letter-spacing: -0.045em; margin-bottom: 1.05rem; }
.tool-grid { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card { min-width: 0; min-height: 11rem; display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: 0.45rem; padding: clamp(0.65rem, 3vw, 1.2rem); border-radius: 0.7rem; border: 1px solid var(--line); background: var(--surface); }
.tool-card h3 { margin-bottom: 0; line-height: 1.24; font-size: clamp(0.92rem, 3vw, 1.22rem); overflow-wrap: anywhere; }
.tool-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.38; margin-bottom: 0; overflow-wrap: anywhere; }
.tool-card a, .tool-status { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; width: max-content; max-width: 100%; font-size: 0.83rem; }
.tool-card a { color: var(--accent); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.tool-status { color: var(--muted); }
.tool-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 0.55rem; margin-bottom: 0.25rem; background: #253b28; color: var(--accent); }
.tool-icon i { display: block; width: 16px; height: 16px; position: relative; border: 2px solid currentColor; }
.skin-icon i::before { content: ""; position: absolute; width: 2px; height: 3px; background: currentColor; top: 4px; left: 2px; box-shadow: 6px 0 currentColor; }
.skin-icon i::after { content: ""; position: absolute; width: 4px; height: 2px; background: currentColor; bottom: 2px; left: 4px; }
.map-icon { color: #9af0cb; background: #24413a; }
.map-icon i { width: 18px; transform: skewY(9deg); }
.map-icon i::after { content: ""; border-inline: 1px solid currentColor; position: absolute; inset: 0 4px; }
.texture-icon { color: #f7c989; background: #483721; }
.texture-icon i { transform: rotate(45deg); width: 12px; height: 12px; }
.texture-icon i::after { content: ""; position: absolute; inset: 2px -5px -5px 2px; border: inherit; }
.addon-icon { color: #d4c7ff; background: #3f3556; }
.addon-icon i::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; border-top: 2px solid currentColor; }
.concept-entry { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: 0.7rem; }
.concept-entry h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 0.45rem; }
.concept-entry p { margin: 0; color: var(--muted); }
.site-footer { padding-block: 2rem; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 22rem) {
  .brand { font-size: 0.92rem; }
  .brand-icon { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (min-width: 43rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: clamp(25rem, 43vw, 38rem); }
  .hero-art { height: 100%; background-position: center; background-size: contain; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
}
