/* Mahaut Guillon — portfolio site */

@font-face {
  font-family: "Cooper Hewitt";
  src: url("../fonts/CooperHewitt-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cooper Hewitt";
  src: url("../fonts/CooperHewitt-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cooper Hewitt";
  src: url("../fonts/CooperHewitt-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --max-width: 960px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Cooper Hewitt", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  padding: 56px 0 24px;
  text-align: center;
}

.site-title {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a.active {
  border-bottom: 1px solid var(--fg);
}

/* Footer */

.site-footer {
  margin-top: 80px;
  padding: 32px 0 56px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* Home */

.home-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter) 80px;
}

.home-hero .site-title {
  font-size: clamp(32px, 7vw, 56px);
}

.home-hero .site-nav {
  font-size: 16px;
}

/* Grid listings (films, clips) */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 24px;
  margin: 40px 0;
}

.grid-item figure {
  margin: 0;
}

.grid-item img {
  width: 100%;
  object-fit: cover;
  background: #161616;
}

.grid-item figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.grid-item a {
  display: block;
}

.grid-item a:hover img {
  opacity: 0.85;
}

/* Detail pages */

.page-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 8px;
}

.detail-meta {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.detail-body {
  max-width: 640px;
  margin: 0 auto;
}

.detail-body p {
  margin: 0 0 16px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.detail-gallery figure {
  margin: 0;
}

.detail-gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.credits {
  max-width: 480px;
  margin: 48px auto 0;
  font-size: 14px;
}

.credits p {
  margin: 0 0 6px;
}

.credits strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Placeholder / rebuild notice */

.notice {
  max-width: 560px;
  margin: 40px auto;
  padding: 20px 24px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* Contact / about */

.about-section {
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: var(--muted);
}

.about-section p {
  margin: 0 0 12px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 40px 0 16px;
  }
  .site-nav {
    gap: 4px 14px;
  }
}
