/*
 * The homepage at the apex (`elfmaps.com`), served as one static page by the same Caddy that
 * fronts the app. Deliberately not a build step and not a second SPA: a website that needs a
 * toolchain to change a sentence is a website that stops being updated.
 *
 * It borrows the app's *look* — the same two webfonts, the same ink and amber — but not its code.
 * The only JavaScript on this page is none, which is also why it can be cached forever, indexed,
 * and read with scripting off.
 */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-baskerville-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --panel-solid: #121620;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-muted: #8b93a7;
  --accent: #e0a85a;
  --accent-hover: #ebb56a;
  --accent-ink: #1a140c;
  --max: 68rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(224, 168, 90, 0.09), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(90, 130, 224, 0.07), transparent 55%),
    var(--panel-solid);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* --- chrome ------------------------------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem var(--pad);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- buttons: the same shapes the app uses, so the hand-off feels like one product --------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: transparent;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.7rem 1.2rem;
  font-size: 0.9375rem;
}

/* --- hero --------------------------------------------------------------------------------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 5rem) var(--pad) 3rem;
}

.hero {
  max-width: 44rem;
}

h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.fine {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 34rem;
}

/* --- the three claims --------------------------------------------------------------------- */

.points {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.points article {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.points h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.points p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- self-hosting strip ------------------------------------------------------------------- */

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* --- foot --------------------------------------------------------------------------------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.foot a {
  color: var(--text-muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

.dot {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
