/*
 * IDEA — The page is a core sample, not a pitch. One device, a banded
 * stratigraphic rule cut from the logo's own copper gradient, replaces every
 * rule and section break on the page, so "four countries" reads as a
 * cross-section you descend through rather than a scroll you skim.
 * TYPE — Cambria (falling to Georgia, then Times) sets everything meant to
 * be read: a serif built for dense report pages, not a display face doing
 * a display face's job. Courier New sets everything meant to be measured —
 * tags, coordinates, the title-block — so the reading voice and the
 * instrument voice are never allowed to blur into one another.
 * SCALE — One real jump, deliberately: body copy sits at 17px like any
 * sober report, the hero headline runs past 90px. Nothing in between tries
 * to compete with either end; apparatus (labels, tags, numerals) is pinned
 * smaller and quieter than both, so it reads as instrumentation, not voice.
 * DEFEND HARDEST — The full-bleed strata band breaking out of the centered
 * text column at every section boundary: the one ornamental, repeated
 * gesture on a page that otherwise refuses ornament. It is doing the work
 * of tying "boutique advisory" to Andean geology without a photograph,
 * an icon, or a single invented fact.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #1a1512;
  --paper: #ede6d8;
  --paper-alt: #e2d8c4;
  --rule: #827867;
  --copper-1: #d1a488;
  --copper-2: #ab6b4e;
  --copper-3: #4a2e23;
  --accent-text: #85513c;

  --font-serif: Cambria, Georgia, "Times New Roman", Times, serif;
  --font-mono: "Courier New", Courier, ui-monospace, monospace;

  --max-wide: 78rem;
  --max-read: 40rem;

  --fs-hero: clamp(2.75rem, 3vw + 2.25rem, 6rem);
  --fs-h2: clamp(1.375rem, 0.6vw + 1.15rem, 1.75rem);
  --fs-h3: clamp(1.05rem, 0.3vw + 0.95rem, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;
  --fs-tiny: 0.75rem;

  --strata-h: 0.75rem;
  --strata-gradient: linear-gradient(
    90deg,
    var(--copper-3) 0%, var(--copper-3) 6%,
    var(--rule) 6%, var(--rule) 10%,
    var(--copper-2) 10%, var(--copper-2) 34%,
    var(--paper-alt) 34%, var(--paper-alt) 40%,
    var(--copper-1) 40%, var(--copper-1) 68%,
    var(--ink) 68%, var(--ink) 72%,
    var(--copper-2) 72%, var(--copper-2) 88%,
    var(--rule) 88%, var(--rule) 92%,
    var(--copper-3) 92%, var(--copper-3) 100%
  );

  --focus-ring: #3a2318;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

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

a {
  color: var(--copper-3);
}

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

/* ---------- focus & motion ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

summary {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---------- shared layout ---------- */

.section-inner {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.copy {
  max-width: var(--max-read);
  text-align: justify;
  hyphens: auto;
}

.strata {
  width: 100%;
  height: var(--strata-h);
  margin: 0;
  border: 0;
  background: var(--strata-gradient);
}

.section-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.65em;
  color: var(--copper-3);
  letter-spacing: 0.02em;
  margin-right: 0.6em;
  vertical-align: 0.08em;
}

.section-heading {
  font-size: var(--fs-h2);
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--paper);
}

.masthead-bar {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.25rem, 4vw, 3rem) 0.9rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.masthead-brand {
  display: block;
  line-height: 0;
}

.masthead-logo {
  width: clamp(9.5rem, 14vw, 12.5rem);
  height: auto;
}

.masthead-publication {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-3);
  white-space: nowrap;
}

.title-block {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1rem;
  border-top: 1px solid var(--rule);
}

.title-block-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.5rem;
  margin: 0.85rem 0 0;
}

.title-block-item {
  display: flex;
  gap: 0.5em;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.title-block-item dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

.title-block-item dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.hero-inner {
  max-width: none;
}

.hero-headline {
  font-size: var(--fs-hero);
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.hero-subhead {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.subscribe-form {
  margin-top: 1.75rem;
  max-width: 34rem;
}

.field-row {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.field-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-3);
}

.field-group input[type="email"],
.field-group input[type="text"] {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.field-group input::placeholder {
  color: var(--rule);
}

.btn-subscribe {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

.btn-subscribe:hover {
  background: var(--copper-3);
  border-color: var(--copper-3);
}

.privacy-line {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--copper-3);
}

/* honeypot: class + aria-hidden, hidden via stylesheet only */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- report sections ---------- */

.report-section {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.report-section .section-inner {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.report-section + .report-section {
  border-top: none;
}

/* ---------- feature / manifest lists ---------- */

.feature-list,
.manifest-list {
  margin-top: 1.5rem;
  max-width: var(--max-read);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-list li,
.manifest-list li {
  padding-left: 1.4em;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before,
.manifest-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--accent-text);
}

.item-lead {
  font-weight: 700;
}

/* ---------- sample issue ---------- */

.sample-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.story-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-3);
  border-bottom: 1px solid var(--copper-2);
  display: inline-block;
  padding-bottom: 0.15rem;
  margin-bottom: 0.6rem;
}

.story-headline {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

.dateline {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--copper-2);
  margin-top: 0.5rem;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-story .copy {
  margin-top: 0.9rem;
}

.roundup {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.roundup-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}

.roundup-item + .roundup-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.roundup-headline {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

/* ---------- country coverage ---------- */

.country-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.country-card {
  container-type: inline-size;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.country-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.country-code {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.country-name {
  font-size: var(--fs-h3);
}

.country-card .copy {
  text-align: left;
  hyphens: none;
  max-width: none;
}

@container (min-width: 22rem) {
  .country-card-head {
    flex-direction: row;
    align-items: baseline;
    gap: 0.85rem;
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 1.5rem;
  max-width: var(--max-read);
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding-block: 1rem;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper-3);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .copy {
  margin-top: 0.85rem;
  max-width: none;
}

/* ---------- repeated subscribe ---------- */

.repeat-lede {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  max-width: none;
  text-align: left;
  hyphens: none;
  font-style: italic;
}

.subscribe-repeat .subscribe-form {
  margin-top: 1.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-inner {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.footer-logo {
  width: 8.5rem;
  height: auto;
}

.footer-tagline {
  font-style: italic;
  color: var(--copper-3);
  flex: 1 1 16rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--accent-text);
  width: 100%;
}

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  .masthead-bar {
    align-items: flex-start;
  }

  .field-row {
    align-items: stretch;
  }

  .btn-subscribe {
    width: 100%;
  }

  .sample-grid {
    grid-template-columns: 1fr;
  }

  .roundup {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .country-grid {
    grid-template-columns: 1fr;
  }

  .copy {
    text-align: left;
    hyphens: none;
  }
}
