:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #272623;
  --muted: #66635d;
  --rule: #c9c4b8;
  --accent: #675e4b;
  --focus: #8f582b;
  --surface: #ede8df;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b1a17;
  --ink: #ede8df;
  --muted: #bdb7aa;
  --rule: #595349;
  --accent: #c8bfae;
  --focus: #e3a16b;
  --surface: #292620;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Georgia, "Times New Roman", serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .5rem .75rem; }
.skip-link:focus { left: 1rem; }
.site-shell { width: min(100% - 3rem, 1110px); margin: 0 auto; }
.site-header { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink); }
.site-name { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1; font-weight: normal; text-decoration: none; letter-spacing: -.025em; }
.header-controls { display: flex; align-items: center; gap: .8rem; }
.language-switch, .theme-switch { display: flex; align-items: center; gap: .25rem; font: 700 .78rem/1 Arial, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.language-switch button, .theme-switch button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .65rem .45rem; font: inherit; }
.language-switch button[aria-pressed="true"], .theme-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.page-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5rem); min-height: 70vh; }
.site-nav { border-right: 1px solid var(--rule); padding: 2.3rem 1.2rem 2rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; font: .87rem/1.3 Arial, sans-serif; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
main { max-width: 770px; min-width: 0; padding: 2rem 0 5rem; }
.page-heading { font-size: clamp(2.05rem, 4vw, 3.1rem); line-height: 1.1; font-weight: normal; letter-spacing: -.035em; margin: 0 0 2rem; }
.section { margin: 0 0 2.5rem; }
.section-heading { font-size: 1.25rem; font-weight: normal; line-height: 1.25; margin: 0 0 .8rem; padding-bottom: .45rem; border-bottom: 1px solid var(--rule); }
.entry-list { margin: 0; padding: 0; list-style: none; }
.entry { padding: .62rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule), transparent 45%); }
.entry:last-child { border-bottom: 0; }
.entry-line { display: flex; gap: 1.2rem; align-items: baseline; }
.entry-date { flex: 0 0 8.5rem; color: var(--muted); font: .82rem/1.45 Arial, sans-serif; }
.entry-title { min-width: 0; }
.entry-detail { color: var(--muted); margin: .25rem 0 0 9.7rem; font-size: .94rem; }
.compact-list { margin: 0; padding: 0 0 0 1.2rem; }
.compact-list li { margin: .55rem 0; }
.citation { overflow-wrap: anywhere; }
.citation a { white-space: nowrap; font: .77rem Arial, sans-serif; }
.citation-count { font: .77rem Arial, sans-serif; color: var(--muted); }
.citation-note { margin: .9rem 0 0; color: var(--muted); font: .78rem/1.5 Arial, sans-serif; }
.publication-media, .publication-media:first-of-type { border: 0; }
.publication-summary { position: relative; display: block; padding: 0 1.5rem 0 0; font: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
.publication-summary::after { position: absolute; right: 0; top: .1rem; }
.publication-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin: 1rem 0 1.25rem; }
.publication-gallery a { display: block; }
.publication-gallery img { display: block; width: 100%; max-height: 440px; object-fit: contain; border: 1px solid var(--rule); background: var(--surface); }
.plain-link-list { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.plain-link-list a { font-size: 1.08rem; }
.account-id { font-size: 1.08rem; }
.plain-text { margin: 0 0 1rem; }
.site-photo-link { display: inline-block; max-width: 100%; margin-top: 1.25rem; }
.site-photo-link img { display: block; width: auto; max-width: 100%; max-height: 520px; border: 1px solid var(--rule); background: var(--surface); }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 1.25rem; }
.photo-gallery .site-photo-link { display: block; margin: 0; }
.photo-gallery .site-photo-link img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.entry-with-media { padding: 0; }
.entry-media, .entry-media:first-of-type { border: 0; }
.entry-media > summary { padding: .62rem 0; font: inherit; align-items: baseline; }
.entry-media > summary .entry-line { flex: 1; }
.entry-media-body { padding: 0 0 1.2rem; }
.entry-media-body .entry-detail { margin-top: 0; }
.entry-media-body .photo-gallery { margin-top: .45rem; }
.media-disclosure { margin-top: 1rem; }
.media-disclosure:first-of-type { border-top: 1px solid var(--rule); }
.media-summary { font-size: 1rem; }
.media-body { padding: 0 0 1.2rem; }
.sports-entry { padding: 0; }
.sports-disclosure, .sports-disclosure:first-of-type { border: 0; }
.sports-disclosure summary { padding: .62rem 0; font: inherit; align-items: baseline; }
.sports-disclosure summary .entry-line { flex: 1; }
.sports-disclosure .site-photo-link { display: block; width: min(100%, 520px); margin: 1rem 0 1.2rem; }
.sports-disclosure .site-photo-link img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.resume-email { margin: -1.1rem 0 2rem; font: .9rem Arial, sans-serif; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.3rem; }
.video-item { min-width: 0; }
.video-item iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); background: var(--surface); margin-bottom: .45rem; }
.instagram-profile { width: min(100%, 540px); }
.instagram-profile + .instagram-profile { margin-top: 1.5rem; }
.instagram-profile .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.topic-list { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.topic-list li { border-bottom: 1px solid var(--rule); padding: .35rem 0; }
.interest-groups { display: grid; gap: 1.7rem; }
.interest-group { margin: 0; }
.interest-group-heading { margin: 0 0 .5rem; font: 700 .82rem/1.3 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phv-tool { max-width: 630px; }
.phv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.phv-field { display: grid; gap: .35rem; font: .85rem/1.3 Arial, sans-serif; color: var(--muted); }
.phv-field input, .phv-field select { width: 100%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: .6rem .65rem; font: 1rem/1.2 Arial, sans-serif; }
.phv-submit { align-self: end; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: .65rem .9rem; cursor: pointer; font: 700 .85rem/1 Arial, sans-serif; }
.phv-submit:hover { background: var(--focus); border-color: var(--focus); }
.phv-result { border-left: 3px solid var(--focus); background: var(--surface); padding: .85rem 1rem; margin: .5rem 0 1rem; }
.phv-result p { margin: .35rem 0 0; }
.phv-guide { color: var(--muted); font-size: .9rem; margin: 1rem 0 .6rem; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: .85rem 1.5rem .85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.18rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 1.2rem Arial, sans-serif; }
details[open] summary::after { content: "−"; }
.details-body { padding: .3rem 0 1.4rem; }
.details-body .section { margin-bottom: 1.6rem; }
.details-body .section:last-child { margin-bottom: 0; }
.empty-section { min-height: 2.5rem; }
.site-footer { border-top: 1px solid var(--ink); padding: 1.2rem 0 2rem; display: flex; gap: 1.3rem; color: var(--muted); font: .78rem Arial, sans-serif; }
@media (max-width: 720px) {
  .site-shell { width: min(100% - 2rem, 560px); }
  .site-header { min-height: 78px; }
  .page-layout { display: block; }
  .site-nav { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1rem 0; flex-direction: row; flex-wrap: nowrap; gap: 1.2rem; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
  .site-nav a { flex: 0 0 auto; padding: .25rem 0; }
  main { padding: 2rem 0 3.5rem; }
  .entry-line { display: block; }
  .entry-date { display: block; margin-bottom: .15rem; }
  .entry-detail { margin-left: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr; }
  .phv-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
