/* The Shepherds — shared styles for every page. Tokens from The Shepherds design system. */

:root {
  --paper: #FBFBFA;
  --stone: #F2F1ED;
  --raised: #FFFFFF;
  --ink: #111111;
  --ink-soft: #555555;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #8E8B85;
  --bronze: #8A6C47;
  --bronze-light: #C4A47C;
  --bronze-soft: #EEE7DC;
  --inverse: #111111;
  --on-inverse: #FBFBFA;
  --on-inverse-soft: rgba(255, 255, 255, 0.65);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.067 0 0 0 0 0.067 0 0 0 0 0.067 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- LANGUAGE: text exists in both languages, only the active one shows ---- */
html[data-lang="en"] [data-l="es"],
html[data-lang="es"] [data-l="en"] { display: none !important; }

/* ---- TEXTURE, IMAGERY, MOTION ---- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}
.grain > * { position: relative; z-index: 1; }

.photo { filter: grayscale(0.4) sepia(0.22) saturate(0.85) contrast(1.03); }

.reveal { animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---- NAVIGATION ---- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo svg { width: 18px; height: 18px; flex: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}

.nav-link:hover { color: var(--bronze); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--bronze); }

.lang {
  display: flex;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang button {
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-soft);
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.lang button:hover { color: var(--ink); }

.lang button[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--bronze);
}

/* ---- TYPE ---- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bronze);
  margin-bottom: 20px;
}

.eyebrow.soft { color: var(--ink-soft); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.ref-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 250ms var(--ease), color 250ms var(--ease), transform 250ms var(--ease);
}

.btn:hover { background: var(--bronze); color: var(--paper); transform: translateY(-1px); }
.btn.small { font-size: 0.85rem; padding: 10px 22px; }
.btn.small:hover { transform: scale(0.98); }
.btn.lift { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.btn.soft { background: var(--stone); color: var(--ink); }
.btn.soft:hover { background: #E6E4DE; color: var(--ink); }
.btn.on-dark { background: var(--on-inverse); color: var(--inverse); }
.btn.on-dark:hover { background: var(--bronze-light); color: var(--inverse); }
.btn.block { width: 100%; }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.ghost > span {
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 250ms var(--ease);
}

.ghost svg { transition: transform 250ms var(--ease); }
.ghost:hover > span, a:hover .ghost > span { background-size: 100% 1px; }
.ghost:hover svg, a:hover .ghost svg { transform: translateX(3px); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.back:hover { color: var(--bronze); }

/* ---- THE WALK (progress through a series) ---- */
.walk {
  display: flex;
  align-items: flex-start;
  width: 100%;
  color: var(--line-strong);
}

.walk-seg {
  flex: 1 1 0;
  min-width: 8px;
  height: 1px;
  margin-top: 8.5px;
  background: var(--line-strong);
  opacity: 0.6;
}

.walk-seg.done {
  height: 2px;
  margin-top: 8px;
  background: var(--bronze);
  opacity: 1;
}

.walk-step {
  flex: none;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.walk-dot {
  width: 12px;
  height: 12px;
  margin: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}

.walk-dot.done { background: var(--bronze); border: 0; }

.walk-dot.current {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--bronze);
  background: radial-gradient(circle, var(--bronze) 0 3px, var(--paper) 3.5px);
}

.walk-num {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.walk-num.strong { color: var(--ink); }
.walk-end { flex: none; margin-top: -1px; }
.walk.is-complete .walk-end { color: var(--bronze); }

/* ---- SERIES CARDS AND THE "CONTINUE" PANEL ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--raised);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform 250ms var(--ease);
}

.card:hover { transform: translateY(-2px); }

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  object-fit: cover;
  background: var(--stone);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 26px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.continue {
  background: var(--stone);
  border-radius: 28px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.continue-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.continue-top > div { flex: 1 1 420px; min-width: 0; }

.continue h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1.1;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--bronze); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .site-nav { padding: 28px 0; }
  .nav-right { gap: 18px; }
  .continue { padding: 40px 28px; }
  .continue h2 { font-size: 2.3rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .site-nav { flex-wrap: wrap; row-gap: 16px; }
  .nav-cta { display: none; }
  .nav-right { width: 100%; justify-content: flex-start; gap: 20px; }
  .lang { margin-left: auto; }
  .nav-link { font-size: 0.8rem; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .btn, .card, .ghost svg, .ghost > span { transition: none; }
}
