/* ==========================================================================
   Smartfull Solutions — the one stylesheet
   No build step, no dependencies, no third-party requests.

   Visual direction: "blueprint". A faint graph-paper ground, monospace
   section labels, content in bordered panels that sit on the grid, and a
   single teal accent. Deliberately unlike nightship.io.

   To retheme: change the tokens in :root. --accent is the one colour that
   carries the whole design.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  /* Colour. Light is the source of truth; the dark block overrides only these. */
  --paper:        #fbfbfa;   /* page ground, under the grid                */
  --panel:        #ffffff;   /* section panels sitting on the grid         */
  --ink:          #16181b;   /* headings, emphasis                         */
  --ink-soft:     #4e5257;   /* body text                                  */
  --ink-faint:    #868a90;   /* meta                                       */
  --rule:         #e2e2df;   /* panel borders, hairlines                   */
  --grid:         rgba(0, 0, 0, 0.045);   /* graph-paper lines             */
  --accent:       #1c5f66;   /* teal                                       */
  --accent-soft:  #dfeced;   /* accent wash behind the status pill         */

  /* Type — system stacks only, nothing is downloaded. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Fluid scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.83rem);
  --step-0:  clamp(0.92rem, 0.90rem + 0.12vw, 1.0rem);
  --step-1:  clamp(1.06rem, 1.01rem + 0.24vw, 1.2rem);
  --step-2:  clamp(1.24rem, 1.13rem + 0.50vw, 1.55rem);
  --step-3:  clamp(1.75rem, 1.42rem + 1.45vw, 2.7rem);

  --measure: 38rem;
  --gutter:  clamp(1.15rem, 4vw, 2.25rem);
  --grid-size: 26px;
  --radius: 6px;

  /* The site is light only — deliberately, to stay distinct from nightship.io,
     which is dark. Declaring it here stops browsers from theming scrollbars
     and form controls dark on a light page. There is no dark-theme block in
     this file; do not add one without revisiting that decision. */
  color-scheme: light;
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img, svg { max-width: 100%; height: auto; display: block; }

/* --- Base --------------------------------------------------------------- */

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { color: var(--ink); font-weight: 600; }

/* --- Layout primitives -------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* Monospace label above a section heading */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  padding-block: clamp(1.75rem, 5vw, 3rem) clamp(0.75rem, 2vw, 1rem);
  text-align: center;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

/* The logo file is solid black, which is exactly right on the light ground. */
.brand__mark {
  width: 4.25rem;
  height: auto;
  flex: none;
}

.brand__name {
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__name span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.lang {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.lang [aria-current] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.hero h1 {
  font-size: var(--step-3);
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-inline: auto;
}

.hero p {
  margin-top: 0.9rem;
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--step-1);
  line-height: 1.45;
}

/* --- Sections: panels on the grid --------------------------------------- */

.section {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.9rem);
  margin-top: 1.1rem;
}

.section:last-of-type { margin-bottom: 2rem; }

.section h2 { font-size: var(--step-2); max-width: 24ch; }

.section > * + * { margin-top: 0.85rem; }

/* A one-line gloss directly under a section heading. Sits between heading and
   body in weight: same colour as the heading, but not bold. */
.section h2 + .subhead {
  margin-top: 0.4rem;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--ink);
  /* Taglines are written to sit on one line. German runs longer than English,
     so this is set by the longest German one, not the longest English one. */
  max-width: 44ch;
}

.section p,
.section ul { max-width: var(--measure); }

/* Bulleted list. The marker is the gear taken from the logo — the identical
   path, so it carries the same tooth count and proportions as the mark.

   NOTE: this is the one place --accent is NOT the single source of truth. A
   background image cannot inherit currentColor, so the colour is baked into
   the data URI below. Change --accent and you must change it there too. A CSS
   mask would avoid this, but mask images do not load over file://, which would
   break opening the pages locally. */
.list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.list li {
  padding-left: 1.5rem;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 0.8rem;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2258%2044%2052%2052%22%3E%3Cpath%20fill%3D%22%231c5f66%22%20d%3D%22M108.96%2C74.61s-.09-.03-.13-.05c-.14-.04-.28-.1-.42-.15-1.83-.76-3.13-2.57-3.12-4.67%2C0-.68.14-1.33.38-1.92.57-1.38%2C1.74-2.45%2C3.18-2.9.8-.25%2C1.26-1.07%2C1.05-1.87-.63-2.43-1.59-4.77-2.86-6.93-.18-.3-.44-.52-.74-.65-.41-.17-.9-.16-1.33.06-1.33.7-2.92.76-4.3.19-.59-.25-1.14-.61-1.62-1.09-1.59-1.6-1.89-4.01-.89-5.92.39-.74.13-1.65-.59-2.07-1.05-.62-2.15-1.17-3.31-1.65-1.15-.48-2.32-.87-3.5-1.18-.81-.21-1.63.25-1.88%2C1.04-.64%2C2.05-2.57%2C3.55-4.82%2C3.54-.68%2C0-1.32-.14-1.92-.38-1.38-.57-2.45-1.74-2.9-3.18-.14-.46-.48-.81-.89-.98-.3-.13-.64-.16-.98-.07-2.43.63-4.77%2C1.59-6.93%2C2.86-.72.42-.97%2C1.33-.59%2C2.07%2C1%2C1.91.7%2C4.33-.9%2C5.92-.74.74-1.66%2C1.2-2.63%2C1.38-.96.18-1.97.08-2.89-.3-.14-.06-.27-.12-.4-.19-.04-.02-.09-.04-.13-.06-.71-.3-1.54-.03-1.94.65-.62%2C1.05-1.17%2C2.15-1.65%2C3.31-.48%2C1.15-.87%2C2.32-1.18%2C3.5-.2.76.2%2C1.53.91%2C1.83.04.02.09.03.13.05.14.04.28.1.42.15%2C1.83.76%2C3.13%2C2.57%2C3.12%2C4.67%2C0%2C.68-.14%2C1.33-.38%2C1.92-.57%2C1.38-1.74%2C2.45-3.18%2C2.9-.8.25-1.26%2C1.07-1.05%2C1.87.63%2C2.43%2C1.59%2C4.77%2C2.86%2C6.94.18.3.44.52.74.65.41.17.9.16%2C1.33-.06%2C1.33-.7%2C2.92-.76%2C4.3-.19.59.25%2C1.14.61%2C1.62%2C1.09%2C1.59%2C1.6%2C1.89%2C4.01.89%2C5.91-.39.74-.13%2C1.65.59%2C2.07%2C1.05.62%2C2.15%2C1.17%2C3.31%2C1.65s2.32.87%2C3.5%2C1.18c.81.21%2C1.63-.25%2C1.88-1.04.64-2.05%2C2.57-3.54%2C4.82-3.54.68%2C0%2C1.33.14%2C1.92.38%2C1.38.57%2C2.45%2C1.74%2C2.9%2C3.18.14.46.48.81.89.98.3.13.64.16.98.07%2C2.43-.63%2C4.77-1.59%2C6.93-2.86.72-.42.97-1.33.59-2.07-1-1.91-.7-4.33.9-5.92.74-.74%2C1.66-1.2%2C2.63-1.38.96-.18%2C1.97-.08%2C2.89.3.14.06.27.12.4.19.04.02.09.04.13.06.71.3%2C1.54.03%2C1.94-.65.62-1.05%2C1.17-2.15%2C1.65-3.3.48-1.15.87-2.32%2C1.18-3.5.2-.76-.2-1.53-.91-1.83ZM84.01%2C83.56c-7.68%2C0-13.9-6.22-13.9-13.9s6.22-13.9%2C13.9-13.9%2C13.9%2C6.22%2C13.9%2C13.9-6.22%2C13.9-13.9%2C13.9Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

/* Status line, e.g. the Nightship beta note */
.status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-0.1em);
}

/* Outbound link, set a little apart */
.link-out {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.link-out:hover { color: var(--accent); }

/* --- Contact ------------------------------------------------------------ */

.contact a {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  word-break: break-word;
}

.contact a:hover { color: var(--accent); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding-block: 1.4rem 2.5rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Legal pages -------------------------------------------------------- */

.legal {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.9rem);
  margin-top: 1.1rem;
  margin-bottom: 2rem;
}

.legal h1 { font-size: var(--step-2); }

.legal h2 { font-size: var(--step-1); margin-top: 2rem; }

.legal h3 {
  font-size: var(--step-0);
  font-weight: 600;
  margin-top: 1.5rem;
}

.legal p,
.legal ul,
.legal address {
  max-width: var(--measure);
  margin-top: 0.9rem;
}

.legal address { font-style: normal; }

.legal ul { padding-left: 1.2rem; }
.legal li { margin-top: 0.35rem; }

/* Short English note at the top of a German legal page */
.note {
  max-width: var(--measure);
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: var(--step--1);
}

.note :first-child { margin-top: 0; }
