/* ============================================================
   MARSHALL BROWN — Global Stylesheet
   Typefaces: Jost (all weights), DM Mono (metadata)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F8F7F4;
  --ink:      #111110;
  --mid:      #6A6A68;
  --light:    #9E9E9B;
  --rule:     #D9D6D0;
  --red:      #B8001F;
  --nav-h:    60px;
  --max:      1320px;
  --pad:      clamp(24px, 5vw, 60px);
  --serif:    'Jost', system-ui, sans-serif;  /* alias — no serif typefaces used */
  --sans:     'Jost', system-ui, sans-serif;
  --cond:     'Jost', system-ui, sans-serif;
  --mono:     'DM Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
}

.site-nav .logo {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-nav .logo:hover { opacity: 0.6; }

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.nav-links a {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s;
}

/* ── Page Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-header {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 6vw, 72px);
}

.page-header h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-header .subtitle {
  margin-top: 12px;
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Homepage ─────────────────────────────────────────────── */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.home-hero__header {
  grid-column: 1 / -1;
  padding: clamp(48px, 7vw, 88px) var(--pad) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-hero__name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.home-hero__id {
  font-family: var(--cond);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.8;
  text-align: right;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.home-hero__image {
  grid-column: 1 / -1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.home-hero__image--single img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.home-hero__image:hover img { opacity: 0.92; }

.home-hero__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(17,17,16,0.55));
}

.home-hero__caption p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* secondary hero items removed — single image hero */

.home-intro {
  padding: clamp(40px, 6vw, 72px) var(--pad);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.home-intro__text {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}

.home-intro__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 4vw, 48px);
}

.home-intro__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.home-intro__link:first-child { border-top: 1px solid var(--rule); }
.home-intro__link:hover { color: var(--ink); }

.home-intro__link .arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.home-intro__link:hover .arrow { transform: translateX(4px); }

.home-collections {
  padding: clamp(32px, 5vw, 56px) var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-collections__label {
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-right: 8px;
  flex-shrink: 0;
}

.home-collections__item {
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

.home-collections__item + .home-collections__item::before {
  content: "·";
  margin-right: 12px;
  color: var(--rule);
}

/* ── Work / Gallery ───────────────────────────────────────── */
.series-nav,
.series-nav-inner {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 6vw, 64px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.series-nav button,
.series-nav-inner button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px clamp(10px, 2vw, 22px);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: -1px;
}

.series-nav button:hover,
.series-nav-inner button:hover { color: var(--ink); }

.series-nav button.active,
.series-nav-inner button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.series-panel { display: none; }
.series-panel.active { display: block; }

.series-description {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(48px, 8vw, 96px);
}

.work-item {
  display: block;
  cursor: pointer;
}

.work-item__image {
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 14px;
  position: relative;
  /* No fixed aspect-ratio here — let the image drive its own height */
}

/* Aspect ratio helpers are used only where images have consistent proportions */
/* aspect-ratio classes removed — images display at natural proportions */

.work-item__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-item__image img { opacity: 0.88; }


.work-item__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--mid);
}

.work-item__title {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 3px;
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(48px, 8vw, 80px);
}

.about-portrait {
  aspect-ratio: 4/3;
  background: var(--rule);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-bio p {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: 1.4em;
}

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

.about-section {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.about-section h2 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.collection-list {
  list-style: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

.collection-list li + li {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  margin-top: 8px;
}

/* ── CV ───────────────────────────────────────────────────── */
.cv-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding-bottom: clamp(48px, 8vw, 80px);
}

.cv-section {
  display: contents;
}

.cv-section__label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding: clamp(24px, 4vw, 40px) 0 0;
  border-top: 1px solid var(--rule);
}

.cv-section__entries {
  padding: clamp(24px, 4vw, 40px) 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.cv-entry__year {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mid);
  padding-top: 2px;
  flex-shrink: 0;
}

.cv-entry__detail { font-weight: 300; }

.cv-entry__detail strong {
  font-weight: 500;
  display: block;
}

.cv-entry__detail em {
  font-style: italic;
  color: var(--mid);
  font-size: 0.82rem;
}

/* CV download button */
.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
  transition: background 0.2s, color 0.2s;
}

.cv-download:hover { background: var(--ink); color: var(--bg); }

/* ── Books ────────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.book-item { }

.book-item__cover {
  aspect-ratio: 3/4;
  background: var(--rule);
  overflow: hidden;
  margin-bottom: 24px;
}

.book-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-item__title {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 6px;
}

.book-item__sub {
  font-family: var(--cond);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.book-item__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.book-item__description {
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--ink);
}

.book-item__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.book-link {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 7px 14px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.book-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* ── Press ────────────────────────────────────────────────── */
.press-year-group {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.press-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.press-entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}

.press-entry__text {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.press-entry__text strong {
  font-weight: 400;
  font-family: var(--sans);
  font-style: italic;
}

.press-entry__source {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--light);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
}

.press-entry a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.press-entry a:hover { color: var(--ink); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.contact-block h2 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.contact-block p {
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.contact-block a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--ink); }

.contact-field textarea { resize: vertical; min-height: 100px; }

.contact-submit {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 8px;
}

.contact-submit:hover { background: transparent; color: var(--ink); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--light);
  letter-spacing: 0.04em;
}

.site-footer__gallery {
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.site-footer__gallery:hover { color: var(--ink); }

/* ── Utilities ────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-mid { color: var(--mid); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero__image {
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    min-height: 50vw;
  }

  .home-hero__secondary {
    grid-column: 1;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    border-top: none;
  }

  .home-hero__secondary-item { border-bottom: 1px solid var(--rule); }
  .home-hero__secondary-item:last-child { border-bottom: 1px solid var(--rule); }

  .home-intro { grid-template-columns: 1fr; }
  .home-intro__links { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 280px; }

  .cv-grid { grid-template-columns: 1fr; }
  .cv-section__label { padding-top: 24px; }
  .cv-section__entries { padding-top: 12px; border-top: none; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 20px var(--pad) 24px;
    gap: 0;
  }
  .nav-links.open a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.85rem;
  }
  .nav-toggle { display: flex; }

  .home-hero__header { flex-direction: column; align-items: flex-start; }
  .home-hero__id { text-align: left; }
  .home-hero__secondary { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

  .press-entry { grid-template-columns: 1fr; }
  .press-entry__source { text-align: left; }

  .cv-entry { grid-template-columns: 50px 1fr; gap: 0 12px; }

  .books-grid { grid-template-columns: 1fr; }
}
