@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --background: #fafafa;
  --title: #111111;
  --body: #515151;
  --line: #dedede;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #111111;
  --title: #f5f5f5;
  --body: #bdbdbd;
  --line: #333333;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--body);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.page { width: min(100% - 52px, 640px); margin-inline: auto; }
.site-header { padding-block: 44px 40px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.name, h1, h2, h3, h4, h5, h6 {
  color: var(--title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.name { text-decoration: none; }
a { color: var(--title); text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input { font: inherit; }
button { color: var(--title); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.contact-links { display: flex; gap: 8px; margin: 0; padding-right: 12px; border-right: 1px solid var(--line); }
.icon-link, .theme-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--body);
  cursor: pointer;
}
.icon-link svg, .theme-toggle svg { display: block; width: 20px; height: 20px; }
.social-icon { display: block; width: 20px; height: 20px; object-fit: contain; }
[data-theme="dark"] .social-icon { filter: brightness(0) invert(1); }
.theme-toggle { margin-right: -5px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: contents; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.icon-link:hover, .theme-toggle:hover { color: var(--title); }
.icon-link[href^="mailto:"] { color: #000000; }
[data-theme="dark"] .icon-link[href^="mailto:"] { color: #ffffff; }
:focus-visible { outline: 2px solid var(--title); outline-offset: 4px; }
.skip-link { position: absolute; top: 0; left: 26px; transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }
.home-section { margin-bottom: 40px; }
.home-section + .home-section { border-top: 1px solid var(--line); padding-top: 32px; }
.home-section > h1, .home-section > h2 { margin-bottom: 14px; }
.home-section > :last-child { margin-bottom: 0; }
p { margin: 0 0 14px; }
.headshot { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; background: white; margin: 0 0 24px; }
.journal-list { list-style: none; padding: 0; margin: 0; }
.journal-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px 24px; padding: 10px 0; text-decoration: none; }
.journal-list a:hover .journal-entry-title { text-decoration: underline; text-underline-offset: 4px; }
.journal-entry-title { color: var(--body); font-size: 15px; font-weight: 500; line-height: 1.5; }
time, .company-heading span { color: var(--body); font-size: 12px; font-weight: 400; white-space: nowrap; }
.experience { padding-block: 16px; }
.experience:first-of-type { padding-top: 0; }
.experience:last-of-type { padding-bottom: 0; border: 0; }
.company-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.experience > p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.site-footer { padding: 12px 0 36px; text-align: center; }
.site-footer p { margin: 0; color: var(--body); font-size: 12px; font-weight: 400; }
.article-header { margin-bottom: 32px; }
.article-header h1 { margin-bottom: 10px; }
.article-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; font-size: 12px; font-weight: 400; }
.article-meta a { color: var(--body); }
.article-body { overflow-wrap: break-word; }
.article-body h2, .article-body h3, .article-body h4 { margin: 28px 0 12px; }
.article-body > :first-child { margin-top: 0; }
.article-body figure { margin: 26px 0; }
.article-body img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; background: white; }
.article-body figcaption { margin-top: 8px; font-size: 15px; text-align: center; }
.article-body pre { padding: 18px; overflow-x: auto; border: 1px solid var(--line); font-size: 15px; line-height: 1.6; white-space: pre; }
.article-body code { font-size: 15px; }
.article-body blockquote { border-left: 2px solid var(--line); margin: 24px 0; padding-left: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body iframe { width: 100%; min-height: 180px; border: 1px solid var(--line); }
.article-body hr { border: 0; margin: 28px 0; }
.article-nav { display: flex; justify-content: flex-end; margin: 28px 0 40px; }
.article-nav a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; text-align: right; text-decoration: none; }
.article-nav a span { min-width: 0; }
.article-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-nav a:hover span { text-decoration: underline; }
@media (max-width: 520px) {
  .site-header { padding-block: 26px 32px; }
  .home-section { margin-bottom: 34px; }
  .journal-list a { grid-template-columns: 1fr; gap: 4px; }
  .headshot { width: 104px; height: 104px; }
  .company-heading { gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .header-row { gap: 12px; }
  .header-actions { gap: 8px; }
  .contact-links { gap: 4px; padding-right: 8px; }
}
