:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #30302e;
  --muted: #787871;
  --line: #e4e3dd;
  --accent: #4e5e37;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrapper { width: min(36rem, calc(100% - 3rem)); margin-inline: auto; }
a { color: inherit; text-decoration-color: #b8b8ae; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1.4rem; }

.site-header {
  position: fixed;
  top: 7.5rem;
  left: max(2rem, calc((100vw - 72rem) / 2));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}
.site-name { display: inline-block; margin-bottom: 1.3rem; color: var(--ink); font-weight: 600; text-decoration: none; }
nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
nav a { display: block; padding-block: 0.4rem; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
nav a:hover { color: var(--ink); text-decoration: underline; }

main { padding-top: 7rem; }
.page-heading { margin-bottom: 1.25rem; }
h1, h2 { font-weight: 400; line-height: 1.3; }
h1 { margin: 0 0 0.2rem; font-size: 1.85rem; letter-spacing: -0.035em; }
.subtitle { margin: 0; color: var(--muted); font-size: 1.3rem; line-height: 1.5; letter-spacing: -0.025em; }
h2 { margin: 0 0 1rem; font-size: 1.25rem; letter-spacing: -0.02em; }
section, .project { margin-top: 2.6rem; }
.project-note { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.78rem; }
.site-footer { margin-top: 4rem; padding-block: 1.25rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.72rem; }
.site-footer p { margin: 0; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: 0.5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
main a { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .site-header { position: static; width: min(36rem, calc(100% - 3rem)); margin-inline: auto; padding-top: 2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
  .site-name { margin: 0; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
  main { padding-top: 3.5rem; }
}

@media (max-width: 480px) {
  :root { font-size: 17px; }
  .wrapper, .site-header { width: calc(100% - 2.5rem); }
  .site-header { flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; }
  nav { gap: 1.5rem; }
  main { padding-top: 2.5rem; }
  .site-footer { margin-top: 3rem; }
}
