/* ============================================================
   Francisco Duque — Personal site
   Design language: warm neutral canvas, terracotta accent,
   serif display type + clean sans body — in the spirit of
   Claude's product design.
   ============================================================ */

@font-face { font-display: swap; }

:root {
  --bg: #F7F4EE;
  --bg-alt: #F0EBE1;
  --surface: #FFFFFF;
  --ink: #1F1B16;
  --ink-soft: #4A443C;
  --ink-faint: #8A8175;
  --line: #E4DDCE;
  --accent: #C1633B;
  --accent-ink: #ffffff;
  --accent-soft: #F3E2D6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --maxw: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --bg-alt: #1E1A14;
    --surface: #201C16;
    --ink: #F3EEE4;
    --ink-soft: #C9C0B2;
    --ink-faint: #8B8477;
    --line: #322C22;
    --accent: #E08A5F;
    --accent-ink: #17140F;
    --accent-soft: #2C231B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav .brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.site-nav .brand:hover { text-decoration: none; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 15px;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
.hero-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
h1.name {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
}
.alt-name {
  font-size: 14.5px;
  color: var(--ink-faint);
  margin: -6px 0 14px;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 55ch;
}
.role {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover { opacity: 0.92; color: var(--accent-ink); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
section + section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 6px; }
h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0;
  color: var(--ink);
}
.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Timeline / experience ---------- */
.timeline { display: flex; flex-direction: column; gap: 28px; }
.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-date {
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 600;
  padding-top: 3px;
}
.tl-org { font-size: 15px; color: var(--accent); font-weight: 600; margin: 0 0 2px; }
.tl-role { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.tl-item ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.tl-item li { margin-bottom: 6px; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card .tl-date { display: block; margin-bottom: 6px; }
.card h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 4px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Languages ---------- */
.lang-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14.5px; color: var(--ink-soft); }
.lang-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.lang-bar > span { display: block; height: 100%; background: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-card .ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-card .label { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card .value { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-card .value a { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { display: flex; justify-content: center; }
  .hero-links { justify-content: center; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }

  .site-nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav ul {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 13.5px; }
}
