/* Taalrivo landing page.
   The palette is taken from the app's own art: the cream the illustrations sit
   on, the canal blue, and the brick of the gable houses. */

:root {
  --ink: #0e2a3f;
  --ink-soft: #3d5a70;
  --water: #1d6f8f;
  /* The exact cream the illustrations are rendered on, so the art has no seam. */
  --sand: #fef9ef;
  --brick: #b8562a;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.lang-switch select {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(14, 42, 63, 0.2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
}

/* Two columns on a wide screen, stacked on a phone: the copy leads, the city
   follows. `align-items: center` keeps the art optically level with the text
   block rather than pinned to the top. */
.hero {
  margin: auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 72rem;
  width: 100%;
}

@media (min-width: 62rem) {
  .hero:not(.hero-single) {
    grid-template-columns: 1fr 1fr;
  }
}

/* A hero with no art (the 404) stays one centred column at every width. */
.hero-single .hero-copy {
  margin-inline: auto;
  text-align: center;
}

.hero-note a {
  color: inherit;
}

.hero-copy {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 62rem) {
  .hero-copy {
    margin-inline: 0;
    text-align: left;
  }
}

.hero-art {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin-inline: auto;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--brick);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.hero-note {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(29, 111, 143, 0.1);
  color: var(--water);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  border-top: 1px solid rgba(14, 42, 63, 0.1);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ── Document pages (privacy) ────────────────────────────────────────────── */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 3rem) 3rem;
}

.doc h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li {
  margin: 0.4rem 0;
}

.doc a {
  color: var(--water);
}

.doc-updated {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a {
  color: var(--water);
}
