/* Borja García de los Ríos — personal site
   Tokens + look from the Claude Design export (editorial index).
   bg #FAFAF9 · ink #1A1A16 · muted #9b9b91 · border #E3E2DC · accent #2E6E4E */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #FAFAF9;
  color: #1A1A16;
  font-family: 'Hanken Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: auto;
}
img { max-width: 100%; }

/* ---------- layout ---------- */
.shell { max-width: 1380px; margin: 0 auto; padding: 0 48px; }
.shell--narrow { max-width: 1180px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 249, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E3E2DC;
}
.site-header .shell {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.wordmark { text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.site-nav { display: flex; gap: 30px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: #9b9b91; }
.site-nav a:hover, .site-nav a.is-active { color: #1A1A16; }
.header-cta {
  text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; border-bottom: 1.5px solid #1A1A16; padding-bottom: 3px; white-space: nowrap;
}

/* ---------- shared bits ---------- */
.kicker {
  font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: #2E6E4E;
}
.microlabel { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9b9b91; }
.thumb {
  background: repeating-linear-gradient(135deg, #ECECE5 0 11px, #F3F3EC 11px 22px);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #a9a99f; letter-spacing: .1em; text-align: center; line-height: 1.5;
}
.stat { font-size: 18px; font-weight: 700; color: #2E6E4E; }
.stat-label { font-size: 10px; letter-spacing: .1em; color: #9b9b91; margin-top: 4px; }
.quiet-link {
  display: inline-block; text-decoration: none; color: #9b9b91;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.quiet-link:hover { color: #1A1A16; }
.btn-outline {
  display: block; text-align: center; text-decoration: none; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid #1A1A16; padding: 13px 16px;
}
.underline-link { text-decoration: none; border-bottom: 1px solid #c9c9c0; padding-bottom: 2px; }
.strong-link { text-decoration: none; border-bottom: 1.5px solid #1A1A16; padding-bottom: 3px; font-weight: 700; }

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 396px; gap: 72px; align-items: start; }
.index-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 30px 0 22px;
}
.work-row { display: block; text-decoration: none; padding: 30px 0; border-top: 1px solid #E3E2DC; }
.work-row:last-of-type { border-bottom: 1px solid #E3E2DC; }
.work-row .thumb { height: 300px; margin-bottom: 24px; }
.work-row:hover .thumb { filter: brightness(.97); }
.work-row:hover .work-arrow { transform: translate(3px, -3px); }
.work-row-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.work-title { font-size: 17px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 12px; }
.work-desc { font-size: 13.5px; line-height: 1.8; color: #56564e; max-width: 480px; }
.work-role { font-size: 12.5px; line-height: 1.9; color: #6f6f68; margin-top: 14px; }
.work-stat { text-align: right; white-space: nowrap; }

.profile-aside { position: sticky; top: 92px; padding-top: 30px; }
.profile-aside .microlabel { margin-bottom: 18px; }
.portrait { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; filter: grayscale(1); display: block; margin-bottom: 24px; }
.profile-bio { font-size: 14px; line-height: 1.85; color: #33332c; margin: 0 0 28px; }
.aside-section { border-top: 1px solid #E3E2DC; padding-top: 22px; margin-bottom: 28px; }
.aside-section .microlabel { margin-bottom: 16px; }
.logo-strip-aside { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #26261f; }
.contact-lines { font-size: 13.5px; line-height: 1.95; color: #33332c; }
.aside-buttons { display: flex; gap: 10px; margin-top: 2px; }
.aside-buttons .btn-outline { flex: 1; }

/* ---------- page hero (approach / research) ---------- */
.page-hero { padding: 86px 0 64px; border-bottom: 1px solid #E3E2DC; }
.page-hero .kicker { margin-bottom: 30px; }
.page-hero h1 {
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: .97; letter-spacing: -.028em; font-weight: 400; max-width: 1040px; margin: 0; text-wrap: balance;
}
.page-hero .lede { max-width: 620px; margin: 40px 0 0; font-size: 18px; line-height: 1.65; color: #46463f; }

/* ---------- numbered principle cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; padding: 80px 0 30px; }
.p-card { border-top: 2px solid #1A1A16; padding-top: 20px; }
.p-card .num { font-weight: 700; font-size: 12px; color: #9b9b91; margin-bottom: 16px; }
.p-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 12px; }
.p-card p { margin: 0; font-size: 16px; line-height: 1.7; color: #56564e; }

/* ---------- compact work rows (approach) ---------- */
.section-title { font-size: clamp(28px, 3.2vw, 36px); font-weight: 400; letter-spacing: -.02em; margin: 0 0 44px; }
.wrow { display: flex; gap: 36px; align-items: flex-start; padding: 28px 0; border-top: 1px solid #E3E2DC; text-decoration: none; }
.wrow:last-of-type { border-bottom: 1px solid #E3E2DC; }
.wrow .num { font-weight: 700; font-size: 12px; color: #9b9b91; width: 34px; flex: none; padding-top: 6px; }
.wrow .thumb { width: 200px; height: 132px; flex: none; }
.wrow h3 { font-size: 23px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 8px; }
.wrow p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #56564e; max-width: 580px; }
.wrow .wstat { font-weight: 700; font-size: 14px; line-height: 1.3; color: #2E6E4E; text-align: right; white-space: nowrap; padding-top: 6px; }
.wrow .wstat small { color: #9b9b91; font-size: 11px; font-weight: 700; }

/* ---------- also building ---------- */
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.build-card { border: 1px solid #E3E2DC; border-radius: 2px; overflow: hidden; text-decoration: none; display: block; }
.build-card .thumb { height: 200px; }
.build-card-body { padding: 26px 28px; }
.build-card .tag { font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #2E6E4E; margin-bottom: 10px; }
.build-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.build-card p { margin: 0; font-size: 15px; line-height: 1.65; color: #56564e; }

/* ---------- dark CTA footer block ---------- */
.cta-dark { padding: 80px 0; background: #15150F; color: #FAFAF9; }
.cta-dark .shell { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-dark .kicker { color: #7fae93; margin-bottom: 24px; }
.cta-dark h2 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 400; letter-spacing: -.03em; line-height: .98; margin: 0; }
.cta-dark .cta-links { text-align: right; font-weight: 700; font-size: 14px; line-height: 2; white-space: nowrap; }
.cta-dark .cta-links a { text-decoration: none; display: block; }
.cta-dark .cta-links a.mail { border-bottom: 1px solid #4a4a3f; padding-bottom: 6px; margin-bottom: 14px; }
.cta-dark .routed { margin-top: 22px; font-size: 14px; color: #b9b9ad; font-weight: 500; }
.cta-dark .routed a { color: #FAFAF9; }

/* ---------- research page ---------- */
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.8; color: #46463f; }
.prose p { margin: 0 0 20px; }
.prose strong { color: #1A1A16; }
.callout {
  border: 1px solid #E3E2DC; border-left: 3px solid #2E6E4E; border-radius: 2px;
  padding: 22px 26px; margin: 34px 0; font-size: 15px; line-height: 1.7; color: #46463f; max-width: 720px;
}
.status-line { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 0; border-top: 1px solid #E3E2DC; border-bottom: 1px solid #E3E2DC; }
.status-line .microlabel { letter-spacing: .1em; }
.status-line .on { color: #2E6E4E; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 400px 1fr; gap: 64px; padding: 64px 0 90px; align-items: start; }
.about-photo { position: sticky; top: 96px; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; display: block; }
.about-photo .caption { font-weight: 700; font-size: 11px; line-height: 1.7; letter-spacing: .1em; text-transform: uppercase; color: #9b9b91; margin-top: 20px; }
.about-photo .caption .loc { color: #2E6E4E; }
.about-main h1 { font-size: clamp(38px, 4.5vw, 50px); line-height: 1.03; letter-spacing: -.028em; font-weight: 400; margin: 0 0 30px; }
.about-main .lead { font-size: 20px; line-height: 1.6; color: #33332c; margin: 0 0 22px; }
.about-main .body-p { font-size: 16.5px; line-height: 1.8; color: #46463f; margin: 0 0 20px; }
.about-main .body-p .co { color: #2E6E4E; font-weight: 700; }
.about-links { font-weight: 700; font-size: 14px; display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.logo-band {
  padding: 36px 0; border-top: 1px solid #E3E2DC; border-bottom: 1px solid #E3E2DC;
  display: flex; align-items: center; justify-content: center; gap: 54px; flex-wrap: wrap;
  font-weight: 700; font-size: 25px; letter-spacing: -.01em; color: #26261f;
}
.hiw { padding: 84px 0 36px; }
.hiw .kicker { margin-bottom: 16px; }
.hiw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.hiw-grid p { margin: 0; font-size: 16px; line-height: 1.72; color: #46463f; }
.hiw-grid strong { color: #1A1A16; }
.also-list { display: flex; flex-direction: column; }
.also-row { display: flex; gap: 30px; align-items: baseline; padding: 22px 0; border-top: 1px solid #E3E2DC; text-decoration: none; }
.also-row:last-of-type { border-bottom: 1px solid #E3E2DC; }
.also-row h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; width: 260px; flex: none; }
.also-row p { margin: 0; font-size: 16px; line-height: 1.65; color: #46463f; flex: 1; }
.also-row .tag { font-weight: 700; font-size: 12px; color: #2E6E4E; white-space: nowrap; }
.ways { padding: 50px 0 96px; }
.ways .kicker { margin-bottom: 26px; }
.ways-item { padding: 22px 0; border-top: 1px solid #E3E2DC; max-width: 820px; }
.ways-item:last-of-type { border-bottom: 1px solid #E3E2DC; }
.ways-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ways-item p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #46463f; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #E3E2DC; }
.site-footer .shell {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9b9b91;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .home-grid { grid-template-columns: 1fr 340px; gap: 48px; }
}
@media (max-width: 900px) {
  .shell { padding: 0 24px; }
  .site-header .shell { flex-wrap: wrap; row-gap: 12px; }
  .site-nav { gap: 20px; }
  .home-grid, .about-grid, .card-grid, .hiw-grid, .build-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; padding: 40px 0 60px; }
  .about-photo { position: static; max-width: 400px; }
  .profile-aside { position: static; }
  .work-row .thumb { height: 220px; }
  .wrow { flex-wrap: wrap; }
  .wrow .thumb { width: 100%; height: 160px; order: -1; }
  .wrow .num { padding-top: 0; }
  .wrow .wstat { text-align: left; padding-top: 0; }
  .cta-dark .shell { flex-direction: column; align-items: flex-start; }
  .cta-dark .cta-links { text-align: left; }
  .card-grid { gap: 40px; padding: 56px 0 20px; }
  .page-hero { padding: 56px 0 44px; }
  .logo-band { gap: 28px; font-size: 20px; }
}
