:root {
  color-scheme: light;
  --paper: #faf7ef;
  --ink: #253c3b;
  --muted: #52645c;
  --link: #145e66;
  --accent: #956037;
  --line: #ccd4c9;
  --note: #eef1e6;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 0.15em; }

:focus {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
  z-index: 1;
}

.skip-link:focus { transform: none; }

.site-header,
.site-footer,
main {
  width: calc(100% - 2.5rem);
  max-width: 46rem;
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
nav a { display: inline-block; padding: 0.5rem 0.25rem; }
nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 0.16em; }

main { padding-block: 3rem; }

h1, h2 { line-height: 1.2; text-wrap: balance; }
h1 { max-width: 18ch; margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; font-weight: 500; }
h2 { margin: 0 0 0.8rem; font-size: 1.4rem; }
p { margin: 0 0 1.1rem; }
section { margin-top: 2.5rem; }
li + li { margin-top: 0.9rem; }
ul, ol { padding-left: 1.5rem; }

.eyebrow { margin-bottom: 0.85rem; color: var(--accent); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; }
.lead { font-size: 1.25rem; line-height: 1.6; }
.updated { color: var(--muted); font-size: 0.9375rem; }
.journey { margin-bottom: 0; }
.note { padding: 1.5rem; border-left: 4px solid var(--accent); background: var(--note); }
.note p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin-bottom: 0.5rem; }

@media (max-width: 30rem) {
  main { padding-block: 2rem; }
  h1 { font-size: 2.25rem; }
  .note { padding: 1.1rem; }
}

@media (forced-colors: active) {
  :focus { outline-color: Highlight; }
  .note { border-color: CanvasText; }
}
