/* ============================================================
   vinx.site — home & photography theme
   Concept: a dark studio wall. One large frame center-hung,
   a contact sheet strip below it, two panels on a lower shelf
   (field notes / ledger). A thin rail on the left holds the
   wayfinding, the way a gallery corridor would.
   ============================================================ */

:root {
  --bg-1: #1A2123;
  --bg-2: #293437;
  --rail: #14191B;
  --surface: #2E393C;
  --surface-hi: #374447;
  --line: rgba(255,255,255,0.09);
  --text-hi: #F3F0E9;
  --text-lo: #98A3A4;
  --accent: #E2A0B3;   /* dusty sakura pink — pulled from the photos themselves */
  --accent-ink: #2A1219;

  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.9rem + 2.6vw, 3.6rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

/* ---------- Rail ---------- */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 64px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  z-index: 20;
}

.rail .burger {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail .burger span { height: 1.5px; background: var(--text-lo); display: block; }

.rail .socials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.rail .socials a {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  text-decoration: none;
}
.rail .socials a:hover { color: var(--accent); }

.page { padding-left: 64px; }

@media (max-width: 780px) {
  .rail { display: none; }
  .page { padding-left: 0; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.site-header .mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text-hi);
}
.site-header .mark span { color: var(--accent); }

.site-nav { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-lo);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--text-hi);
  border-color: var(--accent);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-hi);
  border: 1px solid var(--line);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  display: inline-block;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover { opacity: 0.9; color: var(--accent-ink); }

/* ---------- Hero ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-nav .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.hero-nav h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero-nav ul { list-style: none; margin: 0; padding: 0; }
.hero-nav li { border-top: 1px solid var(--line); }
.hero-nav li:last-child { border-bottom: 1px solid var(--line); }
.hero-nav a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--text-lo);
  font-size: 0.9rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.hero-nav a:hover { color: var(--text-hi); padding-left: 0.3rem; }

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.6);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame .tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(20, 25, 27, 0.72);
  backdrop-filter: blur(4px);
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text-lo);
  margin-bottom: 1.25rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero-copy p {
  color: var(--text-lo);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-nav { order: 3; }
  .hero-frame { order: 1; aspect-ratio: 16/10; }
  .hero-copy { order: 2; }
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  margin: 0;
}
.section-head a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--text-lo);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.section-head a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Frame strip (photo grid) ---------- */
.frame-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.frame-strip a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.frame-strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.frame-strip a:hover img { transform: scale(1.05); }
.frame-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,12,13,0.85), transparent);
  color: var(--text-hi);
  font-size: 0.72rem;
  padding: 1.5rem 0.6rem 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.frame-strip a:hover figcaption { opacity: 1; }

/* ---------- Lower shelf: two panels + accent square ---------- */
.shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 900px) {
  .shelf { grid-template-columns: 1fr 140px 1fr; align-items: stretch; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.panel .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.panel p { color: var(--text-lo); font-size: 0.92rem; margin: 0 0 0.5rem; }
.panel .post-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--text-hi);
  font-size: 0.92rem;
}
.panel .post-line time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-lo);
  white-space: nowrap;
}
.panel .lock-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-lo);
  background: var(--surface-hi);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.75rem 0 1.1rem;
}

.shelf-accent {
  border-radius: 14px;
  overflow: hidden;
  min-height: 140px;
  background-size: cover;
  background-position: center;
}

.shelf--single { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .shelf--single { grid-template-columns: 1fr 1.2fr; }
}
.shelf-accent--tall { min-height: 260px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-lo);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Photography gallery page ---------- */
.gallery-hero { padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2rem); }
.gallery-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0.6rem 0 0.75rem;
  font-weight: 600;
}
.gallery-hero p { color: var(--text-lo); max-width: 56ch; }

.gallery-grid {
  columns: 3 220px;
  column-gap: 1rem;
  padding-bottom: 4rem;
}
.gallery-grid figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-grid img { width: 100%; display: block; }
.gallery-grid figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-lo);
  padding: 0.6rem 0.1rem 0;
}

@media (max-width: 700px) { .gallery-grid { columns: 2 160px; } }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,12,13,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox .lb-cap {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  text-align: center; color: var(--text-hi);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: none; color: var(--text-hi);
  font-family: var(--font-mono); font-size: 1.4rem; cursor: pointer; padding: 0.5rem 1rem;
}
.lightbox .lb-close { top: 1.25rem; right: 1.5rem; }
.lightbox .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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