:root {
  --ink: #0b0b0b;
  --muted: #3f3f3f;
  --accent: #1a0f12;
  --paper: #ffffff;
  --panel: #f7f7f7;
  --border: #e3e3e3;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100vh;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --muted: #b9b9b9;
    --accent: #ffffff;
    --paper: #0f0f0f;
    --panel: #1a1a1a;
    --border: #2b2b2b;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }

  body {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  }

  .link-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  }
}

.page {
  max-width: 980px;
  margin: 48px auto 64px;
  padding: 36px 40px 48px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.home-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--border);
}

.hero-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.hero-home {
  padding-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  margin: 0 0 8px;
  color: var(--ink);
}

h2 {
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 100;
}

h2.divider::after {
  /* places one full width thin line after this content like a hr */
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  width: 100%;
}


.role {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.target {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.contact {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--border);
}

.contact span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.topnav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  justify-content: center;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.topnav a:hover {
  border-bottom-color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.print-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.print-btn:hover {
  border-color: var(--ink);
}

.theme-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.theme-btn:hover {
  border-color: var(--ink);
}

.section {
  padding: 26px 0 0;
}

.section h2 {
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 1.35rem;
}

.section p {
  margin: 0 0 6px;
}

.summary {
  font-style: italic;
  color: var(--muted);
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.link-card {
  display: block;
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.link-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

ul {
  padding-left: 18px;
  margin: 0;
}

.experience {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;

  ul,
  .subsection {
    padding-left: 20px;
  }
}

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;

  h3 {
    margin: 0;
    font-size: 1.15rem;
  }

  h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted)
  }

  p {
    margin: 2px 0 0;
  }
}

.sub {
  color: var(--muted);
}

.meta {
  font-weight: 600;
  color: var(--ink);
}

.subsection {
  padding-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.expectation,
.impact-block {
  background: var(--panel);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 6px;
}

.result {
  margin-top: 8px;
  color: var(--ink);
}

.print-only {
  display: none;
}

@media (max-width: 820px) {
  .page {
    margin: 24px;
    padding: 28px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topnav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }
}

@media print {
  body {
    font-size: 11pt;
    line-height: 1.35;
  }

  h1 {
    font-size: 20pt;
    margin-bottom: 4px;
  }

  .role {
    font-size: 11pt;
  }

  .target {
    font-size: 10pt;
  }

  .eyebrow {
    font-size: 8pt;
    margin-bottom: 6px;
  }

  .section h2 {
    font-size: 12pt;
  }

  :root {
    --ink: #000000;
    --muted: #000000;
    --accent: #000000;
    --paper: #ffffff;
    --panel: #ffffff;
    --border: #ffffff;
    --shadow: none;
  }

  body {
    background: #ffffff;
  }

  .page {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

  .hero,
  .experience,
  .card,
  .contact,
  .expectation,
  .impact-block,
  .link-card {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .contact {
    display: flex;
    flex-direction: column;
  }

  .site-header {
    display: none;
  }

  .print-btn {
    display: none;
  }

  .theme-btn {
    display: none;
  }

  .print-hide {
    display: none;
  }

  .print-only {
    display: block;
  }

  .hero {
    padding-bottom: 8px;
  }

  .section {
    padding-top: 8px;
  }

  .contact {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8mm;
    margin-right: 10mm;
  }

  .grid,
  .link-grid,
  .two-col {
    gap: 10px;
  }

  .card,
  .experience,
  .expectation,
  .impact-block {
    padding: 0px 10px;
  }

  .experience {
    margin-bottom: 0;
  }

  ul {
    padding-left: 14px;
  }

  li {
    margin-bottom: 4px;
  }

  .subsection {
    padding-top: 6px;
  }

  .result {
    margin-top: 4px;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  /* a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  } */
}

html[data-theme="dark"] {
  --ink: #f2f2f2;
  --muted: #b9b9b9;
  --accent: #ffffff;
  --paper: #0f0f0f;
  --panel: #1a1a1a;
  --border: #2b2b2b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

html[data-theme="dark"] .link-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] {
  --ink: #0b0b0b;
  --muted: #3f3f3f;
  --accent: #1a0f12;
  --paper: #ffffff;
  --panel: #f7f7f7;
  --border: #e3e3e3;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}