:root {
  color-scheme: light;
  --ink: #181716;
  --muted: #69635d;
  --line: #ddd7ce;
  --paper: #fffdf8;
  --soft: #f4efe6;
  --accent: #176b68;
  --accent-2: #8c2f24;
  font: 18px/1.55 Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

main {
  width: min(740px, calc(100% - 34px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

header {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.portrait {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0;
}

h2 {
  font-size: 1.2rem;
  margin: 34px 0 10px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
}

.standfirst {
  font-size: 1.15rem;
}

.updated,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.tag {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-right: 6px;
}

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  header {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 88px;
  }
}
