:root {
  color-scheme: light;
  --paper: #fbfbf8;
  --ink: #202124;
  --muted: #68635d;
  --line: #d7d2c8;
  --soft-line: #ece7de;
  --accent: #1d6f70;
  --accent-warm: #a24d35;
  --panel: #f3f6f2;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-warm);
}

.site-header,
.site-footer,
.page {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent-warm);
  text-decoration: underline;
}

.page {
  padding-bottom: 24px;
}

.intro {
  padding: 34px 0 18px;
}

.kicker,
.entry-date,
.post-heading time,
.map-figure figcaption,
.section-heading p,
.site-footer {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.kicker {
  margin: 0 0 12px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 7vw, 3.7rem);
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
}

h3 {
  margin: 32px 0 9px;
  font-size: 1.2rem;
}

p {
  margin-bottom: 20px;
}

hr {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: linear-gradient(to right, transparent, var(--line) 14%, var(--line) 86%, transparent);
}

.post-heading {
  margin-bottom: 26px;
}

.map-figure {
  margin: 26px 0 34px;
}

.map-figure img {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  object-fit: cover;
}

.map-figure figcaption {
  margin-top: 10px;
}

blockquote {
  margin: 28px 0;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--accent);
  color: #343633;
  font-size: 1.22rem;
  line-height: 1.55;
}

.section {
  padding: 2px 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
}

.timeline {
  border-top: 1px solid var(--soft-line);
}

.entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--soft-line);
}

.entry-date {
  margin: 4px 0 0;
}

.entry h3 {
  margin-top: 0;
}

.entry ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.entry li {
  margin: 8px 0;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 36px;
}

.skill-groups section {
  border-top: 1px solid var(--soft-line);
  padding-top: 16px;
}

.skill-groups h3 {
  margin-top: 0;
}

.skill-groups p,
.contact p {
  margin-bottom: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 48px;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .site-header {
    display: block;
    padding-top: 28px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .site-header,
  .site-footer,
  .page {
    width: min(calc(100% - 28px), var(--max));
  }

  .intro {
    padding-top: 22px;
  }

  hr {
    margin: 34px 0;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .map-figure img {
    min-height: 180px;
  }
}
