:root {
  color-scheme: light;
  --background: #fafbf9;
  --text: #242925;
  --muted: #606761;
  --accent: #28664e;
  --line: #dce1db;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 18px; }
h1, h2, h3 { line-height: 1.2; font-weight: 400; }
h1, h2 { font-family: var(--serif); }
h1 { margin: 0 0 24px; font-size: 56px; }
h2 { margin: 0 0 25px; font-size: 30px; }
h3 { margin: 0; font-size: 18px; font-weight: 600; }

.page { width: min(100% - 64px, 960px); margin-inline: auto; }
.site-header, .site-header nav, .site-footer { display: flex; align-items: center; }
.site-header { justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; }
.wordmark { font-size: 20px; font-weight: 600; }
.accent { color: var(--accent); }
.site-header nav { gap: 30px; }
.site-header nav a { color: var(--muted); font-size: 14px; }
.site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.intro { padding-block: 76px 64px; max-width: 740px; }
.eyebrow { margin-bottom: 25px; color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.lead { max-width: 580px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.text-link { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: 6px; }
.section { padding-block: 44px; border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 70px; }
.about p, .entry p, .entry li, .skills dd { color: var(--muted); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 4px; background: #e1e7df; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.social-links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.social-links a:hover { border-color: var(--accent); }
.social-links strong { font-size: 17px; font-weight: 600; }
.link-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.site-footer { justify-content: space-between; gap: 18px; margin-top: 38px; padding-block: 25px 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.contact-line a { overflow-wrap: anywhere; }
.cv .intro { max-width: none; }
.cv-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
.cv-section h2 { font-size: 26px; }
.entry + .entry { margin-top: 34px; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; }
.date { font-size: 13px; color: var(--muted); }
.organization { margin-top: 8px; font-size: 14px; }
.entry ul { margin: 14px 0 0; padding-left: 20px; }
.entry li + li { margin-top: 8px; }
.entry p:last-child { margin-bottom: 0; }
.skills { margin: 0; }
.skills > div + div { margin-top: 20px; }
.skills dt { font-size: 14px; font-weight: 600; }
.skills dd { margin: 4px 0 0; }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 8px 14px; background: var(--background); z-index: 1; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

button, input { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled, fieldset:disabled button { cursor: default; opacity: .55; }
button svg { width: 16px; height: 16px; flex-shrink: 0; }
input:not([type="checkbox"]) { min-width: 0; width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); font-size: 16px; }
input[type="checkbox"] { width: 19px; height: 19px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.primary-button { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary-button:hover:not(:disabled) { background: #1e503d; color: #fff; }
.danger-button { color: #a12d36; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lists { padding-top: 44px; }
.list-heading, .active-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.list-heading h1 { font-size: 38px; margin: 0; }
.list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.list-actions a { margin-left: 10px; color: var(--muted); font-size: 14px; }
.sync-status, .task-progress { color: var(--muted); font-size: 13px; margin-block: 12px 22px; }
.list-error { padding: 12px 16px; border-left: 3px solid #a12d36; background: #fff0f0; color: #8a2630; overflow-wrap: anywhere; }
.list-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; min-height: 380px; }
.list-sidebar { border-right: 1px solid var(--line); padding-right: 24px; min-width: 0; }
.list-sidebar h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.list-navigation { display: grid; gap: 6px; }
.list-choice { width: 100%; justify-content: space-between; text-align: left; border-color: transparent; min-height: 44px; }
.list-choice > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.list-choice[aria-pressed="true"] { background: #e8efea; color: var(--accent); }
.list-count { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.new-list { display: grid; gap: 10px; margin-top: 28px; }
.new-list label { font-size: 13px; color: var(--muted); }
.task-area { min-width: 0; }
.active-list-heading { gap: 12px; }
.active-list-heading h2 { font-family: var(--sans); font-size: 22px; font-weight: 600; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.new-task { display: flex; gap: 10px; }
.new-task button { flex-shrink: 0; }
.task-list { list-style: none; padding: 0; margin: 22px 0; }
.task-row { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task-row label { display: flex; align-items: flex-start; gap: 12px; min-width: 0; cursor: pointer; }
.task-row label span { overflow-wrap: anywhere; min-width: 0; }
.task-row.completed label span { text-decoration: line-through; color: var(--muted); }
.task-actions { display: flex; gap: 4px; flex-shrink: 0; }
.task-actions button { font-size: 12px; min-height: 34px; padding: 4px 7px; border-color: transparent; }
.empty-state { padding-block: 24px; color: var(--muted); }
.empty-state h2 { color: var(--text); }
dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 6px; padding: 28px; color: var(--text); background: var(--background); }
dialog::backdrop { background: rgb(0 0 0 / 35%); }
dialog h2 { font-size: 26px; margin-bottom: 16px; }
dialog p { color: var(--muted); overflow-wrap: anywhere; }
dialog label { display: block; margin-bottom: 8px; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
[hidden] { display: none !important; }

@media (max-width: 680px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding-block: 22px; flex-wrap: wrap; gap: 12px; }
  .site-header nav { gap: 20px; }
  .intro { padding-block: 52px 44px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .section { padding-block: 34px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  figure img { aspect-ratio: 3 / 2; }
  .social-links { grid-template-columns: 1fr; gap: 12px; }
  .cv-section { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 20px; }
  .lists { padding-top: 30px; }
  .list-heading h1 { font-size: 32px; }
  .list-workspace { grid-template-columns: 1fr; gap: 28px; }
  .list-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .list-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-list { grid-template-columns: minmax(0, 1fr) auto; }
  .new-list label { grid-column: 1 / -1; }
  .task-row { flex-wrap: wrap; gap: 6px; }
  .task-row label { width: 100%; }
  .task-actions { margin-left: 24px; }
}

@media print {
  :root { --background: #fff; --text: #000; --muted: #333; }
  body { font-size: 11pt; }
  .page { width: 100%; max-width: none; }
  .site-header, .site-footer, .skip-link { display: none; }
  .intro { padding-block: 0 20px; }
  h1 { font-size: 32pt; margin-bottom: 12px; }
  .lead { font-size: 12pt; }
  .section { padding-block: 20px; }
  .cv-section { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .entry { break-inside: avoid; }
  a { text-decoration: none; }
  @page { margin: 16mm; }
}