:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #252525;
  --secondary: #626262;
  --line: #dedede;
  --accent: #323232;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191919;
    --ink: #f2f2f2;
    --secondary: #b9b9b9;
    --line: #454545;
    --accent: #cdcdcd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 64px) 20px;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 48px clamp(24px, 6vw, 64px) 32px;
  border-left: 9px solid var(--accent);
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.descriptor {
  margin: 0;
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin-top: 28px;
  font-size: 0.9375rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-block: 8px;
}

.history { margin-top: 42px; }

h2 {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline { margin: 0; }

.entry {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  padding-top: 22px;
}

.entry dt {
  padding-top: 3px;
  color: var(--secondary);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.entry dd { margin: 0; }
h3 { margin: 0; font-size: 0.9375rem; line-height: 1.5; font-weight: 500; }
.entry p { margin: 3px 0 0; color: var(--secondary); font-size: 0.8125rem; }

.history-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 18px 0 0 114px;
  color: var(--secondary);
  font-size: 0.8125rem;
}

.page-footer {
  margin-top: 32px;
  color: var(--secondary);
  font-size: 0.8125rem;
}

.page-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; }
.page-footer::after { content: ""; display: block; margin-top: 24px; width: 28px; height: 3px; background: var(--accent); }

.contact-page { display: flex; align-items: center; }
.page--contact { max-width: 640px; }
.save-section { margin-top: 26px; }

.save-contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  text-decoration: none;
}

.save-contact:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 440px) {
  body { padding: 20px 16px; }
  .page { padding: 34px 22px 26px; border-left-width: 7px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .history-link { margin-left: 0; }
}

@media print {
  :root { color-scheme: light; --paper: #fff; --ink: #252525; --secondary: #626262; --line: #dedede; --accent: #323232; }
  body { padding: 0; min-height: auto; }
  .page { border-left-width: 3px; }
  .save-section, .page-footer { display: none; }
}
