/* ============================================================
   ALEXIS CHRISTOFORIDES — style.css
   ============================================================ */

/* ── Reset & base ────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         rgb(255, 255, 225);
  --bg-alt:     rgb(248, 248, 212);
  --surface:    rgb(240, 240, 200);
  --border:     rgb(205, 205, 170);
  --text:       #0c1220;
  --muted:      #4a5570;
  --accent:     #1a3585;
  --accent-h:   #0f2260;

  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', monospace;

  --nav-h:      58px;
  --max-w:      940px;
  --col-label:  140px;
  --py:         88px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(26, 53, 133, .14);
}

/* ── Typography ──────────────────────────────────────────── */

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26, 53, 133, .35);
  transition: color .15s, text-decoration-color .15s;
}
a:hover {
  color: var(--accent-h);
  text-decoration-color: var(--accent-h);
}

ul, ol { list-style: none; }

.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: var(--col-label) 1fr;
  column-gap: 3.5rem;
  align-items: start;
}

.section { padding-block: var(--py); }
.section-alt { background: var(--bg-alt); }

.section-label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .35rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  text-decoration: none;
}

/* ── Navigation ──────────────────────────────────────────── */

#nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}

#nav.nav-scrolled {
  background: rgba(255, 255, 225, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding-top: calc(var(--nav-h) + 5.5rem);
  padding-bottom: 5rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -.01em;
}

.hero-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
  max-width: 280px;
}

.hero-role {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-body {
  max-width: 600px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: .75rem;
}

/* ── Expertise list ──────────────────────────────────────── */

.expertise-list {
  display: flex;
  flex-direction: column;
}

.expertise-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  column-gap: 2.5rem;
  padding-block: 1.65rem;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.expertise-item:last-child { border-bottom: 1px solid var(--border); }

.expertise-item dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

.expertise-item dd {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Timeline ────────────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  padding: 1.75rem 0 2rem 1.5rem;
  border-left: 1px solid var(--border);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 2.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}
.timeline-item:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}

.timeline-date,
.timeline-location {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .75;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}

.timeline-org {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .6rem;
}
.via {
  font-size: .78rem;
  opacity: .55;
}

.timeline-item > p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ── OSS pills ───────────────────────────────────────────── */

.oss-strip {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.oss-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .85rem;
}

.oss-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.oss-pill {
  font-family: var(--mono);
  font-size: .78rem;
  padding: .25rem .7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.oss-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Contact ─────────────────────────────────────────────── */

.contact-links {
  margin-top: 1.25rem;
  margin-bottom: .85rem;
}

.contact-primary {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
  padding: .45rem .9rem;
  border: 1px solid rgba(26, 53, 133, .25);
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: border-color .15s, background .15s;
}
.contact-primary:hover {
  border-color: var(--accent);
  background: rgba(26, 53, 133, .06);
  text-decoration: none;
}

.contact-elsewhere {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-elsewhere a {
  font-size: .88rem;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

.footer p {
  font-size: .8rem;
  color: var(--muted);
  opacity: .65;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 760px) {
  :root { --py: 60px; --col-label: 100px; }

  .container { padding-inline: 1.5rem; }

  .hero .container,
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-label {
    position: static;
    margin-bottom: .75rem;
  }

  .expertise-item {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .contact-elsewhere { flex-wrap: wrap; gap: .75rem 1.25rem; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-name { font-size: 2.2rem; }
}
