/* ── Linda · Tattoo ─────────────────────────────── */
:root {
  --bg: #0d0c0c;
  --bg-soft: #141313;
  --ink: #e8e4de;
  --ink-dim: #9a948c;
  --line: #2a2726;
  --accent: #c9b8a3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

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

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

/* ── Header ── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: linear-gradient(to bottom, rgba(13,12,12,.85), transparent);
  backdrop-filter: blur(2px);
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}

nav { display: flex; gap: 1.8rem; }

nav a {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .3s;
}

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

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 9.5vw, 7rem);
  letter-spacing: .18em;
  text-indent: .18em; /* compensate trailing letter-spacing for true centering */
  text-transform: uppercase;
  line-height: 1.1;
}

.hero p {
  margin-top: 1.2rem;
  color: var(--ink-dim);
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  font-size: 1.2rem;
  color: var(--ink-dim);
  animation: drift 2.4s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── Mood sections ── */
.mood {
  max-width: 620px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  text-align: center;
}

.mood p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}

.mood small {
  display: block;
  margin-top: 1.4rem;
  color: var(--ink-dim);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ── Collage gallery ── */
.collage {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.collage figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.collage img {
  width: 100%;
  height: auto;
  filter: grayscale(15%) contrast(1.02);
  transition: transform .8s ease, filter .8s ease;
}

.collage figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05);
}

.collage figure:hover { z-index: 5; }

/* shuffled placement — widths, offsets, slight tilts */
.collage figure:nth-child(odd)  { margin-right: auto; }
.collage figure:nth-child(even) { margin-left: auto; }

.collage figure:nth-child(1) { width: 58%; --r: -1.6deg; }
.collage figure:nth-child(2) { width: 46%; --r:  1.2deg; margin-top: -14%; z-index: 2; }
.collage figure:nth-child(3) { width: 52%; --r:  0.8deg; margin-top: -6%; margin-left: 6%; }
.collage figure:nth-child(4) { width: 42%; --r: -1.4deg; margin-top: -12%; margin-right: 4%; z-index: 2; }
.collage figure:nth-child(5) { width: 60%; --r:  1.5deg; margin-top: -8%; margin-left: 14%; margin-right: 0; }
.collage figure:nth-child(6) { width: 44%; --r: -1deg;   margin-top: -15%; margin-left: 2%; margin-right: auto; z-index: 2; }
.collage figure:nth-child(7) { width: 54%; --r:  1.8deg; margin-top: -10%; margin-left: auto; margin-right: 5%; }
.collage figure:nth-child(8) { width: 48%; --r: -1.2deg; margin-top: -13%; margin-left: 8%; margin-right: auto; z-index: 3; }

/* ── Contact / footer ── */
.contact {
  text-align: center;
  padding: 8rem 1.5rem 6rem;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact p {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-size: .85rem;
}

.contact .insta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: .85rem 2.4rem;
  border: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  transition: border-color .4s, color .4s;
}

.contact .insta:hover { border-color: var(--accent); color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: .72rem;
  letter-spacing: .12em;
}

footer nav a { font-size: .72rem; }

/* ── Legal pages ── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 1.5rem 5rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: .06em;
  margin: 2.5rem 0 .8rem;
}

.legal p { color: var(--ink-dim); font-size: .92rem; margin-bottom: 1rem; }

.legal a { color: var(--accent); }

/* ── Scroll reveal (rotation preserved via --r) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(var(--r, 0deg));
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }
  .hero .scroll-hint { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 560px) {
  header { padding: 1.1rem 1.2rem; }
  .logo { font-size: 1rem; letter-spacing: .22em; }
  .hero h1 { letter-spacing: .1em; text-indent: .1em; }
  nav { gap: 1.1rem; }
  .mood { padding: 5rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }

  /* simpler stagger on small screens */
  .collage { padding: 1rem 1rem 4rem; }
  .collage figure:nth-child(n) {
    width: 82%;
    margin-top: -10%;
    margin-left: 0;
    margin-right: 0;
  }
  .collage figure:nth-child(1) { margin-top: 0; }
  .collage figure:nth-child(odd)  { margin-right: auto; }
  .collage figure:nth-child(even) { margin-left: auto; }
}
