/* ---- Personal site — Collison-inspired minimal ---- */

:root {
  --ink: #000;
  --muted: #555;
  --link: #0864c7;
  --great: #17792a;   /* favourites, in green */
  --line: #e2e2e2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover { text-decoration: none; }

/* ---- Page layout: content left, nav top-right ---- */

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 28px 80px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 48px;
}

.sidebar {
  width: 150px;
  flex-shrink: 0;
  text-align: right;
  position: sticky;
  top: 34px;
}

.site-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
}

.sidebar nav a {
  padding: 1px 0;
}

.content {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

/* ---- Headings & text ---- */

h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 40px 0 6px;
}

.year-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 4px;
}

p { margin: 0 0 14px; }

.intro em { color: var(--muted); }

.note { color: var(--muted); }

/* ---- Photos ---- */

.gallery {
  margin: 4px 0 8px;
}

.gallery figure { margin: 0 0 26px; }

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  background: #f2f2f2;
}

.gallery figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Book / documentary lists ---- */

.entry-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 6px;
}

.entry-list li {
  padding: 2px 0;
}

.entry-list .author {
  color: var(--muted);
}

.entry-list .fav {
  color: var(--great);
}

.star { color: var(--great); }

/* ---- Small screens ---- */

@media (max-width: 640px) {
  .page {
    flex-direction: column;
    gap: 24px;
    padding: 22px 20px 60px;
  }
  .sidebar {
    width: auto;
    text-align: left;
    position: static;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    gap: 16px;
  }
  .content { max-width: none; }
}
