/* ============================================================
   Vincent Turon-Lagot — portfolio site
   Refined "Spec Sheet" system: clean sans body, mono as accent.
   ============================================================ */

:root {
  /* Ink-dark theme · confident emerald accent */
  --bg:       #15181a;
  --surface:  #1d2123;
  --ink:      #e9ebe7;
  --ink-soft: #b4b9b3;
  --muted:    #7f857e;
  --hair:     rgba(255, 255, 255, 0.13);
  --hair-2:   rgba(255, 255, 255, 0.07);
  --accent:   oklch(0.72 0.13 232);           /* azure, legible on dark */
  --accent-ink: oklch(0.85 0.10 232);
  --accent-wash: oklch(0.72 0.13 232 / 0.18);
  --on-accent: #15181a;                       /* text on accent fills */
  --slot-bg: #262b2d;
  --slot-stripe: rgba(255,255,255,0.05);
  --slot-tag: rgba(255,255,255,0.5);
  --slot-tag-bd: rgba(255,255,255,0.22);
  --slot-tag-bg: rgba(255,255,255,0.06);
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-btn: 8px;
  --r-card: 12px;
  --r-slot: 6px;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1080px;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* eyebrow / mono accents */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
}
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-head {
  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(--hair);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; white-space: nowrap; flex: 0 0 auto; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14.5px; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--accent-ink); font-weight: 500; }
.nav-toggle { display: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hair); margin-top: 96px; padding: 40px 0 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.foot-links a:hover { color: var(--accent-ink); border-color: var(--accent); }
.foot-copy { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- generic page header ---------- */
.page-head { padding: 64px 0 12px; }
.page-head h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 0; line-height: 1.02; font-family: var(--display); }
.page-head .lead { font-size: 19px; color: var(--ink-soft); max-width: 40em; margin: 18px 0 0; text-wrap: pretty; }

/* ---------- shared bits ---------- */
.slot {
  position: relative; background-color: var(--slot-bg);
  background-image: repeating-linear-gradient(135deg, var(--slot-stripe) 0 9px, transparent 9px 18px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--r-slot);
}
.slot .slot-tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--slot-tag); border: 1px dashed var(--slot-tag-bd);
  padding: 4px 10px; border-radius: 5px; background: var(--slot-tag-bg);
}

/* ---------- HOME ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 64px; padding: 72px 0 0; align-items: start; }
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: 72px; font-weight: 700; letter-spacing: -0.03em; line-height: 0.96; margin: 0 0 26px; font-family: var(--display); }
:root[data-serif="1"] .hero h1, :root[data-serif="1"] .page-head h1 { font-weight: 500; letter-spacing: -0.01em; }
.hero .lead { font-size: 21px; font-weight: 500; line-height: 1.5; margin: 0 0 18px; max-width: 24em; color: var(--ink); }
.hero p.body { font-size: 16.5px; line-height: 1.66; color: var(--ink-soft); margin: 0 0 30px; max-width: 32em; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { font-size: 14.5px; padding: 11px 20px; border-radius: var(--r-btn); border: 1px solid var(--hair); transition: all .15s; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 500; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-aside { display: flex; flex-direction: column; gap: 14px; }
.hero-shot { width: 100%; aspect-ratio: 4/5; border-radius: var(--r-slot); }
.infopanel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.infopanel .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--hair-2); }
.infopanel .row:last-child { border-bottom: none; }
.infopanel .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.infopanel .v { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; }

/* selected work */
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.section-head h2 { font-size: 14px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 500; margin: 0; }
.section-head a { font-size: 13.5px; color: var(--accent-ink); }
.section-head a:hover { text-decoration: underline; }

.worklist { }
.work-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hair-2); transition: background .15s; }
.work-row:hover { background: var(--accent-wash); }
.work-row .yr { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.work-row .ti { font-size: 16.5px; font-weight: 500; color: var(--ink); }
.work-row .ve { font-size: 13px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }

/* ---------- prose ---------- */
.prose { max-width: 40em; }
.prose p { font-size: 17px; line-height: 1.68; color: var(--ink-soft); margin: 0 0 20px; text-wrap: pretty; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-wash); }
.prose a:hover { border-color: var(--accent); }

/* ---------- research themes ---------- */
.themes { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 44px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--hair); }
.theme:last-child { border-bottom: none; }
.theme.flip .theme-fig { order: -1; }
.theme .theme-no { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.06em; }
.theme h3 { font-size: 27px; font-weight: 600; letter-spacing: -0.015em; margin: 12px 0 14px; line-height: 1.1; }
.theme p { font-size: 16px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 16px; text-wrap: pretty; }
.theme .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-fig { width: 100%; aspect-ratio: 4/3; }

.tag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; background: var(--surface); white-space: nowrap; }
.tag.accent { color: var(--accent-ink); border-color: var(--accent-wash); background: var(--accent-wash); }

/* ---------- publications ---------- */
.yeargroup { padding: 8px 0 0; }
.yeargroup > .yr-label { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); letter-spacing: 0.06em; padding: 26px 0 10px; border-bottom: 1px solid var(--hair); }
.pub { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--hair-2); }
.pub .pub-title { font-size: 18px; font-weight: 600; line-height: 1.32; color: var(--ink); letter-spacing: -0.01em; }
.pub .pub-authors { font-size: 14.5px; color: var(--ink-soft); }
.pub .pub-authors .me { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent-wash); }
.pub .pub-venue { font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.pub .pub-venue em { color: var(--ink-soft); font-style: normal; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pub-links a { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); border: 1px solid var(--hair); border-radius: 6px; padding: 4px 10px; transition: all .15s; }
.pub-links a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- CV ---------- */
.cv-actions { display: flex; gap: 12px; margin-top: 22px; }
.cv-group { padding: 26px 0; border-bottom: 1px solid var(--hair); }
.cv-group:last-child { border-bottom: none; }
.cv-group > h2 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.cv-row { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 12px 0; align-items: baseline; }
.cv-row .cv-when { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.cv-row .cv-what .t { font-size: 17px; font-weight: 600; color: var(--ink); }
.cv-row .cv-what .s { font-size: 15px; color: var(--ink-soft); }
.cv-row .cv-what .d { font-size: 14px; color: var(--muted); margin-top: 3px; }
.skill-wrap { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- projects ---------- */
.proj-card.featured { grid-column: 1 / -1; }
.proj-card.featured .pj-name { font-size: 23px; }
.proj-card.featured .pj-desc { font-size: 16px; }
.pj-link.muted { color: var(--muted); cursor: default; }
.pj-link.muted:hover { text-decoration: none; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.proj-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.proj-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.30); }
.proj-card .pj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj-card .pj-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.proj-card .pj-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.proj-card .pj-desc { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; flex: 1; }
.proj-card .pj-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.proj-card .pj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-card .pj-link { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); white-space: nowrap; }
.proj-card .pj-link:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; margin-top: 8px; }
.contact .c-mail { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.contact .c-mail:hover { color: var(--accent-ink); }
.contact .c-note { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin: 22px 0 0; max-width: 30em; text-wrap: pretty; }
.contact-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.contact-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--hair-2); }
.contact-card .row:last-child { border-bottom: none; }
.contact-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.contact-card .v a { white-space: nowrap; }
.contact-card .v { font-size: 15px; font-weight: 500; text-align: right; }
.contact-card .v a:hover { color: var(--accent-ink); }

/* contact form */
.cform { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-btn);
  padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.cf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.cf-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.cf-foot .btn { border: none; }
.cf-status { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.cf-status.ok { color: var(--accent-ink); }
.cf-status.err { color: oklch(0.72 0.15 28); }
@media (max-width: 820px) { .cf-row { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  :root { --pad: 22px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 0; }
  .hero h1 { font-size: 52px; }
  .hero-aside { max-width: 360px; }
  .nav { display: none; }
  .page-head h1 { font-size: 36px; }
  .work-row { grid-template-columns: 52px 1fr; }
  .work-row .ve { grid-column: 2; }
  .theme { grid-template-columns: 1fr; gap: 24px; }
  .theme.flip .theme-fig { order: 0; }
  .theme-fig { max-width: 380px; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .cv-row { grid-template-columns: 110px 1fr; gap: 18px; }
}
