/* ---------------------------------------------------------------------
   Funaria — shared styles
   Palette drawn from the bot's portrait: near-black ground, cold slate
   panels, a single desaturated ice-blue accent used sparingly.
   Type: Cormorant Upright for display/headings, gg sans for everything
   else (falls back gracefully if the font isn't installed locally, since
   it isn't distributed on a public CDN).
--------------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@400;500;600&display=swap");

:root {
  --ground: #0a0c10;
  --panel: #12151b;
  --panel-border: #232833;
  --ink: #d7dce3;
  --ink-dim: #8b93a1;
  --ice: #8fb2d1;
  --ice-dim: #5d7891;
  --serif: "Cormorant Upright", "Iowan Old Style", serif;
  --sans: "gg sans", "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(143, 178, 209, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 100%, rgba(143, 178, 209, 0.05), transparent 60%);
}

a {
  color: var(--ice);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 3px;
}

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

/* Layout shell */

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wordmark:hover {
  color: var(--ice);
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.nav-links a {
  color: var(--ink-dim);
}

.nav-links a.current {
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--ice);
}

/* Hero (home page) */

/* Hero replaced by server-card (see below); old .hero/.hero-portrait rules
   are kept only for potential reuse and don't apply to the current markup. */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-portrait {
  width: 148px;
  height: 148px;
  margin: 0 auto 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 0 6px rgba(143, 178, 209, 0.05), 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.4rem;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero p.tagline {
  font-size: 1.05rem;
  color: var(--ink-dim);
  max-width: 34ch;
  margin: 0 auto 40px;
}

/* Promo hero — a single ready-made banner image (no fragile composite),
   with the server info stacked underneath it. */

.promo-hero {
  padding: 40px 0 0;
  text-align: center;
}

.promo-image {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin-bottom: 32px;
}

.promo-image img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.8rem;
  margin: 0 0 14px;
  color: var(--ink);
}

.promo-hero .badge-row {
  margin: 0 0 16px;
}

.promo-hero .tagline {
  font-size: 1.02rem;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.promo-hero .button-row {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  border: 1px solid var(--panel-border);
  border-radius: 100px;
  padding: 6px 14px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px 1px rgba(143, 178, 209, 0.6);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 0.92rem;
  border: 1px solid var(--panel-border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: var(--ground);
  background: var(--ice);
  border-color: var(--ice);
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(143, 178, 209, 0.5);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.btn-secondary {
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ice);
  color: var(--ice);
}

/* Home content sections */

.section {
  padding: 0 0 64px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.section p {
  color: var(--ink-dim);
  max-width: 58ch;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--panel-border);
  margin: 0 0 64px;
}

/* Stat strip */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--ice);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* Steps list */

.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--ink-dim);
  max-width: 58ch;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ice);
  flex-shrink: 0;
  width: 1.4em;
}

/* Gallery grid (home page asset showcase) — asymmetric collage instead of
   a uniform grid, since every tile is the same size otherwise. */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 150px 150px 150px;
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f g g h";
  gap: 10px;
  margin-top: 24px;
}

.item-a { grid-area: a; }
.item-b { grid-area: b; }
.item-c { grid-area: c; }
.item-d { grid-area: d; }
.item-e { grid-area: e; }
.item-f { grid-area: f; }
.item-g { grid-area: g; }
.item-h { grid-area: h; }

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 560px) {
  .stat-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 130px);
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "d e"
      "f g"
      "h g";
  }
}

/* Legal pages (terms / privacy) */

.legal {
  padding: 72px 0 96px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--panel-border);
}

.legal-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  margin: 0 0 10px;
}

.legal-header .updated {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.legal section {
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.legal p,
.legal li {
  color: var(--ink-dim);
  max-width: 68ch;
}

.legal ul {
  padding-left: 1.2em;
  margin: 0;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ice);
}

@media (max-width: 560px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .nav-inner {
    padding: 16px 22px;
    gap: 10px;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .promo-hero h1 {
    font-size: 2.2rem;
  }
}
