/* One stylesheet for the card (/card) and the site (/). */
:root {
  --bg: #ffffff;
  --card: #f7f9fc;
  --ink: #0b1529;
  --muted: #4a5568;
  --accent: #1e3c8f;
  --accent-soft: #e7ecf7;
  --line: #e3e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 460px; margin: 0 auto; padding: 40px 20px 48px; }
a { color: var(--accent); }

header { text-align: center; }
.photo { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 2px 12px rgba(15, 26, 48, .12); }
h1 { font-size: 28px; line-height: 1.2; margin-top: 16px; letter-spacing: -.01em; }
.area { color: var(--accent); font-size: 15px; font-weight: 700; margin-top: 4px; }
.headline { font-weight: 600; margin-top: 12px; }
.headline span { white-space: nowrap; }
.tagline { font-style: italic; margin-top: 12px; }

.btn { display: block; padding: 13px 10px; border-radius: 12px; font-weight: 600; text-align: center; text-decoration: none; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-secondary { background: var(--card); color: var(--accent); }
.contact { margin-top: 14px; font-size: 15px; }

.bio { margin-top: 32px; }

section { margin-top: 36px; }
h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.item, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.item + .item { margin-top: 10px; }
.item h3 { font-size: 16px; }
.item p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.item-icon { display: flex; gap: 14px; align-items: flex-start; }
.icon { flex: none; box-sizing: border-box; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chips-light li { background: none; color: var(--muted); border-color: var(--line); }
.group { font-size: 14px; margin: 18px 0 8px; }
h2 + .group { margin-top: 0; }

.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.block h3 { font-size: 15px; }
.block p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.block-wide { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); }
.block-wide p { color: #fff; font-size: 17px; font-weight: 600; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-actions .btn { background: #fff; color: var(--accent); border-color: #fff; padding: 10px 18px; }

.fold { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fold + .fold { margin-top: 0; border-top: 0; }
.fold summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { margin: 0; }
.fold summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.fold[open] summary::after { content: "\2212"; }
.fold-body { padding-bottom: 16px; }

/* card only: boxed sections, bottom bar with the two actions, and the one-pager PDF it prints to */
.card main { padding-bottom: 120px; }
.blocks-stack { grid-template-columns: 1fr; }
.closing { margin-top: 40px; text-align: center; font-size: 17px; font-weight: 600; color: var(--accent); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px max(20px, calc((100% - 420px) / 2)) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.dock .btn { white-space: nowrap; }
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  .card { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .card main { max-width: none; padding: 0; }
  .card main > :not(header, .panel, .boxed), .card .contact, .card .dock, .card .emoji { display: none; }
  .card .print-only { display: block; }
  .card header { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: center; text-align: left; background: var(--ink); color: #fff; padding: 56px 64px; }
  .card header > * { grid-column: 1; margin: 0; }
  .card .photo { grid-column: 2; grid-row: 1 / 4; width: 150px; height: 150px; border: 0; box-shadow: none; }
  .card h1 { font-size: 44px; }
  .card .headline { font-size: 20px; font-weight: 700; color: #b9c8f2; }
  .card .school { font-size: 17px; }
  .card .panel, .card .boxed { background: none; border: 0; border-radius: 0; padding: 0; margin: 44px 64px 0; }
  .card .boxed .panel { margin: 0; }
  .card h2 { font-size: 15px; }
  .card .panel p { font-size: 17px; line-height: 1.6; }
  .card .chips { display: block; }
  .card .chips li { display: inline; background: none; border: 0; padding: 0; color: var(--ink); font-size: 17px; }
  .card .chips li + li::before { content: " / "; }
  .card .panel h3 { font-size: 16px; margin-top: 16px; }
  .card .panel h3 + p { font-size: 16px; }
  .card .panel a { text-decoration: none; }
}


/* site only: the card keeps the narrow column above */
html { scroll-behavior: smooth; }
body.site main { max-width: 720px; padding-top: 24px; }
body.site section { margin-top: 56px; scroll-margin-top: 72px; }
/* site header: one row of pill actions, then round channel icons */
body.site .photo { width: 128px; height: 128px; }
body.site h1 { font-size: 46px; letter-spacing: -.025em; margin-top: 24px; }
body.site .area { font-size: 16px; margin-top: 6px; }
body.site .headline { font-size: 18px; }
body.site .school { font-size: 17px; }
body.site .tagline { font-size: 18px; max-width: 736px; margin-left: auto; margin-right: auto; }
body.site .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
body.site .actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 11px 24px; font-size: 15px; line-height: 1.2; }
body.site .btn svg, .icon-links svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-links { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.icon-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--accent); }
.icon-links a:hover { background: var(--accent-soft); }
.topnav { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 14px max(20px, calc((100% - 1100px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topnav .brand { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topnav .links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav .links::-webkit-scrollbar { display: none; }
.topnav .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; padding: 8px 12px; border-radius: 6px; }
.topnav .links a:hover { color: var(--accent); background: var(--accent-soft); }
.lead { font-size: 18px; }
.lead + .lead, .bio + .bio { margin-top: 12px; }
.meta { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 10px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.passions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.passions .item { margin: 0; }
@media (min-width: 640px) {
  .passions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topnav { padding: 12px 16px; }
  .topnav .brand { display: none; }
  .topnav .links { margin-left: 0; width: 100%; gap: 12px; justify-content: space-between; }
  .topnav .links a { font-size: 14px; padding: 6px 0; }
  body.site h1 { font-size: 34px; }
  body.site .actions .btn { flex: 1 1 100%; }
}
