:root {
  --bg: #f0f4f8;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --slate: #334155;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-deep: #1e3a8a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2;
  background: var(--card);
  padding: 0.4rem 0.7rem;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
  font-size: 10.5pt;
  -webkit-font-smoothing: antialiased;
}

.toolbar {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
}

.toolbar a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.toolbar a:hover {
  text-decoration: underline;
}

.toolbar button {
  font: inherit;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  margin-left: auto;
}

.toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.sheet {
  max-width: 820px;
  margin: 0 auto 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.1rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.head {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.85rem;
}

.head__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.head h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.loc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.tagline {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 0.25rem;
}

.lead {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.lead a,
.box h3 a,
.box a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.lead a:hover,
.box h3 a:hover,
.box a:hover {
  text-decoration: underline;
}

.box h3 a {
  font-weight: 800;
}

h2 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.65rem;
}

.box h3 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.meta {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0.12rem 0 0.32rem;
}

.meta span::before {
  content: "·";
  margin: 0 0.4rem 0 0.3rem;
  color: var(--line);
}

.box ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--slate);
}

.box li {
  margin-bottom: 0.15rem;
}

.box p {
  font-size: 0.8rem;
  color: var(--slate);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.grid .box {
  margin-bottom: 0;
}

.caps {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  margin-top: 0.15rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
}

.chips li {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-deep);
}

.writing {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  margin-top: 0.65rem;
}

.education {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  margin-top: 0.65rem;
}

.edu-lead {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.edu-block + .edu-block {
  margin-top: 0.5rem;
}

.education h3 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.18rem;
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  font-size: 0.74rem;
}

.links a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.foot {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
}

.foot a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .grid,
  .links {
    grid-template-columns: 1fr;
  }

  .toolbar button {
    margin-left: 0;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 9.5pt;
  }

  .toolbar {
    display: none;
  }

  .sheet {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.5in 0.55in 0.45in;
  }

  .foot a,
  .lead a,
  .box h3 a,
  .box a,
  .writing .links a {
    color: var(--ink);
  }

  .education .links a {
    color: var(--blue);
    text-decoration: underline;
  }

  .education .links a::after {
    content: attr(href);
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    word-break: break-all;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0.05rem 0 0.2rem;
  }

  @page {
    size: letter;
    margin: 0;
  }
}
