/* dalialourenco.com — components v1.0
   Every value references tokens.css; no raw values in components. */

* { box-sizing: border-box; }

html {
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) { .wrap { padding: 0 var(--space-8); } }

/* ---------- shared type ---------- */
.meta {
  font-family: var(--font-meta);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-faint);
}
.kicker { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--text-h1); font-weight: 540; line-height: 1.15; }
h2 { font-size: var(--text-h2); font-weight: 520; }
h3 { font-size: var(--text-h3); font-weight: 560; }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 640; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

:is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  z-index: 10;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-meta);
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
}
.skip-link:focus-visible { left: var(--space-2); color: var(--paper); }

/* ---------- nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--font-meta);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  padding: var(--space-2) 0;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

/* ---------- sections ---------- */
.section { padding-top: var(--space-16); }
main > .section:last-child, main .section.section-end { padding-bottom: var(--space-16); }
@media (min-width: 1024px) {
  .section { padding-top: var(--space-24); }
  main > .section:last-child, main .section.section-end { padding-bottom: var(--space-24); }
}
.section-head { margin-bottom: var(--space-8); }
.section-head h2 { margin-top: var(--space-2); }
.lede { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: var(--space-16) 0 0; }
@media (min-width: 1024px) { .hero { padding-top: var(--space-24); } }
.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr auto; }
}
.hero-name {
  font-size: var(--text-display);
  font-weight: 560;
  font-variation-settings: 'opsz' 144;
  line-height: 1.1;
  margin: var(--space-3) 0;
}
.hero-intro { color: var(--ink-soft); }
.hero-portrait {
  width: 160px;
  border-radius: var(--radius-media);
  border: 1px solid var(--rule);
  margin: 0 auto;
}
@media (min-width: 480px) { .hero-portrait { width: 200px; } }
@media (min-width: 768px) { .hero-portrait { width: 240px; margin: 0; } }
@media (min-width: 1024px) { .hero-portrait { width: 250px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

@media (prefers-reduced-motion: no-preference) {
  .hero-animate > * { opacity: 0; transform: translateY(12px); animation: rise 500ms var(--ease) forwards; }
  .hero-animate > *:nth-child(2) { animation-delay: 80ms; }
  .hero-animate > *:nth-child(3) { animation-delay: 160ms; }
  .hero-animate > *:nth-child(4) { animation-delay: 240ms; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- highlights ---------- */
.highlights {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .highlights { grid-template-columns: 1fr 1fr 1fr; } }
.highlights li { border-top: 2px solid var(--ink); padding-top: var(--space-3); }
.highlights .figure {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 560;
  line-height: 1.25;
  display: block;
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
}
.highlights p { font-size: var(--text-small); color: var(--ink-soft); margin: 0; }

/* ---------- cv entries ---------- */
.cv-list { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) {
  .cv-list { position: relative; padding-left: var(--space-6); border-left: 1px solid var(--rule); }
  .cv-entry::before {
    content: '';
    position: absolute;
    left: -4.5px;
    margin-top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }
}
.cv-entry { position: static; }
.cv-entry .role { margin-top: var(--space-1); }
.cv-entry .org { margin: 2px 0 var(--space-2); font-weight: 640; }
.cv-entry ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-1); }
.cv-entry li { font-size: var(--text-small); color: var(--ink-soft); }
.cv-entry + .cv-entry-new-employer { border-top: 1px solid var(--rule); padding-top: var(--space-8); }

/* ---------- cv layout: sticky rail ---------- */
.cv-layout { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) {
  .cv-layout {
    grid-template-columns: 4fr 1fr 7fr;
    gap: 0;
    align-items: start;
  }
  .cv-rail { grid-column: 1; position: sticky; top: var(--space-6); }
  .cv-main { grid-column: 3; }
}
.cv-rail { display: grid; gap: var(--space-8); align-content: start; }
.cv-rail .rail-group { display: grid; gap: var(--space-3); }
.cv-rail .rail-portrait {
  width: 160px;
  border-radius: var(--radius-media);
  border: 1px solid var(--rule);
}
.cv-main { display: grid; gap: var(--space-12); }

/* ---------- tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  font-family: var(--font-meta);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}
.tag .level { color: var(--ink-faint); }

/* ---------- cards ---------- */
.cards { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-media);
  padding: var(--space-6);
}
.card .card-title { margin: var(--space-2) 0 var(--space-2); }
.card p { font-size: var(--text-small); color: var(--ink-soft); margin: 0; }
a.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease);
}
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card:hover .card-title { color: var(--accent); }
a.card .card-title::after {
  content: '↗';
  display: inline-block;
  margin-left: var(--space-2);
  font-size: 0.7em;
  color: var(--ink-faint);
  transition: color 150ms var(--ease);
}
a.card:hover .card-title::after { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-meta);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); color: var(--paper); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- published writing list ---------- */
.pub-list {
  display: grid;
  gap: var(--space-4) var(--space-12);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .pub-list { grid-template-columns: 1fr 1fr; } }
.pub-list li {
  display: grid;
  gap: var(--space-1);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-4);
  align-content: start;
}
.pub-list a { font-weight: 640; }
.pub-list .alt-lang { font-size: var(--text-small); color: var(--ink-soft); }

/* ---------- pull quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h2);
  font-weight: 480;
  line-height: 1.35;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-6);
  margin: 0;
  max-width: 34ch;
  text-wrap: balance;
}

/* ---------- contact ---------- */
.contact-block { display: grid; gap: var(--space-4); max-width: 420px; }
.contact-block .row { display: grid; gap: 2px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--space-16);
  padding: var(--space-6) 0 var(--space-8);
}
@media (min-width: 1024px) { .site-footer { margin-top: var(--space-24); } }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
}
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
