@property --paper { syntax: "<color>"; inherits: true; initial-value: #fffdf3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #423b21; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #827755; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e8e1c6; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #8c6b12; }
@property --wash { syntax: "<color>"; inherits: true; initial-value: #f4efda; }
:root {
  color-scheme: light;
  --paper: #fffdf3;
  --ink: #423b21;
  --muted: #827755;
  --line: #e8e1c6;
  --accent: #8c6b12;
  --wash: #f4efda;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  background: var(--paper);
  color: var(--ink);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --motion-scale: 1.6;
  --content-width: 600px;
  --page-gutter: 40px;
  transition: --paper calc(.32s * var(--motion-scale)) ease, --ink calc(.32s * var(--motion-scale)) ease, --muted calc(.32s * var(--motion-scale)) ease, --line calc(.32s * var(--motion-scale)) ease, --accent calc(.32s * var(--motion-scale)) ease, --wash calc(.32s * var(--motion-scale)) ease;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1b14;
  --ink: #e6dfbf;
  --muted: #aaa183;
  --line: #393626;
  --accent: #e3c56b;
  --wash: #2b281c;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color calc(.18s * var(--motion-scale)) ease, text-decoration-color calc(.18s * var(--motion-scale)) ease, background-color calc(.18s * var(--motion-scale)) ease, border-color calc(.18s * var(--motion-scale)) ease, opacity calc(.15s * var(--motion-scale)) ease, transform calc(.2s * var(--motion-scale)) var(--ease-out); }
a:hover, a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
a:active { opacity: .65; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e6ce7c; color: #322b15; }
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav[hidden] { display: none; }
.site-nav { view-transition-name: site-navigation; }
.site-nav[data-visible="false"] { view-transition-name: none; }
body[data-page="home"] .site-nav {
  transition: opacity calc(.28s * var(--motion-scale)) ease, transform calc(.28s * var(--motion-scale)) cubic-bezier(.22, 1, .36, 1), visibility 0s;
}
body[data-page="home"] .site-nav[data-visible="false"] {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, calc(.28s * var(--motion-scale));
}
.nav-inner { width: min(100% - 2 * var(--page-gutter), var(--content-width)); margin: auto; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-nav a { text-decoration: none; font-size: 0.8667rem; }
.site-nav .domain { font-weight: 550; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); }
.site-nav a { display: inline-block; }
.site-nav a:hover, .site-footer a:hover, .entry-title:hover { color: var(--accent); text-decoration: underline; }
.site-nav a:hover, .entry-title:hover, .socials a:hover { transform: translateY(-1px); }
.site-nav a:active, .entry-title:active, .socials a:active, .show-more:active { transform: translateY(0) scale(.97); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.theme-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 3px; border: 0; border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: background-color calc(.2s * var(--motion-scale)) ease, transform calc(.2s * var(--motion-scale)) var(--ease-out); }
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--wash); transform: scale(1.08); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 21px; height: 21px; overflow: visible; }
.sun-disc { transform-origin: 12px 12px; transition: transform calc(.35s * var(--motion-scale)) ease; }
.sun-rays { transform-origin: 12px 12px; transition: opacity calc(.2s * var(--motion-scale)) ease, transform calc(.4s * var(--motion-scale)) ease; }
.moon-cutout { transform: translate(8px, -8px); transition: transform calc(.35s * var(--motion-scale)) ease; }
[data-theme="dark"] .sun-disc { transform: scale(1.25); }
[data-theme="dark"] .sun-rays { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="dark"] .moon-cutout { transform: translate(0, 0); }
main { width: min(100% - 2 * var(--page-gutter), var(--content-width)); margin: 0 auto; padding: 112px 0 0; text-align: left; min-height: calc(100svh - 180px); }
/* Reveal the completed markdown together, rather than each fetch popping in. */
main[aria-busy="true"], main[aria-busy="true"] + .site-footer { opacity: 0; }
main[data-initial][aria-busy="false"], main[data-initial][aria-busy="false"] + .site-footer { animation: page-enter calc(.36s * var(--motion-scale)) var(--ease-out) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
::view-transition, ::view-transition-group(*), ::view-transition-image-pair(*),
::view-transition-old(*), ::view-transition-new(*) { pointer-events: none; }
::view-transition-old(root) { animation: page-exit calc(.2s * var(--motion-scale)) ease both; }
::view-transition-new(root) { animation: page-enter calc(.32s * var(--motion-scale)) var(--ease-out) both; }
::view-transition-group(site-navigation) { animation-duration: calc(.28s * var(--motion-scale)); }
::view-transition-old(site-navigation), ::view-transition-new(site-navigation) { animation-duration: calc(.2s * var(--motion-scale)); }
@keyframes page-exit {
  to { opacity: 0; transform: translateY(-4px); }
}
body[data-page="home"] main { padding-top: 82px; }
.profile { display: flex; align-items: center; justify-content: flex-start; gap: 22px; width: fit-content; max-width: 100%; margin: 0 0 38px; padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.profile img { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; }
.profile h1 { margin: 0 0 11px; font-size: 1.4667rem; font-weight: 550; letter-spacing: -.045em; line-height: 1.3; }
.socials { display: flex; align-items: center; justify-content: flex-start; gap: 17px; }
.socials a { display: inline-flex; color: var(--muted); }
.socials a:hover { color: var(--accent); }
.socials svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-weight: 550; line-height: 1.45; letter-spacing: -.035em; }
h1 { font-size: 1.8rem; margin: 0 0 30px; }
h2 { font-size: 1.2rem; margin: 0 0 25px; }
h3 { font-size: 1.0667rem; margin: 28px 0 12px; }
.home-section + .home-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.markdown { overflow-wrap: anywhere; }
.markdown:empty { display: none; }
.markdown p { margin: 0 0 20px; }
.markdown h2 { margin-top: 38px; margin-bottom: 18px; }
.markdown h3 { margin-top: 30px; }
.markdown ul, .markdown ol { max-width: 100%; margin: 20px 0; padding-left: 24px; list-style-position: outside; }
.markdown li { margin-bottom: 9px; }
.markdown blockquote { margin: 26px 0; padding: 8px 22px; border-inline: 1px solid var(--line); color: var(--muted); }
.markdown blockquote p:last-child { margin-bottom: 0; }
.markdown pre { padding: 18px; overflow: auto; background: var(--wash); text-align: left; border-radius: 5px; }
.markdown code { font-size: .88em; background: var(--wash); padding: 2px 4px; border-radius: 3px; }
.markdown pre code { background: none; padding: 0; }
.markdown img { max-width: 100%; height: auto; }
.markdown table { display: block; max-width: 100%; overflow: auto; margin: 22px 0; border-collapse: collapse; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 8px 12px; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.entries { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.entries li { min-width: 0; }
.entry-title { font-size: 1rem; font-weight: 500; text-decoration: none; line-height: 1.55; display: inline-block; }
.entry-description { color: var(--muted); font-size: 0.8667rem; line-height: 1.75; margin: 5px 0 0; max-width: 56ch; }
.entry-description p { margin: 0; }
.entry-meta { color: var(--muted); font-size: 0.7333rem; margin-top: 6px; }
.markdown-properties { color: var(--muted); font-size: 0.7333rem; font-weight: 400; }
.show-more { display: inline-block; padding: 5px 21px; margin: 27px 0 0; border: 1px solid var(--line); border-radius: 5px; font-size: 0.8rem; text-decoration: none; }
.show-more:hover { border-color: var(--accent); background: var(--wash); transform: translateY(-1px); }
.document-meta { margin: -16px 0 32px; font-size: 0.8rem; color: var(--muted); }
.page-intro:not(:empty) { margin-bottom: 30px; }
.page-status { color: var(--muted); font-size: .8rem; margin: 0 0 12px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: -12px 0 28px; font-size: .8rem; }
.resume-viewer { display: block; width: 100%; height: 80svh; min-height: 420px; border: 1px solid var(--line); border-radius: 5px; }
.site-footer { width: min(100% - 2 * var(--page-gutter), var(--content-width)); margin: 55px auto 0; padding: 28px 0 38px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 15px; font-size: 0.8rem; color: var(--muted); text-align: left; }
.site-footer p { margin: 0; }
.site-footer[hidden] { display: none; }
.site-footer a { text-decoration: none; }
.site-footer .domain { color: var(--ink); }
@media (max-width: 520px) {
  :root { --page-gutter: 24px; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 10px; flex-shrink: 0; }
  .site-nav a { font-size: 0.7333rem; }
  .site-nav .domain { min-width: 0; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding-top: 98px; }
  body[data-page="home"] main { padding-top: 56px; }
  .profile { gap: 18px; }
  .profile img { width: 64px; height: 64px; border-radius: 13px; }
  .profile h1 { font-size: 1.4rem; }
  h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root, a, .theme-toggle,
  body[data-page="home"] .site-nav,
  .sun-disc, .sun-rays, .moon-cutout { transition: none; }
  main[data-initial][aria-busy="false"], main[data-initial][aria-busy="false"] + .site-footer { animation: none; }
  a, .theme-toggle { transform: none !important; }
}
