:root {
  color-scheme: dark;
  --paper: #101010;
  --ink: #eeeeee;
  --muted: #b0b0b0;
  --line: #343434;
  --accent: #d2d2d2;
  --dark: #191919;
  --highlight: #e4e4e4;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #eeeeee; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 3.5rem, 74rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: center; min-height: 4.6rem; }
.site-header nav, .site-footer nav { display: flex; align-items: stretch; gap: clamp(.75rem, 3vw, 2rem); }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none; padding-block: .45rem; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--ink); box-shadow: 0 2px var(--accent); }
.hero { margin-top: 2rem; }
.hero-inner { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(24rem, 39vw, 34rem); overflow: hidden; background: #080808; color: #f5f5f5; border-radius: 1rem; }
.hero-inner > img { position: absolute; z-index: -2; right: 0; top: 50%; transform: translateY(-50%); width: min(52%, 35rem); }
.hero-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #191919 0%, #191919 31%, #191919b0 48%, transparent 72%); }
.hero-copy { padding: clamp(1.7rem, 6vw, 5rem); }
.hero-copy p { margin: 0 0 .35rem; color: var(--highlight); font-weight: 650; }
.hero h1 { font: 400 clamp(3.3rem, 9.6vw, 8.6rem)/.95 var(--display); letter-spacing: -.08em; margin: 0 0 1.55rem; }
.hero h1 span { color: var(--highlight); }
.hero nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero nav a { color: #f5f5f5; border: 1px solid #ffffff60; border-radius: 100vw; padding: .38rem .9rem; font-size: .9rem; text-decoration: none; }
.hero nav a:hover { background: var(--highlight); border-color: var(--highlight); color: #151515; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.feature-grid a { position: relative; isolation: isolate; display: flex; align-items: end; aspect-ratio: 2.1; overflow: hidden; border-radius: .75rem; color: white; background: var(--dark); text-decoration: none; }
.feature-grid img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.feature-grid a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 22%, #090909f2); }
.feature-grid a:is(:hover, :focus-visible) img { transform: scale(1.05); }
.feature-grid span { padding: .5rem 1.1rem; font: 400 clamp(1.55rem, 3vw, 2.3rem)/1.3 var(--display); }
.page-layout { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: clamp(1.75rem, 6vw, 5.5rem); align-items: start; margin-top: clamp(2rem, 6vw, 5rem); }
.page-body { min-width: 0; }
.home-layout { display: block; }
.home-layout .article { max-width: none; }
.breadcrumb, .back-link { color: var(--muted); font-size: .9rem; }
.breadcrumb span { margin-inline: .35rem; }
.section-menu ul { padding: 0; margin: 0; list-style: none; }
.section-menu #sidebar > li { margin-bottom: 1.35rem; }
.section-menu .span { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; margin-bottom: .25rem; }
.section-menu li li > a { display: block; padding: .4rem .75rem; border-radius: .35rem; color: var(--ink); text-decoration: none; }
.section-menu li li > a:hover, .section-menu [aria-current="page"] { background: #282828; }
.article { max-width: 50rem; overflow-wrap: anywhere; }
.article h1, .article h2, .project-strip h2, .album h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
.article h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 1rem; }
.breadcrumb + .article { margin-top: .7rem; }
.article h2, .project-strip h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); margin: 0 0 .7rem; }
.article p { max-width: 72ch; }
.article p:empty, .article .textcontents > br { display: none; }
.article .textcontents + .textcontents { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article table { max-width: 100%; display: block; overflow-x: auto; }
.article img { border-radius: .4rem; vertical-align: middle; }
.article a:has(img) { display: inline-block; max-width: 100%; margin: .3rem .25rem .3rem 0; }
.article pre { white-space: pre-wrap; }
.article .middle { display: flex; flex-wrap: wrap; gap: .35rem; }
.article .imgfloatleft { float: none; }
.download-link, .video-link { display: inline-block; padding: .52rem .85rem; margin: .35rem .25rem .35rem 0; text-decoration: none; border-radius: .35rem; font-weight: 700; }
.download-link { color: #151515; background: #e1e1e1; }
.download-link:hover { background: #ffffff; }
.video-link { border: 1px solid var(--line); }
.post { border-top: 1px solid var(--line); }
.post:last-of-type { border-bottom: 1px solid var(--line); }
.post summary { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; list-style: none; cursor: pointer; padding: 1rem 0; }
.post summary::-webkit-details-marker { display: none; }
.post-title { font: 400 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--display); }
.post-date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.post-toggle { color: var(--accent); font-size: 1.5rem; width: 1.4rem; text-align: center; line-height: 1; }
.post-toggle::before { content: '+'; }
.post[open] .post-toggle::before { content: '−'; }
.post-body { padding: 0 0 .75rem; }
.project-strip { margin-top: clamp(3rem, 8vw, 6rem); }
.project-strip h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.project-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .8rem; }
.project-grid a { display: grid; align-content: start; gap: .35rem; text-decoration: none; color: var(--ink); font-size: .88rem; }
.project-grid a:hover span { text-decoration: underline; }
.project-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .55rem; background: var(--dark); }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); }
.album-page { background: var(--paper); }
.album { padding-block: 2rem 0; }
.album h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin: .75rem 0 1.3rem; }
.album img { object-fit: contain; }
.album table { max-width: 100%; }
.album-index table { display: block; }
.album-index table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .8rem; }
.album-index table tr { display: contents; }
.album-index table td { width: auto; min-width: 0; margin: 0; padding: .5rem; }
.album-index td a { display: inline-block; }
.album-index td a:has(img) { text-decoration: none; }
.album-slide center > img { display: block; max-height: 75vh; margin: 1rem auto; border-radius: .65rem; }
.album-slide center > a { display: inline-block; padding: .35rem; }
.album .camera, .album small { color: var(--muted); font-size: .86rem; }
.viewer { padding: .9rem; max-width: min(94vw, 72rem); background: #191919; color: white; border: 0; border-radius: .8rem; }
.viewer::backdrop { background: #090909d9; }
.viewer img { display: block; width: auto; max-height: 74vh; margin: .5rem auto; object-fit: contain; }
.viewer nav { display: flex; justify-content: space-between; gap: .5rem; }
.viewer button { font: inherit; background: var(--highlight); color: #151515; border: 0; border-radius: .35rem; padding: .28rem .65rem; cursor: pointer; }
.viewer button:disabled { opacity: .5; cursor: default; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .page-layout { grid-template-columns: 1fr; gap: 1.35rem; }
  .section-menu { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
  .section-menu #sidebar { display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
  .section-menu #sidebar > li { margin: 0; }
  .section-menu #sidebar li ul { display: flex; flex-wrap: wrap; }
  .section-menu li li > a { font-size: .9rem; padding: .3rem .4rem; }
  .hero-inner { min-height: 20rem; }
  .hero-inner > img { width: 70%; right: -12%; }
  .hero-inner::before { background: linear-gradient(90deg, #191919 2%, #191919c4 42%, #1919190a 91%); }
  .project-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding-block: .55rem; gap: .15rem 1rem; }
  .site-header nav { justify-content: center; }
  .feature-grid { gap: .45rem; }
  .feature-grid span { padding: .4rem; font-size: 1.18rem; }
  .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

.project-grid.project-slideshow { display: block; }
.project-slideshow a {
  display: grid;
  grid-template-columns: clamp(5rem, 20vw, 10rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 3vw, 2rem);
  padding: clamp(.65rem, 2vw, 1rem);
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: .65rem;
}
.project-slideshow a[hidden] { display: none; }
.project-slideshow a:not([hidden]) img, .project-slideshow a:not([hidden]) span {
  animation: project-slide-in .36s ease-out both;
}
.project-slideshow a span {
  font: 400 clamp(1.35rem, 4vw, 2.5rem)/1.15 var(--display);
  overflow-wrap: anywhere;
}
@keyframes project-slide-in {
  from { opacity: 0; transform: translateX(.6rem); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .project-slideshow a:not([hidden]) img, .project-slideshow a:not([hidden]) span { animation: none; }
}


.youtube-video {
  width: min(100%, 44rem);
  margin: 1rem 0 .35rem;
  background: #080808;
  border-radius: .45rem;
  overflow: hidden;
}
.youtube-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.article .project-date {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.article h1 + .project-date { margin-top: -.6rem; }
