/* Source stylesheet. Run python3 generate_site.py after changing this file. */
:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #242e29;
  --muted: #626960;
  --line: #dcded4;
  --accent: #345a47;
  --image-bg: #eaeae3;
  --radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; line-height: 1.6; }
body.viewer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .35; cursor: default; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
.wrap { width: min(100% - 2.5rem, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1.5rem; padding: .75rem 1rem; background: var(--ink); color: white; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 130px; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 56%; min-height: 44px; }
/* Preserve the supplied transparent logo exactly, rendering its artwork in black. */
.site-logo { width: 175px; height: auto; filter: brightness(0); }
.header-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: .6rem; min-height: 44px; font-size: .75rem; text-align: right; }
.header-link:hover, .back-link:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.home-intro { padding-block: 3rem 2.5rem; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: var(--accent); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 650; }
.small-rule { width: 26px; height: 1px; background: currentColor; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: 1.02; }
.home-intro h1 { font-size: clamp(4rem, 9vw, 7.8rem); margin-top: 1.4rem; }
.home-intro h1 em { color: var(--accent); font-weight: 400; }
.intro-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 1.6rem; }
.intro-bottom p { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.collection-count { display: none; font-size: .75rem; letter-spacing: .02em; white-space: nowrap; }
.collection-count span { display: inline-block; margin-left: 1.75rem; font-size: 1.4rem; }
.project-list { display: grid; gap: 2.75rem 1.75rem; padding-bottom: 4rem; }
.project-card { display: block; min-width: 0; }
.project-cover { position: relative; aspect-ratio: 4 / 3; background: var(--image-bg); border-radius: var(--radius); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: contain; }
.cover-tag { position: absolute; top: .9rem; left: .9rem; background: var(--paper); padding: .3rem .6rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 2px; }
.cover-open { position: absolute; bottom: .85rem; right: .85rem; width: 38px; height: 38px; background: var(--paper); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; transition: background .18s, color .18s; }
.project-card:hover .cover-open { color: var(--paper); background: var(--accent); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .68rem; color: var(--muted); margin-block: 1.1rem .35rem; text-transform: uppercase; letter-spacing: .07em; }
.project-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.9rem; letter-spacing: -.035em; line-height: 1.2; }
.card-action { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; padding-top: .7rem; color: var(--accent); }
.card-action span { font-size: 1.15rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.2rem 1.5rem; border-top: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; }
.back-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .8rem; margin-top: 1.3rem; }
.project-intro { padding-block: 1.8rem 2rem; }
.project-intro h1 { font-size: clamp(3.1rem, 7.5vw, 6.5rem); max-width: 1000px; margin-top: 1.1rem; overflow-wrap: anywhere; }
.title-stop { color: var(--accent); }
.project-description { font-size: 1.05rem; color: var(--muted); max-width: 660px; margin-top: 1.5rem; line-height: 1.8; }
.gallery-hint { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }
.stage-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1rem; border-block: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.stage-nav a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem .9rem; min-height: 44px; border: 1px solid var(--line); border-radius: 2px; font-size: .8rem; }
.stage-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.stage-number { font-size: .6rem; opacity: .75; }
.stage-section { padding-top: 2.5rem; scroll-margin-top: 5rem; }
.stage-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.stage-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; letter-spacing: -.035em; display: flex; align-items: baseline; gap: .8rem; }
.section-number { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .65rem; color: var(--accent); letter-spacing: 0; }
.stage-count { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.gallery-grid { display: grid; gap: 1.6rem 1.4rem; }
.gallery-item { min-width: 0; }
.photo-link { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--image-bg); border-radius: var(--radius); }
.photo-link img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.photo-enlarge { position: absolute; right: .65rem; bottom: .65rem; display: grid; place-items: center; width: 32px; height: 32px; background: var(--paper); border-radius: 50%; transition: color .18s, background .18s; }
.photo-link:hover .photo-enlarge { background: var(--accent); color: var(--paper); }
figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .6rem; font-size: .7rem; color: var(--muted); }
.project-end { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3.5rem; padding-block: 2rem 3rem; }
.project-end p { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; letter-spacing: -.025em; }
.button { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; padding: .65rem 1.1rem; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: .8rem; }
.button:hover { background: var(--accent); color: var(--paper); }
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; margin: 0; background: #151c18; color: #f8f7f3; }
.viewer::backdrop { background: #151c18; }
.viewer-shell { display: flex; flex-direction: column; height: 100%; padding: max(.8rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; }
.viewer-context { color: #c2cbc4; font-size: .75rem; }
.viewer button { color: inherit; background: transparent; border: 1px solid #67756a; border-radius: 3px; min-height: 44px; padding: .4rem .85rem; font-size: .8rem; }
.viewer button:focus-visible { outline-color: #d7dfb7; outline-offset: 3px; }
.viewer button:hover:enabled { background: #304137; }
.viewer-close { display: flex; align-items: center; gap: .8rem; }
.viewer-close span { font-size: 1.3rem; }
.viewer-image-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; }
.viewer-image { width: 100%; height: 100%; object-fit: contain; }
.viewer-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .65rem; padding-top: .8rem; }
.viewer-caption { grid-row: 1; grid-column: 1 / -1; text-align: center; font-size: .75rem; color: #d5ddd7; }
.viewer-prev { justify-self: start; }
.viewer-next { justify-self: end; }
@media (min-width: 600px) {
  .wrap { width: min(100% - 4rem, 1280px); }
  .site-logo { width: 200px; }
  .header-link { font-size: .8rem; }
  .home-intro { padding-block: 4rem 3rem; }
  .collection-count { display: block; }
  .intro-bottom p { font-size: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-end { flex-direction: row; align-items: center; }
  .viewer-shell { padding: 1rem 1.5rem; }
  .viewer-bottom { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .viewer-caption { grid-row: auto; grid-column: auto; }
}
@media (min-width: 960px) {
  .site-header { min-height: 160px; }
  .site-logo { width: 220px; }
  .home-intro { padding-block: 4rem 3.2rem; }
  .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 5rem; }
  .project-card h2 { font-size: 2rem; }
  .project-intro { padding-block: 2.5rem 3rem; }
  .stage-section { padding-top: 3.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid.gallery-size-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-heading h2 { font-size: 2.5rem; }
}
.gallery-grid.gallery-size-1 { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
