:root {
  color-scheme: light;
  --background: #f6f5f1;
  --paper: #fff;
  --ink: #23384a;
  --text: #46505a;
  --muted: #6d7882;
  --line: #dedfd9;
  --accent: #35615a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 8px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 10; background: #f6f5f1f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-inner { max-width: 1160px; margin: 0 auto; height: 76px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.3; }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 21px; font-weight: 550; font-family: Georgia, serif; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .12em; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.print-button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 8px; }
.download-button { display: inline-flex; align-items: center; gap: 20px; background: var(--ink); color: white; padding: 9px 18px; font-size: 13px; line-height: 1.7; border-radius: 3px; }
.download-button:hover { background: #355268; }
.page-shell { max-width: 1160px; margin: 0 auto; padding: 0 36px; }
.hero { padding: 66px 0 48px 222px; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 12px; font-weight: 550; letter-spacing: .12em; }
h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 5vw, 64px); line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.hero-role { margin: 16px 0 24px; font-size: 20px; color: var(--ink); line-height: 1.7; letter-spacing: .01em; }
.contact-row { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; font-size: 13px; line-height: 1.7; }
.contact-row a:hover { color: var(--accent); }
.contact-label { margin-right: 8px; font-size: 11px; color: var(--muted); }
.resume-layout { display: grid; grid-template-columns: 178px minmax(0, 1fr); align-items: start; gap: 44px; }
.sidebar { position: sticky; top: 112px; padding-top: 13px; }
.sidebar-label { color: var(--muted); font-size: 10px; letter-spacing: .16em; margin: 0 0 15px; }
.contents { display: flex; flex-direction: column; }
.contents a { display: flex; gap: 14px; align-items: center; padding: 11px 0; font-size: 13px; color: var(--muted); transition: color .2s; }
.contents a span { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .6; }
.contents a:hover, .contents a[aria-current="location"] { color: var(--ink); font-weight: 600; }
.contents a[aria-current="location"] span { color: var(--accent); opacity: 1; }
.word-link { display: block; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 23px; color: var(--muted); font-size: 11px; }
.word-link span { margin-left: 8px; }
main { min-width: 0; background: var(--paper); border: 1px solid var(--line); padding: 35px 43px 18px; border-radius: 4px; }
.resume-section { padding-bottom: 35px; margin-bottom: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.resume-section:last-child { margin-bottom: 0; border-bottom: none; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-number { font-size: 10px; color: var(--accent); font-weight: 550; font-variant-numeric: tabular-nums; }
h2 { margin: 0; font-size: 19px; color: var(--ink); line-height: 1.5; letter-spacing: .04em; font-weight: 650; }
p { margin: 0 0 14px; }
.section-overview p { margin-bottom: 0; line-height: 2; }
.detail-list { padding: 0; margin: 0; list-style: none; }
.detail-list li { position: relative; padding-left: 16px; margin-bottom: 13px; }
.detail-list li::before { content: ""; width: 4px; height: 4px; background: #8d9e9c; position: absolute; left: 0; top: .88em; border-radius: 50%; }
.detail-list li:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
.section-skills .detail-list li { padding: 0; margin-bottom: 14px; }
.section-skills .detail-list li::before { display: none; }
.section-skills strong { display: block; color: var(--accent); font-size: 12px; letter-spacing: .03em; margin-bottom: 4px; }
.entry { margin-top: 25px; }
.entry + .entry { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e8e9e5; }
h3 { margin: 0 0 7px; font-size: 17px; font-weight: 650; color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; }
.entry-meta { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 16px; }
.section-experience .entry { position: relative; padding-left: 20px; border-left: 1px solid var(--line); margin-top: 24px; }
.section-experience .entry::before { content: ""; position: absolute; left: -4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent); }
.section-experience .entry + .entry { border-top: none; padding-top: 0; }
.section-experience .entry:last-child p:last-child { margin-bottom: 0; }
.section-education p:last-child { margin-bottom: 0; }
.footer { margin-left: 222px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 24px 0 46px; color: var(--muted); font-size: 11px; }
@media (min-width: 1350px) { body { font-size: 15.5px; } }
@media (max-width: 1000px) {
  .topbar-inner, .page-shell { padding-left: 24px; padding-right: 24px; }
  .hero { padding-left: 0; }
  .resume-layout { grid-template-columns: 138px minmax(0, 1fr); gap: 26px; }
  main { padding: 30px; }
  .contents a { gap: 8px; font-size: 12px; }
  .footer { margin-left: 164px; }
}
@media (max-width: 720px) {
  :root { scroll-padding-top: 135px; }
  body { font-size: 14px; line-height: 1.9; }
  .topbar-inner { height: 64px; padding: 0 20px; }
  .topbar-actions { gap: 10px; }
  .download-button { padding: 8px 13px; gap: 12px; font-size: 12px; }
  .print-button { font-size: 12px; padding: 6px; }
  .page-shell { padding: 0 20px; }
  .hero { padding: 36px 0 30px; }
  .eyebrow { font-size: 10px; }
  .hero-role { font-size: 16px; margin: 12px 0 20px; }
  .contact-row { gap: 10px 19px; font-size: 12px; }
  .location { flex-basis: 100%; }
  .resume-layout { display: block; }
  .sidebar { position: sticky; top: 64px; z-index: 9; padding: 0; margin: 0 -20px; background: var(--background); border-bottom: 1px solid var(--line); }
  .sidebar-label, .word-link { display: none; }
  .contents { flex-direction: row; overflow-x: auto; padding: 0 20px; gap: 22px; scrollbar-width: none; }
  .contents::-webkit-scrollbar { display: none; }
  .contents a { flex-shrink: 0; padding: 12px 0; font-size: 12px; }
  .contents a span { display: none; }
  main { padding: 29px 22px 5px; margin-top: 22px; }
  .resume-section { padding-bottom: 28px; margin-bottom: 28px; scroll-margin-top: 135px; }
  .section-heading { margin-bottom: 19px; gap: 10px; }
  h2 { font-size: 17px; }
  h3 { font-size: 16px; }
  .entry-meta { font-size: 11px; }
  .entry + .entry { margin-top: 27px; padding-top: 23px; }
  .detail-list li { padding-left: 13px; margin-bottom: 13px; }
  .footer { margin-left: 0; padding-bottom: 30px; gap: 8px 14px; font-size: 10px; }
}
@media (max-width: 380px) {
  .topbar-inner, .page-shell { padding-left: 16px; padding-right: 16px; }
  .brand-mark { display: none; }
  .sidebar { margin-left: -16px; margin-right: -16px; }
  .contents { padding-left: 16px; padding-right: 16px; }
  main { padding-left: 17px; padding-right: 17px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } .contents a { transition: none; } }
@page { size: A4; margin: 13mm 15mm; }
@media print {
  :root { color-scheme: light; }
  body { background: white; font-size: 9.3pt; line-height: 1.36; color: #222; }
  .topbar, .sidebar, .skip-link, .footer, .eyebrow, .contact-label { display: none !important; }
  .page-shell { max-width: none; padding: 0; }
  .hero { padding: 0 0 13pt; }
  h1 { font-size: 23pt; }
  .hero-role { font-size: 11pt; margin: 6pt 0; }
  .contact-row { font-size: 9pt; gap: 16pt; }
  .location { flex-basis: auto; }
  .resume-layout { display: block; }
  main { margin: 0; padding: 0; border: 0; border-radius: 0; }
  .resume-section { padding-bottom: 8pt; margin-bottom: 9pt; border: 0; }
  .section-heading { margin-bottom: 5pt; gap: 8pt; break-after: avoid; }
  .section-number { display: none; }
  h2 { font-size: 11pt; letter-spacing: 0; }
  h3 { font-size: 10pt; margin-bottom: 3pt; break-after: avoid; }
  .entry, .entry + .entry { margin-top: 8pt; padding-top: 0; border: 0; }
  .entry-meta { font-size: 8.5pt; margin-bottom: 4pt; break-after: avoid; }
  p { margin-bottom: 5pt; }
  .section-overview p { line-height: 1.45; }
  .detail-list li { margin-bottom: 4pt; padding-left: 8pt; break-inside: avoid; }
  .detail-list li::before { width: 2pt; height: 2pt; }
  .section-skills strong { display: inline; font-size: inherit; margin: 0; }
  .section-skills .detail-list li { margin-bottom: 4pt; }
  .section-experience .entry { padding-left: 0; border: none; }
  .section-experience .entry::before { display: none; }
  .print-break { break-before: page; }
  a { color: inherit; }
}
