/* Robert Gaunce Art — site styles.
   Recreated from the original Nuxt/Tailwind site (reference/nuxt-original).
   Design tokens live in :root; keep DESIGN.md in sync when they change. */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 3.9%);
  --card: hsl(0 0% 100%);
  --primary: hsl(200 100% 40%);
  --primary-hover: hsl(200 100% 40% / 0.9);
  --primary-foreground: hsl(0 0% 98%);
  --primary-tint: hsl(200 100% 40% / 0.1);
  --primary-ring: hsl(200 100% 40% / 0.2);
  --muted: hsl(0 0% 96.1%);
  --muted-30: hsl(0 0% 96.1% / 0.3);
  --muted-40: hsl(0 0% 96.1% / 0.4);
  --muted-foreground: hsl(0 0% 45.1%);
  --border: hsl(0 0% 89.8%);
  --radius: 0.5rem;
  --header-height: 4rem;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: "rlig" 1, "calt" 1;
}
main { flex-grow: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
ul { list-style: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }
/* The original site doesn't center some containers (header bar, home "About the Artist"),
   so on wide screens they sit at the left edge. Kept on purpose to match. */
.container.flush-left { margin-inline: 0; }
.container.narrow { max-width: 56rem; }   /* about, contact */
.container.medium { max-width: 72rem; }   /* commissions */

/* Scoped to .container: WordPress also puts a "page" class on <body>. */
.container.page { padding-block: 3rem; }
.section { padding-block: 5rem; }
.bg-muted-30 { background: var(--muted-30); }
.bg-primary-tint { background: var(--primary-tint); }

.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .md-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.items-center { align-items: center; }

/* ---------- Type ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.semibold { font-weight: 600; }
.h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.h2-sm { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-bottom: 1rem; }
.h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; } .mt-2 { margin-top: 0.5rem; } .mt-8 { margin-top: 2rem; }
.mx-auto { margin-inline: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.stack-2 > * + * { margin-top: 0.5rem; }
.stack-3 > * + * { margin-top: 0.75rem; }
.stack-4 > * + * { margin-top: 1rem; }
.stack-6 > * + * { margin-top: 1.5rem; }

.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.25rem; line-height: 1.75rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .page-header h1 { font-size: 3rem; line-height: 1; } }

.text-link { color: var(--primary); display: inline-flex; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem 2rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost-light {
  border: 1px solid rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.1); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.2); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card-hover { transition: box-shadow .15s; }
.card-hover:hover { box-shadow: var(--shadow-lg); }
.card.p-4 { padding: 1rem; } .card.p-6 { padding: 1.5rem; } .card.p-8 { padding: 2rem; }
.card-img { aspect-ratio: 1; background: var(--muted); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.art-card { overflow: hidden; }
.art-card .card-body { padding: 1rem; }
.art-card h3 { font-weight: 600; margin-bottom: 0.5rem; }
.panel { border-radius: var(--radius); padding: 2rem; }

/* ---------- Header ---------- */
.site-header {
  top: 0; z-index: 50; width: 100%;
  position: sticky; border-bottom: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.95);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: hsl(0 0% 100% / 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.site-header .bar { display: flex; height: var(--header-height); align-items: center; justify-content: space-between; }
.brand { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.main-nav { display: none; align-items: center; gap: 1.5rem; }
.main-nav a { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; transition: color .15s; }
.main-nav a:hover, .mobile-nav a:hover { color: var(--primary); }
.menu-toggle { display: inline-flex; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon-close { display: none; }
.site-header.open .menu-toggle .icon-open { display: none; }
.site-header.open .menu-toggle .icon-close { display: block; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.site-header.open .mobile-nav { display: block; }
.mobile-nav .container { padding-block: 1rem; }
.mobile-nav a { display: block; padding-block: 0.5rem; transition: color .15s; }
.mobile-nav a + a { margin-top: 0.5rem; }
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-nav, .site-header.open .mobile-nav { display: none; }
}

/* Home: header floats transparently over the hero */
.home .site-header { position: absolute; border-bottom: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.home .main-nav a:hover, .home .mobile-nav a:hover { color: rgb(255 255 255 / 0.8); }
.home .mobile-nav { background: rgb(0 0 0 / 0.9); color: #fff; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: calc(100vh + 15rem);
  display: flex; align-items: center; justify-content: center;
  padding-top: 4rem; padding-bottom: 9rem; margin-top: -4rem;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(0.95); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / 0.4), transparent, transparent); }
.hero-content { position: relative; z-index: 10; text-align: center; }
.hero h1 { font-size: 3rem; line-height: 1; font-weight: 700; margin-bottom: 1.5rem; color: #fff; }
.hero p { font-size: 1.25rem; line-height: 1.75rem; color: #fff; margin: 0 auto 2rem; max-width: 42rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .hero p { font-size: 1.5rem; line-height: 2rem; }
}

.bio-photo { aspect-ratio: 1; background: var(--muted); border-radius: var(--radius); overflow: hidden; }
.bio-photo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.filters button { padding: 0.5rem 1.5rem; border-radius: calc(var(--radius) - 2px); background: var(--card); transition: background-color .15s; }
.filters button:hover { background: var(--muted); }
.filters button.active { background: var(--primary); color: var(--primary-foreground); }

.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  /* No "grid-auto-flow: dense": the original leaves gaps between tiles, and so do we. */
}
@media (min-width: 768px)  { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento .large { grid-column: span 2; grid-row: span 2; }
.bento .tall  { grid-row: span 2; }
.bento .wide  { grid-column: span 2; }
.bento-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; transition: box-shadow .3s; display: block; width: 100%; height: 100%;
}
.bento-item:hover { box-shadow: var(--shadow-2xl); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bento-item:hover img { transform: scale(1.05); }
.bento-item .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.5rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0), transparent);
  color: #fff; font-weight: 500; opacity: 0; transition: opacity .15s;
}
.bento-item:hover .overlay, .bento-item:focus-visible .overlay { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.9);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; width: 100%; max-width: 72rem; }
.lightbox img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10; color: #fff;
  background: rgb(0 0 0 / 0.5); border-radius: 9999px; padding: 0.5rem; display: inline-flex;
}
.lightbox-close:hover { color: #d1d5db; }
.lightbox-close svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Commissions ---------- */
.commission-card .card-img { border-radius: var(--radius); margin-bottom: 1rem; }
.step-num {
  width: 3rem; height: 3rem; border-radius: 9999px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-foreground); font-size: 1.25rem; font-weight: 700;
}

/* ---------- Forms ---------- */
.form label { display: block; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.5rem 1rem; border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px); background: var(--background);
}
.form textarea { resize: vertical; }
.form-note { margin-top: 1rem; padding: 1rem; border-radius: calc(var(--radius) - 2px); background: var(--primary-tint); display: none; }
.form-note.show { display: block; }

/* ---------- About ---------- */
.avatar {
  width: 16rem; height: 16rem; border-radius: 9999px; overflow: hidden;
  border: 4px solid var(--primary-ring); margin: 0 auto 2rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bullets { list-style: disc inside; }
/* Original: first paragraph is text-lg, the rest body size, 1rem apart */
.statement p { margin-bottom: 1rem; }
.statement p:first-of-type { font-size: 1.125rem; line-height: 1.75rem; }
.statement p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item svg { width: 1.5rem; height: 1.5rem; color: var(--primary); margin-top: 0.25rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--muted-40); }
.site-footer .container { padding-block: 3rem; }
.site-footer h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer .links a { display: block; color: var(--muted-foreground); transition: color .15s; }
.site-footer .links a + a { margin-top: 0.5rem; }
.site-footer a:hover { color: var(--foreground); }
.footer-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* =====================================================================
   WordPress additions (theme only; not in the static site/ reference)
   ===================================================================== */

/* Spam honeypot: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note.form-error { background: hsl(0 84% 60% / 0.1); color: hsl(0 70% 35%); }
.card > .form-note.show { margin: 0 0 1.5rem; }

/* Keep the sticky header below the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Generic page content (privacy policy, cart, checkout, account) */
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-top: 2rem; }
.entry-content h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; margin-top: 1.5rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }

/* ---------- WooCommerce ---------- */
.woo .woocommerce-products-header__title,
.woo .product_title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.woo .woocommerce-products-header { text-align: center; margin-bottom: 2rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
  background: var(--primary) !important; color: var(--primary-foreground) !important;
  border-radius: calc(var(--radius) - 2px) !important; font-weight: 500; padding: 0.75rem 1.5rem;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--primary-hover) !important; }
.woocommerce ul.products li.product {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; padding-bottom: 1rem; transition: box-shadow .15s; text-align: left;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { margin: 0 0 1rem; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price { padding-inline: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-weight: 600; font-size: 1rem; }
.woocommerce ul.products li.product .price { color: var(--muted-foreground); }
.woocommerce ul.products li.product .button { margin-left: 1rem; }
.woocommerce div.product .price { color: var(--foreground); font-size: 1.25rem; }
.woocommerce div.product form.cart .variations select { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); }
.woocommerce span.onsale { background: var(--primary); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--primary); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--primary); }
