/* beerowbags.com — refined, pink, quiet. The photos do the talking;
   everything here is the mat they sit on. */

@font-face { font-family: "Cormorant"; src: url(/assets/fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/assets/fonts/cormorant-500i.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/assets/fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "InterS"; src: url(/assets/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "InterS"; src: url(/assets/fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ivory: #FAF6F2;
  --white: #FFFDFC;
  --powder: #F3E4E4;
  --powder-deep: #EBD5D6;
  --rose: #B9586E;
  --rose-deep: #9A4459;
  --ink: #2A2024;
  --muted: #7C6B70;
  --champagne: #C9B18F;
  --hair: #E9DCD8;

  --serif: "Cormorant", "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "InterS", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- type roles ---------- */
.eyebrow {
  display: block;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--champagne);
}
.wordmark {
  font: 600 26px/1 var(--serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark-sm { font-size: 20px; margin: 0 0 8px; }

/* ---------- header ---------- */
.site-head { padding: 26px 0 18px; }
.site-head-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font: 500 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-color: var(--champagne); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(28px, 5vw, 56px); }
.hero .eyebrow { margin-bottom: 18px; }
.hero-line {
  font: 600 clamp(38px, 6.2vw, 74px)/1.02 var(--serif);
  letter-spacing: -.01em;
  max-width: 14ch;
}
.hero-line em { font-style: italic; font-weight: 500; color: var(--rose); }
.hero-sub { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.hero-sub .dot { margin: 0 .5em; color: var(--champagne); }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-bottom: 36px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 14px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--champagne); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.sort select {
  appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237C6B70' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 8px 20px 8px 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.sort select:hover { color: var(--ink); border-color: var(--champagne); }

/* ---------- grid + cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 18px;
}
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 30px; } }

.card { display: block; }
.card[hidden] { display: none; }

/* The mat: a photo sits whole (never cropped) on powder pink, inside a
   hairline champagne rule — a framed print, not a thumbnail. */
.mat {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--powder);
  padding: 7%;
  transition: background-color .5s var(--ease);
}
.mat::after {
  content: "";
  position: absolute; inset: 4.5%;
  border: 1px solid rgba(201, 177, 143, .55);
  pointer-events: none;
}
.mat img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.card:hover .mat { background: var(--powder-deep); }
.card:hover .mat img { transform: scale(1.015); }

.card-text { padding-top: 14px; }
.card-name {
  display: block;
  margin-top: 6px;
  font: 500 19px/1.25 var(--serif);
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-name { color: var(--rose-deep); }
.card-price {
  display: block;
  margin-top: 6px;
  font: 500 italic 20px/1 var(--serif);
  color: var(--ink);
}
.card-price-sold { font-style: italic; color: var(--muted); font-size: 16px; }
.card-sold .mat img { filter: saturate(.85); opacity: .92; }
.card-sold { cursor: default; }
.card-sold:hover .mat { background: var(--powder); }
.card-sold:hover .mat img { transform: none; }

.empty { margin: 40px 0; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- sections ---------- */
.section-head { margin: clamp(56px, 9vw, 110px) 0 26px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.section-title { font: 600 clamp(26px, 3.4vw, 36px)/1.1 var(--serif); }
.section-note { margin: 0; color: var(--muted); font-size: 15px; }
.sold-strip .section-head { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hair); margin-top: clamp(56px, 9vw, 110px); }
.grid-sold { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px)  { .grid-sold { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-sold { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 22px; } }
.grid-sold .card-name { font-size: 16px; -webkit-line-clamp: 1; }

.closing { padding: clamp(64px, 10vw, 120px) var(--gutter) 0; text-align: center; }
.closing-line { font: 500 italic clamp(22px, 3vw, 30px)/1.3 var(--serif); margin: 0; }
.closing-line a { color: var(--rose); border-bottom: 1px solid var(--champagne); }
.closing-line a:hover { color: var(--rose-deep); }

/* ---------- bag page ---------- */
.crumb { grid-column: 1 / -1; padding: 6px 0 22px; }
.crumb a { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--ink); }

.bag-layout { display: grid; gap: 34px; padding-top: 8px; }
@media (min-width: 900px) {
  .bag-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .details { position: sticky; top: 28px; }
}
.mat-lg { padding: 5%; }
.mat-lg::after { inset: 3%; }
.thumbs {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
@media (min-width: 600px) { .thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.thumb { display: block; aspect-ratio: 1 / 1; background: var(--powder); padding: 6%; opacity: .72; transition: opacity .2s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.is-current { opacity: 1; }
.thumb.is-current { box-shadow: 0 0 0 1px var(--champagne); }

.details .eyebrow { margin-bottom: 12px; }
.bag-name { font: 600 clamp(30px, 3.6vw, 42px)/1.08 var(--serif); letter-spacing: -.005em; }
.bag-price { margin: 14px 0 0; font: 500 italic clamp(28px, 3.2vw, 36px)/1 var(--serif); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-rose { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-rose:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.cta-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.cta-note a { color: var(--rose); border-bottom: 1px solid var(--hair); }

.copy { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); max-width: 58ch; }
.copy p { margin: 0 0 1em; }
.copy p:last-child { margin-bottom: 0; }

.facts { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--hair); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 14px; padding: 8px 0; font-size: 14.5px; }
.facts dt { color: var(--champagne); font: 500 11px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }

.more { padding-bottom: 20px; }

/* ---------- prose pages ---------- */
.prose { max-width: 66ch; padding-top: clamp(24px, 5vw, 56px); padding-bottom: 20px; }
.prose-center { text-align: center; margin-inline: auto; padding-top: clamp(60px, 12vw, 140px); }
.prose .eyebrow { margin-bottom: 16px; }
.prose-title { font: 600 clamp(34px, 5vw, 54px)/1.05 var(--serif); margin-bottom: 30px; }
.prose section { padding: 26px 0; border-top: 1px solid var(--hair); }
.prose section:last-of-type { border-bottom: 1px solid var(--hair); }
.prose h2 { font: 600 24px/1.2 var(--serif); margin-bottom: 10px; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose .btn { margin-top: 6px; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(72px, 12vw, 140px); padding-bottom: 48px; }
.foot-rule { height: 1px; background: var(--hair); margin-bottom: 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.foot-line { margin: 0; color: var(--muted); font-size: 14.5px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-fine { margin: 34px 0 0; font: 500 italic 17px/1.4 var(--serif); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover .mat img { transform: none; }
}
