/* Lealwit landing page. One static page: no script, no web fonts, no
   third-party requests. Colours are Catppuccin Latte (light) and Mocha
   (dark), the palette the current lealwit.ai site uses; the setting sun
   echoes that site's "sunset" colour system (ccc/web_dx/COLORS.md). */

:root {
  color-scheme: light dark;
  --bg: #eff1f5;
  --glow: rgb(254 100 11 / 0.1);
  --text: #4c4f69;
  --muted: #5c5f77;
  --rule: #bcc0cc;
  --sun-top: #fe640b;
  --sun-mid: #e64553;
  --sun-low: #8839ef;
  --serif:
    "Iowan Old Style",
    "Palatino Linotype",
    Palatino,
    "Book Antiqua",
    Georgia,
    ui-serif,
    serif;
  --sans:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e2e;
    --glow: rgb(250 179 135 / 0.09);
    --text: #cdd6f4;
    --muted: #a6adc8;
    --rule: #45475a;
    --sun-top: #fab387;
    --sun-mid: #eba0ac;
    --sun-low: #cba6f7;
  }
}

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

html {
  height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(
      ellipse 70% 45% at 50% 42%,
      var(--glow),
      transparent 70%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

/* A half disc setting on a horizon line. */
.sun {
  width: clamp(6rem, min(26vw, 30vh), 12rem);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(
    to bottom,
    var(--sun-top) 0%,
    var(--sun-mid) 60%,
    var(--sun-low) 100%
  );
}

.horizon {
  width: clamp(14rem, 60vw, 26rem);
  height: 1px;
  margin: 0 0 clamp(1.25rem, min(5vw, 6vh), 2.75rem);
  background: linear-gradient(
    to right,
    transparent,
    var(--rule) 20%,
    var(--rule) 80%,
    transparent
  );
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, min(15vw, 22vh), 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.line {
  max-width: 30rem;
  margin: clamp(1.25rem, 3.5vw, 1.75rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.5;
}

footer {
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-align: center;
}
