/* Sketchy — landing page.
   Colours are taken from the app icon: a near-black navy ground, coral ink. */

:root {
  --ground: #14171f;
  --ground-soft: #1b1f2a;
  --edge: #2b3040;
  --ink: #f4f6fb;
  --ink-dim: #a2a9bb;
  --coral: #ff7a4d;
  --coral-deep: #fa4f6b;
  --measure: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { margin: 0 auto; max-width: 68rem; }

a { color: var(--coral); }
a:hover { color: var(--coral-deep); }

/* Hero ------------------------------------------------------------------ */

.hero {
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
  max-width: var(--measure);
  text-align: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  /* The icon already carries its own rounded tile, so it needs no framing. */
  filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.55));
}

h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--ink);
}

.blurb {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  color: var(--ink-dim);
}

/* Buttons --------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2.25rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--ground-soft);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:hover {
  border-color: #3c4356;
  color: var(--ink);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #1a0f0c;
}

.button.primary:hover { color: #1a0f0c; }

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

.fineprint {
  margin: 1.5rem 0 0;
  color: var(--ink-dim);
  font-size: 0.875rem;
}

/* Screenshot ------------------------------------------------------------ */

.shot {
  margin: 0;
  padding: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: 0.9rem;
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.5);
}

/* Features -------------------------------------------------------------- */

.features {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 5rem auto 0;
  max-width: 56rem;
}

.features h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.features p {
  margin: 0;
  color: var(--ink-dim);
}

/* Footer ---------------------------------------------------------------- */

footer {
  margin: 5rem auto 0;
  max-width: var(--measure);
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-align: center;
}

footer p { margin: 0.4rem 0; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
