/* Provisional page of 2yes.life. Colours and type from packages/ui-tokens (light theme only: the
   logo is a dark wordmark on a transparent background). Contrast: body text #241726 and #4A3B47 on
   #F8F4F6 / #FFFFFF pass AA; the pill uses white on #B5395E (5.6:1). */

:root {
  --primary-strong: #b5395e;
  --navy: #1f3864;
  --purple: #7f5af0;
  --background: #f8f4f6;
  --surface: #ffffff;
  --text: #241726;
  --text-muted: #4a3b47;
  --border: #e8e8e8;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  padding: 56px 16px 32px;
  text-align: center;
}

/* The wordmark file has an opaque white background: frame it as a white tile so it reads as intended. */
.logo {
  width: 250px;
  max-width: 70%;
  height: auto;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  background: var(--surface);
}

a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

/* One language at a time without scripts: English by default, the targeted section otherwise. */
section {
  display: none;
  margin-top: 16px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

#en,
section:target {
  display: block;
}

main:has(section:target) #en:not(:target) {
  display: none;
}

.pill {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 auto 20px;
  max-width: 54ch;
}

.note {
  margin: 0 auto;
  max-width: 58ch;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

footer {
  width: 100%;
  padding: 0 16px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}
