:root {
  --bg: #f7f6f3;
  --ink: #1d1d1b;
  --muted: #6b6963;
  --line: #d9d6cf;
  --accent: #c8a15a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.logo-light { font-weight: 400; color: var(--muted); }
.logo-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; bottom: 3px;
  height: 3px;
  background: var(--accent);
}

/* Center block */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0;
}

h1 {
  margin: 0 0 48px;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: fade 1.2s ease-out both;
}

/* Loading bar: a thin line, like a light channel in a wall */
.loader {
  position: relative;
  width: min(360px, 80vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
  animation: fade 1.2s 0.3s ease-out both;
}
.loader-bar {
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: slide 2.4s cubic-bezier(.6, 0, .4, 1) infinite;
}

.status {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade 1.2s 0.5s ease-out both;
}
.status-sub {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
}
.dots span { animation: blink 1.4s infinite both; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

/* Product lines */
.lines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 72px 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  animation: fade 1.2s 0.8s ease-out both;
}
.lines li { padding: 6px 22px; }
.lines li + li { border-left: 1px solid var(--line); }
.note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  animation: fade 1.2s 0.9s ease-out both;
}

/* Footer */
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.bottom a { text-decoration: none; }
.bottom a:hover { color: var(--ink); text-decoration: underline; }

/* 404 page helpers */
.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--bg); }

@keyframes slide {
  0%   { left: -35%; }
  100% { left: 100%; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .loader-bar { left: 0; width: 60%; }
}

@media (max-width: 640px) {
  .page { padding: 24px 16px; }
  .br-wide { display: none; }
  .lines { flex-direction: column; }
  .lines li + li { border-left: 0; border-top: 1px solid var(--line); }
  .bottom { justify-content: center; text-align: center; }
}
