*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d6a4f;
  --text: #1b1b1b;
  --text-muted: #4a4a4a;
  --bg: #fafdf9;
  --border: #b7e4c7;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--green-mid);
}

a:hover {
  color: var(--green-dark);
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.site-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
}

h1 {
  font-size: 2.25rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
  color: var(--green-dark);
}

.strapline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  text-decoration: none;
}

.icon-link svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.icon-link--linkedin {
  color: #0a66c2;
}

.icon-link--linkedin:hover {
  color: #004182;
}

.icon-link--github {
  color: #24292f;
}

.icon-link--github:hover {
  color: #000;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--green-dark);
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

.timeline {
  position: relative;
  margin-top: 0.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.75rem 1.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
}

.timeline-date {
  margin: 0;
  padding-top: 0.45rem;
  text-align: right;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
}

.timeline-date::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: 0.7rem;
  width: 0.55rem;
  height: 2px;
  background: var(--border);
}

.timeline-connector {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item:first-child .timeline-connector::before {
  top: 0.7rem;
}

.timeline-item:last-child .timeline-connector::before {
  bottom: 1.75rem;
}

.timeline-connector::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-body {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1.75rem;
  min-width: 0;
}

.timeline-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}

.timeline-details {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-details li {
  margin-bottom: 0.35rem;
}

.timeline-details li:last-child {
  margin-bottom: 0;
}

.timeline-role {
  margin: 0 0 0.5rem;
  font-style: italic;
  color: var(--text-muted);
}

.writing-subtitle {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.writing-subtitle:first-of-type {
  margin-top: 0;
}

.writing-examples {
  font-size: 0.92rem;
  font-style: italic;
}

.writing-examples a {
  display: inline;
}

blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--text);
}

.project-name {
  font-weight: bold;
}

.link-stack a {
  display: block;
  margin-bottom: 0.35rem;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
