/* Sestante public site: same palette and type as the Sestante platform theme. */

:root {
  --bg: #0d1117;
  --surface: #151b23;
  --border-strong: #2f3a47;
  --text: #e6e8eb;
  --text-muted: #8b949e;
  --text-faint: #5f6873;
  --dot: rgba(139, 148, 158, 0.16);
  --brand: #ff6a1f;
  --brand-hover: #ff8a4c;
  --accent: #39ffc4;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --border-strong: #cfcfca;
    --text: #1a1d21;
    --text-muted: #5c6068;
    --text-faint: #8a8f97;
    --dot: rgba(26, 29, 33, 0.09);
    --brand: #e85d0d;
    --brand-hover: #c94f0a;
    --accent: #0f9d78;

    color-scheme: light;
  }
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  text-align: center;
}

.hero__logo {
  margin: 0;
  width: min(100%, 720px);
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px color-mix(in oklab, var(--accent) 18%, transparent));
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.85rem + 0.8vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prompt::before {
  content: "> ";
  color: var(--brand);
  font-weight: 700;
}

.cursor::after {
  content: "_";
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__mail {
  position: relative;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hero__mail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.hero__mail:hover,
.hero__mail:focus-visible {
  color: var(--brand-hover);
  border-color: var(--brand);
}

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

.footer {
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .cursor::after {
    animation: none;
  }
}
