:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --rule: #d9d9d9;
  --max-width: 720px;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
}

body {
  font-size: 15px;
  line-height: 1.6;
  padding: 48px 24px 96px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Site header / nav — shared across pages that have chrome */

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.site-header .name {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

.site-header nav a:first-child { margin-left: 0; }

.site-header nav a[aria-current="page"] {
  color: var(--fg);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--fg);
  text-decoration: underline;
}

/* Site footer — shared across pages that have chrome */

footer.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

footer.site-footer a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ---- index.html ---- */

.page-home h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 20px;
}

.page-home p {
  margin: 0 0 20px;
  max-width: 60ch;
}

.page-home .section-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 40px 0 12px;
}

ul.worklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

ul.worklist li {
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}

ul.worklist li::before {
  content: "\2013"; /* en dash */
  position: absolute;
  left: 0;
  color: var(--muted);
}

ul.worklist a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

ul.worklist a:hover,
ul.worklist a:focus-visible {
  text-decoration-color: var(--fg);
}

/* ---- work.html ---- */

.page-work h1 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 28px;
}

.page-work .project-tag {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.project {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.project:first-of-type {
  border-top: 1px solid var(--rule);
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.project-title {
  font-weight: 600;
}

.project-title a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.project-title a:hover,
.project-title a:focus-visible {
  text-decoration-color: var(--fg);
}

.project-desc {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 60ch;
}

/* ---- art.html ---- */

.page-art p {
  margin: 0 0 20px;
  max-width: 64ch;
}

.intro { margin-bottom: 8px; }

.category-block { margin-top: 40px; }

.category-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
}

.category-heading h2 {
  font-size: 16px;
  margin: 0;
}

.category-heading .weight {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-desc {
  color: var(--muted);
  margin: 0 0 16px;
}

ul.subgroups {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

ul.subgroups li a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  font-size: 14px;
}

ul.subgroups li a:hover,
ul.subgroups li a:focus-visible {
  text-decoration-color: var(--fg);
}

.category-block + .category-block {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ---- project-template.html ---- */

.page-project h1 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
}

.page-project .project-tag {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.page-project .section-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 32px 0 10px;
}

.page-project .section-label:first-of-type {
  margin-top: 0;
}

.page-project p {
  margin: 0 0 16px;
  max-width: 64ch;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--fg);
  text-decoration: underline;
}

ul.plain {
  margin: 0 0 16px;
  padding-left: 18px;
  max-width: 64ch;
}

ul.plain li {
  margin-bottom: 6px;
}

.meta-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 4px 0 32px;
}

.meta-item {
  font-size: 14px;
}

.meta-item .k {
  color: var(--muted);
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

nav.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

nav.pager a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

nav.pager a:hover,
nav.pager a:focus-visible {
  text-decoration-color: var(--fg);
}

/* ---- layout-options.html ---- */

.option-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.option-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  max-width: 60ch;
}

.option-block {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.option-block:last-child { border-bottom: none; }

.ph {
  background: #d8d5cd;
  display: block;
  width: 100%;
}

/* Option A: uniform square crop */
.grid-square {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-square a { text-decoration: none; color: inherit; display: block; }
.grid-square .ph { aspect-ratio: 1 / 1; margin-bottom: 8px; }
.card-title { font-weight: 600; font-size: 14px; margin: 0; }
.card-desc { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

/* Option B: natural aspect ratio, no forced crop */
.grid-natural {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}
.grid-natural a { text-decoration: none; color: inherit; display: block; }
.grid-natural .ph { margin-bottom: 8px; }

/* Option C: list rows, small thumbnail left */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { border-top: 1px solid var(--rule); }
.list-rows li:last-child { border-bottom: 1px solid var(--rule); }
.list-rows a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}
.list-rows .ph {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.list-rows .text { min-width: 0; }

/* Option D: single column stacked feed */
.feed a {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
}
.feed .ph { margin-bottom: 10px; }

/* ---- index.html (landing / work in progress) ---- */

body.page-landing {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-landing .card {
  max-width: 360px;
  text-align: center;
}

.page-landing .art {
  font-size: 11px;
  line-height: 1.15;
  color: var(--muted);
  margin: 0 0 24px;
  white-space: pre;
}

.page-landing h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.page-landing .tagline {
  color: var(--muted);
  margin: 0 0 24px;
}

.page-landing .links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.page-landing .links a,
.page-landing .email a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.page-landing .links a {
  font-size: 14px;
}

.page-landing .links a:hover,
.page-landing .links a:focus-visible,
.page-landing .email a:hover,
.page-landing .email a:focus-visible {
  text-decoration-color: var(--fg);
}

.page-landing .email {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* ---- responsive ---- */

@media (max-width: 480px) {
  .page-home,
  .page-work,
  .page-art,
  .page-project {
    font-size: 14px;
    padding: 32px 18px 72px;
  }

  body.page-landing {
    font-size: 14px;
    padding: 32px 18px;
  }

  .page-home .site-header nav a,
  .page-work .site-header nav a,
  .page-art .site-header nav a,
  .page-project .site-header nav a {
    margin-left: 14px;
  }

  .project-tag { white-space: normal; }
  .meta-row { gap: 20px; }
}
