/* Bill Shew — wall art made from real photographs, finished by hand.
   One confident grotesque, near-monochrome, art does the talking. */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..800&display=swap");

:root {
  --ink: #1a1613;
  --ink-soft: #6b665d;
  --paper: #f7f5f0;
  --paper-alt: #eee8de;
  --line: #e1dacd;
  --accent: #9c6b34;
  --accent-soft: #dcc19b;
  --success: #4f6b4b;
  --error: #9c3f2c;

  /* One family for everything; "display" just means heavier + tighter. */
  --font-body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;

  --max-w: 30rem;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* OPTIONAL (placeholder): a very subtle full-page background texture or
   grain could sit behind everything here, e.g. a faint linen/paper
   texture PNG at ~4% opacity, tiled, applied to body::before as a fixed
   full-viewport layer. Left plain for now to keep the page fast + minimal. */

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

a {
  color: var(--accent);
}

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

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) var(--space-2);
  position: relative;
}

/* OPTIONAL (placeholder): a soft, desaturated lifestyle photo could be
   dropped in behind the hero — e.g. a blurred shot of framed prints in a
   sunlit living room, kept very light/low-contrast so the logo stays the
   focal point. If added, apply as .hero::before with
   background: url(...) center/cover, plus a --paper tint overlay. */

.hero__logo {
  width: min(50vw, 260px);
  height: auto;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition);
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: var(--accent);
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: currentColor;
  opacity: 0.5;
}

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

.contact {
  padding: var(--space-5) var(--space-2) var(--space-5);
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
}

.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.contact__eyebrow {
  margin: 0 0 var(--space-1);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact__lede {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Form ---------- */

.form {
  text-align: left;
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(171, 127, 79, 0.15);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

/* Honeypot: hidden from real visitors and screen readers, but present in
   the DOM for simple bots to find and fill in. Off-screen rather than
   display:none, since some spam bots skip fields hidden that way. */
.field--hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  justify-self: start;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Status banner ---------- */

.banner {
  max-width: var(--max-w);
  margin: 0 auto var(--space-3);
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.banner--success {
  background: rgba(95, 122, 91, 0.1);
  border-color: rgba(95, 122, 91, 0.35);
  color: var(--success);
}

.banner--error {
  background: rgba(164, 80, 60, 0.1);
  border-color: rgba(164, 80, 60, 0.35);
  color: var(--error);
}

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

.footer {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--paper-alt);
}

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

@media (min-width: 640px) {
  .contact__title {
    font-size: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* =========================================================================
   SHOP ADDITIONS — header, hero, product grid, product page, gallery.
   Reuses the brand tokens defined at the top of this file.
   ========================================================================= */

:root {
  --max-w-wide: 76rem;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(47, 47, 47, 0.05), 0 8px 24px rgba(47, 47, 47, 0.06);
}

.eyebrow {
  margin: 0 0 var(--space-1);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.6rem var(--space-3);
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-header__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.site-nav__cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background: var(--ink);
  color: var(--paper) !important;
  border-color: var(--ink);
}

/* ---------- Hero (updated) ---------- */

.hero {
  min-height: auto;
  padding: clamp(3rem, 9vw, 6rem) var(--space-2) clamp(2.5rem, 7vw, 4.5rem);
  gap: var(--space-2);
}

.hero__logo {
  width: min(46vw, 220px);
  height: auto;
  margin-bottom: var(--space-1);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__tagline {
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 32rem;
}

/* ---------- Buttons (adds sizes/variants) ---------- */

.btn--lg {
  font-size: 0.9rem;
  padding: 1rem 2.6rem;
  text-decoration: none;
  display: inline-block;
}

.btn--buy {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  padding: 1.05rem 1.5rem;
  text-decoration: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn--buy:hover,
.btn--buy:focus-visible {
  background: #96693c;
  border-color: #96693c;
}

/* ---------- About / artist's statement ----------
   Centered, compact, gallery-wall-label feel. A short accent rule under the
   kicker does the "artsy" work without a headline that eats the viewport. */

.about {
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-3);
  border-top: 1px solid var(--line);
  text-align: center;
}

.about__inner {
  max-width: 34rem;
  margin: 0 auto;
}

.about__kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* Thin centered rule — a small gallery flourish. */
.about__kicker::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin: var(--space-2) auto 0;
  background: var(--accent-soft);
}

.about__body {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.72;
  color: var(--ink);
  text-wrap: balance;
}

.about__sign {
  margin: var(--space-3) 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ---------- Shop section + grid ---------- */

.shop {
  padding: clamp(3rem, 8vw, 5rem) var(--space-3);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.shop__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.shop__intro h2 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.shop__lede {
  margin: 0;
  color: var(--ink-soft);
}

.shop__empty {
  text-align: center;
  color: var(--ink-soft);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card__media {
  aspect-ratio: 1 / 1;
  background: var(--paper-alt);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card__img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  /* clamp long Etsy titles to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* ---------- Product page ---------- */

.product {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
}

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden] {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.product__layout {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 800px) {
  .product__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .buybox {
    position: sticky;
    top: 5rem;
  }
}

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

.gallery__main {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.gallery__main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 200ms ease;
}

.gallery__main img.is-loading {
  opacity: 0.4;
}

.gallery__thumbs {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gallery__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: border-color var(--transition);
}

.gallery__thumb img {
  width: 80px;
  height: 64px;
  object-fit: cover;
}

.gallery__thumb.is-active,
.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  border-color: var(--accent);
  outline: none;
}

/* ---------- Buy box ---------- */

.buybox__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.buybox__price {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.buybox__avail {
  margin: 0 0 var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
}

.buybox__avail--in { color: var(--success); }
.buybox__avail--out { color: var(--error); }

.buybox__note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.buybox__desc {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.96rem;
}

.buybox__desc h2 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.buybox__materials {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.product__back {
  margin-top: var(--space-4);
  text-align: center;
}

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

.product__back a:hover {
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
}

.notfound__logo { width: 120px; height: auto; opacity: 0.85; }
.notfound h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.notfound .btn { text-decoration: none; margin-top: var(--space-2); }

/* ---------- Footer (updated) ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.footer__logo {
  width: 132px;
  height: auto;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.footer__etsy {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer__etsy:hover { text-decoration: underline; }
