/*
  Normal style: Grok's narrow, airy reading flow; blue headings from
  alternative.css; boxed social links inspired by Qwen; and the stacked
  media labels and links from Claude's rail stylesheet.
  The selectors match index.html and alternative.css so the stylesheet can
  be switched without copying or changing page content.
*/
:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #555;
  --link: #0b57d0;
  --heading: #183d59;
  --line: #e5e5e5;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.page { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 48px 46px 40px; }

/* Header flow and scale follow the restrained Grok layout. */
.intro { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.portrait-wrap { flex: 0 0 110px; width: 110px; height: 135px; background: #f0f0f0; }
.portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.intro-copy { flex: 1; min-width: 0; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.edition { display: none; }
h1 { margin: 0 0 8px; color: var(--heading); font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.lead { max-width: 480px; margin: 0 0 16px; color: #333; font-size: 16.5px; line-height: 1.5; }

/* Qwen-inspired link boxes keep LinkedIn and X easy to find. */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-link, .secondary-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--link);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.primary-link:hover { border-color: var(--link); background: var(--link); color: #fff; text-decoration: none; }
.secondary-link:hover { border-color: #aaa; background: #f5f5f5; text-decoration: none; }

/* The sections stay in one easy-to-edit vertical column. */
.profile, .selected-work { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.section-label { margin: 0 0 12px; }
.section-label > span { display: none; }
.section-label h2 { margin: 0; color: var(--heading); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.profile-copy { max-width: 800px; }
.profile-copy p { margin: 0 0 12px; }
.profile-copy p:last-child { margin-bottom: 0; }
.focus-list { display: grid; grid-template-columns: 1fr; gap: 5px; margin: 0; padding-left: 18px; }
.focus-list li::marker, .career-item li::marker { color: var(--heading); }

/* Career content and education remain plain text with light separators. */
.career-item { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.career-item:first-child { padding-top: 0; }
.career-item:last-of-type { padding-bottom: 0; border-bottom: 0; }
.career-item h3 { margin: 0 0 4px; color: var(--heading); font-size: 16px; font-weight: 600; }
.career-item h3 span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.career-item ul { display: grid; grid-template-columns: 1fr; gap: 3px; max-width: 90ch; margin: 6px 0 0; padding-left: 18px; }
.career-item li { margin: 2px 0; }
.career-list p { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.career-list p:first-child { padding-top: 0; }
.career-list p:last-of-type { border-bottom: 0; }
.career-list strong { display: block; color: var(--ink); }
.career-list span { display: block; color: var(--muted); font-size: 14px; }
.education .career-list p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; }
.education .career-list strong, .education .career-list span { display: inline; }
.education .career-list span { flex: 1 1 auto; }

/* Claude-inspired media rows: small context label, then a distinct linked title. */
.work-links { display: grid; gap: 4px; }
.work-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.work-links a:last-child { border-bottom: 0; }
.work-type { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; }
.work-title { display: block; color: var(--link); font-size: 16px; font-weight: 550; }
.work-links a:hover .work-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.work-links.career-list { gap: 0; }

footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; color: var(--muted); font-size: 13px; }
footer a { color: var(--link); }
footer a:last-child { margin-left: auto; }

@media (max-width: 560px) {
  .page { width: min(100%, 520px); padding: 32px 22px; }
  .intro { flex-direction: column; gap: 18px; }
  .portrait-wrap { flex-basis: 90px; width: 90px; height: 110px; }
  h1 { font-size: 28px; }
  .lead { font-size: 16px; }
}

@media (max-width: 380px) {
  .page { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
