/*
  style.css – the design for ALL pages.
  Colors and sizes are defined once here, at the top.
*/
:root {
  --bg: #000;          /* page background */
  --fg: #f2f2f2;       /* text */
  --muted: #8c8c8c;    /* secondary text */
  --line: #262626;     /* thin lines */
  --bar-height: 72px;  /* top bar, normal */
  --bar-small: 56px;   /* top bar, after scrolling */
  --max-width: 1100px; /* content width */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

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

/* ---------- Top bar ---------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--bar-height);           /* reserves space before menu.js runs */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 0.25s, background 0.25s, border-color 0.25s;
}

#site-header.scrolled {
  height: var(--bar-small);
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--line);
}

.bar {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
  transition: height 0.25s;
}

#site-header.scrolled .logo img { height: 28px; }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.nav a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* ☰ button – only visible on small screens */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--fg);
  transition: transform 0.25s, opacity 0.25s;
}

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  #site-header.open { background: var(--bg); }
  #site-header.open .nav { display: flex; }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a.active { border-bottom-color: var(--line); }

  /* ☰ turns into ✕ when open */
  #site-header.open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  #site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  #site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Page content ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

h1 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  text-wrap: balance;
}

h2 {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 64px 0 16px;
}

p { max-width: 65ch; margin: 0 0 16px; }

.lead { font-size: 20px; color: var(--fg); }

.muted { color: var(--muted); }

/* Placeholder boxes – replace with real content later */
.placeholder {
  border: 1px dashed var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

/* Home: big header image */
.hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  margin-bottom: 48px;
}

/* Home: artwork grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery .placeholder { aspect-ratio: 4 / 3; }

/* About: links list */
.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}