/* Paz Americana: one reading column, opened by a mural band.
   Colors and type follow the brand style guide (lab: ideas/other-projects/paz-americana-style-guide.html). */
:root {
  /* Brand colors: fixed in both themes */
  --achiote: #C8402A;
  --cempasuchil: #F0A21B;
  --turquesa: #0F7773;
  --selva: #1E4A39;
  --obsidiana: #1A1A1F;
  --cal: #FAF8F3;

  /* Page tokens: light */
  --bg: #FAF8F3;
  --panel: #F0ECE3;
  --fg: #1A1A1F;
  --muted: #55524C;
  --line: #DDD6C8;
  --link: #0F7773;
  --head: #1E4A39;

  --f-mural: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-edit: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141417; --panel: #1E1E23; --fg: #F2EFE8; --muted: #A9A49A; --line: #33323A; --link: #4FC2BC; --head: #F2EFE8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141417; --panel: #1E1E23; --fg: #F2EFE8; --muted: #A9A49A; --line: #33323A; --link: #4FC2BC; --head: #F2EFE8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 18px; line-height: 1.6; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cempasuchil); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--obsidiana); color: var(--cal); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 16px; top: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header: editorial wordmark and language switch */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.wordmark { font-family: var(--f-edit); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--head); text-decoration: none; letter-spacing: -.005em; white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 500; }
.lang { display: flex; gap: .25rem; font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.lang a, .lang span { display: inline-block; padding: .4rem .6rem; border-radius: 4px; text-decoration: none; }
.lang a { color: var(--fg); }
.lang a:hover { background: var(--panel); }
.lang [aria-current] { background: var(--selva); color: var(--cal); }

/* Mural band */
.hero { background: var(--selva); color: var(--cal); padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after, .stripe { content: ""; display: block; height: 10px; background: linear-gradient(90deg, var(--achiote) 0 25%, var(--cempasuchil) 25% 50%, var(--turquesa) 50% 75%, var(--obsidiana) 75% 100%); }
.hero::after { position: absolute; inset: auto 0 0 0; }
.hero .kicker { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--cempasuchil); margin: 0 0 .75rem; }
.hero h1 { font-family: var(--f-mural); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 12.5vw, 8rem); line-height: .86; margin: 0; letter-spacing: .01em; overflow-wrap: normal; }
.hero h1 span { display: block; }
.hero .slogan { font-family: var(--f-edit); font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.25; margin: 1.25rem 0 0; }
.hero .slogan .twin { display: block; font-style: italic; color: var(--cempasuchil); font-size: .82em; margin-top: .2rem; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.2rem); max-width: 60ch; margin: 1.5rem 0 0; }

/* Sections */
main section { padding-block: 3rem; border-bottom: 1px solid var(--line); }
main section:last-of-type { border-bottom: 0; }
.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
h2 { font-family: var(--f-edit); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.12; margin: 0 0 1.5rem; color: var(--head); }
h3 { font-family: var(--f-edit); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4rem; color: var(--head); }
p { margin: 0 0 1rem; }
.prose { max-width: 66ch; }

.values { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.values li { border-top: 4px solid var(--turquesa); padding-top: 1rem; }
.values li:nth-child(3n+2) { border-top-color: var(--cempasuchil); }
.values li:nth-child(3n) { border-top-color: var(--achiote); }
.values p { margin: 0; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cols { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 1rem; }
.list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.list li::marker { color: var(--achiote); }

/* Join and newsletter */
.join { background: var(--panel); }
.join .big { font-family: var(--f-edit); font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.35; max-width: 40ch; }
.signup { margin-top: 2rem; max-width: 34rem; }
.signup h3 { margin-bottom: .25rem; }
.signup form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.signup label { flex-basis: 100%; font-weight: 700; font-size: .9rem; }
.signup input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--muted); }
.signup button { font: inherit; font-weight: 700; padding: .7rem 1.2rem; border: 0; border-radius: 4px; background: var(--achiote); color: var(--cal); opacity: .55; cursor: not-allowed; }
.small { font-size: .92rem; color: var(--muted); }

.closing { font-family: var(--f-mural); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.6rem); line-height: .95; color: var(--head); margin: 2.5rem 0 0; }
.closing span { display: block; }

/* Footer */
.site-footer { background: var(--obsidiana); color: var(--cal); padding: 2rem 0 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer a { color: var(--cempasuchil); }
.site-footer .wordmark { color: var(--cal); font-size: 1.25rem; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { padding-block: 4rem; }
.notfound h1 { font-family: var(--f-mural); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 20vw, 9rem); line-height: .85; margin: 0 0 1rem; color: var(--head); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
