:root {
  --portbench-blue: #00053c;
  --portbench-yellow: #fedd00;
  --portbench-green: #009739;
  --portbench-red: #b31942;
  --ink: #000000;
  --muted: #4b5563;
  --hairline: #d9dde4;
  --paper: #ffffff;
  --focus: #00053c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(0, 5, 60, 0.035), transparent 34%),
    var(--paper);
  font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(28px, 5vw, 68px) clamp(22px, 5vw, 72px) clamp(22px, 4vw, 44px);
}

.hero {
  width: min(820px, 100%);
  margin: auto;
  text-align: center;
}

.brand-home {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vw, 26px);
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
}

.brand-home:focus-visible,
.arachnids-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

.mark-wrap {
  position: relative;
  display: inline-block;
  width: clamp(210px, 32vw, 320px);
}

.portbench-mark {
  display: block;
  width: 100%;
  height: auto;
}

.portbench-logo-tm {
  position: absolute;
  top: 3.2%;
  right: 2.1%;
  color: var(--ink);
  font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.5rem, 1.2vw, 0.84rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-name {
  color: var(--portbench-blue);
  font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.55rem, 8vw, 5.35rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.descriptor {
  margin: clamp(10px, 1.8vw, 16px) 0 0;
  color: var(--ink);
  font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0.025em;
}

.brand-name sup {
  position: relative;
  top: -0.52em;
  margin-left: 0.04em;
  font-size: 0.11em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0;
}

.descriptor sup {
  position: relative;
  top: -0.30em;
  margin-left: 0.06em;
  font-size: 0.26em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0;
}

.brand-rule {
  width: 84px;
  height: 4px;
  margin: clamp(34px, 6vw, 54px) auto clamp(30px, 5vw, 46px);
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--portbench-yellow) 0 33.333%,
    var(--portbench-green) 33.333% 66.666%,
    var(--portbench-red) 66.666% 100%
  );
}

.status {
  margin: 0;
  color: var(--portbench-blue);
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}

.site-footer {
  margin-top: clamp(42px, 8vw, 86px);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.developer-line,
.copyright {
  margin: 0;
}

.copyright {
  margin-top: 7px;
}

.developer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.developer-prefix {
  color: var(--muted);
}

.arachnids-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.arachnids-link:hover {
  text-decoration: none;
}

.arachnids-mark {
  display: block;
  width: clamp(24px, 2.2vw, 34px);
  height: auto;
  flex: 0 0 auto;
}

.arachnids-name sup {
  position: relative;
  top: -0.25em;
  font-size: 0.46em;
  line-height: 0;
  vertical-align: super;
}

@media (max-width: 480px) {
  .page-shell {
    padding-inline: 18px;
  }

  .brand-name {
    white-space: normal;
  }

  .developer-line {
    gap: 0.3rem;
  }

  .arachnids-link {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mark-wrap,
  .brand-name,
  .descriptor,
  .brand-rule,
  .status,
  .message,
  .developer-line,
  .copyright {
    animation: reveal 520ms ease-out both;
  }

  .brand-name { animation-delay: 55ms; }
  .descriptor { animation-delay: 95ms; }
  .brand-rule { animation-delay: 135ms; }
  .status { animation-delay: 175ms; }
  .message { animation-delay: 215ms; }
  .developer-line { animation-delay: 255ms; }
  .copyright { animation-delay: 295ms; }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
