/* Atlas of Resistance · Atlas de la Resistencia */
:root {
  --bg: #ffffff;
  --surface: #f5f0ef;     /* faint warm tint for cards */
  --surface-hover: #eee6e4;
  --text: #1f2a40;        /* navy */
  --muted: #4f5566;
  --line: #e9e2e0;
  --accent: #6d2333;      /* burgundy: links, card titles */
  --accent-soft: #efe3e4; /* burgundy tint for tags */
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;         /* body */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;       /* headings and interface */
  --block: #253049;       /* full-width color block: muted navy */
  --on-block: #ffffff;
  --measure: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.25rem; color: var(--text); text-decoration: none; line-height: 1.2; }
.brand span { display: block; font-family: var(--display); font-weight: 400; font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.nav { font-family: var(--display); font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: 1rem; }
.nav a { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .lang { color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; }
.nav .lang:hover { border-color: var(--accent); }

/* Main */
main { padding: 3rem 0 4rem; }
.prose { max-width: var(--measure); }

/* Overview + 'At a glance' side panel */
.overview-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.at-a-glance { position: sticky; top: 2rem; margin-top: 3.2rem; background: var(--surface); border-left: 3px solid var(--accent); padding: 1.5rem 1.6rem; border-radius: 4px; }
.at-a-glance h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.at-a-glance dl { margin: 0; }
.at-a-glance dt { font-size: .78rem; color: var(--muted); margin-top: .9rem; }
.at-a-glance dt:first-child { margin-top: 0; }
.at-a-glance dd { margin: .15rem 0 0; font-size: .98rem; color: var(--text); line-height: 1.4; }
@media (max-width: 56rem) {
  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .at-a-glance { position: static; margin-top: 1.5rem; }
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: var(--measure); margin-bottom: 0; }
.eyebrow { font-family: var(--display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .5rem; }

/* Hero */
.hero {
  background: var(--block); color: var(--on-block);
  border-image: conic-gradient(var(--block) 0 0) fill 0 / / 0 100vmax;  /* full-bleed band */
  margin: -3rem 0 1rem; padding: 4.5rem 0 4rem;
}
.hero h1 { color: var(--on-block); margin: 0; }
.hero .eyebrow { color: var(--on-block); opacity: .85; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cards > li { display: flex; }
.card {
  flex: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem;
}
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.card:hover { border-color: var(--accent); background: var(--surface-hover); }
a.card h3 { color: var(--accent); }
.tag { font-family: var(--display); align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--accent-soft); border-radius: 999px; padding: .1rem .6rem; }

/* Tours */
.tours { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; max-width: 48rem; }
.tours li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 1.1rem 1.25rem; }
.tours h3 { margin: 0 0 .35rem; }
.tours p { margin: 0; color: var(--muted); }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 1rem 1.25rem; max-width: 48rem; }
.notice p { margin: 0; }

/* Lists */
ol.steps { padding-left: 1.4rem; }
ol.steps li { margin-bottom: .4rem; }

/* Team */
.team-group { margin-top: 2.5rem; }
.team-group > h2 { margin-top: 0; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem 2rem; }
.people li { border-top: 1px solid var(--line); padding-top: .75rem; }
.people strong { display: block; font-family: var(--display); font-weight: 700; }
.people span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.subhead { font-family: var(--display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 1.75rem 0 .75rem; }

/* Footer */
.site-footer { font-family: var(--display); border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  main { padding: 2rem 0 3rem; }
  .hero { margin-top: -2rem; padding: 3rem 0 2.75rem; }
  .lede { font-size: 1.15rem; }
  h2 { font-size: 1.4rem; margin-top: 2.25rem; }
}

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

/* Homepage title: larger, poster-like */
.hero { padding: 5rem 0 4.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 10.2em; text-wrap: balance; }
@media (max-width: 40rem) { .hero { padding: 3.25rem 0 3rem; } }

/* Softer, warm off-white title on the dark bar */
.hero h1 { color: #e6dcda; }

/* Homepage: project name as the title, tagline as the subtitle */
.hero h1 { max-width: none; }
.hero .subtitle { margin: .9rem 0 0; font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 400; line-height: 1.3; color: #cfc6c6; }

/* Homepage title: Archivo, lighter and smaller */
.hero h1 { font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.015em; line-height: 1.1; }
