/* Arthur Bouet — portfolio */
:root {
  --paper: #FCFCFA;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --accent: #b98b1e; /* ochre, from the yellow studio wall */
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.header-insta {
  display: inline-flex;
  color: var(--ink);
  transition: color 0.15s ease, transform 0.15s ease;
}

.header-insta svg { width: 28px; height: 28px; }

.header-insta:hover { color: var(--accent); transform: scale(1.08); }

nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.35rem; justify-content: center; }

nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover { color: var(--ink); }

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  height: min(78vh, 720px);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2.6rem;
  background: linear-gradient(to bottom, rgba(20, 18, 10, 0.45), rgba(20, 18, 10, 0) 45%);
  color: #fff;
  text-align: center;
}

.hero-overlay h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-overlay p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
  text-align: center;
  margin: 3rem 0 0.6rem;
}

.page-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
}

/* ---------- Home sections ---------- */
.intro {
  text-align: center;
  max-width: 620px;
  margin: 3.5rem auto 0;
}

.intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.05em;
}

.intro p { color: var(--muted); margin-top: 0.7rem; }

.exhibitions {
  max-width: 620px;
  margin: 3rem auto;
  text-align: center;
}

.exhibitions h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.exhibitions ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
}

.exhibitions li {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Category tiles on home */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin: 3.2rem 0 4rem;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: #eee;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile:hover img { transform: scale(1.04); }

.tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(15, 14, 10, 0.65), transparent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Galleries ---------- */
.gallery {
  columns: 3 300px;
  column-gap: 1.2rem;
  padding-bottom: 3rem;
}

.gallery figure {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  transition: opacity 0.2s ease;
}

.gallery figure:hover img { opacity: 0.92; }

.gallery figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-top: 0.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 11, 0.94);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 0; right: 0;
  text-align: center;
  color: #cfcdc7;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #e9e7e1;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 1rem;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.lightbox button:hover { opacity: 1; }

.lb-close { top: 0.6rem; right: 0.8rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 460px;
  margin: 0 auto 4rem;
  text-align: center;
}

.contact-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
}

.contact-card p { color: var(--muted); margin-bottom: 1.6rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn svg { width: 18px; height: 18px; }

/* ---------- Media ---------- */
.video-wrap {
  max-width: 880px;
  margin: 0 auto 2rem;
}

.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-wrap figcaption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding-top: 0.6rem;
}


.media-note {
  max-width: 560px;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--muted);
}

.media-note .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner a { color: var(--muted); display: inline-flex; }

.footer-inner a:hover { color: var(--ink); }

.footer-inner svg { width: 20px; height: 20px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; padding: 0.8rem 0.6rem 0.6rem; gap: 0.5rem; }
  /* Two even rows of four, so no link is left alone on a line */
  nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; justify-items: center; gap: 0.3rem 0.9rem; max-width: 100%; }
  nav a { font-size: 0.76rem; letter-spacing: 0.05em; }
  .brand { font-size: 1.2rem; }
  .hero { height: 58vh; }
  .gallery { columns: 2 150px; column-gap: 0.8rem; }
  .gallery figure { margin-bottom: 0.8rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  /* Odd last tile spans the full row instead of sitting alone at half width */
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 8 / 5; }
}
