/* hater.lol landing -- self-contained, no external assets or fonts */

:root {
  --bg: #09090a;
  --bg-soft: #0c0c0e;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-strong: rgba(255, 255, 255, 0.045);
  --text: #f3eee6;
  --text-soft: #c8c0b6;
  --text-muted: #948d84;
  --line: rgba(243, 238, 230, 0.1);
  --line-strong: rgba(243, 238, 230, 0.2);
  --accent: #8d2a46;
  --accent-warm: #b4516c;
  --good: #5bbd8a;
  --bad: #cf5f5f;
  --warn: #c9a227;
  --unknown: #7b7b83;
  --shell: 68rem;
  --radius: 0.6rem;
  --radius-lg: 0.9rem;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "Aptos Narrow", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(80rem 40rem at 50% -12rem, rgba(141, 42, 70, 0.16), transparent 70%),
    linear-gradient(180deg, #09090a 0%, #0a0a0c 60%, #08080a 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--text-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(141, 42, 70, 0.4);
  color: #fff;
}

/* --- Layout --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Masthead --- */

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark-mark {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 0.22rem rgba(141, 42, 70, 0.22);
}

.wordmark-tld {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-link {
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.admin-link:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

/* --- Hero --- */

.hero {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 7vw, 4.5rem);
}

.hero-inner {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

/* --- Section headers --- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  transition: color 160ms ease;
}

.section-link:hover {
  color: var(--text);
}

/* --- Destination cards --- */

.destinations {
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 6.5rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
  }
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text-soft);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.card-tag {
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Status panel --- */

.status-section {
  padding-block: clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--unknown);
}

.panel[data-state="ok"] .panel-summary::before {
  background: var(--good);
  box-shadow: 0 0 0 0.22rem rgba(91, 189, 138, 0.16);
}

.panel[data-state="degraded"] .panel-summary::before {
  background: var(--warn);
  box-shadow: 0 0 0 0.22rem rgba(201, 162, 39, 0.16);
}

.panel[data-state="unavailable"] .panel-summary::before {
  background: var(--unknown);
}

.panel[data-state="unavailable"] .panel-summary {
  color: var(--text-soft);
  font-weight: 500;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.35rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.status-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--unknown);
}

.status-item[data-status="up"] .status-badge::before {
  background: var(--good);
}

.status-item[data-status="up"] .status-badge {
  color: var(--good);
}

.status-item[data-status="down"] .status-badge::before {
  background: var(--bad);
}

.status-item[data-status="down"] .status-badge {
  color: var(--bad);
}

.status-item[data-status="maintenance"] .status-badge::before {
  background: var(--warn);
}

.status-item[data-status="maintenance"] .status-badge {
  color: var(--warn);
}

.panel-meta {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.panel-meta:empty {
  display: none;
}

.panel-fallback {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.panel-fallback a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.6rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* --- Responsive --- */

@media (max-width: 40rem) {
  .section-head {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .card-tag {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 26rem) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
