/* ==========================================================================
   SK-Welt — shared stylesheet
   Minimal, single sans typeface, text-first, narrow column, lots of air.
   No framework, no build.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Palette — near-monochrome + one restrained accent */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-faint: #eeeeee; /* hairlines, subtle chips */
  --color-accent: #2e7d6b; /* muted teal — used sparingly; swap here to restyle */

  /* Typography — one family */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 6rem;

  /* Layout */
  --container: 620px;
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-text);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}

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

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.page {
  flex: 1 0 auto;
  padding: var(--space-5) 0 var(--space-6);
}

.page-title {
  margin-bottom: var(--space-5);
}

/* ---- Header / nav -------------------------------------------------------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.site-nav .brand {
  font-weight: 600;
  font-size: 1rem;
}
.site-nav .brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--color-muted);
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  text-decoration: none;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  padding: var(--space-5) 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer p {
  margin: 0;
}

/* ---- Social icons -------------------------------------------------------- */
.social-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.icon-link {
  display: inline-flex;
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.icon-link:hover {
  color: var(--color-text);
  text-decoration: none;
}
.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Home / intro (prose-first) ----------------------------------------- */
.intro {
  max-width: 560px;
}

.intro .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 0 var(--space-4);
}

.intro h1 {
  margin-bottom: var(--space-4);
}

/* Inline prose links are underlined so they read as navigation */
.intro p a {
  text-decoration: underline;
}
.intro p a:hover {
  color: var(--color-accent);
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.intro-actions .resume {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ---- Experience ---------------------------------------------------------- */
.exp-list {
  display: flex;
  flex-direction: column;
}

/* Flat entries separated by a hairline, no cards */
.card {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-faint);
}
.exp-list .card:first-child {
  border-top: none;
  padding-top: 0;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.exp-header h3 {
  margin: 0;
}
.exp-role {
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}
.exp-dates {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---- Projects ------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-4);
}

.project-card {
  display: flex;
  flex-direction: column;
}
.project-card h3 {
  margin-bottom: var(--space-2);
}
.project-card .tech {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: var(--space-2) 0 var(--space-3);
}
.project-card .project-links {
  margin-top: auto;
  display: flex;
  gap: var(--space-4);
  font-size: 0.95rem;
}
.project-card .project-links a {
  color: var(--color-muted);
  text-decoration: underline;
}
.project-card .project-links a:hover {
  color: var(--color-accent);
}

/* ---- Contact ------------------------------------------------------------- */
.contact-intro {
  max-width: 520px;
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
}

.contact-methods {
  display: flex;
  flex-direction: column;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-faint);
  color: var(--color-text);
}
.contact-methods .contact-method:first-child {
  border-top: none;
}
.contact-method:hover {
  text-decoration: none;
  color: var(--color-accent);
}
.contact-method svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --space-6: 3.5rem;
  }
  h1 {
    font-size: 1.9rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
