/* doritorresrojas.com
   Same design language and typefaces as sypsampler.com and
   waikatoscientific.com (Space Grotesk headings, Inter body, paper
   ground, dot grid, feature rows with circle arrows, flat colour
   bands, card bars), with the colour drawn from Puerto Rico and
   Africa: Caribbean blue for the bands, flamboyan red, kente gold
   and pan-African green as the three accents. */

:root {
  --bg: #edeae3;
  --white: #ffffff;
  --card: #f6f3ec;
  --ink: #191512;
  --body: #3d3833;
  --muted: #6e6862;
  --line: #d8d3ca;
  --line-dark: #b3ada3;
  --block: #0f7f8e;
  --block-deep: #0b6371;
  --red: #d3372a;
  --gold: #d9a21b;
  --green: #2e7a4b;
  --accent: var(--red);
  --btn: #2f2d2d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.dotgrid {
  background-image: radial-gradient(circle, #c8c3b9 1px, transparent 1.4px);
  background-size: 22px 22px;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink); }
h4 { font-weight: 600; }
p { color: var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-style: italic; }
section, .band { scroll-margin-top: 84px; }

/* Text links */
a.ext { color: var(--block); text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color 0.15s ease, color 0.15s ease; }
a.ext:hover { color: var(--red); border-bottom-color: var(--red); }

/* Heritage stripe: red, gold, green on the blue */
.stripe { height: 5px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--gold); }
.stripe span:nth-child(3) { background: var(--green); }

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 100; }
nav.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.95rem 5vw;
  background: var(--block);
  color: #fff;
}
.nav-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.btn-light {
  background: var(--gold); color: var(--ink); text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1.3rem; border-radius: 8px;
  transition: background 0.15s ease;
}
.btn-light:hover { background: #e9b73a; }
.btn-dark {
  display: inline-block; background: var(--btn); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; padding: 0.75rem 1.3rem; border-radius: 8px;
  transition: background 0.15s ease;
}
.btn-dark:hover { background: var(--ink); }

/* Pill links */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-dark); background: transparent; color: #55524c;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.pill.primary { background: var(--red); border-color: var(--red); color: #fff; }
.pill.primary:hover { background: #b82d22; border-color: #b82d22; color: #fff; }

/* HERO */
.hero { padding: 4.5rem 5vw 3.5rem; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 3.5rem; align-items: center; max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin-bottom: 1.4rem; }
.hero-lede { font-size: 1.15rem; color: #48453f; max-width: 40rem; margin-bottom: 1rem; }
.hero-roles { font-size: 0.95rem; color: var(--muted); max-width: 40rem; margin-bottom: 1.8rem; }
.hero-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: #d7d0c2; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* FEATURE ROWS */
.feature-row { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; gap: 1rem; transition: opacity 0.15s ease; }
.feature-row:first-child { border-top: 1px solid var(--line); }
.feature-row:hover { opacity: 0.62; }
.feature-row h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin: 0; font-weight: 600; }
.feature-row .sub { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.circle-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1;
}

/* BLUE BAND */
.band { background: var(--block); color: #fff; padding: 4.5rem 0; }
.band-inner { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
.band-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.band h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.1rem; }
.band p { color: rgba(255,255,255,0.86); }
.band-sub { max-width: 26rem; margin-bottom: 1.6rem; }
.band .feature-row { border-color: rgba(255,255,255,0.28); }
.band .feature-row h3 { color: #fff; }
.band .feature-row .sub { color: rgba(255,255,255,0.7); }
.band .circle-arrow { border-color: var(--gold); color: var(--gold); }
.band a.ext { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.band a.ext:hover { color: var(--gold); border-bottom-color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3.2rem; }
.tile { text-decoration: none; color: inherit; }
.tile-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; position: relative; background: var(--block-deep); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img::before, .tile-img::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--gold); }
.tile-img::before { top: 9px; left: 9px; }
.tile-img::after { bottom: 9px; right: 9px; }
.tile-cap { font-size: 0.82rem; color: rgba(255,255,255,0.78); line-height: 1.4; margin-top: 0.7rem; }
.tile-cap strong { color: #fff; font-weight: 600; display: block; }
.tile:hover .tile-img img { opacity: 0.85; }

/* SECTIONS */
.sec { padding: 4.5rem 5vw; max-width: 1120px; margin: 0 auto; }
.sec h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); margin-bottom: 1.2rem; }
.sec-intro { color: #48453f; max-width: 40rem; margin-bottom: 2rem; }
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.sec-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.hr { height: 1px; border: 0; max-width: 1120px; margin: 0 auto; background: linear-gradient(90deg, transparent 5vw, var(--line) 5vw, var(--line) calc(100% - 5vw), transparent calc(100% - 5vw)); }

/* CARDS (product cards from the SYP site) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; align-items: stretch; }
.p-card { background: var(--card); padding: 2rem 1.8rem 0; border-left: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.p-card:first-child { border-left: none; }
.p-card .tag { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.p-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.p-card p { color: var(--body); font-size: 0.95rem; flex-grow: 1; margin-bottom: 1.6rem; }
.p-card-bar { height: 6px; background: var(--red); margin: 0 -1.8rem; }
.p-card-bar.gold { background: var(--gold); }
.p-card-bar.green { background: var(--green); }
.p-card .photo { margin: -2rem -1.8rem 1.4rem; height: 220px; overflow: hidden; }
.p-card .photo img { width: 100%; height: 100%; object-fit: cover; }

/* TIMELINE */
.timeline { margin-top: 1.5rem; }
.tl { display: grid; grid-template-columns: 145px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.tl:first-child { border-top: 1px solid var(--line); }
.tl .year { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--red); padding-top: 0.15rem; }
.tl h4 { font-size: 1.02rem; margin-bottom: 0.1rem; }
.tl .where { font-size: 0.88rem; color: var(--green); font-weight: 600; margin-bottom: 0.3rem; }
.tl p { font-size: 0.93rem; color: var(--body); }

/* PUBLICATIONS */
.pub-list { margin-top: 0.5rem; max-width: 52rem; }
.pub-list .pub { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pub-list .pub:first-child { border-top: 1px solid var(--line); }
.pub h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.35; }
.pub .cite { font-size: 0.9rem; color: var(--body); }
.pub .cite strong { color: var(--ink); }
.pub .venue { font-size: 0.86rem; color: var(--green); font-weight: 600; margin-top: 0.2rem; }

/* FIGURES */
figure { margin: 0; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.45; }
.figure-wide { margin: 2.5rem 0 0; }
.figure-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; border-radius: 3px; }

/* FOOTER */
footer.site { background: var(--white); padding: 3.5rem 0 2.5rem; }
.footer-grid { max-width: 1120px; margin: 0 auto; padding: 0 5vw; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-desc { color: #55524c; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--body); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--red); }
.footer-note { max-width: 1120px; margin: 2.5rem auto 0; padding: 0 5vw; font-size: 0.8rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 0.55fr; gap: 2.5rem; }
  .band-grid, .sec-split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .p-card { border-left: none; border-top: 1px solid var(--line); }
  .p-card:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-photo { max-width: 260px; order: -1; }
  .tl { grid-template-columns: 1fr; gap: 0.2rem; }
  nav.top { padding: 0.8rem 5vw 0.6rem; flex-wrap: wrap; row-gap: 0.4rem; }
  .nav-links { order: 3; width: 100%; gap: 1.1rem; padding-bottom: 0.2rem; }
  .nav-links a { font-size: 0.85rem; }
  .btn-light { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .band, .sec { padding-top: 3.2rem; padding-bottom: 3.2rem; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
