/* SPDX-FileCopyrightText: 2026 René Koch */
/* SPDX-License-Identifier: MIT */

@font-face {
  font-family: Inter;
  src: url("inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #181b1d;
  --deep: #111416;
  --panel-shade: #1b2023;
  --surface: #222629;
  --border: #43484e;
  --control: #7d858c;
  --text: #f2f4f6;
  --muted: #bdc3ca;
  --accent: #d7dbe0;
  --on-accent: #14171a;
  --automation: #79baff;
  --infra: #69cccc;
  --success: #65b76b;
  --radius: .5rem;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--automation); outline-offset: .25rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.65rem); letter-spacing: -.06em; font-weight: 730; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.035em; font-weight: 690; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; font-weight: 650; }

.wrap { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .75rem; background: var(--surface); padding: .5rem .75rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { background: var(--deep); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.brand { display: block; width: 9.5rem; margin-right: auto; }
.brand img { width: 100%; height: auto; }
.site-nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 2.5vw, 1.75rem); }
.site-nav a, .footer-inner a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.site-nav a:hover, .footer-inner a:hover, .site-nav [aria-current] { color: var(--text); text-decoration: underline; }
.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.65rem;
  padding: .55rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--text); color: var(--on-accent); }
.button-outline { border-color: var(--control); color: var(--text); }
.button-outline:hover { background: var(--surface); border-color: var(--accent); }
.source-link { min-height: 2.25rem; }

.hero {
  isolation: isolate;
  position: relative;
  background: var(--deep);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 53% 0 12%;
  height: 48%;
  opacity: .38;
  background: linear-gradient(90deg, var(--deep), transparent 30%, transparent 68%, var(--deep)),
    linear-gradient(var(--deep), transparent 45%, transparent 75%, var(--deep)),
    url("forge-anvil.webp") right 61% / cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.3rem, 3.2vw, 3.35rem);
  padding-block: clamp(2.75rem, 5vw, 4.65rem);
}
.hero h1 { font-size: clamp(2.25rem, 3.8vw, 4.1rem); text-wrap: initial; }
.eyebrow {
  font-size: .8125rem;
  font-weight: 680;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--automation);
  margin-bottom: .95rem;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 38rem; margin-top: 1.15rem; }
.hero .lead { max-width: 28rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.release-note { margin-top: 1.2rem; color: var(--muted); font-size: .875rem; display: flex; align-items: center; gap: .5rem; }
.release-dot { width: .43rem; height: .43rem; border-radius: 50%; background: var(--success); }
.app-shot {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--deep);
}
.app-shot img { width: 100%; height: auto; }
.hero-shot, .survey-feature .app-shot { box-shadow: 0 14px 40px rgb(0 0 0 / .24); }

.feature-strip { border-block: 1px solid var(--border); background: var(--surface); }
.feature-links {
  list-style: none;
  padding: .8rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-links li + li { border-inline-start: 1px solid var(--border); }
.feature-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  padding: .4rem .55rem;
  color: var(--text);
  font-size: .9rem;
  font-weight: 630;
  text-decoration: none;
}
.feature-links a:hover { text-decoration: underline; }
.feature-icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--automation); }

.section { padding-block: clamp(2.6rem, 5vw, 4.4rem); }
.survey-feature {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 2fr);
  gap: clamp(1.4rem, 4vw, 3.6rem);
  align-items: start;
}
.survey-feature > div:first-child { padding-top: clamp(.25rem, 2vw, 1.8rem); }
.survey-feature h2, .showcase > h2, .launch h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.feature-copy { margin-top: 1rem; color: var(--muted); }
.check-list { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 1.35rem 0 0; }
.check-list li { display: flex; align-items: center; gap: .55rem; }
.check-list .feature-icon { width: 1.15rem; height: 1.15rem; }

.showcase { padding-top: 0; }
.showcase > h2 { margin-bottom: 1.4rem; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.5rem);
}
.feature-panel {
  background: linear-gradient(145deg, var(--surface), var(--panel-shade));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(.8rem, 1.5vw, 1.15rem);
  min-width: 0;
}
.showcase-grid > .feature-panel { display: grid; grid-template-rows: 1fr auto; gap: 1rem; }
.panel-heading { display: flex; align-items: flex-start; gap: .8rem; }
.showcase-grid .panel-heading { padding: .4rem .45rem 0; }
.panel-heading h3, .inventory-panel h3 { text-wrap: initial; }
.showcase-grid h3 { font-size: clamp(1.12rem, 2vw, 1.5rem); }
.feature-panel p, .supporting-features p { color: var(--muted); margin-top: .45rem; }
.inventory-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}
.inventory-panel > div:first-child { padding: .55rem .65rem; }
.inventory-panel h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-top: .55rem; }
.inventory-panel .feature-icon, .supporting-features .feature-icon { color: var(--infra); }
.supporting-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.5rem, 3vw, 2.6rem);
}
.supporting-features article { padding: .45rem clamp(.8rem, 2vw, 1.4rem); }
.supporting-features article + article { border-inline-start: 1px solid var(--border); }
.supporting-features p { font-size: .925rem; }

.launch { padding-top: 0; }
.launch-panel { text-align: center; padding: clamp(1.75rem, 4vw, 3.1rem) 1rem; }
.launch-panel .actions { justify-content: center; margin-block: 1.2rem .85rem; }
.blog-link { color: var(--automation); font-size: .925rem; }

.post-card { padding: clamp(1.15rem, 2.6vw, 1.7rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-card p { color: var(--muted); margin-top: .65rem; }

.page { padding-block: clamp(3rem, 7vw, 6rem); }
.page-heading { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page h1 { font-size: clamp(2.45rem, 6vw, 4.2rem); }
.note, .post-date, .post-card time { font-size: .875rem; color: var(--muted); }
.note { margin-top: 1.15rem; }
.post-list { display: grid; gap: 1rem; max-width: 49rem; }
.post-card h2 { font-size: 1.5rem; margin-top: .35rem; }
.post-date { margin-bottom: .7rem; }
.back-link { display: inline-block; font-size: .9rem; margin-bottom: 1rem; }
.prose { max-width: 42rem; color: var(--muted); }
.prose h2 { color: var(--text); margin-block: 1.85rem .65rem; font-size: 1.45rem; }
.prose p + p { margin-top: .8rem; }

.site-footer { background: var(--deep); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; padding-block: 1.25rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.footer-brand img { width: 1.55rem; height: 1.55rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; margin-right: auto; }

@media (max-width: 60rem) {
  .hero h1 br { display: none; }
  .survey-feature { grid-template-columns: minmax(0, .75fr) minmax(0, 1.7fr); }
}

@media (max-width: 47rem) {
  .hero-inner, .survey-feature, .inventory-panel { grid-template-columns: minmax(0, 1fr); }
  .hero::before { inset-inline: 0; opacity: .28; }
  .hero h1 { max-width: 17ch; }
  .survey-feature > div:first-child { padding-top: 0; }
  .survey-feature h2 { text-wrap: initial; }
  .inventory-panel > div:first-child { padding: .4rem .45rem 0; }
  .supporting-features { grid-template-columns: 1fr; }
  .supporting-features article + article { border-inline-start: 0; border-top: 1px solid var(--border); }
  .supporting-features article { padding-block: .9rem; }
}

@media (max-width: 36rem) {
  .showcase-grid { grid-template-columns: 1fr; }
  .feature-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .4rem 0; }
  .feature-links a { justify-content: flex-start; gap: .4rem; padding: .65rem .3rem; font-size: .84rem; }
  .feature-links li:nth-child(odd) { border-inline-start: 0; }
  .feature-links li:nth-child(even) { padding-inline-start: .45rem; }
  .feature-links li:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .feature-links .feature-icon { width: 1.1rem; height: 1.1rem; }
}

@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 .75rem; padding-block: .6rem; }
  .site-nav { order: 1; flex-basis: 100%; padding-top: .55rem; justify-content: space-between; }
  .site-nav a { padding-block: .25rem; }
  .footer-inner nav { width: 100%; }
}
