/*
 * Frattura Studios — main stylesheet.
 *
 * Built from the "New Hope Golden Hour" design: ivory paper, charcoal
 * chrome, gold hairlines, terracotta accents, and a serif/sans pairing of
 * Playfair Display + Inter.
 */

/* ------------------------------------------------------------------ */
/* Tokens & base                                                       */
/* ------------------------------------------------------------------ */

:root {
  --ink: #333;                 /* the charcoal, kept */
  --ink-soft: #666;
  --ivory: #faf6ec;
  --ivory-deep: #f3ecdc;
  --gold: #c19a3d;
  --gold-soft: #d9bd85;
  --terracotta: #a8552f;
  --pine: #4a5d4e;
  --hairline: #e3dccb;
  --radius: 3px;               /* card/tile corner rounding */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); }

/* ------------------------------------------------------------------ */
/* Shared type utilities                                               */
/* ------------------------------------------------------------------ */

.kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
}
.kicker--gold { color: var(--gold-soft); }

/* Section head: title + rule, optionally split with a trailing link */
.rulehead {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 22px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
/* The kicker sits on its own row; the h2, optional link, and hairline share
   the title row, so the line and link center on the section title. */
.rulehead > div { display: contents; }
.rulehead .kicker { grid-area: 1 / 1; }
.rulehead h2 {
  grid-area: 2 / 1;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 600;
  white-space: nowrap;
}
.rulehead::after {
  content: "";
  grid-area: 2 / 2 / 3 / 4;
  height: 1px;
  background: var(--hairline);
}
.rulehead--split::after { grid-area: 2 / 3; align-self: center; }
.rulehead--split .linkbtn { grid-area: 3 / 1; justify-self: start; margin-top: 4px; }
.rulehead--split > div .kicker { margin-bottom: 8px; }
.rulehead h2 em {
  font-style: italic;
  color: var(--terracotta);
}
.rulehead--dark h2 { color: #fff; }
.rulehead--dark h2 em { color: var(--gold); }
.rulehead--dark::after { background: rgba(255, 255, 255, 0.16); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 34px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn--gold {
  color: var(--ink);
  background: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.btn--line {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.btn--line:hover { background: rgba(255, 255, 255, 0.14); }

/* Small tracked uppercase text link (rulehead "see all", tile "enter") */
.linkbtn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.linkbtn:hover { color: var(--terracotta); }
.linkbtn--gold { color: var(--gold-soft); }
.linkbtn--gold:hover { color: #fff; }

/* Back links on interior pages */
.backlink {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  margin: 34px 0 26px;
  transition: color 0.15s ease;
}
.backlink:hover { color: var(--terracotta); }

/* ------------------------------------------------------------------ */
/* Chrome — charcoal nav with dropdown                                 */
/* ------------------------------------------------------------------ */

.chrome {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  position: sticky;
  top: 0;
  z-index: 60;
}
.chrome__wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  padding: 18px 0;
}
.chrome__wordmark b { color: var(--gold); font-weight: 600; }
.chrome nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.chrome nav a,
.chrome nav .has-menu > a {
  display: block;
  padding: 21px 15px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}
.chrome nav a:hover,
.chrome nav .has-menu:hover > a,
.chrome nav .has-menu:focus-within > a { color: #fff; }
.chrome nav a.is-active {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.has-menu { position: relative; }

/* Hamburger toggle (mobile only — hidden ≥801px) */
.chrome__burger {
  display: none;
  position: relative;
  z-index: 75;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
.chrome__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chrome--open .chrome__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.chrome--open .chrome__burger span:nth-child(2) { opacity: 0; }
.chrome--open .chrome__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.chrome__scrim { display: none; }

/* Drawer nav below 800px */
@media (max-width: 800px) {
  .chrome__burger { display: flex; }
  .chrome__wordmark { position: relative; z-index: 75; }
  .chrome__scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 25, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 65;
  }
  .chrome--open .chrome__scrim { opacity: 1; visibility: visible; }
  .chrome nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--ink);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.3);
    padding: 80px 0 24px;
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.25s ease;
    z-index: 70;
  }
  .chrome--open nav { transform: none; }
  .chrome nav ul { display: block; }
  .chrome nav a,
  .chrome nav .has-menu > a {
    padding: 16px 24px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .chrome nav a.is-active { box-shadow: inset 3px 0 0 var(--gold); }
  /* Collections submenu becomes inline rows inside the drawer */
  .chrome .menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    padding: 0;
  }
  .chrome .menu a {
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 12px 24px 12px 42px !important;
    font-size: 13px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .chrome .menu a:hover { background: rgba(255, 255, 255, 0.06); }
  body.nav-lock { overflow: hidden; }
}

.menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menu a {
  color: var(--ink) !important;
  letter-spacing: 0.12em;
  padding: 10px 22px !important;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.menu a:hover { background: var(--ivory); }

/* ------------------------------------------------------------------ */
/* Admin banner (shown to logged-in admins only)                       */
/* ------------------------------------------------------------------ */

.admin-banner {
  background: #23272c;
  color: #cfd6dd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  min-height: 40px;
}
.admin-banner a {
  color: #e8ecef;
  text-decoration: none;
  padding: 10px 6px;
  display: inline-block;
}
.admin-banner a:hover { color: var(--gold-soft); }
.admin-banner__home { font-weight: 600; }
.admin-banner__user {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
}
.admin-banner__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: 8px;
}
.admin-banner__icon svg { fill: #cfd6dd; width: 100%; height: 100%; }
.admin-banner__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  color: var(--ink);
  min-width: 190px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 70;
}
.admin-banner__user:hover .admin-banner__menu,
.admin-banner__user:focus-within .admin-banner__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.admin-banner__menu li { list-style: none; }
.admin-banner__menu-header {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.admin-banner__menu a {
  display: block;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 13.5px;
}
.admin-banner__menu a:hover { background: var(--ivory); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51, 51, 51, 0.08) 0%, rgba(51, 51, 51, 0) 34%, rgba(38, 30, 18, 0.62) 100%);
}
.hero__content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad) clamp(44px, 7vh, 76px);
  color: #fff;
}
.hero__content .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  margin: 0 0 16px;
}
.hero__content .kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ink);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 0 18px;
  text-shadow: 1px 1px #666;
}
.hero__gold {
  color: var(--gold-soft);
}
.hero__lede {
  font-size: clamp(16px, 1.9vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero__actions {
  display: inline-flex;
  gap: 26px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Editorial about section                                             */
/* ------------------------------------------------------------------ */

.about__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(76px, 11vh, 120px) var(--pad) clamp(56px, 8vh, 90px);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.about__grid--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
.about__body h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
}
.about__portrait {
  position: relative;
  margin: 0;
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  z-index: -1;
}
.about__portrait img {
  display: block;
  width: 100%;
  box-shadow: 0 24px 50px rgba(51, 51, 51, 0.22);
}
.about__text { color: #4d4a43; margin: 0 0 18px; }
.about__text.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 300%;
  float: left;
  line-height: 0.9;
  padding: 4px 10px 0 0;
  color: var(--terracotta);
}
.about__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: inline-block;
}

/* ------------------------------------------------------------------ */
/* Piece cards + caption plates (homepage grid & gallery wall)         */
/* ------------------------------------------------------------------ */

.piece {
  break-inside: avoid;
  /* Cap tile width so sparse walls (e.g. a single piece in the packed
     masonry) don't blow up to the full container; auto margins center
     the piece inside its column, which also centers partial rows. */
  max-width: 560px;
  margin: 0 auto 52px;
}
.piece__link { text-decoration: none; display: block; }
.piece__art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(51, 51, 51, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.piece__link:hover .piece__art {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(51, 51, 51, 0.24);
}
.piece__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.piece__link:hover .piece__image { transform: scale(1.03); }
.piece__art::after {  /* golden-hour glow along the bottom of each piece */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(193, 154, 61, 0) 0%, rgba(193, 154, 61, 0.14) 100%);
  pointer-events: none;
}
.piece__sold {
  position: absolute;
  top: 0;
  right: 12px;
  height: 20%;
  z-index: 2;
  max-width: 60%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.plate {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  margin: -1px 16px 0;
  padding: 14px 18px 12px;
  position: relative;
}
.plate__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 2px;
}
.plate__sold {
  display: inline-block;
  margin-left: 8px;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plate__meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.plate__view {
  display: inline-block;
  margin-top: 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.piece__link:hover .plate__view { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Homepage: works preview grid                                        */
/* ------------------------------------------------------------------ */

.works__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 9vh, 100px) var(--pad) clamp(76px, 11vh, 120px);
}
.works__inner .rulehead { padding: 0; margin-bottom: clamp(36px, 5vh, 56px); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 46px 36px;
}
/* Homepage grid crops pieces uniformly (the wall keeps natural ratios) */
.works-grid .piece__image { height: 320px; object-fit: cover; }

/* ------------------------------------------------------------------ */
/* Collections                                                         */
/* ------------------------------------------------------------------ */

.collections {
  background: var(--ink);
  padding: clamp(76px, 11vh, 116px) 0;
}
/* Light variant for the /collections index page */
.collections--light {
  background: transparent;
  padding: clamp(30px, 5vh, 60px) 0 clamp(76px, 11vh, 120px);
}
.collections__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.collections__inner .rulehead { padding: 0; margin-bottom: clamp(36px, 5vh, 56px); }
.collections-grid {
  /* Flex (not grid) so an incomplete final row centers instead of hugging
     the left edge. Tiles are exactly half the row minus their gap share. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.collections__tile {
  position: relative;
  display: block;
  text-decoration: none;
  /* Half width (gap accounted for); never wider, so rows cap at two. */
  flex: 0 0 calc(50% - 13px);
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}
.collections--light .collections__tile {
  box-shadow: 0 20px 44px rgba(51, 51, 51, 0.24);
}
.collections__img {
  position: absolute;
  inset: 0;
}
.collections__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.collections__img--empty {
  background: linear-gradient(160deg, var(--pine) 0%, #39473c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.collections__img--empty span {
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1;
}
.collections__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(51, 51, 51, 0.05) 30%, rgba(24, 18, 8, 0.82) 100%);
}
.collections__tile:hover .collections__img img { transform: scale(1.05); }
.collections__body {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 22px;
  color: #fff;
}
.collections__no {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 8px;
}
.collections__body h3 {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 6px;
}
.collections__body p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collections__count {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.collections__body .linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ */
/* Page heads (gallery, collections, blog, contact)                    */
/* ------------------------------------------------------------------ */

.pagehead {
  text-align: center;
  padding: clamp(60px, 9vh, 96px) 24px 8px;
}
.pagehead .kicker {
  letter-spacing: 0.32em;
  color: var(--terracotta);
}
.pagehead--collection .kicker,
.pagehead--bare .kicker { color: var(--gold-soft); }
.pagehead h1 {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  margin: 0 0 14px;
}
.pagehead h1 em { font-style: italic; }
.pagehead__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
}
.pagehead--collection,
.pagehead--bare {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(90px, 14vh, 150px) 24px clamp(60px, 9vh, 96px);
}
.pagehead__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pagehead__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 30, 18, 0.46) 0%, rgba(38, 30, 18, 0.66) 100%);
}
.pagehead__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.pagehead__content .pagehead__sub { color: rgba(255, 255, 255, 0.82); }

/* ------------------------------------------------------------------ */
/* Gallery                                                             */
/* ------------------------------------------------------------------ */

.gallerywrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad) 40px;
}
.collrow__inner {
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0 var(--pad);
}
.collrow__inner .rulehead { padding: 0; margin-bottom: 26px; }
.collrow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.collrow__tile {
  position: relative;
  display: block;
  text-decoration: none;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(51, 51, 51, 0.18);
}
.collrow__img {
  position: absolute;
  inset: 0;
}
.collrow__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collrow__img--empty {
  background: linear-gradient(160deg, var(--pine) 0%, #39473c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.collrow__img--empty span {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
}
.collrow__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(51, 51, 51, 0.06) 30%, rgba(24, 18, 8, 0.78) 100%);
}
.collrow__tile:hover .collrow__img img { transform: scale(1.06); }
.collrow__body {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 14px;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.collrow__body h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.collrow__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}

/* Filter tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 40px 24px;
}
.tab {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  background: #fffdf7;
  transition: all 0.18s ease;
}
.tab:hover { border-color: var(--gold); color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}
.tab__count {
  opacity: 0.55;
  margin-left: 6px;
  font-weight: 400;
}

/* Masonry wall (CSS columns stand in for the JS packer) */
.wall {
  columns: 4 250px;
  column-gap: 30px;
  padding-top: 6px;
}
/* JS packer (main.js) takes over: explicit column wrappers in a flex row */
.wall--masonry {
  columns: auto;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.wall__col {
  flex: 1 1 0;
  min-width: 0;
}

/* Pagination */
.pagination {
  text-align: center;
  padding: 16px 24px 60px;
}
.pagination .btn { padding: 16px 42px; }

/* Empty states */
.gallerywrap__empty {
  text-align: center;
  padding: 60px 24px 100px;
  color: var(--ink-soft);
}
.gallerywrap__empty .kicker { color: var(--terracotta); }
.gallerywrap__empty p { font-family: var(--serif); font-style: italic; font-size: 17px; }

/* ------------------------------------------------------------------ */
/* Art piece detail                                                    */
/* ------------------------------------------------------------------ */

.detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(76px, 11vh, 120px);
}
.detail__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.artframe {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 18px;
  box-shadow: 0 24px 50px rgba(51, 51, 51, 0.22);
}
.artframe img:first-child {
  display: block;
  width: 100%;
}
.artframe .piece__sold { top: 18px; }
.plate--detail {
  margin: 0;
  padding: 26px 28px 22px;
}
.plate--detail .plate__title {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 10px;
}
.plate--detail .plate__meta {
  font-size: 13.5px;
  -webkit-line-clamp: unset;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.detail__date {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail__collection {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.detail__collection a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}
.detail__collection a:hover { text-decoration: underline; }

/* Story section */
.story {
  margin-top: clamp(50px, 8vh, 90px);
}
.story .rulehead { padding: 0; margin-bottom: clamp(26px, 4vh, 44px); }

/* ------------------------------------------------------------------ */
/* Long-form content (editorjs stories, journal)                       */
/* ------------------------------------------------------------------ */

.editorjs { color: #4d4a43; }
.editorjs h1,
.editorjs h2,
.editorjs h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.25;
  margin: 1.4em 0 0.5em;
}
.editorjs h1 { font-size: 30px; }
.editorjs h2 { font-size: 25px; }
.editorjs h3 { font-size: 20px; }
.editorjs p { margin: 0 0 1.1em; }
.editorjs a { color: var(--terracotta); }
.editorjs blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.editorjs ul,
.editorjs ol { padding-left: 24px; margin: 0 0 1.1em; }
.editorjs li { margin-bottom: 0.4em; }
.editorjs img { display: block; margin: 1.6em auto; box-shadow: 0 16px 36px rgba(51, 51, 51, 0.16); }
.editorjs figure { margin: 1.6em 0; }
.editorjs figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
.editorjs code {
  background: var(--ivory-deep);
  padding: 2px 6px;
  font-size: 0.9em;
}
.editorjs pre {
  background: var(--ivory-deep);
  padding: 16px 18px;
  overflow-x: auto;
}
.editorjs pre code { background: none; padding: 0; }
.editorjs hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2em auto;
  width: 60%;
}

/* ------------------------------------------------------------------ */
/* Journal (blog)                                                      */
/* ------------------------------------------------------------------ */

.postlist {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 56px) var(--pad) clamp(76px, 11vh, 120px);
}
.blogposts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blogpost { margin-bottom: 46px; }
.blogpost__link {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  padding: 26px 30px 22px;
  box-shadow: 0 12px 28px rgba(51, 51, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blogpost__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(51, 51, 51, 0.14);
}
.blogpost__title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  margin: 0 0 6px;
}
.blogpost__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.blogpost__author,
.blogpost__time { color: var(--terracotta); }
.blogpost__preview {
  font-size: 14.5px;
  color: #4d4a43;
}
.blogpost__preview .editorjs p { margin-bottom: 0; }
.blogpost__link .linkbtn { display: inline-block; margin-top: 14px; }

/* Single post */
.postdetail {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(76px, 11vh, 120px);
}
.postdetail__article {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 12px 28px rgba(51, 51, 51, 0.08);
}
.postdetail__header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
}
.postdetail__body { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--hairline); }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 56px) var(--pad) clamp(76px, 11vh, 120px);
}
.form {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 28px rgba(51, 51, 51, 0.08);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid var(--hairline);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; }
.contact form .field:last-of-type { text-align: center; }
.field--error input,
.field--error textarea { border: 1px solid var(--terracotta); }
.field__error {
  margin: 8px 0 0;
  color: var(--terracotta);
  font-style: italic;
  font-size: 13.5px;
}
.field__error--center { text-align: center; }
.form .h-captcha { display: flex; justify-content: center; }

/* ------------------------------------------------------------------ */
/* Notice pages (thanks, 404, error)                                   */
/* ------------------------------------------------------------------ */

.notice {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(80px, 13vh, 140px) 24px clamp(90px, 14vh, 160px);
}
.notice .kicker { color: var(--terracotta); }
.notice h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  margin: 0 0 16px;
}
.notice p { color: #4d4a43; }
.notice a { color: var(--terracotta); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

footer {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 66px 24px 44px;
  border-top: 3px solid var(--gold);
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 4px;
}
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 28px;
}
footer nav ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
}
footer nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}
footer nav a:hover { color: #fff; }
.footer__legal {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 380px; }
  .chrome { flex-wrap: wrap; }
  .chrome nav ul { flex-wrap: wrap; }
  .detail__grid { grid-template-columns: 1fr; }
  .rulehead h2 { white-space: normal; }
  /* Single column on small screens; full-width tiles fill each row. */
  .collections__tile { height: 280px; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
