
:root {
  --bg:           #fffcfc;
  --band-bg:      #fffcfc;
  --band-hover:   #FFFF00;
  --text:         #1a1814;
  --text-muted:   #6a6458;
  --text-faint:   #b0a898;
  --tag-border:   #c8bfb0;
  --tag-color:    #7a7060;
  --tag-hover-bg:    #e8e0d0;
  --tag-hover-color: #1a1814;
  --tag-active-bg:   #EBEB8F;
  --tag-active-border: #c8c840;
  --tag-active-color:  #2a2810;
  --logo-hover:   #000000;
  --hr:           #ddd8ce;
  --blockquote:   #d8d0c0;
  --code-bg:      #eeeae0;
  --nav-color:    #9a9080;
  --nav-hover:    #1a1814;
  --footer-color: #9a9080;
  --footer-hover: #6a6458;
  --date-color:   #9a9080;
  --blurb-gallery:#6a6458;
  --blurb-detail: #1a1814;
  --column:       700px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }

body {
  background: var(--bg);
  
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Site header (full browser width, logo left edge, nav right edge) ── */
.site-header {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 36px 32px 16px;
  gap: 0.5rem;
}

.site-header .site-band {
  flex: none;
}

.site-header .site-nav {
  flex: 1;
  min-width: max-content;
}

/* ── Logo (scrolls with page) ── */
.site-band {
  display: flex;
  align-items: flex-end;
  background: transparent;
}

.site-band-logo {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.site-band img {
  height: 54px;
  width: auto;
  display: block;
  transition: filter 0.18s;
}

.site-band:hover img {
  filter: brightness(0);
}

/* ── Nav (inside header, baseline-aligned, flush right) ── */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-width: 0;
}

.site-nav-inner {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

.site-nav a {
  color: var(--nav-color);
  text-decoration: none;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.site-nav a:hover { color: var(--nav-hover); }
.site-nav a.active { color: var(--nav-hover); font-weight: 500; }

/* ── Page wrapper ── */
.page-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.8rem 28px 80px;
  position: relative;
}

/* ── Masthead title (silo name, appears below nav band) ── */
.masthead-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding: 0 32px 10px;
  margin: 0;
}

/* ── Hero band image (silo landing pages) ── */
.hero-band {
  width: 100%;
  display: block;
  margin-bottom: 0;
  line-height: 0;
}

.hero-band img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Silo links (::silo-link:: and ::silo-links::) ── */
.silo-links {
  margin: 2rem 0;
}

.silo-links-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--hr);
}

.silo-links-row:last-child {
  border-bottom: 1px solid var(--hr);
}

.silo-links-discipline {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  min-width: 120px;
}

.silo-links-discipline:hover { color: var(--nav-hover); }

.silo-links-projects {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-faint);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.silo-links-projects a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.silo-links-projects a:hover { color: var(--text-muted); }

.silo-link-btn {
  display: inline-block;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--tag-border);
  padding: 4px 12px 3px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  margin: 0.2rem 0;
}

.silo-link-btn:hover {
  color: var(--nav-hover);
  border-color: var(--nav-hover);
}

/* ── Intro block ── */
.intro {
  padding-bottom: 2.4rem;
  margin-bottom: 0;
}

.intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.intro p:last-child { margin-bottom: 0; }

.intro h2 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
}

/* ── Intro image row (homepage only) ── */
.intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.intro-row img {
  width: 100%;
  aspect-ratio: 5 / 6;
  display: block;
  object-fit: cover;
}

/* ── "click tags" hint ── */
.tags-hint {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-faint);
  margin: 0.3rem 0 1.4rem;
}

/* ── Gallery section label (tag name on gallery pages) ── */
.gallery-label {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0;
}

/* ── Section head (H2 in MD body) ── */
.section-head {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 2.5rem 0 0.5rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ── Post gallery ── */
.post-gallery {
  display: flex;
  flex-direction: column;
}

.post-entry {
  padding-bottom: 2.4rem;
  margin-bottom: 0;
}

.post-entry:first-child {
  padding-top: 0;
}

.post-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-entry-image {
  display: block;
  width: 100%;
  margin-bottom: 1.4rem;
  text-decoration: none;
  overflow: hidden;
}

.post-entry-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.2s, transform 0.2s;
}

.post-entry-image:hover img {
  filter: brightness(1.12);
  transform: scale(1.02);
}

/* ── Gallery rule ── */
.gallery-rule {
  border: none;
  border-top: 1px solid var(--hr);
  margin: 1.6rem 0 3.2rem;
}

.post-caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Gallery title — sans, quiet */
.post-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.post-title a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover { color: var(--text); }

.post-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Date and blurb hidden in gallery in silo fork */
.post-date { display: none; }
.post-blurb { display: none; }

.post-tags {
  margin-top: 0.3rem;
}

/* ── Tag menu (gallery page filter row) ── */
.tag-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

/* ── Tags ── */
.tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tag-color);
  border: 1px solid var(--tag-border);
  padding: 2px 7px 1px;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.tag:hover {
  background: var(--tag-hover-bg);
  color: var(--tag-hover-color);
  border-color: var(--tag-hover-color);
  text-decoration: none;
}

.tag.active {
  background: transparent;
  color: var(--tag-active-color);
  border: 2px solid #e06820;
  color: #e06820;
  cursor: default;
}

.tag.active:hover {
  background: transparent;
  color: #e06820;
  border-color: #e06820;
}

/* ── Tag index (about page / ::tags:: block) ── */
.tag-index {
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
}

.tag-index .tags {
  gap: 0.4rem;
}

.page-body .tag,
.tag-index .tag {
  text-decoration: none;
}

.page-body .tag,
.tag-index .tag {
  text-decoration: none;
}

/* ── Post detail ── */
.post-detail-hero {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.4rem;
}

.post-detail-header {
  margin-bottom: 1.6rem;
}

.post-detail-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.post-detail-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.post-detail-blurb {
  color: var(--blurb-detail);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

/* ── Body content ── */
.post-body {
  font-size: 1.05rem;
  line-height: 1.82;
}

.post-body p { margin-bottom: 1.4em; }

.post-body h2 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin: 2.5em 0 0.7em;
  text-transform: none;
}

.post-body h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin: 2em 0 0.5em;
}

.post-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.8em 0;
}

.post-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hr);
  transition: text-decoration-color 0.2s;
}

.post-body a:hover { text-decoration-color: var(--text); }

.post-body blockquote {
  border-left: 2px solid var(--blockquote);
  padding-left: 1.25rem;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--hr);
  margin: 2.5em 0;
}

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 5px;
}

.post-body pre {
  background: var(--code-bg);
  padding: 1.2em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-body pre code { background: none; padding: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.4em 1.5em; }
.post-body li { margin-bottom: 0.3em; }

/* ── Custom layout blocks ── */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1.8em 0;
}

.img-grid-cell {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.img-grid-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.img-grid-tall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1.8em 0;
}

.img-grid-cell-tall {
  position: relative;
  width: 100%;
  padding-top: 133.33%;
  overflow: hidden;
}

.img-grid-cell-tall img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.img-grid-sq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1.8em 0;
}

.img-grid-cell-sq {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.img-grid-cell-sq img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 1.8em 0;
}

.img-row img {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: block;
  margin: 0;
  object-fit: cover;
}

.img-aside {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.8em 0;
}

.img-aside-img {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  padding-top: 0.42rem;
}

.img-aside-img img { width: 100%; height: auto; display: block; margin: 0; }
.img-aside-text { align-self: start; }
.img-aside-text > *:first-child { margin-top: 0; }
.img-aside-text p { margin-bottom: 0.8em; }
.img-aside-text p:last-child { margin-bottom: 0; }

.body-video { width: 100%; height: auto; display: block; margin: 1.8em 0; }

.vimeo-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.8em 0;
}

.vimeo-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Catalogue page ── */
.catalogue-head {
  margin-bottom: 2.8rem;
}

.catalogue-head h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
}

/* ── Static pages ── */
.page-body {
  font-size: 1.05rem;
  line-height: 1.82;
}

.page-body p { margin-bottom: 1.4em; }

.page-body h2 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 2em 0 0.6em;
}

.page-body strong { font-weight: 600; color: var(--text); }
.page-body em { font-style: italic; }

.page-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hr);
  transition: text-decoration-color 0.2s;
}

.page-body a:hover { text-decoration-color: var(--text); }

.page-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.87rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: 5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--hr);
  font-family: 'EB Garamond', Georgia, serif;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--footer-color);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.footer-left {
  display: flex;
  gap: 1.3rem;
}

.site-footer a {
  color: var(--footer-color);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--footer-hover); }

/* ── Email capture ── */
.email-capture {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 0.4rem;
}

.email-capture input {
  background: transparent;
  border: 1px solid var(--tag-border);
  border-right: none;
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: normal;
  padding: 4px 12px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}

.email-capture input::placeholder {
  color: var(--text-faint);
}

.email-capture input:focus {
  border-color: var(--text-muted);
}

.email-capture button {
  background: #2e2c2a;
  border: 1px solid #2e2c2a;
  color: #7a7670;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: normal;
  padding: 4px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.email-capture button:hover {
  background: #EBEB8F;
  border-color: #c8c840;
  color: #2a2810;
}

/* ── Featured project body ── */
.featured-body h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.87rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-wrap { padding: 0 18px 60px; }
  .site-band { padding: 28px 0 0; }
  .post-detail-title { font-size: 1.55rem; }
  .img-aside { grid-template-columns: 1fr; }
  .intro-row { gap: 4px; }
  .img-row { gap: 4px; }
  .img-grid { gap: 4px; }
  .img-grid-tall { gap: 4px; }
  .img-grid-sq { gap: 4px; }
  .footer-row { flex-direction: column; gap: 0.2rem; }
}
