/* digital-thinking.de — Christian Freischlag
   Dark, one green accent. Geist for reading, JetBrains Mono for labels and data.
   Both fonts are self-hosted. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #171717;
  --fg:        #ededed;
  --fg-dim:    #a8a8a8;
  --fg-mute:   #858585;
  --border:    #242424;
  --border-2:  #3a3a3a;
  --g:         #00ff9c;
  --g-bright:  #6effc1;
  --g-tint:    rgb(0 255 156 / 0.12);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --margin-col: 11rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
html[lang="de"] h3 { hyphens: auto; }
p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

a { color: inherit; }
::selection { background: var(--g); color: var(--bg); }

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

.prose a, .link {
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
.prose a:hover, .link:hover { color: var(--g); text-decoration-color: var(--g); }
.prose code { font-family: var(--mono); font-size: 0.9em; color: var(--fg); }

mark {
  background: var(--g-tint);
  color: var(--g-bright);
  padding: 0.08em 0.3em;
  margin: 0 -0.3em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--g);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip:focus { top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--g);
  border-radius: 2px;
  background: var(--g);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--g-bright); border-color: var(--g-bright); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn-plain {
  border-color: var(--border-2);
  background: transparent;
  color: var(--fg);
}
.btn-plain:hover { border-color: var(--g); background: transparent; color: var(--g); }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(10 10 10 / 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 20px; height: 20px; color: var(--g); flex: none; }
.brand span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
}
.nav a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav a:hover { color: var(--g); }
.top-end {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.lang {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--fg-dim);
  text-decoration-color: var(--border-2);
  text-underline-offset: 0.25em;
}
.lang:hover { color: var(--g); }

@media (max-width: 60rem) {
  .nav { display: none; }
}
@media (max-width: 32rem) {
  .brand span { display: none; }
  .top-end { gap: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 6vw, 5rem); }

.hero h1 {
  max-width: 15em;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.tagline {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--g);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.hero-intro p {
  max-width: 34em;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--fg-dim);
}
.hero-intro p strong { color: var(--fg); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 2rem;
}
.hero-actions .link {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0;
}
.hero-intro .hero-note {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--fg-mute);
}

/* The figure: a system sketch with a reviewer's numbered notes. */
.fig {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.4rem;
}
.fig figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.fig figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.fig svg {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 1.1rem 1rem;
}
.fig .box rect {
  fill: var(--bg-3);
  stroke: var(--border-2);
  stroke-width: 1.25;
  transition: fill 140ms ease, stroke 140ms ease;
}
.fig .box text {
  font-family: var(--mono);
  font-size: 14px;
  fill: var(--fg);
  text-anchor: middle;
}
.fig .flow {
  fill: none;
  stroke: var(--fg-mute);
  stroke-width: 1.25;
}
.fig .flow.back { stroke-dasharray: 5 4; }
.fig .tag circle { fill: var(--g); }
.fig .tag text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  fill: var(--bg);
  text-anchor: middle;
}
.fig .tag {
  transform-box: fill-box;
  transform-origin: center;
}

.notes {
  counter-reset: note;
  border-top: 1px solid var(--border);
}
.notes li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 1.5rem 5.75rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--fg-dim);
}
.notes li::before {
  content: counter(note);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--g);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  align-self: start;
}
.notes b {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg);
}

/* A note under the pointer marks its place in the sketch. */
.fig:has(.notes li:nth-child(1):hover) .n1 rect,
.fig:has(.notes li:nth-child(2):hover) .n2 rect,
.fig:has(.notes li:nth-child(3):hover) .n3 rect,
.fig:has(.notes li:nth-child(4):hover) .n4 rect,
.fig:has(.notes li:nth-child(5):hover) .n5 rect { fill: var(--g-tint); stroke: var(--g); }

/* The only load animation on the page: the notes appear in order. */
@media (prefers-reduced-motion: no-preference) {
  .fig .tag { animation: stamp 240ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .fig .t1 { animation-delay: 350ms; }
  .fig .t2 { animation-delay: 470ms; }
  .fig .t3 { animation-delay: 590ms; }
  .fig .t4 { animation-delay: 710ms; }
  .fig .t5 { animation-delay: 830ms; }
  @keyframes stamp {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: none; }
  }
}

/* The facts, in one strip. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.facts > div {
  padding: 1rem 1.2rem 1.15rem;
  border-left: 1px solid var(--border);
}
.facts > div:first-child { border-left: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0;
  color: var(--g);
}
.facts dd {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fg-dim);
}

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 34rem) {
  .fig { padding: 1rem; }
  .fig .box text { font-size: 18px; }
  .fig .tag { transform: scale(1.3); }
  .notes li { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .notes li b { grid-column: 2; }
  .notes li span { grid-column: 2; margin-top: -0.45rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { border-left: 0; }
  .facts > div:nth-child(n+2) { border-top: 1px solid var(--border); }
  .hero-actions { margin-top: 1.5rem; }
}
@media (max-width: 34rem) and (prefers-reduced-motion: no-preference) {
  @keyframes stamp {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1.3); }
  }
}

/* ---------- Sections: name in the margin, content beside it ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
}
.sec-name {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--g);
}
.lede {
  max-width: 20em;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.lede + .aside { margin-top: 1.1rem; }
.aside {
  max-width: 40em;
  color: var(--fg-dim);
}

@media (max-width: 60rem) {
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-name {
    position: static;
    padding-top: 0;
    margin-bottom: 1rem;
  }
}

/* ---------- Services ---------- */
.sheets {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.sheet {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--g);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
}
.sheet-head h3 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.035em;
}
.for {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.sheet-sum {
  max-width: 40em;
  margin-top: 0.9rem;
  font-size: 1.125rem;
  line-height: 1.55;
}
.sheet-cols {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.9rem;
}
.sheet h4 {
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.fits li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.55;
  color: var(--fg-dim);
}
.fits li + li { margin-top: 0.7rem; }
.fits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--g);
}
.scope { border-top: 1px solid var(--border); }
.scope li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--fg-dim);
}
.sheet-out {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.sheet-out p { line-height: 1.6; color: var(--fg-dim); }

.sheets + .sheets { margin-top: 1.5rem; }
.sheet-minor { border-top: 1px solid var(--border); }
.sheet-minor .sheet-head h3 { font-size: 1.4rem; letter-spacing: -0.03em; }
.sheet-minor .sheet-cols { margin-top: 1.25rem; }
.sheet-minor .sheet-cols p { line-height: 1.6; color: var(--fg-dim); }
.sheet-minor h4 { margin-top: 0.15rem; }

.not {
  max-width: 42em;
  margin-top: 2rem;
  color: var(--fg-dim);
}
.not b { color: var(--fg); }

@media (max-width: 46rem) {
  .sheet-cols, .sheet-out { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Work ---------- */
.proof { margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.proof-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 0 1.35rem;
  border-top: 1px solid var(--border);
}
.proof-row h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.02em; }
.proof-row p { max-width: 40em; color: var(--fg-dim); }
.proof-row .src, .src {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.sub {
  margin-top: 3.25rem;
  font-size: 1.5rem;
}
.sub + .aside { margin-top: 0.4rem; }
.sub + .proof, .sub + .aside + .proof { margin-top: 1.25rem; }
.proof + .creds { margin-top: 2.5rem; }

.career {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.4;
}
.career th, .career td {
  padding: 0.65rem 1.5rem 0.65rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.career tr:last-child > * { border-bottom: 1px solid var(--border); }
.career th {
  width: 13rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--fg-mute);
  white-space: nowrap;
}
.career td:last-child { padding-right: 0; color: var(--fg-dim); }

.creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.creds h4 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.creds p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--fg-dim); }

@media (max-width: 46rem) {
  .proof-row { grid-template-columns: minmax(0, 1fr); }
  .career, .career tbody, .career tr, .career th, .career td { display: block; width: auto; }
  .career tr { padding: 0.7rem 0; border-top: 1px solid var(--border); }
  .career tr:last-child { border-bottom: 1px solid var(--border); }
  .career th, .career td, .career tr:last-child > * { padding: 0; border: 0; }
  .creds { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works: a real sequence, so it is numbered ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1px solid var(--border-2);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--g);
}
.steps h3 { margin-top: 0.6rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.steps p { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.55; color: var(--fg-dim); }

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.terms h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.terms p { margin-top: 0.45rem; font-size: 0.95rem; line-height: 1.55; color: var(--fg-dim); }

@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .terms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Writing ---------- */
.posts { margin-top: clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--border); }
.posts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 2rem;
  align-items: baseline;
  padding: 1.1rem 0.75rem 1.2rem;
  margin-inline: -0.75rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 140ms ease;
}
.posts a:hover { background: var(--bg-2); }
.posts h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.025em; transition: color 140ms ease; }
.posts a:hover h3 { color: var(--g); }
.posts p { grid-column: 1; max-width: 40em; font-size: 0.95rem; color: var(--fg-dim); }
.posts time {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
  color: var(--fg-mute);
  white-space: nowrap;
}
.posts-more { margin-top: 1.25rem; color: var(--fg-dim); }
@media (max-width: 34rem) {
  .posts a { grid-template-columns: minmax(0, 1fr); }
  .posts time { grid-column: 1; grid-row: auto; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.contact h2 {
  max-width: 11em;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.contact-copy {
  max-width: 32em;
  margin-top: 1.4rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg-dim);
}
.mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--g);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  overflow-wrap: anywhere;
  transition: color 140ms ease;
}
.mail:hover { color: var(--g); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hints {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--fg-dim);
}
.hints h3 {
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.hints li { position: relative; padding-left: 1.1rem; }
.hints li + li { margin-top: 0.3rem; }
.hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--g);
}
.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--fg-dim);
}
.elsewhere a { text-decoration-color: var(--border-2); text-underline-offset: 0.25em; }
.elsewhere a:hover { color: var(--g); }
@media (max-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
  color: var(--fg-mute);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.foot p { max-width: 46em; line-height: 1.7; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.foot a { color: var(--fg-dim); text-decoration-color: var(--border-2); text-underline-offset: 0.25em; }
.foot a:hover { color: var(--g); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.045em; }
.legal .sec-grid:first-of-type { margin-top: clamp(2rem, 4vw, 3rem); }
.legal .sec-grid { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal h3 { margin-top: 2rem; font-size: 1.125rem; letter-spacing: -0.02em; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal address {
  max-width: 42em;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--fg-dim);
}

/* ---------- Portrait ---------- */
.portrait, .contact-person img {
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  background: var(--bg-3);
  filter: grayscale(1) contrast(1.06);
}
.hero > .wrap { position: relative; }
.portrait {
  position: absolute;
  top: 0.6rem;
  right: var(--gutter);
  width: 11rem;
  height: 11rem;
}
.hero h1 { max-width: min(15em, calc(100% - 13.5rem)); }
@media (max-width: 60rem) {
  .portrait {
    position: static;
    float: right;
    width: 5.75rem;
    height: 5.75rem;
    margin: 0.35rem 0 0.6rem 1.1rem;
  }
  .hero h1 { max-width: 15em; }
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-person img { width: 4rem; height: 4rem; flex: none; }
.contact-person strong { display: block; letter-spacing: -0.015em; }
.contact-person span {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
  color: var(--fg-mute);
}
