/* Tokens */
:root {
  --color-ink: #1A1612;
  --color-ink-800: #2A241E;
  --color-paper: #F4F1EA;
  --color-paper-2: #EBE6DB;
  --color-card: #FBF9F4;
  --color-terracotta: #C0613B;
  --color-terracotta-600: #A8512F;
  --color-navy: #1F3A57;
  --color-muted: #6E655A;
  --color-faint: #9A9082;
  --color-line: #DDD6C9;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main,
section,
footer {
  width: 100%;
}

section {
  scroll-margin-top: 80px;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--color-terracotta);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section-pad {
  padding: 4.5rem 0;
}

.section-banded {
  background: var(--color-paper-2);
}

.section-dark {
  background: var(--color-ink);
  color: var(--color-paper);
}

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

.hl {
  color: var(--color-terracotta);
}

/* Type */
.section-eyebrow,
.card-number,
.belief-number,
.contact-label,
.footer-heading,
.brand-subtitle,
.hero-ticker,
.footer-line {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-eyebrow,
.hero-ticker,
.card-number,
.contact-label,
.footer-heading,
.footer-line {
  color: var(--color-faint);
}

h1,
h2,
h3,
.brand-name {
  font-family: "Archivo", system-ui, sans-serif;
  letter-spacing: -0.022em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 0.96;
  font-weight: 700;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1;
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 600;
}

.section-lead,
.hero-intro,
.beliefs-list p:last-child,
.footer-blurb {
  color: var(--color-muted);
}

.section-dark .section-eyebrow,
.section-dark .belief-number,
.section-dark .footer-heading,
.section-dark .footer-line {
  color: var(--color-faint);
}

.section-dark .beliefs-list p:last-child {
  color: var(--color-paper);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  color: var(--color-terracotta);
  line-height: 1.2;
}

.nav-links {
  display: none;
}

.header-cta {
  white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-terracotta-600);
  border-color: var(--color-terracotta-600);
  color: #ffffff;
}

.button-secondary {
  border-color: var(--color-line);
  color: var(--color-ink);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--color-terracotta);
}

/* Hero */
.hero {
  padding-top: 5.5rem;
}

.hero-shell {
  display: grid;
  gap: 1.5rem;
}

.hero-intro,
.section-lead {
  max-width: 42rem;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-ticker {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
}

/* Sections */
.cards-grid,
.beliefs-list {
  display: grid;
  gap: 1.25rem;
}

.cards-grid {
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: var(--color-card);
}

.card-number,
.belief-number {
  margin-bottom: 0.8rem;
}

.card h3,
.card p:last-child,
.beliefs-list li p:last-child,
.sobre-copy p,
.contact-row,
.footer-links {
  margin-top: 0.9rem;
}

.sobre-grid {
  display: grid;
  gap: 2rem;
}

.sobre-copy {
  display: grid;
  gap: 1rem;
}

.sobre-portrait {
  display: grid;
  gap: 0.75rem;
}

.sobre-portrait img {
  border-radius: 1rem;
  border: 1px solid var(--color-line);
}

.portrait-role,
.portrait-name {
  line-height: 1.2;
}

.portrait-role {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.portrait-name {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.beliefs-list li {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(244, 241, 234, 0.2);
}

.beliefs-list li:first-child {
  margin-top: 1rem;
}

.contato-shell {
  display: grid;
  gap: 1.2rem;
}

.contact-rows {
  display: grid;
  gap: 0.9rem;
}

.contact-row {
  overflow-wrap: anywhere;
}

.contact-label {
  display: inline-block;
  margin-right: 0.5rem;
}

.contact-row a,
.footer-links a,
.nav-links a,
.brand {
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 3rem 0 2rem;
}

.footer-shell {
  display: grid;
  gap: 2rem;
}

.footer-top,
.footer-links-grid {
  display: grid;
  gap: 2rem;
}

.brand-inverse .brand-name {
  color: var(--color-paper);
}

.footer-blurb {
  max-width: 32rem;
  color: var(--color-paper-2);
}

.footer-line {
  color: var(--color-faint);
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.16);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin-bottom: 1.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-legal a,
.footer-legal-btn {
  color: var(--color-paper-2);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal-btn:hover {
  color: var(--color-terracotta);
}

.footer-legal-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.footer-bottom-lines {
  display: grid;
  gap: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Desktop */
@media (min-width: 768px) {
  nav {
    gap: 1.5rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    margin-left: auto;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 5.5rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sobre-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
    gap: 3rem;
  }

  .beliefs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .beliefs-list li:first-child,
  .beliefs-list li:nth-child(2) {
    margin-top: 1rem;
  }

  .contact-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer-bottom-lines p:last-child {
    text-align: right;
  }
}

/* Newsletter */
.newsletter {
  display: grid;
  gap: 0.7rem;
  max-width: 26rem;
  margin-top: 1.8rem;
}

.newsletter-label {
  color: var(--color-paper-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

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

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: rgba(244, 241, 234, 0.06);
  color: var(--color-paper);
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: var(--color-faint);
}

.newsletter-input:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
  border-color: var(--color-terracotta);
}

.newsletter-submit {
  white-space: nowrap;
}

.newsletter-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-paper-2);
}

.newsletter-status[data-state="error"] {
  color: #E8A08A;
}

@media (min-width: 560px) {
  .newsletter-field {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-submit {
    flex: 0 0 auto;
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-ink-800);
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  color: var(--color-paper);
  padding: 1.1rem 0;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.cookie-text {
  margin: 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-paper-2);
}

.cookie-text a {
  color: var(--color-paper);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cookie-actions .button {
  flex: 1 1 auto;
  min-width: 8.5rem;
}

.cookie-reject {
  border-color: rgba(244, 241, 234, 0.5);
  color: var(--color-paper);
  background: transparent;
}

.cookie-reject:hover {
  border-color: var(--color-paper);
  color: var(--color-paper);
}

@media (min-width: 768px) {
  .cookie-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .cookie-actions {
    flex: 0 0 auto;
  }

  .cookie-actions .button {
    flex: 0 0 auto;
  }
}

/* Legal pages */
.legal {
  padding: 3.5rem 0 4.5rem;
}

.legal-shell {
  width: min(46rem, 92vw);
  margin: 0 auto;
}

.legal .section-eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.legal h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
  margin-bottom: 0.7rem;
}

.legal-updated {
  margin-bottom: 2.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.legal-lead {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
}

.legal h2 {
  max-width: none;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 2.5rem 0 0.8rem;
}

.legal h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.5rem;
}

.legal p {
  margin: 0 0 1rem;
}

.legal-list {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.legal-list li {
  padding-left: 0.2rem;
}

.legal a {
  color: var(--color-terracotta);
}

.legal .legal-back {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal-note {
  margin-top: 2.6rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--color-line);
  border-radius: 0.9rem;
  background: var(--color-card);
  font-size: 0.92rem;
  color: var(--color-muted);
}
