:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-subtle: #f6f8fa;
  --ink: #202b33;
  --secondary: #55616d;
  --link: #2457a7;
  --rule: #dfe4e9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scrollbar-color: #a8b1ba var(--surface);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.7; }
::selection { background: #dbe9ff; color: #17243d; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #143e80; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; border-radius: 1px; }
p, ul { margin: 0; }
.profile { width: min(100% - 48px, 44rem); margin: 0 auto; padding: 80px 0 88px; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 12px; }
.identity { color: var(--secondary); font-size: 17px; }
.intro-copy { max-width: 68ch; margin-top: 24px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.career { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--rule); }
.career h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 620; margin: 0 0 28px; }
.career h2:focus { outline: none; }
.career h2:focus-visible { outline: 2px solid var(--link); outline-offset: 6px; }
.career h3 { font-size: 20px; line-height: 1.4; font-weight: 620; margin: 0 0 2px; }
.career h3 + p { color: var(--secondary); font-size: 15px; margin-bottom: 20px; }
.career .role-list { padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.career .role-list strong { font-weight: 600; }
.role-dates { white-space: nowrap; }
.role-separator { white-space: pre; }
.career p { max-width: 70ch; }
.career .achievements { margin-top: 22px; padding-left: 20px; }
.career .achievements li { padding-left: 5px; margin-bottom: 15px; max-width: 70ch; }
.career li::marker { color: var(--secondary); font-size: 0.8em; }
.career li:last-child { margin-bottom: 0; }
.experience-detail { margin-top: 10px; scroll-margin-top: 28px; }
.experience-detail[open] { padding-bottom: 12px; }
.experience-detail > summary { color: var(--link); cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 0.22em; }
.experience-detail > summary:hover { color: #143e80; }
.experience-detail > summary:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.experience-detail[open] > summary { margin-bottom: 16px; }
.detail-content { background: var(--surface-subtle); border: 1px solid var(--rule); padding: 20px; font-size: 16px; line-height: 1.65; }
.detail-content h4 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 20px 0 6px; }
.detail-content h4:first-child { margin-top: 0; }
.career .detail-content p { margin: 0 0 12px; }
.career .detail-content p:last-child { margin-bottom: 0; }
.skip-link { position: absolute; left: 24px; top: 12px; padding: 4px 8px; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.7; }
  .profile { padding: 44px 0 56px; }
  h1 { font-size: 34px; }
  .identity { font-size: 16px; }
  .intro-copy { margin-top: 22px; }
  .career { margin-top: 40px; padding-top: 28px; }
  .career h2 { font-size: 22px; margin-bottom: 24px; }
  .career h3 { font-size: 19px; }
  .career .role-list { font-size: 14px; gap: 10px; }
  .role-list li { display: grid; gap: 1px; }
  .role-dates { color: var(--secondary); }
  .role-separator { display: none; }
  .career .achievements { padding-left: 18px; }
  .career .achievements li { padding-left: 3px; margin-bottom: 17px; }
  .detail-content { padding: 16px; }
}

@media print {
  @page { size: A4; margin: 18mm; }
  body { font-size: 11pt; }
  .profile { width: auto; padding: 0; }
  h1 { font-size: 25pt; }
  .skip-link { display: none; }
  .career { margin-top: 24px; padding-top: 18px; }
  .career li { break-inside: avoid; }
  .career h2, .career h3 { break-after: avoid; }
}
