:root {
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --hint: #6c6b69;
  --line: #1a1a1a;
}
html, body { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  html, body { background: var(--ink); color: var(--paper); }
  :root { --hint: #8a8987; --line: #e7e5e4; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 28px;
}

main {
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column;
  gap: clamp(40px, 7vh, 72px);
  align-items: flex-start;
}

/* HEAD ------------------------------------------------------------- */
.head {
  display: flex; flex-direction: column;
  gap: 32px; align-items: flex-start;
  width: 100%;
}

.mark {
  display: block;
  width: clamp(180px, 38vw, 260px);
  height: auto;
  /* PNG is black-on-transparent. In dark mode invert to read as white ink. */
  margin-left: -8px;
  user-select: none;
  -webkit-user-drag: none;
}
@media (prefers-color-scheme: dark) {
  .mark { filter: invert(1); }
}

h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  /* Wordmark spaced like a gallery title */
  word-spacing: 0.18em;
  max-width: 12ch;
}

.tag {
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--hint);
  max-width: 38ch;
  line-height: 1.45;
}

/* PROJECTS --------------------------------------------------------- */
.section-label {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--hint);
  margin-bottom: 18px;
}

.projects { width: 100%; }
.projects ul { list-style: none; }
.projects li + li { margin-top: 0; }

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 140ms ease, padding 140ms ease;
}
.project:hover { opacity: 0.55; padding-left: 8px; }
.project:last-child { border-bottom: 1px solid var(--line); }

.project-name {
  font-family: inherit;
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.project-blurb {
  font-style: italic;
  font-size: 15px;
  color: var(--hint);
  max-width: 48ch;
}
.project-host {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: inherit;
  margin-top: 6px;
  opacity: 0.55;
}

/* FOOTER ----------------------------------------------------------- */
footer {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--hint);
  letter-spacing: 0.02em;
}
