/* Inter, self-hosted so the site makes no third-party requests */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1d080f;
  --bg-raised: #2a1219;
  --text: #e0e7ee;
  --text-muted: #a99aa0;
  --red: #ff292e;
  --line: rgba(224, 231, 238, 0.14);
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* Background: the outlined Hotsource mark from the
   "But how do you get such a project started?" section */
.bg-mark {
  position: fixed;
  top: 50%;
  right: max(-4vw, calc(50vw - 720px));
  width: min(52vh, 46vw);
  aspect-ratio: 295 / 533;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

header, main, .road, footer { position: relative; z-index: 1; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.lang a {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
}

.lang a:hover { color: var(--text); }

.lang a[aria-current="page"] {
  border-color: var(--line);
  background: var(--bg-raised);
  color: var(--text);
}

.logo { display: inline-block; line-height: 0; }
.logo img { width: 210px; height: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

h1 {
  margin-top: 28px;
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 em { font-style: normal; color: var(--red); }

.lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);
}

.progress {
  margin-top: 36px;
  width: min(100%, 26rem);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 10px,
    #c91f24 10px 20px
  );
  background-size: 28px 28px;
  animation: stripes 0.9s linear infinite;
}

@keyframes stripes { to { background-position: 28px 0; } }

.contact {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff4448; }
.btn-ghost { border: 1px solid var(--line); background: var(--bg-raised); }
.btn-ghost:hover { background: #351a22; }

/* The plain the car drives on */
.road {
  flex: none;
  height: 132px;
  margin-top: 16px;
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: var(--line);
}

.road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 28px, transparent 28px 64px);
}

.cone {
  position: absolute;
  bottom: 22px;
  width: 26px;
  height: 34px;
}

.cone-left { left: 18px; }
.cone-right { right: 18px; }

.car {
  position: absolute;
  left: 0;
  bottom: 13px;
  width: 150px;
  height: 84px;
  transform-origin: center;
  will-change: transform;
}

.car svg { display: block; width: 100%; height: 100%; overflow: visible; }

.car-body { transform-box: view-box; }
.car.is-moving .car-body { animation: bounce 0.32s ease-in-out infinite alternate; }

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-1.6px); }
}

/* Cold-gas thrusters used to hover and turn around */
.jet {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: top center;
  transition: opacity 0.2s ease;
}

.car.is-thrusting .jet {
  opacity: 1;
  animation: jet 0.09s linear infinite alternate;
}

@keyframes jet {
  from { transform: scaleY(0.85) scaleX(0.95); }
  to { transform: scaleY(1.08) scaleX(1.05); }
}

.air {
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 150px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 225, 255, 0.35), transparent);
  opacity: 0;
  pointer-events: none;
}

footer {
  padding: 18px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer nav { margin-top: 6px; }

/* Content pages: imprint, privacy, and the preserved blog posts and case studies */
.page main {
  justify-content: flex-start;
  padding-top: 48px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  max-width: 46rem;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.notice .status-dot { flex: none; }
.notice a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

.prose {
  max-width: 46rem;
  margin-top: 40px;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose h1 {
  margin-top: 0;
  max-width: none;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3, .prose h4 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  line-height: 1.3;
}

.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose strong { color: #fff; }

.prose blockquote {
  padding: 0.2em 0 0.2em 1em;
  border-left: 3px solid var(--red);
  color: var(--text-muted);
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.6em;
  border-radius: 16px;
}

.prose figcaption {
  margin-top: 0.6em;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--bg-raised);
  font-size: 0.9em;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 36px;
}

.prose .post-card { color: var(--text); }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.post-card:hover { transform: translateY(-2px); }

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body { padding: 18px 20px 22px; }

.post-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.post-card p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .logo img { width: 170px; }
  main { padding-top: 48px; }
  .bg-mark { right: -18vw; width: 70vw; opacity: 0.07; }
  .car, .air { width: 120px; }
  .car { height: 67px; }
  .cone-left { left: 8px; }
  .cone-right { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after, .progress-bar { animation: none; }
}
