@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-200-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-200-normal.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-300-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-300-normal.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-400-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-400-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-500-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-500-normal.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-600-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-600-normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-700-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-700-normal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("../fonts/woff2/manrope-latin-800-normal.woff2") format("woff2"),
    url("../fonts/woff/manrope-latin-800-normal.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Register --hue as an animatable angle for smooth color cycling */
@property --hue {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

:root {
  /* Codespitze brand */
  --bg: #fafaf7;
  --ink: #1b1b1b;
  --ink-soft: #444443;
  --muted: #6b6b6b;
  --mute-2: #9a968d;
  --line: #e6e4de;
  --line-soft: #efede7;
  --ink-blue: #2f4a66;
  --amber: #c99a2e;

  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-y: clamp(2.25rem, 5vw, 4rem);
  --content-max: 58rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --ink: #f1efe9;
    --ink-soft: #c8c5bd;
    --muted: #9a9892;
    --mute-2: #6e6b65;
    --line: #2a2926;
    --line-soft: #1f1e1c;
    --amber: #d4a94b;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

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

.page {
  width: 100%;
  max-width: var(--content-max);
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5.5vw, 4rem);
}

/* ---------- Brand lockup ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  cursor: default;
  user-select: none;
  width: max-content;
  max-width: 100%;
}

.brand .mark {
  width: clamp(56px, 9vw, 88px);
  height: auto;
  flex: 0 0 auto;
  filter: hue-rotate(var(--hue));
  animation: hue-cycle 60s linear infinite;
  transition: filter 0.2s ease;
}

.brand .wordmark {
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink-blue);
  filter: hue-rotate(var(--hue));
  animation: hue-cycle 60s linear infinite;
  position: relative;
  top: -0.1em;
}

@media (prefers-color-scheme: dark) {
  .brand .wordmark {
    color: #b6cee6;
  }
}

/* Speed up on hover/focus of the lockup */
.brand:hover .mark,
.brand:hover .wordmark,
.brand:focus-within .mark,
.brand:focus-within .wordmark {
  animation-duration: 1s;
}

/* Sync notice-dot hue with brand hover */
body:has(.brand:hover) .notice-dot,
body:has(.brand:focus-within) .notice-dot {
  animation-duration: 1s, 2.4s;
}

@keyframes hue-cycle {
  from {
    --hue: 0deg;
  }

  to {
    --hue: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand .mark,
  .brand .wordmark {
    animation-duration: 360s;
  }

  .brand:hover .mark,
  .brand:hover .wordmark {
    animation-duration: 60s;
  }

  .notice-dot {
    animation-duration: 360s, 2.4s;
  }

  body:has(.brand:hover) .notice-dot,
  body:has(.brand:focus-within) .notice-dot {
    animation-duration: 60s, 2.4s;
  }
}

/* ---------- Lede ---------- */

.lede {
  max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

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

.lede-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lede--quote {
  font-style: italic;
  color: var(--muted);
}

.lede--quote strong {
  font-weight: 400;
  font-style: normal;
  color: var(--ink-soft);
}

.en-dash {
  letter-spacing: 0.08em;
  padding: 0 0.15em;
}

/* ---------- Signature ---------- */

.signature {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.signature .face {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.signature .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.signature .who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.signature .name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.signature .role {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.signature .email {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 0.15rem;
}

/* ---------- Call-to-action link ---------- */

.call-link {
  color: #5a8bc1;
  border-bottom-color: color-mix(in oklab, #5a8bc1 40%, transparent);
}

.call-link:hover {
  color: #3f6fa3;
  border-bottom-color: #5a8bc1;
}

@media (prefers-color-scheme: dark) {
  .call-link {
    color: #7da9d2;
    border-bottom-color: color-mix(in oklab, #7da9d2 40%, transparent);
  }

  .call-link:hover {
    color: #b6cee6;
    border-bottom-color: #7da9d2;
  }
}

/* ---------- Notice ---------- */

.notice {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  width: max-content;
  max-width: 100%;
}

.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a8bc1;
  box-shadow: 0 0 0 4px color-mix(in oklab, #5a8bc1 20%, transparent);
  filter: hue-rotate(var(--hue));
  animation:
    hue-cycle 60s linear infinite,
    pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in oklab, #5a8bc1 20%, transparent);
  }

  50% {
    box-shadow: 0 0 0 4px color-mix(in oklab, #5a8bc1 4%, transparent);
  }
}

/* ---------- Impressum ---------- */

.impressum {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.impressum h2 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.impressum-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
  max-width: 46rem;
}

@media (min-width: 640px) {
  .impressum-groups {
    grid-template-columns: 1fr 1fr;
  }
}

.group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

@media (min-width: 480px) {
  .row {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

.row dt {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  padding-top: 0.15rem;
}

.row dd {
  color: var(--ink-soft);
  font-weight: 400;
}

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

.footer {
  margin-top: auto;
  padding: 2rem var(--pad-x) var(--pad-y);
  font-size: 0.6875rem;
  color: var(--mute-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.footer .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}
