/* ============================================================
   Jemma Harrison — chef, London
   Palette: paper / ink-navy / signal-red  (ref: Faber jacket)
   Type:    Archivo (display, nav) + Newsreader (serif body)
   ============================================================ */

:root {
  --paper: #f4f0e6;
  --paper-dim: #eae4d3;
  --ink: #2b3590;
  --ink-deep: #1d2466;
  --red: #e63329;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: #4C0F0F;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--red); color: var(--paper); }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px var(--gutter);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.site-nav a { pointer-events: auto; }

.nav-mark {
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--red);
  text-decoration: none;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.nav-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #4C0F0F;
}

.nav-links a:hover { color: var(--red); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* no bottom padding: the word-field runs to the viewport edge so words
     clip at the screen instead of on a mid-air line */
  padding: clamp(80px, 12vh, 140px) var(--gutter) 0;
}

.word-field {
  flex: 1;
  min-height: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 4.2vw, 80px);
  line-height: 1.1;
  color: #F5B8B8;
  text-align: center;
  overflow: hidden;
  user-select: none;
}

.word-field-more { display: inline; }

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  /* centre the title around the 40% line of the viewport, just above middle */
  transform: translateY(-10svh);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(82px, 17.5vw, 310px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--red);
  mix-blend-mode: multiply;
  text-align: center;
  pointer-events: none;
}

.hero-cue {
  position: absolute;
  z-index: 4;
  left: calc(var(--gutter) - 12px);
  bottom: 14px;
  margin: 0;
  padding: 9px 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
}

.hero-cue::after { content: " ↓"; color: var(--red); }

/* ---------- shared section chrome ---------- */

.section {
  position: relative;
  padding: clamp(70px, 11vh, 140px) var(--gutter);
  padding-top: clamp(78px, 11vh, 120px);
}

.section-label {
  position: absolute;
  top: 18px;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label .index { color: var(--red); }


/* ---------- about ---------- */

.about {
  background: #FFEFE2;
  color: #4C0F0F;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-figure { margin: 0; }

.about-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-figure figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.about-copy h2 {
  margin: 0 0 0.5em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.about-copy h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0;
}

.about-copy p {
  max-width: 42ch;
  margin: 0 0 1.2em;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
}

.word-list {
  margin-top: clamp(28px, 4vh, 48px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--red);
}

/* ---------- work — image-led collages ---------- */

.work-item {
  display: block;
  width: 100%;
  margin: 0 0 clamp(48px, 8vh, 96px);
  padding: 0;
  border: 0;
  background: none;
  color: #4C0F0F;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-item:last-of-type { margin-bottom: 0; }

.work-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 0 14px;
}

.work-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.work-title {
  margin: 0;
  font-family: "EB Garamond", Garamond, "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #e63329;
}

.work-meta {
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

.work-collage {
  display: grid;
  gap: clamp(8px, 1vw, 16px);
}

.work-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* main image left, two stacked right */
.collage-a {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "main top" "main bottom";
}

/* mirrored: two stacked left, main right */
.collage-b {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "top main" "bottom main";
}

.collage-a .c-main,
.collage-b .c-main { grid-area: main; aspect-ratio: 4 / 3; }
.collage-a .c-top,
.collage-b .c-top { grid-area: top; }
.collage-a .c-bottom,
.collage-b .c-bottom { grid-area: bottom; }

/* three across */
.collage-c {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collage-c img { aspect-ratio: 4 / 5; }

/* ---------- contact ---------- */

.contact { position: relative; }

.contact-num {
  position: absolute;
  top: 18px;
  left: var(--gutter);
  z-index: 2;
  margin: 0;
  color: var(--paper);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: clamp(330px, calc(52vh - 50px), 510px);
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(40px, 6vh, 72px);
  overflow: hidden;
}

.panel-jemma { background: #FFEFE2; color: #4C0F0F; }
.panel-kaunter { background: var(--red); color: var(--paper); }

.contact-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-links {
  grid-column: 1;
  align-self: end;
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.contact-links a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--paper);
  text-decoration-color: currentColor;
  text-underline-offset: 6px;
}

.panel-jemma .contact-head,
.panel-jemma .contact-links a { color: #4C0F0F; }

.panel-jemma .contact-links a:hover { color: var(--red); filter: none; }
.panel-kaunter .contact-links a:hover { color: var(--ink); filter: none; }

.contact-wordmark {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  margin: 0;
}

.wordmark-jemma {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(42px, 8vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: right;
  color: var(--red);
}

.contact-logo {
  width: clamp(220px, 38vw, 560px);
  height: auto;
  opacity: 0.55;
}

/* ---------- gallery modal ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: rgba(255, 239, 226, 0.98);
  color: #4C0F0F;
}

.lightbox.open { display: flex; }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#lightbox-count {
  white-space: nowrap;
  flex-shrink: 0;
}

.lightbox-close {
  border: 0;
  background: none;
  color: #4C0F0F;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.lightbox-close:hover { color: var(--red); filter: brightness(1.4); }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 40px);
  padding: 0 var(--gutter);
  min-height: 0;
}

.lightbox-stage img {
  max-width: min(78vw, 1100px);
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-arrow {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 28px;
  cursor: pointer;
}

.lightbox-arrow:hover { color: var(--red); }

.lightbox-caption {
  padding: 18px var(--gutter) 26px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  opacity: 0.85;
}

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

@media (max-width: 760px) {
  .nav-mark {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    align-self: baseline;
    /* nudge toward the screen edge so it clears the centred "Contact" link */
    transform: translateX(12px);
  }

  .word-field {
    font-size: clamp(19px, 5.4vw, 32px);
    line-height: 1.18;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-title { font-size: clamp(62px, 18.5vw, 120px); }

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

  .work-collage.collage-a,
  .work-collage.collage-b {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "main" "top" "bottom";
  }

  .collage-a .c-top, .collage-a .c-bottom,
  .collage-b .c-top, .collage-b .c-bottom { aspect-ratio: 3 / 2; }

  .collage-c { grid-template-columns: 1fr; }
  .collage-c img { aspect-ratio: 4 / 5; }

  .work-meta { display: none; }

  .contact-panel {
    min-height: 60vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-content: space-between;
  }

  .contact-head { grid-column: 1; grid-row: 1; }

  .contact-wordmark {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: end;
    margin-bottom: 30px;
  }

  .contact-links {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .wordmark-jemma { font-size: clamp(40px, 13vw, 80px); text-align: left; }

  .contact-logo { width: 60vw; }

  .lightbox-stage {
    gap: 2px;
    padding: 0 6px;
  }

  .lightbox-stage img {
    max-width: 72vw;
    max-height: 66vh;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
