/* tesserio.de – static marketing site. No external resources, no scripts. */

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

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --paper: #f4f4f1;
  --blue: #2f5bff;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5d5d61;
  --line: #dcdcd6;
  --card: #ffffff;
  --accent: var(--blue);
  --pencil: #9a9a9f;
  --hair: #b4b4b8;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #9a9a9e;
    --line: #26262a;
    --card: #141416;
    --accent: #5c7dff;
    --pencil: #77777c;
    --hair: #5c5c61;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: currentColor;
}

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.08em;
  background: var(--blue);
}

/* ---------- Labels ---------- */

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent {
  color: var(--accent);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-header .wordmark {
  font-size: 1.5rem;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--fg);
}

@media (max-width: 34rem) {
  .site-header nav .hide-sm {
    display: none;
  }
}

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

.hero {
  display: grid;
  gap: 3rem;
  padding-top: clamp(3rem, 10vw, 7.5rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.375rem, 7vw, 4.5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.button::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  background: var(--blue);
}

.button:hover {
  background: var(--blue);
  color: #fff;
}

.button:hover::after {
  background: #fff;
}

.text-link {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Badge illustration (decorative) ---------- */

.badge-stage {
  display: flex;
  justify-content: center;
}

@media (min-width: 60rem) {
  .badge {
    width: 17.5rem;
  }
}

.badge {
  position: relative;
  width: min(78%, 15rem);
  aspect-ratio: 105 / 148;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(11, 11, 12, 0.04),
    0 24px 48px -24px rgba(11, 11, 12, 0.25);
  transform: rotate(-2.5deg);
}

@media (prefers-color-scheme: dark) {
  .badge {
    box-shadow: 0 0 0 1px #2a2a2e, 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  }
}

.badge__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b70;
}

.badge__logo {
  width: 2.25rem;
  height: 0.75rem;
  background: var(--ink);
  border-radius: 1px;
}

.badge__name {
  margin-top: auto;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.badge__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #6b6b70;
}

.badge__flag {
  width: 1rem;
  height: 0.6875rem;
  border-radius: 1px;
  background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%);
}

.badge__qr {
  width: 52%;
  margin: 1.25rem 0 0;
}

.badge__foot {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: #9a9a9e;
}

/* ---------- Sections ---------- */

.section {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 60rem) {
  .section__head {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section__intro {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.steps li {
  position: relative;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

@media (min-width: 48rem) {
  .steps li {
    border-top: 0;
    padding: 1.25rem 0 0;
  }

  .steps li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--line);
  }

  .steps li:first-child::after {
    background: linear-gradient(to right, var(--blue) 0.5rem, var(--line) 0.5rem);
  }
}

.steps h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features li {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg);
}

.features h3 {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.features p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 450;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  color: var(--muted);
}

/* ---------- Facts ---------- */

.facts {
  display: grid;
  gap: 2rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

.contact {
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 44rem;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wordmark {
  font-size: 1.125rem;
  color: var(--fg);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0;
}

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

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--fg);
}

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

.legal {
  max-width: 44rem;
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.legal h1 {
  margin: 1rem 0 2.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.legal h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong {
  color: var(--fg);
  font-weight: 600;
}

.placeholder {
  padding: 0 0.25em;
  background: #fff3b0;
  color: #5a4a00;
  font-family: var(--mono);
  font-size: 0.875em;
}

@media (prefers-color-scheme: dark) {
  .placeholder {
    background: #3d3500;
    color: #ffe680;
  }
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #e0b400;
  background: var(--card);
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Icons (inline sprite, drawn line style with the blue square) ---------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  color: var(--hair);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.25rem;
}

/* Hand-drawn arrow between process steps (desktop row only). */
.step-arrow {
  display: none;
}

@media (min-width: 48rem) {
  .step-arrow {
    display: block;
    position: absolute;
    top: 1.6rem;
    right: -1.35rem;
    width: 2.2rem;
    height: 1rem;
    fill: none;
    stroke: var(--hair);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .steps li {
    padding-right: 1rem;
  }
}

/* ---------- Name origin illustration ---------- */

.origin__story {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  max-width: 24rem;
}

@media (min-width: 60rem) {
  .origin__story {
    margin-left: calc((100% - 4rem) / 3 + 4rem);
  }
}

.origin .section__head {
  margin-bottom: 2rem;
}

.origin__panel {
  margin: 0;
}

.origin__panel {
  width: 100%;
}

.origin__panel figcaption {
  margin-top: 0.4rem;
  font-size: 0.5625rem;
  text-align: center;
}

.ill {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ill__line,
.origin__arrow path {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill__fill-bg {
  fill: var(--bg);
}

.ill__white {
  fill: var(--card);
}

.ill__faint path {
  fill: none;
  stroke: var(--line);
  stroke-width: .9;
  stroke-linecap: round;
}

.ill__solid {
  fill: var(--pencil);
}

.ill__blue {
  fill: var(--blue);
}

.ill__accent {
  stroke: var(--blue);
}

.ill__beam {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}

.ill__text {
  font-family: var(--mono);
  font-size: 13px;
  fill: var(--pencil);
}

.ill__text--onblue {
  font-size: 11px;
  fill: #fff;
}

.ill__accent-text {
  font-size: 13px;
  fill: var(--blue);
}

.origin__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.origin__arrow svg {
  width: 2.25rem;
  height: 1.125rem;
}

.origin__arrow .label {
  max-width: 4.5rem;
  font-size: 0.5625rem;
  line-height: 1.3;
}

.origin em {
  font-style: italic;
}

/* ---------- Roles (CSS-only tabs: radio inputs + labels) ---------- */

.roles__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.roles__tabs {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.roles__tabs label {
  position: relative;
  flex: none;
  padding: 0.75rem 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}

.roles__tabs label:hover {
  color: var(--fg);
}

.roles__tabs label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

#rolle-host:checked ~ .roles__tabs label[for="rolle-host"],
#rolle-gast:checked ~ .roles__tabs label[for="rolle-gast"],
#rolle-team:checked ~ .roles__tabs label[for="rolle-team"],
#rolle-post:checked ~ .roles__tabs label[for="rolle-post"] {
  color: var(--fg);
}

#rolle-host:checked ~ .roles__tabs label[for="rolle-host"]::after,
#rolle-gast:checked ~ .roles__tabs label[for="rolle-gast"]::after,
#rolle-team:checked ~ .roles__tabs label[for="rolle-team"]::after,
#rolle-post:checked ~ .roles__tabs label[for="rolle-post"]::after {
  background: var(--blue);
}

#rolle-host:focus-visible ~ .roles__tabs label[for="rolle-host"],
#rolle-gast:focus-visible ~ .roles__tabs label[for="rolle-gast"],
#rolle-team:focus-visible ~ .roles__tabs label[for="rolle-team"],
#rolle-post:focus-visible ~ .roles__tabs label[for="rolle-post"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.roles__panel {
  display: none;
  gap: 2rem;
}

#rolle-host:checked ~ .roles__panel--host,
#rolle-gast:checked ~ .roles__panel--gast,
#rolle-team:checked ~ .roles__panel--team,
#rolle-post:checked ~ .roles__panel--post {
  display: grid;
}

@media (min-width: 48rem) {
  .roles__panel {
    grid-template-columns: 11rem 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 60rem) {
  .roles__panel {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.roles__sketch {
  width: 9rem;
  height: auto;
  overflow: visible;
}

.roles__text h3 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.roles__list {
  display: grid;
  gap: 1.25rem;
  max-width: 38rem;
  margin: 1.5rem 0 0;
}

.roles__list div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.roles__list dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.roles__list dd {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.roles__list .tag {
  margin: 0 0.3rem 0 0;
}

.roles__items {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.roles__items li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.roles__items .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
}

@media (min-width: 60rem) {
  .roles__list {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem 2.5rem;
  }
}
