/* igl-web.de / shogoki.* — one-page profile. Same palette & type as the CV (source/resume.css). */

:root {
  --ink: #1b1f24;
  --muted: #5b6470;
  --accent: #1d4e89;
  --on-accent: #ffffff;
  --rule: #dfe3e8;
  --card: #f5f7fa;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4e8ee;
    --muted: #9aa5b3;
    --accent: #86b4f0;
    --on-accent: #0d1a2c;
    --rule: #2a323d;
    --card: #161b22;
    --bg: #0e1216;
  }
  img.mono { filter: invert(1); }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

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

/* ---------- top nav & hero ---------- */

nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  padding: 1.1rem 0 0;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
nav.top a { color: var(--muted); }
nav.top a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 3.5rem 0 1.5rem; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.hero .headline {
  margin: .6rem 0 1.1rem;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero .tagline {
  margin: 0;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: 1.4rem 0 1.2rem;
  font-size: .95rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
}
.links a:hover { color: var(--accent); text-decoration: none; }
.links .icon { width: 1em; height: 1em; opacity: .85; }

.button {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: .45rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- sections ---------- */

h2 {
  margin: 2.8rem 0 1rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

p { margin: 0 0 .9rem; }

/* ---------- project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: .7rem;
  background: var(--card);
}
.card h3 { margin: 0 0 .2rem; font-size: 1.08rem; line-height: 1.3; }
.card .meta { margin: 0 0 .55rem; color: var(--muted); font-size: .85rem; }
.card p { margin: 0; font-size: .97rem; }

/* ---------- skills ---------- */

.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: .3rem .9rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--rule);
}
.skills li:last-child { border-bottom: 0; }
.skills li strong { font-weight: 600; }

/* ---------- timeline (experience / education) ---------- */

.timeline h3 {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .3rem 1rem;
  margin: 1.4rem 0 .15rem;
  font-size: 1.08rem;
  line-height: 1.3;
}
.timeline h3:first-child { margin-top: .4rem; }
.timeline h3 time {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.timeline .org { margin: 0 0 .3rem; color: var(--muted); font-size: .92rem; }
.timeline p { margin: 0 0 .4rem; }

/* ---------- footer ---------- */

footer { margin-top: 1rem; }
footer .fine { margin-top: 2rem; color: var(--muted); font-size: .85rem; }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .hero { padding-top: 2.5rem; }
  .skills li { grid-template-columns: 1fr; gap: .1rem; }
  .timeline h3 { grid-template-columns: 1fr; }
  .timeline h3 time { justify-self: start; }
}
