:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1c1916;
  --muted: #5c564c;
  --rule: #d4cbb8;
  --forest: #2f4a3a;
  --forest-2: #24382c;
  --clay: #8a4a32;
  --white: #fbf8f2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}

::selection { background: #d8c9a8; color: var(--ink); }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--clay); }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.mast {
  padding: 28px 0 18px;
  border-bottom: 3px double var(--ink);
}

.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-decoration: none;
  text-align: center;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover { color: var(--clay); }

.hero-bleed {
  margin: 0;
}

.hero-bleed img {
  width: 100%;
  max-width: none;
  height: min(58vh, 520px);
  object-fit: cover;
  object-position: 58% 42%;
}

.hero {
  margin: 22px auto 8px;
}

.kicker {
  margin: 16px 0 6px;
  color: var(--clay);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  max-width: 46rem;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin: 48px 0;
}

.card h2, .essay h2, .legal h1 {
  margin: 8px 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p, .essay p, .legal p, .legal li {
  color: var(--ink);
}

.card img, .essay img {
  margin-bottom: 14px;
  width: 100%;
  max-width: none;
  object-fit: cover;
}

.card img { height: 300px; }

.essay { margin: 8px 0 56px; }
.essay img { height: 400px; }

.note {
  padding: 22px 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--forest);
}

.note h2 { font-size: 22px; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 12px 0 56px;
}

.trio article img {
  width: 100%;
  max-width: none;
  height: 190px;
  object-fit: cover;
}

.trio h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.trio p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.legal {
  width: min(760px, calc(100% - 40px));
  margin: 36px auto 80px;
}

.legal h1 { font-size: 36px; }
.legal h2 { margin: 28px 0 8px; font-size: 20px; }
.legal ul { padding-left: 1.2em; }

.expediente {
  margin: 0 0 56px;
  padding: 28px 0 0;
  border-top: 3px double var(--ink);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.expediente h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.expediente p { margin: 0 0 8px; }

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 28px 0 80px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--clay); }

.cookie {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  width: 100%;
  margin: 0;
  padding: 12px max(20px, calc((100% - 1080px) / 2 + 20px));
  background: var(--white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 28px rgb(28 25 22 / 8%);
}

.cookie.is-on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
html.has-cookie { padding-bottom: 88px; }

.cookie p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 9px 14px;
  font: 13px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.btn:hover { background: var(--forest-2); }
.btn:focus-visible { outline-color: var(--forest); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover { background: var(--paper-2); }

.err {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 800px) {
  .grid, .trio { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 28px); }
  .hero-bleed img { height: 42vh; min-height: 220px; }
  .card img { height: 240px; }
  .essay img { height: 240px; }
  .trio article img { height: 220px; }
  .cookie.is-on { padding: 12px 16px 16px; }
}
