/* Fonts, served from the site itself (Latin only) */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bebas-neue-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lato-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0b0b0b;
  --paper: #f2f0eb;
  --muted: #a9a59c;
  --soft: #c9c5bb;
  --line: #2a2926;
  --wrap: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--paper);
  transition: background 0.2s, color 0.2s;
}
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #ffffff; }
.btn-line { color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: #2a2926; }

/* Top bar: solid black, sits above the photo */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
[id] { scroll-margin-top: 96px; }

/* Nav */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 50px; width: auto; filter: invert(1); }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  text-transform: uppercase;
}
.wm-sub { font-family: Lato, system-ui, sans-serif; font-size: 13px; letter-spacing: 0.04em; margin-top: 4px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; min-height: calc(92vh - 83px); min-height: calc(92svh - 83px); display: flex; flex-direction: column; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
}
.hero-copy { position: relative; z-index: 1; width: 100%; }
.hero-copy { margin-top: auto; padding-top: 120px; padding-bottom: 64px; }
.hero-copy .eyebrow { color: #e6e2d8; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Sections */
.section { padding: 110px 0 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 4vw, 46px); }
.section-head p { margin: 0; max-width: 440px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { position: relative; display: block; height: 440px; overflow: hidden; text-decoration: none; background: #1a1a1a; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.7) 100%); }
.tile span { position: absolute; left: 20px; bottom: 18px; z-index: 1; font-weight: 700; font-size: 20px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 60px 0; }
.strip img { width: 100%; height: 400px; object-fit: cover; }

.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding: 80px 0 120px; }
.about img { flex: 1 1 360px; min-width: 0; height: 640px; object-fit: cover; }
.about-copy { flex: 1 1 420px; min-width: 0; }
.about h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 24px; }
.about p { color: var(--soft); font-size: 18px; line-height: 1.7; margin: 0 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 30px; font-weight: 800; color: var(--paper); }
.facts span { font-size: 14px; color: var(--muted); }

.book { background: var(--paper); color: var(--ink); }
.book .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.book h2 { font-size: clamp(40px, 5vw, 62px); max-width: 680px; }
.book p { margin: 14px 0 0; color: #4a4740; max-width: 520px; }
.book-actions { display: flex; flex-direction: column; gap: 12px; }
.book-actions span { font-size: 15px; color: #4a4740; }

.footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: #8f8b82; }
.footer a { text-decoration: none; color: var(--soft); }
.footer a:hover { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* Work page */
.page-head { padding: 60px 0 36px; }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); }
.page-head p { color: var(--muted); max-width: 560px; margin: 18px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  color: var(--paper);
  background: transparent;
  border: 1px solid #3a3935;
  border-radius: 999px;
  cursor: pointer;
}
.filters button:hover { border-color: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.grid { columns: 3 320px; column-gap: 12px; }
.grid a { display: block; margin: 0 0 12px; break-inside: avoid; background: #1a1a1a; cursor: zoom-in; }
.grid a[hidden] { display: none; }
.grid img { width: 100%; height: auto; transition: opacity 0.2s; }
.grid a:hover img { opacity: 0.88; }

.more { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 40px 0 100px; }
.more p { margin: 0; color: var(--muted); }
.section .more { padding: 0 0 40px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,0.96);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button {
  position: absolute;
  font: inherit;
  color: var(--paper);
  background: rgba(255,255,255,0.08);
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .topbar { position: relative; }
  [id] { scroll-margin-top: 0; }
  .nav-logo { gap: 10px; }
  .nav-logo img { height: 38px; }
  .wm-name { font-size: 21px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .wm-sub { font-size: 11px; }
  .nav-links { gap: 18px; }
  .hero-copy { padding-bottom: 44px; }
  .section { padding-top: 80px; }
  .tile { height: 320px; }
  .strip img { height: 320px; }
  .about { gap: 40px; padding-bottom: 80px; }
  .about img { height: 440px; }
  .book .wrap { padding-top: 80px; padding-bottom: 80px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-count { bottom: 28px; }
}
