:root {
  --bg: #FAF6EE;
  --fg: #0F1A2E;
  --accent: #1F3FCB;
  --muted: rgba(15, 26, 46, 0.55);
  --rule: rgba(15, 26, 46, 0.12);
  --font-serif: "Fraunces", "Tiempos", "Lyon", Georgia, "Times New Roman", serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --max-content: 640px;
  --max-wide: 1040px;
  --max-logo: 520px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
}

/* Language toggle, top right */

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-toggle a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 180ms ease;
  padding: 0.25rem 0;
}

.lang-toggle a:hover {
  opacity: 1;
}

.lang-toggle a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

.lang-toggle .sep {
  display: inline-block;
  margin: 0 0.65rem;
  opacity: 0.3;
}

/* Main column */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.logo-wrap {
  width: 100%;
  max-width: var(--max-logo);
  padding: 0 var(--space-2);
}

.logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-phrase {
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--fg);
  max-width: 560px;
}

.lead {
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--fg);
}

/* Now / We / Think, three pillars */

.triptych {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.pillar {
  padding: 0 var(--space-3);
  text-align: center;
}

.pillar + .pillar {
  border-left: 1px solid var(--rule);
}

.pillar-word {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
}

.pillar-word em {
  font-style: italic;
  color: var(--fg);
}

/* Blue full stop, echoing the "NOW. WE. THINK." dots in the logo. */
.pillar-word::after {
  content: ".";
  color: var(--accent);
}

.pillar-gloss {
  margin: var(--space-2) auto 0;
  max-width: 22ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.geography {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.geography .sep {
  display: inline-block;
  margin: 0 0.6em;
  opacity: 0.5;
}

.contact {
  font-size: 1.0625rem;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 180ms ease;
}

.contact a:hover {
  opacity: 0.7;
}

/* Signup / contact form */

.signup {
  width: 100%;
  max-width: 800px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: var(--space-4);
}

.signup-title {
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--fg);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label,
.intents legend {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field .opt {
  letter-spacing: 0;
  opacity: 0.7;
}

.form input[type="email"],
.form input[type="text"],
.form select,
.form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 63, 203, 0.12);
}

.form textarea {
  resize: vertical;
  min-height: 5rem;
}

.intents {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0;
  padding: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg);
  cursor: pointer;
}

.check input {
  margin-top: 0.18rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.consent a,
.contact-fields a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

/* Contact fields stay hidden until "talk to us" is checked (JS adds .contact-on). */
.field-contact {
  display: none;
}

.form.contact-on .form-grid {
  grid-template-columns: 1fr 1fr;
}

.form.contact-on .field-contact {
  display: flex;
}

.form.contact-on .field-message {
  grid-column: 1 / -1;
}

.btn {
  font-family: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity 160ms ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  font-size: 0.875rem;
  color: #b4231f;
  min-height: 1em;
}

.signup.is-success {
  background: #E9F6EC;
  border-color: #C6E6CD;
}

.form-success {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1B6E3C;
  text-align: center;
  margin: 0;
  padding: var(--space-2) 0;
}

/* Standalone confirmation panel for the no-JS thank-you pages. */
.confirm {
  max-width: 460px;
  background: #E9F6EC;
  border: 1px solid #C6E6CD;
  border-radius: 10px;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  color: #1B6E3C;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.cf-turnstile {
  min-height: 65px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

/* Document pages (privacy) */

main.doc {
  max-width: var(--max-content);
  align-items: stretch;
  text-align: left;
  gap: 0;
  line-height: 1.7;
}

main.doc h1 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

main.doc h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

main.doc p {
  margin-bottom: var(--space-2);
}

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

.doc-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-3);
}

/* Footer */

footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: var(--space-2) 0;
}

footer .status {
  font-style: italic;
}

/* Responsive */

@media (max-width: 720px) {
  body {
    padding: 1rem 1.25rem;
  }
  main {
    padding: var(--space-3) 0;
    gap: var(--space-3);
  }
  .hero-phrase {
    font-size: 1.1875rem;
  }
  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }
  .triptych {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .pillar {
    padding: var(--space-3) 0 0;
  }
  .pillar + .pillar {
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .pillar-word {
    font-size: 2.125rem;
  }
  .signup {
    padding: var(--space-2);
  }
  .geography {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 420px) {
  .hero-phrase {
    font-size: 1.0625rem;
  }
  .geography .sep {
    margin: 0 0.35em;
  }
  /* Single column on narrow phones, even with contact open. */
  .form.contact-on .form-grid {
    grid-template-columns: 1fr;
  }
}
