/* Bass Fine Art — main stylesheet
   Palette: logo ink and paper sampled from the logo file; accents taken from
   Ruth's own artwork (see notes). One accent per gallery. */

@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/libre-baskerville-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/libre-baskerville-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/libre-baskerville-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kaushan Script";
  src: url("assets/fonts/kaushan-script-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* REPLACEABLE IMAGES — none: every picture on this site is an <img> under assets/ */

  /* Brand core, sampled from the logo */
  --ink: #17211a;          /* logo ink */
  --ink-soft: #3d4740;     /* lighter step of the ink for body copy */
  --ink-muted: #59625b;    /* captions, fine print (6.3:1 on paper) */
  --paper: #fffefa;        /* logo paper */
  --paper-2: #f6f4ee;      /* quiet band */
  --line: #dcd9d0;

  /* Accents from the artwork */
  --magenta: #d8236a;      /* Floral, primary buttons (4.8:1 with white) */
  --magenta-dark: #b01b55;
  --violet: #6b2c91;       /* Abstracts */
  --violet-dark: #55217a;
  --teal: #2fa58c;         /* Naturescapes (decorative) */
  --teal-dark: #1d7765;    /* text-safe step of the teal */
  --gold: #c9b83a;         /* decorative only */
  --sepia: #cbbfa8;        /* Nostalgia (decorative) */
  --sepia-dark: #7a6b4f;   /* text-safe step of the sepia */

  --accent: var(--violet);
  --accent-dark: var(--violet-dark);

  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);

  --wrap: 72rem;
  --radius: 2px;
  --header-h: 5.5rem;
}

.accent-abstracts { --accent: var(--violet); --accent-dark: var(--violet-dark); }
.accent-floral { --accent: var(--magenta); --accent-dark: var(--magenta-dark); }
.accent-naturescapes { --accent: var(--teal); --accent-dark: var(--teal-dark); }
.accent-nostalgia { --accent: var(--sepia); --accent-dark: var(--sepia-dark); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 450;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--magenta-dark); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); font-weight: 400; line-height: 1.2; margin: 0 0 var(--space-2); }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 38em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons: one vocabulary across the site ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.95em 1.6em; border: 2px solid var(--magenta); border-radius: var(--radius);
  background: var(--magenta); color: #fff; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { padding: 0.65em 1.1em; font-size: 0.8rem; }
.arrow-link {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 0.15em;
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 116px; height: 116px; margin-block: 0; }
.header-cta { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 1.05rem; }
.brand-sub { font-size: 0.8rem; color: var(--ink-muted); letter-spacing: 0.06em; }
.palette-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.palette-bar span:nth-child(1) { background: var(--violet); }
.palette-bar span:nth-child(2) { background: var(--magenta); }
.palette-bar span:nth-child(3) { background: var(--teal); }
.palette-bar span:nth-child(4) { background: var(--sepia); }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; }
.site-nav a:not(.btn) {
  font-size: 0.85rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--magenta); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .nav-cta { margin-left: 0.5rem; }

@media (max-width: 62rem) {
  :root { --header-h: 4.5rem; }
  .brand img { width: 72px; height: 72px; margin-block: 2px; }
  .js .header-cta { display: inline-flex; margin-left: auto; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 0.5rem 0.8rem; font: 700 0.8rem/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; border-top: 2px solid; border-bottom: 2px solid; }
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid; }
  .site-header .wrap { flex-wrap: wrap; column-gap: 0.6rem; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--space-2); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: 0.85rem 0; font-size: 0.95rem; }
  .site-nav .nav-cta { margin: var(--space-2) 0 0; border-top: 0; }
  .js .site-nav .nav-cta { display: none; }
  .site-nav .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 26rem) { .brand-text { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-6); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #e9ebe6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-4); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 36em; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2rem, 1.5rem + 3vw, 5rem) var(--space-5); }
.hero .wrap { display: grid; gap: var(--space-3); grid-template-areas: "title" "art" "copy"; }
.hero-title { grid-area: title; margin: 0; }
.hero-art { grid-area: art; }
.hero-copy { grid-area: copy; }
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr 1.05fr; grid-template-areas: "title art" "copy art"; column-gap: var(--space-5); row-gap: var(--space-3); }
  .hero-title { align-self: end; }
  .hero-art { align-self: center; }
}
.tagline {
  display: block; font-family: var(--font-script); font-weight: 400; color: var(--ink);
  font-size: clamp(2.2rem, 1.6rem + 3.2vw, 4.2rem); line-height: 1.1; letter-spacing: 0;
}
.h1-sub { display: block; font-family: var(--font-serif); font-size: var(--step-2); color: var(--ink-soft); margin-top: 0.6rem; }
.hero .lede { margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero-art { display: grid; grid-template-columns: 0.625fr 1fr; gap: var(--space-2); align-items: start; margin: 0; }
.hero-art .stack { display: grid; gap: var(--space-2); }
.hero-art .stack a + a { display: none; }
@media (min-width: 56rem) {
  .hero-art { grid-template-columns: 1.15fr 1fr; }
  .hero-art .stack a + a { display: block; }
}
.hero-art a { display: block; }
.hero-art img { width: 100%; height: auto; box-shadow: 0 18px 40px -22px rgba(23, 33, 26, 0.55); }
.hero-art figcaption { grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink-muted); }

/* ---------- Gallery tiles (the four collections) ---------- */
.collections { display: grid; gap: var(--space-4) var(--space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: end; }
.collection { display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.collection-frame { display: flex; align-items: flex-end; justify-content: center; height: 19rem; }
.collection-frame img { max-height: 100%; width: auto; max-width: 100%; transition: transform .35s ease; }
.collection:hover img { transform: translateY(-4px); }
.collection-label {
  border-top: 1px solid var(--line); padding-top: var(--space-2);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.collection-label::after { content: "\2192"; color: var(--accent-dark); }
.collection-label small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-muted); font-size: 0.9rem; }
.collection:hover .collection-label { color: var(--accent-dark); }
.collection .swatch { display: block; height: 4px; width: 3rem; background: var(--accent); margin-bottom: 0.5rem; }

/* ---------- Art grid (galleries) ---------- */
.art-grid { columns: 2 10rem; column-gap: var(--space-3); }
@media (min-width: 40rem) { .art-grid { columns: 3 14rem; } }
@media (min-width: 64rem) { .art-grid { columns: 4 14rem; column-gap: var(--space-4); } }
.art { break-inside: avoid; margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: 0.6rem; }
.art-link { display: block; position: relative; background: var(--paper-2); }
.art-link img { width: 100%; height: auto; transition: opacity .2s; }
.art-link:hover img { opacity: 0.92; }
.art h3, .art .art-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.05rem; margin: 0; color: var(--ink); }
.art-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 0.9rem; }
.art-price { color: var(--ink-muted); }
.shop-link { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.shop-link:hover { color: var(--accent-dark); }

.page-head { padding-block: var(--space-5) var(--space-4); }
.page-head .swatch { display: block; width: 4rem; height: 5px; background: var(--accent); margin-bottom: var(--space-3); }
.page-head p { max-width: 42em; }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.gallery-nav a { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); border-bottom: 2px solid transparent; padding-bottom: 0.2rem; }
.gallery-nav a:hover { color: var(--ink); border-color: var(--line); }
.gallery-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* ---------- Prints info strip ---------- */
.facts { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.facts li { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; }
.facts strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: var(--step-1); color: var(--ink); margin-bottom: 0.25rem; }

/* ---------- Artist feature (home + about) ---------- */
.artist { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 52rem) { .artist { grid-template-columns: minmax(15rem, 22rem) 1fr; gap: var(--space-5); } }
.portrait { margin: 0; max-width: 22rem; }
.portrait img { width: 100%; height: auto; border-radius: 50%; }
.portrait figcaption { text-align: center; font-size: var(--step--1); color: var(--ink-muted); margin-top: 0.75rem; }
.mentor-quote {
  margin: var(--space-3) 0; padding: 0 0 0 var(--space-3); border-left: 3px solid var(--magenta);
  font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--ink); line-height: 1.55;
}
.mentor-quote p { margin: 0; }
.honours { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: 0.8rem; }
.honours li { padding-left: 1.6rem; position: relative; }
.honours li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--violet); }

.bio-grid { display: grid; gap: var(--space-4); }
@media (min-width: 52rem) { .bio-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); } }
.bio-block h2 { font-size: var(--step-2); }
.bio-block .swatch { display: block; width: 2.5rem; height: 4px; margin-bottom: var(--space-2); background: var(--accent); }
.place-list { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.place-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.place-list li span { color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .tagline { color: #fff; margin-bottom: var(--space-2); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cta-band p { max-width: 34em; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: var(--space-3); }
.section--ink .btn--ghost { color: #fff; border-color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.section--ink a:not(.btn) { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
.faq-item h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-1); margin-bottom: 0.5rem; }
.faq-item p { margin: 0; max-width: 46em; }
.table-scroll { overflow-x: auto; margin: var(--space-3) 0; border: 1px solid var(--line); background: #fff; }
.table-scroll:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 0.9rem 1rem; font-weight: 700; color: var(--ink); }
th, td { padding: 0.6rem 0.9rem; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); white-space: normal; vertical-align: bottom; }
tbody tr:nth-child(even) { background: #fbfaf6; }
.note { font-size: var(--step--1); color: var(--ink-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.form { display: grid; gap: var(--space-3); }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #8a918b; border-radius: var(--radius); padding: 0.8rem 0.9rem;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--magenta); outline-offset: 1px; border-color: var(--ink); }
.field textarea { min-height: 10rem; resize: vertical; }
.form-status { padding: 1rem 1.2rem; border-left: 4px solid var(--teal-dark); background: var(--paper-2); color: var(--ink); }
.form-status.is-error { border-color: var(--magenta-dark); }
.contact-card { background: var(--paper-2); padding: var(--space-4); }
.contact-card h2 { font-size: var(--step-2); }
.contact-card dl { margin: 0; display: grid; gap: var(--space-2); }
.contact-card dt { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-card dd { margin: 0; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd4cf; padding-top: var(--space-5); font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); padding-bottom: var(--space-4); }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: var(--space-2); }
.footer-brand .tagline { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #aeb5af; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; }
.footer-cta { margin-top: var(--space-2); }
.footer-base { border-top: 1px solid #36403a; padding-block: var(--space-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: #aeb5af; }
.footer-base p { margin: 0; }
.footer-base a { color: #dfe3df; text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14, 20, 16, 0.92); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 0.75rem; padding: 3.5rem 1rem 1rem; }
.lightbox-figure { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; color: #fff; text-align: center; }
.lightbox-title { font-family: var(--font-serif); font-size: 1.2rem; }
.lightbox-price { color: #cfd4cf; }
.lightbox-bar .shop-link { color: #fff; border-color: var(--magenta); }
.lb-btn { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) { .lb-prev, .lb-next { top: auto; bottom: 0.75rem; transform: none; } .lightbox-inner { padding-bottom: 4.5rem; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--space-6); }
.notfound .tagline { margin-bottom: var(--space-2); }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; margin: var(--space-3) 0; }
