/* ==========================================================================
   Blue Rocker — public site
   Design notes: the logo is fine black line art with a high-contrast serif
   wordmark and wide-tracked caps. The site echoes that — warm paper ground,
   near-black ink, one deep blue accent, and photography doing the heavy lifting.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --paper: #fbf8f3;
  --paper-deep: #f4efe6;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-soft: #4a4f57;
  --ink-faint: #7b818a;
  --line: #e3dbcf;
  --line-strong: #cfc4b3;

  --blue: #274a63;
  --blue-deep: #1b3547;
  --blue-soft: #eaf0f4;

  --sage: #6f7f68;

  --shadow-sm: 0 1px 2px rgba(38, 30, 20, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(38, 30, 20, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(38, 30, 20, 0.3);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 720px;
  --radius: 3px;

  --step: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout helpers ------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--paper-deep { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2 { color: #fff; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0 0 1rem;
}

.section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head p { color: var(--ink-soft); max-width: 54ch; }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }

.rule {
  border: 0; height: 1px; background: var(--line);
  margin-block: clamp(2rem, 1rem + 3vw, 3.5rem);
}

/* Small ornamental divider echoing the leaf flourish in the logo. */
.flourish {
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--line-strong); margin: 1.5rem 0;
}
.flourish::before, .flourish::after {
  content: ""; flex: 1; height: 1px; background: currentColor;
}
.flourish span { width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.flourish--center { justify-content: center; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }

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

.btn--light { background: transparent; color: var(--paper); border-color: rgba(251, 248, 243, .55); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }

/* Window onto the top of the logo lockup — the rocker and its circle, without the
   wordmark underneath (which the markup sets in type instead). The artwork leaves a
   blank band at 67-71% of its height; these heights cut inside that band. */
.brand__mark { display: block; width: 46px; height: 34px; overflow: hidden; flex: none; }
.brand__mark img { width: 46px; height: auto; display: block; }

.brand__text { display: block; }
.brand__name {
  display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1;
  letter-spacing: 0.01em;
}
.brand__tag {
  display: block; font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 0.25rem;
}

@media (min-width: 560px) {
  .brand__mark { width: 56px; height: 42px; }
  .brand__mark img { width: 56px; }
  .brand__name { font-size: 1.6rem; }
  .brand__tag { font-size: 0.6rem; letter-spacing: 0.3em; }
}

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
}

.nav a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft); text-decoration: none;
  padding-block: 0.35rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transition: transform .2s ease; transform-origin: left;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  background: var(--paper); padding: 0.5rem 0 1.5rem;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper-deep); }
.hero__inner {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center; padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero--no-image .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero--no-image .hero__copy { max-width: 46rem; margin-inline: auto; }
  .hero--no-image .btn-row { justify-content: center; }
}

.hero__copy h1 { margin-bottom: 0.35em; }
.hero__copy p.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem;
}
.hero--no-image .hero__copy p.lede { margin-inline: auto; }

.hero__image {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Watermark of the logo mark when no hero photo is set yet. */
.hero__watermark {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0.035; pointer-events: none;
}
.hero__watermark img { width: min(60%, 460px); }

/* --- Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--paper-deep); border: 1px solid var(--line);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding-top: 1rem; }
.card__title {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2;
  margin: 0 0 0.25rem;
}
.card:hover .card__title { color: var(--blue); }
.card__meta { font-size: 0.82rem; color: var(--ink-faint); }
.card__summary { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; }

.card__badge {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: rgba(23, 24, 28, 0.88); color: #fff;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px; backdrop-filter: blur(4px);
}
.card__badge--sold { background: rgba(140, 45, 45, 0.9); }
.card__badge--draft { background: rgba(180, 120, 20, 0.92); }

/* Placeholder shown when a piece has no photo yet. */
.no-photo {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--paper-deep); color: var(--line-strong);
}
/* div. makes this outrank the photo-frame rules (.hero__image img, .card__media img,
   .gallery__main img) that stretch real photos to fill and crop them. */
div.no-photo img {
  width: 45%; max-width: 130px; height: auto; object-fit: contain;
  opacity: 0.25; transform: none; cursor: default;
}

/* --- Category tiles ------------------------------------------------------- */
.tile { position: relative; overflow: hidden; text-decoration: none; color: #fff; display: block; }
.tile__media { aspect-ratio: 3 / 4; background: var(--blue-deep); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.tile:hover .tile__media img { transform: scale(1.05); }

/* Stand-in until the owner uploads a cover photo: the mark, faintly, on the brand blue. */
.tile__media--empty {
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.tile__media--empty img {
  width: 52%; max-width: 170px; height: auto;
  object-fit: contain; opacity: 0.16; filter: invert(1);
}
.tile:hover .tile__media--empty img { transform: none; }
.tile__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15,18,22,.82) 0%, rgba(15,18,22,.25) 45%, rgba(15,18,22,0) 75%);
}
.tile__name { font-family: var(--font-display); font-size: 1.75rem; margin: 0; color: #fff; }
.tile__count { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8; }

/* --- Filters -------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem;
}
.filters a {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid var(--line-strong);
  border-radius: 100px; text-decoration: none; color: var(--ink-soft);
  transition: all .16s ease;
}
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --- Item detail ---------------------------------------------------------- */
.piece { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .piece { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

.gallery__main {
  position: relative; background: var(--paper-deep);
  border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 5;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.gallery__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.6rem; margin-top: 0.6rem;
}
.gallery__thumb {
  aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: none;
  cursor: pointer; overflow: hidden; transition: border-color .15s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--line-strong); }
.gallery__thumb.is-active { border-color: var(--ink); border-width: 2px; }

.piece__title { margin-bottom: 0.2em; }
.piece__price { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.piece__price-note { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: .04em; }

.spec-list { margin: 2rem 0; border-top: 1px solid var(--line); }
.spec-list div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.spec-list dt {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; padding-top: 0.15rem;
}
.spec-list dd { margin: 0; color: var(--ink-soft); }

.prose { color: var(--ink-soft); }
.prose p { margin-bottom: 1em; }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(14, 15, 18, 0.94); padding: 2.5rem 1.5rem;
  place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.35rem; }
.field label {
  display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); margin-bottom: 0.5rem;
}
.field .hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.4rem; text-transform: none; letter-spacing: 0; font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 1rem; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.28rem; accent-color: var(--blue); flex: none; }
.check label { text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 500; color: var(--ink); margin: 0; }

.validation-error, .field-validation-error { color: #9a2c2c; font-size: 0.82rem; display: block; margin-top: 0.4rem; }
.input-validation-error { border-color: #9a2c2c !important; }

.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid; margin-bottom: 1.75rem; font-size: 0.92rem;
}
.alert--ok { background: #eef4ee; border-color: #bcd3bc; color: #2c4a2f; }
.alert--error { background: #fbeeee; border-color: #e0bcbc; color: #7d2626; }
.alert--info { background: var(--blue-soft); border-color: #c3d5e0; color: var(--blue-deep); }
.alert ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }

/* Bot trap: real people never see or fill this. */
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- Empty states --------------------------------------------------------- */
.empty {
  text-align: center; padding: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem;
  border: 1px dashed var(--line-strong); background: var(--surface);
}
.empty img { width: 90px; margin: 0 auto 1.5rem; opacity: .3; }
.empty h3 { margin-bottom: 0.4rem; }
.empty p { color: var(--ink-faint); max-width: 44ch; margin-inline: auto; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: auto; background: var(--ink); color: #b9bcc2;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: 0.9rem;
}
.site-footer a { color: #e6e3dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand img { height: 96px; width: auto; filter: invert(1) brightness(1.9); margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; color: #9aa0a8; }

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }

.social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  transition: background-color .15s ease, border-color .15s ease;
}
.social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-base {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.8rem; color: #82888f;
}

/* --- Breadcrumb ----------------------------------------------------------- */
.crumbs {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.75rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 0.5rem; opacity: .5; }

/* --- Page header ---------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.page-head h1 { margin-bottom: 0.25em; }
.page-head p { color: var(--ink-soft); max-width: 56ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
