:root {
  color: #111;
  font-family: "Montserrat", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #111;
  --muted: #6b6866;
  --line: rgb(0 0 0 / 0.08);
  --glass-edge: rgb(255 255 255 / 0.75);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #f9f5f0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f9f5f0 0%, #f8f4ef 56%, #e9e5e1 66%, #cfcbc7 76%, #a9a5a2 88%, #6c6866 100%);
  background-attachment: fixed;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: 40px 16px;
  place-items: center;
}

a {
  color: inherit;
}

.glass {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 80px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 34px;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.9) 0%, rgb(250 248 246 / 0.7) 45%, rgb(236 234 231 / 0.62) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.04), 0 30px 80px rgb(40 30 20 / 0.14);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(140deg, rgb(255 255 255 / 0.72) 0%, rgb(250 248 246 / 0.5) 45%, rgb(236 234 231 / 0.42) 100%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
  }
}

.topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 36px);
}

.tabs a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tabs a:hover,
.tabs a[aria-current="page"] {
  color: var(--ink);
}

.tabs a[aria-current="page"] {
  font-weight: 600;
}

.tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 40px;
}

.hero {
  min-height: 520px;
  justify-content: center;
}

.hero-copy {
  width: min(600px, 100%);
  padding: 20px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #77716c;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.lede {
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.85;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 0;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #292725;
}

.button span,
.footer a span {
  font-size: 1rem;
}

.center-page {
  width: min(620px, 100%);
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto;
  padding-top: 56px;
  padding-bottom: 64px;
  text-align: center;
}

.center-page .eyebrow {
  margin-bottom: 12px;
}

.center-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.center-page .lede {
  max-width: 500px;
  margin-bottom: 25px;
  font-size: 0.98rem;
}

.error-code {
  margin: 0 0 15px;
  color: rgb(17 17 17 / 0.11);
  font-size: clamp(5.5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.9;
}

.inline-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  body {
    padding: 18px 12px;
  }

  .glass {
    min-height: calc(100vh - 36px);
    border-radius: 26px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 19px 22px 12px;
  }

  .tabs {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .tabs a {
    font-size: 0.76rem;
  }

  .tabs a[aria-current="page"]::after {
    bottom: -13px;
  }

  .content {
    padding: 28px 24px;
  }

  .hero {
    min-height: unset;
    justify-content: center;
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .hero-copy {
    padding: 0;
  }

  .center-page {
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: center;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 17px 22px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 1rem;
  }

  .tabs {
    gap: 8px;
  }

  .tabs a {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
