:root {
  --background: #080b10;
  --surface: #111722;
  --surface-soft: #151d29;
  --surface-hover: #1b2534;
  --text: #f5f7fa;
  --muted: #a7b0bf;
  --accent: #e1322f;
  --accent-bright: #ff554f;
  --border: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(225, 50, 47, 0.22), transparent 38rem),
    linear-gradient(145deg, #080b10 0%, #0b1018 56%, #080b10 100%);
}

.page-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: auto;
  padding: 4rem 0 2.5rem;
}

.hero {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.brand-mark {
  width: 5.25rem;
  height: 5.25rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 1.15rem;
  color: white;
  background: linear-gradient(145deg, var(--accent-bright), #a81714);
  box-shadow: 0 1rem 3rem rgba(225, 50, 47, 0.25);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.08em;
  transform: skew(-5deg);
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.5;
}

.links-section { margin-top: 3.5rem; }

.column-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.link-column {
  min-width: 0;
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.26);
}

.link-column h2 {
  margin: 0 0 1rem;
  padding: 0 0.15rem 0.8rem;
  color: var(--accent-bright);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.link-list {
  display: grid;
  gap: 0.55rem;
}

.site-link {
  min-height: 3.55rem;
  padding: 0.9rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-link:hover,
.site-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-hover);
  outline: none;
}

.link-label {
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
}

.arrow {
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.site-link:hover .arrow,
.site-link:focus-visible .arrow { transform: translateX(3px); }

.empty-column {
  min-height: 3.55rem;
  margin: 0;
  padding: 0.95rem;
  display: flex;
  align-items: center;
  color: #747f90;
  background: rgba(255, 255, 255, 0.018);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.status,
.error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.error { color: #ffaaa7; }

footer {
  padding: 1rem 1rem 1.75rem;
  color: #747f90;
  text-align: center;
  font-size: 0.82rem;
}

footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .page-shell { padding-top: 2.5rem; }
  .hero { align-items: flex-start; gap: 1rem; }
  .brand-mark { width: 4.2rem; height: 4.2rem; border-radius: 0.9rem; }
  .links-section { margin-top: 2.5rem; }
  .column-grid { grid-template-columns: 1fr; }
}

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