/* Laura Bradley Arts, Private Viewing Rooms
   Design tokens pulled from laurabradleyarts.com (Squarespace 7.1):
   headings Syne, body Hanken Grotesk, navy-slate ink on white, warm sand accents. */

:root {
  --white-hsl: 0, 0%, 100%;
  --black-hsl: 218, 37%, 23%;
  --accent-hsl: 38, 29%, 87%;
  --light-accent-hsl: 40, 30%, 96%;

  --bg: hsl(var(--white-hsl));
  --ink: hsl(var(--black-hsl));
  --ink-soft: hsla(var(--black-hsl), 0.66);
  --ink-faint: hsla(var(--black-hsl), 0.38);
  --sand: hsl(var(--accent-hsl));
  --cream: hsl(var(--light-accent-hsl));
  --hairline: hsla(var(--black-hsl), 0.14);

  --font-display: "Syne", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(3.5rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

::selection { background: var(--sand); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Chrome ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  height: 26px;
  width: auto;
}

@media (min-width: 768px) {
  .wordmark-logo { height: 30px; }
}

.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.head-actions a { text-decoration: none; color: var(--ink-soft); }
.head-actions a:hover { color: var(--ink); }

.site-foot {
  margin-top: auto;
  padding: 2.2rem var(--gutter) 2.6rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Buttons and forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1rem 2rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.btn:disabled { opacity: 0.45; pointer-events: none; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  padding: 0.65rem 0.1rem;
  min-height: 48px;
  transition: border-color 0.2s ease;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.form-error {
  font-size: 0.9rem;
  color: hsl(6, 55%, 40%);
  min-height: 1.4em;
}

/* ---------- Login / gate pages ---------- */

.gate {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--section) var(--gutter);
}

.gate-card {
  width: 100%;
  max-width: 26.5rem;
  text-align: center;
}

.gate-card .eyebrow { margin-bottom: 1.1rem; }

.gate-card h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  margin-bottom: 1.1rem;
}

.gate-card > p { color: var(--ink-soft); margin-bottom: 2.2rem; }

.gate-card form { text-align: left; display: grid; gap: 1.4rem; }

.gate-card .btn { width: 100%; }

.gate-rule {
  width: 2.6rem;
  height: 3px;
  background: var(--sand);
  margin: 0 auto 1.4rem;
}

.gate-swap { display: none; }
.gate.is-sent .gate-initial { display: none; }
.gate.is-sent .gate-sent { display: block; }
.gate.is-expired .gate-initial { display: none; }
.gate.is-expired .gate-expired { display: block; }

/* ---------- Your Viewing Rooms ---------- */

.page-intro {
  padding: var(--section) var(--gutter) calc(var(--section) * 0.5);
  max-width: 46rem;
}

.page-intro h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0.9rem 0 1rem; }
.page-intro p { color: var(--ink-soft); max-width: var(--measure); }

.room-list {
  list-style: none;
  padding: 0 var(--gutter) var(--section);
  max-width: 62rem;
}

.room-card {
  border-top: 1px solid var(--hairline);
}

.room-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 2rem;
  padding: 1.9rem 0;
  text-decoration: none;
  transition: padding-left 0.3s ease;
}

.room-card a:hover { padding-left: 0.9rem; }

.room-card h2 { font-size: clamp(1.15rem, 3vw, 1.55rem); }

.room-card .room-meta {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.room-card .room-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 1.4rem;
  color: var(--ink-faint);
}

.room-card a:hover .room-arrow { color: var(--ink); }

.empty-state {
  padding: 0 var(--gutter) var(--section);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Room viewer ---------- */

.room-hero {
  padding: var(--section) var(--gutter);
  text-align: center;
}

.room-hero .eyebrow { margin-bottom: 1.2rem; }

.room-hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  max-width: 20ch;
  margin: 0 auto;
}

.room-hero .room-sub {
  margin: 1.3rem auto 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.room-hero .gate-rule { margin-top: 2rem; }

.room-note {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section);
  color: var(--ink-soft);
  text-align: center;
}

.pieces {
  list-style: none;
  display: grid;
  gap: calc(var(--section) * 1.1);
  padding: 0 var(--gutter) var(--section);
  max-width: 71rem;
  margin: 0 auto;
  width: 100%;
}

.piece {
  display: grid;
  gap: 1.6rem;
  align-items: end;
}

.piece-figure { position: relative; }

.piece-figure button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: var(--cream);
  cursor: zoom-in;
}

.piece-figure img { width: 100%; height: auto; }

.piece-info { max-width: 24rem; }

.piece-artist {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.piece-title { font-style: italic; color: var(--ink-soft); margin-top: 0.15rem; }

.piece-facts {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.15rem;
}

.piece-price {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.piece-desc { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }

.piece-actions { margin-top: 1.4rem; }

.piece-actions .btn { padding: 0.8rem 1.5rem; min-height: 44px; }

/* Alternating editorial layout on wide screens */
@media (min-width: 769px) {
  .piece { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .piece:nth-child(even) .piece-figure { order: 2; }
  .piece:nth-child(even) .piece-info { order: 1; justify-self: end; text-align: right; }
  .piece:nth-child(even) .piece-facts { justify-items: end; }
}

/* ---------- Sections ---------- */

.section-head {
  text-align: center;
  padding: calc(var(--section) * 0.9) var(--gutter) calc(var(--section) * 0.55);
  max-width: 46rem;
  margin: 0 auto;
}

.section-head .eyebrow { margin-bottom: 1rem; }

.section-head h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
}

.section-head .section-artists {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.section-head .section-sub {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Placement bands ---------- */

.placement {
  background: var(--cream);
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--gutter);
  margin: calc(var(--section) * 0.55) 0;
}

.placement .eyebrow {
  text-align: center;
  margin-bottom: 1.6rem;
}

.placement-imgs {
  max-width: 71rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

.placement-imgs.multi {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: center;
}

.placement-imgs button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.placement-imgs img { width: 100%; height: auto; }

.placement .placement-caption {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Hearts ---------- */

.heart-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-faint);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.heart-btn:hover { border-color: var(--ink); color: var(--ink); }

.heart-btn.liked { color: hsl(6, 55%, 45%); border-color: hsl(6, 45%, 70%); }

.heart-btn:active { transform: scale(1.15); }

/* ---------- Piece page ---------- */

.piece-solo {
  max-width: 56rem;
  margin: 0 auto;
  padding: calc(var(--section) * 0.5) var(--gutter) var(--section);
  width: 100%;
}

.piece-solo .back-link {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
}

.piece-solo .back-link:hover { color: var(--ink); }

.piece-solo .solo-figure button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: var(--cream);
  cursor: zoom-in;
}

.piece-solo .solo-info { max-width: 40rem; margin: 2.2rem 0 0; text-align: left; }

.piece-solo .piece-artist { font-size: 1.3rem; }
.piece-solo .piece-title { font-size: 1.1rem; }
.piece-solo .piece-facts { margin-top: 1.1rem; }
.piece-solo .piece-price { font-size: 1.05rem; }
.piece-solo .piece-desc { margin-top: 1.2rem; }

/* The heart sits above the artwork, flush with its right edge. */
.solo-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.7rem;
}

.inquiry-box {
  max-width: 40rem;
  margin: calc(var(--section) * 0.55) 0 0;
  border-top: 1px solid var(--hairline);
  padding-top: calc(var(--section) * 0.4);
  text-align: left;
}

.inquiry-box h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.inquiry-box > p { color: var(--ink-soft); margin-bottom: 1.4rem; }

.inquiry-box textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
  padding: 0.9rem;
  min-height: 8rem;
  resize: vertical;
}

.inquiry-box textarea:focus { outline: none; border-color: var(--ink); }

.inquiry-box .btn { margin-top: 1.2rem; }

.inquiry-sent {
  background: var(--cream);
  padding: 1.6rem;
  color: var(--ink);
}

/* ---------- Likes page ---------- */

.like-rows {
  list-style: none;
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding: 0 var(--gutter) var(--section);
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
}

.like-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  border: 1px solid var(--hairline);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.like-card .lc-figure a { display: block; background: var(--cream); }
.like-card .lc-figure img { width: 100%; height: auto; }

.like-card .lc-room {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.like-card .lc-actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .like-card { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: hsla(var(--white-hsl), 0.96);
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: 50;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: 100%;
  max-height: 82svh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 30px 80px hsla(var(--black-hsl), 0.18);
}

.lightbox figcaption {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Room footer sign-off ---------- */

.room-close {
  text-align: center;
  padding: 0 var(--gutter) var(--section);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 auto;
}

.room-close .gate-rule { margin-bottom: 1.6rem; }

/* ---------- Sandbox banner ---------- */

.sandbox-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  padding: 0.55rem var(--gutter);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .site-head { padding: 1.1rem var(--gutter); }
  .head-actions { gap: 0.9rem; }
  .piece-info { max-width: none; }
}
