:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8c8c8c;
  --body: #cfcfcf;
  --line: #262626;
  --w: min(92vw, 680px);
  --serif: "Linux Libertine", "Georgia", "Times New Roman", Times, serif;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p a, .what a, .projects li a, .bottom p a { border-bottom: 1px solid var(--dim); transition: border-color 150ms ease; }
p a:hover, .what a:hover, .projects li a:hover, .bottom p a:hover { border-color: var(--fg); }
p a.win95, p a.win95:hover { border-bottom: 0; }
::selection { background: var(--fg); color: var(--bg); }

.top, .bottom, main { width: var(--w); margin: 0 auto; }

/* header */
.top { height: 84px; display: flex; align-items: center; justify-content: flex-end; }
.top:has(.win95) { justify-content: space-between; }

/* icons */
.icons { display: flex; align-items: center; gap: 16px; }
.icons a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 150ms ease, filter 150ms ease;
}
.icons svg { width: 20px; height: 20px; }
.icons a:hover, .icons a:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  outline: none;
}

/* content */
main { flex: 1; padding: 64px 0 80px; }
h1 { margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.intro p { max-width: 600px; margin: 0; font-size: 15px; line-height: 1.6; }

.timeline { margin-top: 40px; }
h2 { margin: 0 0 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.3; }

.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.when {
  font-size: 13px;
  color: var(--dim);
  padding-top: 2px;
  white-space: nowrap;
}
.what h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.what p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.what > a { display: inline-block; margin-top: 10px; font-size: 14px; }

/* win95 button */
.to-catalog { margin: 48px 0 0; }
.win95 {
  --face: #c3c3c3;
  --hi: #fff;
  --lo: #000;
  --mid: #808080;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 28px;
  padding: 0 14px;
  background: var(--face);
  color: #000;
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  border: 0;
  box-shadow:
    inset -1px -1px var(--lo),
    inset 1px 1px var(--hi),
    inset -2px -2px var(--mid),
    inset 2px 2px #dfdfdf;
  cursor: pointer;
  user-select: none;
}
.win95:hover { color: #000; }
.win95:active {
  box-shadow:
    inset -1px -1px var(--hi),
    inset 1px 1px var(--lo),
    inset -2px -2px #dfdfdf,
    inset 2px 2px var(--mid);
  padding: 1px 13px 0 15px;
}
.win95:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

/* projects page */
.projects { margin-top: 40px; }
.projects:first-of-type { margin-top: 28px; }
.projects .note { margin: -8px 0 18px; font-size: 14px; font-style: italic; color: var(--body); }
.projects ul { list-style: none; margin: 0; padding: 0; }
.projects li { padding: 20px 0; border-top: 1px solid var(--line); }
.projects li:first-child { border-top: 0; padding-top: 0; }
.projects h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.projects li p { max-width: 600px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.projects li > a { display: inline-block; margin-top: 10px; font-size: 14px; }
.place { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--dim); }

/* footer */
.bottom {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bottom p { margin: 0; font-size: 14px; }

@media (max-width: 560px) {
  .top { height: 68px; }
  main { padding: 40px 0 64px; }
  .timeline { margin-top: 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .when { padding-top: 0; }
  .to-catalog { margin-top: 36px; }
  .projects { margin-top: 32px; }
  .bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
