/* ---- AnnieVW — dark navy, muted, handmade ---- */
:root {
  --bg:        #0a1422;   /* deepest — very dark blue, not black */
  --bg-2:      #0e1c30;   /* section panels */
  --surface:   #15293f;   /* cards */
  --surface-2: #1b3650;   /* hover */
  --line:      #2a425f;   /* sketch outlines */
  --text:      #e7eef7;
  --muted:     #8ba0bb;
  --accent:    #6db8ef;   /* lighter blue highlight */
  --accent-soft: #3d6e9c;
  --ink:       #cfe0f2;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* faint paper-grain so the dark isn't flat */
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(60,110,156,0.18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.scribble {
  font-family: "Caveat", cursive;
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(10,20,34,0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42,66,95,0.5);
}
.nav .brand {
  font-family: "Caveat", cursive;
  font-size: 1.9rem; font-weight: 700;
  text-decoration: none; color: var(--text);
}
.nav nav { display: flex; gap: clamp(0.8rem, 2.5vw, 1.8rem); }
.nav nav a {
  text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 0.95rem;
  padding-bottom: 2px; transition: color .2s;
}
.nav nav a:hover { color: var(--accent); }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: clamp(1.4rem, 5vh, 3rem) 1.5rem clamp(1.2rem, 3.5vh, 2.2rem);
}
.hero .scribble { font-size: 1.25rem; }
.hero h1 {
  font-family: "Caveat", cursive;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  margin: 0.1rem 0 0.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(109,184,239,0.15);
}
.hero .tagline {
  color: var(--muted); font-size: 0.98rem; letter-spacing: 0.06em;
  margin: 0 0 1.1rem;
}

/* ---- sketch button ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: "Caveat", cursive; font-size: 1.4rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  position: relative; cursor: pointer;
  background: transparent;
}
.sketch-btn {
  border: 1.5px solid rgba(214,228,244,0.7);   /* solid line */
  border-radius: 14px;
  box-shadow: 0 0 16px 2px rgba(109,184,239,0.28);   /* soft glow behind */
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.sketch-btn:hover {
  color: #fff; transform: translateY(-1px);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 22px 4px rgba(109,184,239,0.45);
}

/* ---- sections ---- */
.gallery-section {
  padding: clamp(1.4rem, 3.5vh, 2.6rem) clamp(1rem, 5vw, 4rem);
  max-width: 1200px; margin: 0 auto;
}
.gallery-section:first-of-type { padding-top: 0.4rem; }
.section-head { margin-bottom: 1.2rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0;
  font-weight: 700; letter-spacing: -0.01em;
}
.section-head .note { font-size: 1.3rem; margin-top: -2px; }
/* faint hand-drawn underline under each section title */
.section-head h2::after {
  content: ""; display: block; width: 76px; height: 2px; margin-top: 8px;
  background: rgba(214,228,244,0.6);
  border-radius: 2px;
}

/* ---- gallery grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.grid.loops { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.tile {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.grid.loops .tile { aspect-ratio: 1 / 1; }
.grid.wide  .tile { aspect-ratio: 16 / 9; }

/* solid outline + soft glow behind */
.tile {
  border: 1.5px solid rgba(214,228,244,0.55);
  box-shadow: 0 0 18px 2px rgba(109,184,239,0.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 26px 4px rgba(109,184,239,0.4);
}

.tile img, .tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* placeholder look until real art is dropped in */
.tile.placeholder {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, var(--surface), var(--bg-2));
}
.tile.placeholder span {
  font-family: "Caveat", cursive; color: var(--muted);
  font-size: 1.5rem; padding: 0 1rem;
}

.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(7,14,24,0.85));
  font-family: "Caveat", cursive; font-size: 1.25rem;
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.tile:hover .cap { opacity: 1; transform: none; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  background: rgba(5,10,18,0.92); backdrop-filter: blur(6px);
  padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img, .lightbox video {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox .close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  font-family: "Caveat", cursive; font-size: 2rem; color: var(--text);
  cursor: pointer; background: none; border: none;
}

/* ---- footer ---- */
footer {
  text-align: center; padding: 3.5rem 1.5rem 4rem;
  border-top: 1px solid rgba(42,66,95,0.4); margin-top: 2rem;
}
footer .scribble { font-size: 1.6rem; }
.muted { color: var(--muted); font-size: 0.95rem; }
.muted a { color: var(--accent); text-decoration: none; }

@media (max-width: 540px) {
  .nav nav { gap: 0.7rem; font-size: 0.85rem; }
}
