:root {
  --cream: #f4efe6;
  --cream-dark: #ebe4d6;
  --paper: #faf7f0;
  --ink: #1c1a17;
  --ink-muted: #5c564c;
  --green: #2a4a38;
  --green-deep: #1e3529;
  --gold: #c9a227;
  --gold-soft: #e8d59a;
  --rule: rgba(42, 74, 56, 0.18);
  --shadow: 0 12px 40px rgba(28, 26, 23, 0.12);
  --radius: 2px;
  --max: 72rem;
  --measure: 38rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-deep);
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  max-width: 42rem;
}

/* —— Header —— */
.site-header {
  padding: 1.75rem 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand-mark {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}

.brand-mark:hover {
  color: var(--green-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green);
}

.nav .nav-end {
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

.project-description .submit-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

.project-description .submit-list li {
  margin-bottom: 0.45rem;
}

.project-description .submit-list li:last-child {
  margin-bottom: 0;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.hero-tag {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-lede {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  max-width: 36rem;
  margin: 0 auto;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto 0;
  max-width: 16rem;
  color: var(--gold);
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.hero-ornament span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* —— Project intro (dedicated pages) —— */
.project-intro {
  padding: 3rem 0 2rem;
  text-align: center;
}

.project-intro .project-wordmark {
  width: min(100%, 18rem);
  margin: 0 auto 1.25rem;
}

.project-intro .project-wordmark--poetics {
  width: min(100%, 14rem);
}

.project-intro h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: var(--green-deep);
}

.project-intro .project-label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-description {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
  text-align: left;
}

.project-description p {
  margin: 0 0 1rem;
}

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

.project-description strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Projects (side-by-side galleries on home) —— */
.projects {
  padding: 1.5rem 0 4rem;
}

.gallery-section {
  padding: 0 0 4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  color: var(--green-deep);
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.project-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 2.25rem;
  min-width: 0;
}

.project-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.project-wordmark {
  width: min(100%, 16rem);
  margin: 0 auto 1rem;
}

.project-wordmark--poetics {
  width: min(100%, 12rem);
}

.project-blurb {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 22rem;
  margin-inline: auto;
}

.project-label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-more {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
}

.project-more:hover {
  color: var(--green-deep);
}

/* —— Item cards / galleries —— */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  justify-items: center;
  max-width: 16rem;
  margin: 0 auto;
}

.item-grid--gallery {
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2rem;
  justify-items: stretch;
}

.item-card {
  width: 100%;
  text-align: center;
}

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.item-frame {
  position: relative;
  background: var(--cream);
  padding: 0.55rem;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 20px rgba(28, 26, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.item-link:hover .item-frame,
.item-link:focus-visible .item-frame {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(28, 26, 23, 0.16);
}

.item-link:focus-visible {
  outline: none;
}

.item-link:focus-visible .item-frame {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.item-frame img {
  width: 100%;
  background: #f0ebe0;
}

/* Broadsides: tall portrait */
.item-frame--broadside img {
  aspect-ratio: 612 / 1008;
  object-fit: cover;
}

/* Zines: slightly shorter portrait (cover) */
.item-frame--zine img {
  aspect-ratio: 396 / 612;
  object-fit: cover;
}

.item-caption {
  margin-top: 1rem;
}

.item-caption .month {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.item-caption .artist {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  font-family: "EB Garamond", Georgia, serif;
}

.item-caption .action {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.item-link:hover .action {
  color: var(--green-deep);
}

/* —— Footer —— */
.site-footer {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  border: 0;
  outline: none;
  box-shadow: none;
}

.footer-link:hover,
.footer-link:focus,
.footer-link:active,
.footer-link:visited {
  color: inherit;
  text-decoration: none;
  border: 0;
  outline: none;
  box-shadow: none;
}

.site-footer > .footer-link {
  display: block;
}

.footer-banner {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.footer-credit {
  margin: 0;
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: #000;
  line-height: 1.55;
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .project-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .item-grid {
    max-width: 18rem;
  }

  .item-grid--gallery {
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero {
    padding: 2.75rem 0 1rem;
  }

  .project-intro {
    padding: 2.25rem 0 1.5rem;
  }

  .project-panel {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .item-frame {
    transition: none;
  }

  .item-link:hover .item-frame {
    transform: none;
  }
}
