/* karimhackmann.com
   Colours from the Monkeymind system: Primary White #FAF9F6, Charcoal #313639.
   Steps only through Charcoal opacity. No shadows, no borders, no accents.
   Links are never underlined, only on hover; their colours never change. */

:root {
  --bg: #FAF9F6;
  --fg: #313639;
  --fg-2: rgba(49, 54, 57, 0.6);
  --fg-3: rgba(49, 54, 57, 0.4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }
a.name:hover { text-decoration: none; }

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.name { font-weight: 600; }
.links { display: flex; gap: 20px; }
.links a { color: var(--fg-2); }

/* About: photo left, text right, on one height */
.about {
  margin-top: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.photo {
  display: block;
  flex: none;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
}
.about p { margin: 0; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
}
/* Every entry has the same height (title + two description lines), top-aligned,
   so the dates on the left always sit at the same distance from each other. */
.timeline li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: start;
  min-height: calc(3 * 1.55em);
  margin-bottom: 20px;
}
.timeline li:last-child { margin-bottom: 0; }
.year {
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.title { display: block; }
.desc { display: block; color: var(--fg-2); }

.now .year { color: var(--fg); }
.now .title { font-weight: 600; }

/* Footer */
.bottom {
  margin-top: 96px;
  font-size: 14px;
  color: var(--fg-3);
}
.dot { margin: 0 8px; }

/* Legal pages */
.legal h1 {
  margin: 72px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.legal h2 {
  margin: 40px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.legal p, .legal ul { margin: 12px 0 0; color: var(--fg-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.back { color: var(--fg-2); }

/* Small screens: photo above the text */
@media (max-width: 480px) {
  .page { padding: 40px 20px 40px; }
  .links { gap: 16px; }
  .about { margin-top: 56px; display: block; }
  .photo { width: 112px; height: 112px; }
  .about p { margin-top: 24px; }
  .timeline { margin-top: 56px; }
  .timeline li { grid-template-columns: 92px 1fr; gap: 12px; min-height: 0; }
  .bottom { margin-top: 72px; }
}

a:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
