@font-face {
  font-family: 'Contraface Text';
  src: url('/assets/fonts/STIHLContrafaceText.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Contraface Display Titling';
  src: url('/assets/fonts/STIHLContrafaceDisplayTitling.woff2') format('woff2');
  font-display: swap;
}

:root {
  --primary: #f57a00;
  --secondary: #232c33;
  --light: #f3f3f3;
  --border: #e2e2e2;
  --muted: #5d666d;
  --danger: #d0021b;
  --neutral: #7f7f7f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--light);
  color: var(--secondary);
  font: 17px/1.55 'Contraface Text', Arial, sans-serif;
}

header {
  height: 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
header img { height: 40px; width: auto; display: block; }
header span {
  font-family: 'Contraface Display Titling', Arial, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 48px 0 32px; }
.hero__icon { width: 64px; height: auto; display: block; margin-bottom: 18px; }
h1, h2, h3 {
  font-family: 'Contraface Display Titling', Arial, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.hero__lead { margin: 12px 0 0; font-size: 20px; }
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  font-family: 'Contraface Display Titling', Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover, .btn:focus-visible { background: #d96c00; }
.btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

.card {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  padding: 28px;
  margin-bottom: 24px;
}
.label {
  font-family: 'Contraface Display Titling', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
h2 { font-size: 24px; margin-bottom: 12px; }

.status { list-style: none; margin: 0; padding: 0; }
.status li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.status li:first-child { border-top: 0; }
.status__meta { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.status__meta a { color: var(--primary); }

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge--offline { background: var(--danger); }
.badge--progress { background: var(--primary); }
.badge--waiting { background: var(--neutral); }
.badge--new { background: var(--secondary); }

.note {
  border-left: 4px solid var(--primary);
  background: #fff7ef;
  padding: 14px 18px;
  margin: 18px 0 0;
}

.updates { list-style: none; margin: 0; padding: 0; }
.update { position: relative; padding: 0 0 26px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.update:last-child { padding-bottom: 0; }
.update::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--neutral);
}
.update--current::before { border-color: var(--primary); }
.update__time { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h3 { font-size: 19px; margin: 6px 0 6px; }
.update p { margin: 0; }
.update__status { margin-top: 10px; }

footer.wrap {
  margin-top: 24px;
  padding-top: 24px;
  padding-bottom: 64px;
  font-size: 14px;
  color: var(--muted);
}
footer::before {
  content: '';
  display: block;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

@media (max-width: 540px) {
  .card { padding: 22px 18px; }
  .status li { flex-direction: column; align-items: flex-start; gap: 6px; }
}
