:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6f6f6f;
  --line: #e6e6e6;
  --mono: "Courier New", Courier, ui-monospace, monospace;
  --serif: "Times New Roman", Times, Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --fg: #ededed; --muted: #9a9a9a; --line: #2a2a2a; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; }

/* Header */
.site-header {
  height: var(--header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  font-family: var(--mono);
}
.site-header .name { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.site-header .name a { text-decoration: none; }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--fg); }

main { flex: 1; }

/* Home: slideshow of works, one at a time */
.home main { display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.slideshow {
  width: min(50vw, 900px);
  overflow: hidden;
}
.slides { display: flex; }
.slides.animate { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.slide { flex: 0 0 100%; margin: 0; }
.slide img {
  width: 100%;
  height: 50vh;
  height: 50dvh;
  object-fit: contain;
}
.slide figcaption {
  margin-top: 14px;
  min-height: 1.4em;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s;
}
.slide figcaption span { font-weight: 400; color: var(--muted); }
.slideshow:hover figcaption { opacity: 1; }
@media (hover: none) {
  .slide figcaption { opacity: 1; }
}
@media (max-width: 700px) {
  .slideshow { width: 100%; }
  .slide img { height: 55vh; height: 55dvh; }
}

/* Text pages */
.page { padding: 8vh var(--gutter) 12vh; }
.page h1 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 40px;
}
.statement { max-width: 40rem; font-family: var(--mono); font-size: 15px; line-height: 1.6; }
.statement p { margin: 0 0 1.2em; }
.works-link { font-family: var(--mono); font-size: 15px; }
.contact { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 15px; line-height: 2; }
.small { color: var(--muted); font-size: 15px; }

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--fg); color: var(--bg); }

.cv-intro { margin: 0 0 40px; }
.cv-intro p { margin: 0 0 4px; }
.cv-intro .button { margin-top: 24px; }
.cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px 48px; max-width: 72rem; }
.cv h2 { font-family: var(--mono); font-size: 15px; font-weight: 400; color: var(--muted); margin: 0 0 4px; }
.cv dl { margin: 0 0 40px; }
.cv dt { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-top: 16px; }
.cv dd { margin: 2px 0 0; }

.download { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; max-width: 64rem; }
.download img { width: 100%; height: auto; }
.download p { margin: 0 0 8px; }
.download .button { margin-top: 24px; }

.site-footer {
  height: var(--header);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
