/* Ash Paradise Art — gallery site */
:root {
  /* Single background everywhere — warm charcoal-taupe */
  --bg: #AEA398;
  --bg-soft: #AEA398;
  --surface: #AEA398;
  --ink: #1A1714;          /* near-black */
  --muted: #3D3833;        /* dark taupe */
  --line: rgba(26, 23, 20, 0.22);
  --line-strong: #1A1714;
  --accent: #7A4A2E;       /* quiet copper */
  --accent-soft: #A85A32;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(168, 90, 50, 0.28); color: #1A1714; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: var(--pad); top: 0.75rem; z-index: 100; background: var(--surface); padding: 0.5rem 0.75rem; }

/* ---- Nav ---- */
/* site-header base overridden below for wordmark layout */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav-left, .nav-right {
  display: flex; gap: 1.5rem; align-items: center;
}
.nav-right { justify-content: flex-end; }
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  justify-content: center;
}
.nav a.nav-link {
  font-size: 14px; /* was ~0.78rem/~12.5px; +~12–25% → clearly readable */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A1714; /* near-black, clearly visible */
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.3s var(--ease);
}
.nav a.nav-link:hover,
.nav a.nav-link.is-active { color: #1A1714; }
.nav a.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right 0.35s var(--ease);
}
.nav a.nav-link:hover::after,
.nav a.nav-link.is-active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center; justify-content: center;
  gap: 4px; flex-direction: column;
}
.menu-toggle span {
  display: block; width: 16px; height: 1px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--pad) 4rem;
}
.hero-frame {
  /* Ombia-matched frame: white passe-partout + outer 1px black hairline (like .borders / .hero__vid)
     Asymmetric mat: left ~2.5–3× top/right/bottom (image sits toward the right) */
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  --mat: clamp(1.25rem, 3.5vw, 2.75rem);
  --mat-left: calc(var(--mat) * 2.75);
  padding: var(--mat) var(--mat) var(--mat) var(--mat-left);
  width: min(100%, 980px); /* wider overall so left mat can breathe */
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: auto;
  min-height: 0;
  border: 1px solid #000; /* exact Ombia hairline */
  box-shadow: none;
  outline: none;
}
.hero-frame img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
  transform: none;
  transition: none;
  /* no inner hairline in Ombia CSS — image sits flush to the white mat */
  border: 0;
}
.hero:hover .hero-frame img { transform: none; }
.hero-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}
.hero-copy {
  margin-top: 2.75rem;
  max-width: 34rem;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 28rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ---- Sections ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 5rem;
}
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1.5rem; margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
}
.section-head a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.section-head a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- Collections ---- */
.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.collection-card {
  group: true;
  display: block;
}
.collection-card .media {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.collection-card img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.5s;
}
.collection-card:hover img { transform: none; }
.collection-card .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1rem;
  gap: 1rem;
}
.collection-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  margin: 0;
}
.collection-card .view {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.collection-card:hover .view { color: var(--ink); }
.collection-card .note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Product grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
}
.piece-card {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.piece-card:nth-child(1) { animation-delay: 0.05s; }
.piece-card:nth-child(2) { animation-delay: 0.12s; }
.piece-card:nth-child(3) { animation-delay: 0.19s; }
.piece-card:nth-child(4) { animation-delay: 0.26s; }
.piece-card:nth-child(5) { animation-delay: 0.33s; }
.piece-card:nth-child(6) { animation-delay: 0.4s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
.piece-card .media {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.piece-card img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.5s;
}
.piece-card:hover img { transform: none; }
.piece-card .meta {
  margin-top: 0.9rem;
  display: grid; gap: 0.25rem;
}
.piece-card .kind {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.piece-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0;
}
.piece-card .price {
  color: var(--muted);
  font-size: 0.88rem;
}
.piece-card .cta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.piece-card:hover .cta { color: var(--ink); }

/* ---- Page hero (inner) ---- */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 1.5rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0.4rem 0 0.8rem;
  line-height: 1.05;
}
.page-hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

/* ---- Piece detail ---- */
.piece-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.piece-detail .media {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.piece-detail .media img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
}
.piece-info { position: sticky; top: 6rem; }
.piece-info .kind {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.piece-info h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}
.piece-info .price {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.piece-info .desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 28rem;
}
.piece-meta {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  border-top: 1px solid var(--line);
}
.piece-meta li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.piece-meta span:first-child { color: var(--muted); }

/* ---- About / text pages ---- */
.split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.split .media {
  background: var(--bg-soft);
  overflow: hidden;
}
.split .media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.prose h1, .prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}
.prose h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.3rem 0 1rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; }
.prose p { color: var(--muted); margin: 0 0 1rem; max-width: 36rem; }
.prose .callout {
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Contact form (visual only) ---- */
.form {
  display: grid; gap: 1rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex; gap: 0.75rem; align-items: center;
  margin-bottom: 0.85rem;
}
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}
.site-footer p { color: var(--muted); margin: 0; max-width: 22rem; font-size: 0.92rem; }
.site-footer h4 {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink); transition: color 0.3s; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .nav-right { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .nav.is-open {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }
  .nav.is-open .nav-left,
  .nav.is-open .nav-right {
    display: contents;
  }
  .nav.is-open .nav-link {
    grid-column: 1 / -1;
    padding: 0.55rem var(--pad);
    background: var(--bg);
  }
  .nav.is-open .nav-left .nav-link:first-child {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    margin-top: 0.35rem;
  }
  .nav.is-open .nav-right .nav-link:last-child {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  /* place toggle/brand on first row via order */
  .nav.is-open .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav.is-open .menu-toggle { grid-column: 3; grid-row: 1; }
  .collections, .grid { grid-template-columns: 1fr 1fr; }
  .piece-detail, .split, .footer-inner { grid-template-columns: 1fr; }
  .piece-info { position: static; }
  .hero-frame {
    width: 100%;
    --mat: clamp(0.9rem, 3.2vw, 1.5rem);
    --mat-left: calc(var(--mat) * 2.2); /* still wider left, less extreme on small screens */
  }
  .hero-frame img { max-height: 70vh; aspect-ratio: 1 / 1; min-height: 0; object-fit: contain; }
}
@media (max-width: 620px) {
  .collections, .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


/* Force one background — no alternating panels */
html, body,
.site-header, .site-footer, .media,
.collection-card .media, .piece-card .media,
.piece-detail .media, .split .media,
.prose .callout, .nav.is-open .nav-link {
  background-color: var(--bg) !important;
}
.hero-frame {
  background-color: #FFFFFF !important;
  border: 1px solid #000 !important;
}
.btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn:hover {
  background: var(--ink);
  color: #AEA398;
}
.btn.ghost {
  color: var(--muted);
  border-color: var(--line);
}
.btn.ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.field input, .field textarea, .field select {
  color: var(--ink);
  caret-color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(61, 56, 51, 0.55);
}
.menu-toggle {
  border-color: var(--line);
}
.menu-toggle span {
  background: var(--ink);
}

/* No frames on non-hero images */
.collection-card .media,
.piece-card .media,
.piece-detail .media,
.split .media {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---- Header rules + huge wordmark (all pages) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 0;
  backdrop-filter: none;
}
.site-header.is-scrolled { border-bottom-color: transparent; }
.header-rule {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 0;
  border: 0;
  border-top: 1px solid #000;
  display: block;
}
.wordmark-band {
  width: 100%;
  padding: clamp(0.55rem, 1.6vw, 1.1rem) var(--pad);
  text-align: center;
}
.site-wordmark {
  margin: 0;
  /* same family as top-row nav (DM Sans), not the serif */
  font-family: var(--sans);
  font-weight: 600; /* match nav feel at display size */
  font-size: clamp(2.2rem, 10.5vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0.08em; /* open enough to span width; tuned vs serif */
  text-transform: uppercase;
  color: #1A1714;
  white-space: nowrap;
  overflow: hidden;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 1;
  /* solid near-black mark; slight dual drop-shadow optically thickens thin strokes on greige */
  filter: drop-shadow(0 0 0.35px #1A1714) drop-shadow(0 0 0.35px #1A1714);
}
@media (max-width: 900px) {
  .brand img { width: 58px; height: 58px; }
  .site-wordmark {
    font-size: clamp(1.7rem, 11vw, 3.4rem);
    letter-spacing: 0.06em;
    font-weight: 600;
  }
  .nav a.nav-link {
    font-size: 14px;
    font-weight: 600;
  }
}
@media (max-width: 620px) {
  .brand img { width: 50px; height: 50px; }
  .site-wordmark {
    font-size: clamp(1.45rem, 10.5vw, 2.5rem);
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
  }
}


/* ---- Enquiry form extras ---- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--ink);
}
.file-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--line);
}
.file-list li:last-child { border-bottom: 0; }
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #7A4A2E;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-bottom-color: #7A4A2E;
}
.field input[type="file"] {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-status {
  margin-top: 1.25rem;
  padding: 1rem 0;
  font-size: 1.02rem;
  border-top: 1px solid var(--line);
}
.form-status.is-ok { color: var(--ink); }
.form-status.is-error { color: var(--ink); }
.form-status a { text-decoration: underline; text-underline-offset: 0.15em; }
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.ls-tight { letter-spacing: 0; }
.file-picker {
  position: relative;
  padding: 0.55rem 0 0.7rem;
  border-bottom: 1px solid var(--line);
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.field .file-btn {
  display: inline-block;
  width: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.5rem 0.85rem;
  margin: 0 0 0.15rem;
  cursor: pointer;
  background: transparent;
}
.file-btn:hover { background: rgba(26, 23, 20, 0.04); }
