/* ============================================================
   Etienne Schnaudt — CV site
   Design intent: warm-paper background, deep ink accent.
   Reads like an editorial profile, not a tech demo.
   ============================================================ */

:root {
  /* A warm off-white reads more inviting than #fff while still being
     unmistakably "light mode". Inspired by paper, not screens. */
  --paper: #fafaf9;
  --paper-soft: #f5f4f1;

  /* Deep ink blue — professional but not corporate. */
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --muted: #8b9099;

  /* A single accent. Used sparingly: contact dot, link underlines. */
  --accent: #2c5282;

  /* Hairline borders */
  --rule: #e4e2dd;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .container {
    padding: 7rem 2rem 5rem;
  }
}

/* ---------- Intro / hero ---------- */
.intro {
  margin-bottom: 5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  /* Fraunces' optical-size axis: bigger size → more contrast */
  font-variation-settings: 'opsz' 96;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.contact-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--accent);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Section blocks ---------- */
.block {
  margin-bottom: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.block:first-of-type {
  /* The first block (Ausbildung) sits below the intro,
     which already has a bottom border feel. No double rule. */
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
  font-variation-settings: 'opsz' 14;
}

/* ---------- Entry (CV row) ---------- */
.entry {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.entry:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .entry {
    grid-template-columns: 160px 1fr;
    gap: 2rem;
  }
}

.entry-meta {
  /* Period + place stack on mobile, sit in left rail on desktop */
}

.entry-period {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.entry-place {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.entry-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  font-variation-settings: 'opsz' 24;
}

.entry-role {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.entry-detail {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Skills mini-list (chips below the BSP-Tätigkeit) ---------- */
.skills-mini {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skills-mini li {
  font-size: 0.8rem;
  background: var(--paper-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}

/* ---------- Goals block (just prose) ---------- */
.goals p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.goals p:last-child {
  margin-bottom: 0;
}

.goals strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Skills grid ---------- */
.skills-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.skills-grid h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills-grid ul {
  list-style: none;
}

.skills-grid li {
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.skills-grid li:last-child {
  border-bottom: none;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Inline links ---------- */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.inline-link:hover {
  opacity: 0.7;
}

/* ---------- Contact block ---------- */
.contact-block p:not(.contact-final) {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.contact-final {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
}

.contact-final a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s;
}

.contact-final a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Print styles ---------- */
/* If anyone hits Ctrl+P to print this as a quick CV, give them
   something usable. Strip backgrounds, use serif throughout. */
@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  .container {
    padding: 0;
    max-width: 100%;
  }
  .footer {
    display: none;
  }
}
