/* Puro Local, barrio editorial. cream/ink/terracotta/gold. */
:root {
  --paper: #faf7f2;
  --paper-deep: #f3ecdf;
  --ink: #211c17;
  --ink-soft: #5c5347;
  --ink-faint: #6e6355;
  --terra: #b5451f;
  --terra-deep: #93381a;
  --gold: #e0a458;
  --verde: #5f6f52;
  --line: #e3d9c8;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Charter", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* one-screen app shell (index) */
body.app { height: 100vh; height: 100dvh; overflow: hidden; }
.shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-height: 0; }
.statement { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.statement h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.6px; padding: 14px 0 12px; line-height: 1.1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.statement .accent { color: var(--terra); }
.statement .count { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.5px; }
.corridors .wrap { padding-top: 10px; padding-bottom: 10px; }
.chiprow { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.chip { flex: 0 0 auto; }
.gridwrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: var(--paper); }
.gridwrap .grid { padding-top: 6px; padding-bottom: 16px; }
.gridfoot { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); padding: 4px 0 22px; max-width: 70ch; }
.microfoot { border-top: 1px solid var(--line); background: var(--paper); }
.microfoot .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 9px 20px; font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); flex-wrap: wrap; }
.btn.small { padding: 8px 14px; font-size: 12.5px; }
@media (max-width: 560px) {
  .masthead .mast-note { display: none; }
  .masthead .wrap { flex-wrap: nowrap; }
  .masthead .brand { font-size: 21px; }
}

/* masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.brand em { font-style: normal; color: var(--terra); }
.mast-note { font-family: var(--sans); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); }

/* hero */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.hero .kicker { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 6.5vw, 68px); line-height: 1.02; letter-spacing: -1.5px; max-width: 17ch; }
.hero h1 .accent { color: var(--terra); }
.hero .dek { margin-top: 22px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 56ch; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  display: inline-block; padding: 13px 24px; border-radius: 3px; text-decoration: none;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn.primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

/* corridor chips */
.corridors { padding: 26px 0 6px; }
.corridors .label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.chiprow { display: flex; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .2s ease;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"]:hover { color: var(--paper); }

/* grid */
.grid-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 18px; gap: 10px; flex-wrap: wrap; }
.grid-head h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -0.5px; }
.grid-head .count { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 56px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(33,28,23,.10); }
.card .mono {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--serif); font-weight: 900; font-size: 46px; color: rgba(250,247,242,.92);
}
.mono.t0 { background: var(--terra); } .mono.t1 { background: var(--gold); color: rgba(33,28,23,.85); }
.mono.t2 { background: var(--verde); } .mono.t3 { background: var(--ink); }
.card .photo { aspect-ratio: 16/9; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo { margin-top: 34px; position: relative; border-radius: 4px; overflow: hidden; max-height: 420px; }
.profile-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.profile-photo .credit {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(33,28,23,.72); color: #f5efe6; padding: 4px 9px; border-radius: 999px;
}
.card .mono .photochip {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(250,247,242,.92); color: var(--ink-soft); padding: 4px 9px; border-radius: 999px;
}
.card .body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--terra); }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; line-height: 1.2; }
.card .desc { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card .addr { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); }
.card .fact { font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 8px; font-style: italic; }

/* claim band */
.claim { background: var(--ink); color: var(--paper); padding: 56px 0; }
.claim h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.8px; max-width: 22ch; }
.claim p { margin-top: 12px; color: #c9beac; max-width: 58ch; }
.claim .actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.claim .btn { border-color: var(--paper); color: var(--paper); }
.claim .btn:hover { background: var(--paper); color: var(--ink); }
.claim .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.claim .btn.primary:hover { background: #c98d3f; border-color: #c98d3f; }

/* footer */
footer { padding: 30px 0 44px; }
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: baseline; }
footer .small { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); }
footer a { color: var(--ink-soft); }

/* profile page */
.profile-hero { padding: 52px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.crumb { font-family: var(--sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--terra); }
.profile-hero .cat { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--terra); margin-bottom: 10px; }
.profile-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.5vw, 56px); letter-spacing: -1px; line-height: 1.05; }
.profile-hero .dek { margin-top: 14px; font-size: 19px; color: var(--ink-soft); max-width: 58ch; }
.profile-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 40px 0 60px; }
@media (max-width: 760px) { .profile-cols { grid-template-columns: 1fr; } }
.storyblock h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.4px; }
.storyblock .fact { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: 3px; margin: 16px 0; }
.pending {
  border: 2px dashed var(--line); border-radius: 4px; padding: 22px; margin-top: 18px;
  color: var(--ink-faint); font-size: 15px; background: #fffdf9;
}
.pending b { color: var(--ink-soft); }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.sidecard h3 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.sidecard .row { padding: 9px 0; border-bottom: 1px solid var(--paper-deep); font-size: 15px; }
.sidecard .row:last-child { border-bottom: none; }
.sidecard .row .k { font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 2px; }
.sidecard .btn { width: 100%; text-align: center; margin-top: 14px; }

/* embed page */
.embed-list { padding: 8px 0 24px; }
.embed-row { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.embed-row .dot { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; color: #fff; font-size: 16px; }
.embed-row .nm { font-weight: 700; font-family: var(--serif); font-size: 16px; }
.embed-row .meta { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); }

/* motion: gentle reveal */
@media (prefers-reduced-motion: no-preference) {
  .card, .hero h1, .hero .dek { animation: rise .6s ease both; }
  .card:nth-child(2n) { animation-delay: .06s; } .card:nth-child(3n) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
