/* Atelier Nord — project detail (Editorial) */

:root {
  --ember: #e94e1b;
  --ember-soft: rgba(233, 78, 27, 0.1);

  --bg: #f4f1ec;
  --white: #fff;
  --ink: #1a1917;
  --muted: #5c5852;
  --accent: #8a6d4b;
  --border: #d4cfc6;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 0.5rem; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--ink);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--ink); }

.project-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.intro-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.project-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.intro-meta {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.project-body {
  display: grid;
  grid-template-columns: 1fr min(300px, 28vw);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem);
}

.standfirst {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0 0 2rem;
  color: var(--ink);
}

.narrative h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}

.narrative p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pull-media {
  margin: 2.5rem 0;
}

.pull-media img {
  width: 100%;
  display: block;
}

.pull-media figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

.pull-quote {
  margin: 2.5rem 0;
  padding: 0;
  border: none;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-section h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-masonry figure:nth-child(1) {
  grid-column: 1 / -1;
}

.gallery-masonry img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-masonry figure:nth-child(1) img {
  aspect-ratio: 21 / 9;
}

.gallery-masonry figure:not(:nth-child(1)) img {
  aspect-ratio: 3 / 4;
}

.body-aside {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.aside-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.aside-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}

.aside-card h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.65rem;
}

.facts,
.credits {
  margin: 0;
}

.facts div,
.credits div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.facts dt,
.credits dt {
  color: var(--muted);
}

.facts dd,
.credits dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.services li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.nav-prev { justify-self: start; }
.nav-next { justify-self: end; text-align: right; }
.nav-all {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.project-nav a:not(.nav-all) {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.project-nav a:hover { color: var(--accent); }

.related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.related h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.related-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.related-item:hover {
  background: var(--white);
}

.related-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.r-cat {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.r-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.r-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .project-body {
    grid-template-columns: 1fr;
  }

  .body-aside {
    position: static;
  }

  .project-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-prev, .nav-next { justify-self: center; text-align: center; }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }
}
