/* Havn — project detail (Scandinavian) */

:root {
  --ember: #e94e1b;
  --ember-soft: rgba(233, 78, 27, 0.1);

  --snow: #f8f9fa;
  --white: #fff;
  --ice: #e4eaef;
  --fjord: #5a7d8c;
  --fjord-deep: #3d5f6e;
  --ink: #2c3338;
  --muted: #5a656d;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--fjord);
  color: var(--white);
}
.skip-link:focus { top: 0.5rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--white);
  border-bottom: 1px solid var(--ice);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--fjord-deep); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--fjord);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.project-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 51, 56, 0.65) 0%, transparent 55%);
}

.hero-caption {
  position: relative;
  z-index: 1;
  padding: 3rem clamp(1rem, 4vw, 2rem);
  color: var(--white);
  max-width: 48rem;
}

.hero-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.hero-caption h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.hero-meta {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Layout */
.project-layout {
  display: grid;
  grid-template-columns: 1fr min(320px, 30vw);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem);
}

.block h2 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fjord);
  margin: 0 0 1rem;
}

.block + .block {
  margin-top: 2.5rem;
}

.block .lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1rem;
}

.block p {
  margin: 0;
  color: var(--muted);
}

.quote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-left: 3px solid var(--fjord);
  border-radius: 0 8px 8px 0;
}

.quote p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--muted);
}

/* Aside */
.project-aside {
  align-self: start;
  position: sticky;
  top: 5rem;
}

.facts-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: 8px;
}

.facts-card h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ice);
}

.facts dt {
  font-size: 0.75rem;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
}

.services {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  font-size: 0.8125rem;
  padding: 0.35rem 0;
  color: var(--fjord-deep);
}

.services li::before {
  content: "· ";
  color: var(--fjord);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-wide {
  grid-column: 1 / -1;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.gallery-wide img {
  aspect-ratio: 21 / 9;
}

.credits-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.credits-list div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
}

.credits-list dt {
  font-size: 0.75rem;
  color: var(--muted);
}

.credits-list dd {
  margin: 0;
  font-weight: 500;
}

/* Nav + related */
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
  border-top: 1px solid var(--ice);
  padding-top: 2rem;
}

.project-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fjord-deep);
  text-decoration: none;
  max-width: 45%;
}

.project-nav a:hover { color: var(--fjord); }

.related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

.related h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ice);
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(44, 51, 56, 0.08);
}

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-cat {
  display: block;
  padding: 0.5rem 0.75rem 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fjord);
}

.related-title {
  display: block;
  padding: 0.25rem 0.75rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-aside {
    position: static;
    order: -1;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: 1;
  }
}
