@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist/Geist.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #fff;
  --foreground: #202020;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --code-background: #f0f0f0;
  --highlight: #F5FF00;
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  background: var(--background);
  color: var(--foreground);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
::selection { background: var(--foreground); color: var(--background); }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(20px, 4vh, 40px) 64px clamp(16px, 2.5vh, 24px);
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; }
.brand img { display: block; width: auto; height: 52px; }
.header-links { display: inline-flex; align-items: center; gap: 12px; }
.header-link { padding: .12em .35em; background: var(--highlight); color: #000; font-weight: 600; text-decoration: none; transition: opacity 140ms; }
.header-link:hover { opacity: .8; }
.github { display: inline-flex; padding: 8px; margin-right: -8px; border-radius: 8px; color: var(--muted); transition: color 140ms; }
.github:hover { color: var(--foreground); }
.github svg { display: block; }

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-content: center;
  align-items: center;
  gap: clamp(24px, 4.5vh, 72px) 64px;
  padding-block: clamp(12px, 3vh, 64px);
}

.hero-copy { min-width: 0; }

.eyebrow { margin: 0 0 clamp(14px, 2.6vh, 24px); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(44px, min(5.8vw, 9.5vh), 80px); font-weight: 500; letter-spacing: -.055em; line-height: 1.03; }
.intro { max-width: 500px; margin: clamp(16px, 3vh, 28px) 0 0; font-size: 18px; line-height: 1.55; letter-spacing: -.015em; }
/* Same neon block as "kartei" in the logo; black text on it in both colour schemes. */
.intro mark { padding: .02em .22em; background: var(--highlight); color: #000; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nowrap { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(20px, 3.6vh, 32px); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: clamp(18px, 3vh, 28px) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { flex: none; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 40px; margin: 0; padding: clamp(12px, 2vh, 24px) 0 0; border-top: 1px solid var(--line); list-style: none; }
.values li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.5; }
.values strong { font-weight: 500; letter-spacing: -.01em; }
.values span { color: var(--muted); }

.hero-shots { position: relative; margin: 0; min-width: 0; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 48px -16px rgb(0 0 0 / .14); }
.shot-main { width: calc(100% + 32px); max-width: none; }
@media (max-height: 760px) { .shot-main { width: 100%; } }
.shot-detail { position: absolute; left: -40px; bottom: -12px; width: 40%; border-radius: 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 20px 40px -12px rgb(0 0 0 / .22); }
.app-link { display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px; border-radius: 8px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 140ms; }
.app-link:hover { background: color-mix(in srgb, var(--foreground), var(--background) 15%); }
.app-link > span { font-size: 18px; font-weight: 400; }
.documentation { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 140ms, border-color 140ms; }
.documentation:hover { color: var(--muted); border-color: var(--foreground); }
.documentation > span { font-size: 18px; font-weight: 400; }
.hero-side { min-width: 0; }
.news { margin-top: clamp(32px, 4.5vh, 56px); font-size: 13px; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.news h2 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-all { display: inline-flex; gap: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.news-all:hover { color: var(--foreground); }
.news ul { margin: 0; padding: 0; list-style: none; }
.news li a { display: flex; gap: 16px; align-items: baseline; min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.news li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.news time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

.faq-page { display: block; width: 100%; max-width: 1080px; padding-block: 64px 88px; }
.faq-page h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; line-height: 1.05; }
.faq-page .lead a, .faq-item a { text-underline-offset: 3px; }
.faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.faq-nav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; transition: border-color 140ms; }
.faq-nav a:hover { border-color: var(--foreground); }
.faq-group { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px 64px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.faq-group h2 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.faq-items { display: grid; gap: 32px; }
.faq-item h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }
/* The neon block of the homepage intro; black text on it in both colour schemes. */
.faq-item h3 mark { padding: .02em .22em; background: var(--highlight); color: #000; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.faq-item p { margin: 0; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

.article { display: block; width: 100%; max-width: 720px; padding-block: 64px 88px; }
.article h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.045em; line-height: 1.08; }
.lead { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.post-meta { margin: 0 0 14px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.prose { margin-top: 32px; font-size: 16px; line-height: 1.75; }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin: 36px 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.prose a { text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.post-list { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 24px 0; text-decoration: none; }
.post-list h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.post-list p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-list .post-meta { margin-bottom: 8px; }
.post-list a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.footer { border-top: 1px solid var(--line); padding-top: clamp(14px, 2.2vh, 20px); font-size: 12px; line-height: 1.5; color: var(--muted); }
.status { display: inline-flex; align-items: baseline; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer a { text-decoration: none; text-underline-offset: 3px; }
.footer a:hover { color: var(--foreground); text-decoration: underline; }
.legal { display: block; width: 100%; max-width: 680px; padding-block: 80px 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
.back-link:hover { color: var(--foreground); }
.legal-section { margin-top: 36px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-section h2 { margin: 0 0 10px; font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.legal-section h2 a { text-underline-offset: 3px; }
.legal-section p, .legal-section address { margin: 0; color: var(--muted); font-style: normal; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 10px; background: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

@media (prefers-color-scheme: dark) {
  :root { --background: #1e1e1e; --foreground: #ededed; --muted: #a0a0a0; --line: #303030; --code-background: #2c2c2c; }
  .shot { border-color: #3a3a3a; box-shadow: 0 24px 48px -16px rgb(0 0 0 / .6); }
}

@media (prefers-reduced-motion: reduce) {
  .app-link, .documentation, .github, .header-link { transition: none; }
}

@media (max-width: 1100px) {
  .page { padding-inline: 40px; }
  main { column-gap: 40px; }
  .values { column-gap: 28px; }
  .shot-main { width: 100%; }
  .shot-detail { left: -24px; }
  /* Three actions no longer fit one line; the footer links the documentation as well. */
  .documentation-docs { display: none; }
}

@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 56px 32px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shots { margin-bottom: 72px; }
  .shot-detail { left: auto; right: -12px; bottom: -64px; width: 44%; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .news { margin-top: 0; }
  .faq-group { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .news li a { flex-direction: column; gap: 2px; }
  .news li span { white-space: normal; }
}

@media (max-width: 600px) {
  .page { padding: 28px 24px 20px; }
  .brand img { height: 44px; }
  main { padding-block: 48px 24px; gap: 40px; }
  .legal { padding-block: 64px 72px; }
  .article { padding-block: 48px 64px; }
  .eyebrow { font-size: 10px; letter-spacing: .09em; margin-bottom: 18px; }
  h1 { font-size: clamp(44px, 12vw, 68px); }
  .intro { font-size: 17px; margin-top: 22px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .shot { border-radius: 8px; }
  .shot-detail { right: -8px; bottom: -48px; width: 52%; border-radius: 6px; }
  .hero-shots { margin-bottom: 56px; }
}
