/* ==========================================================================
   MEB Inspired — base styles
   Minimal gallery aesthetic: generous whitespace, art is the focus.
   Palette is a soft watercolor wash; kept subtle so it never competes
   with Monica's actual artwork.
   ========================================================================== */

:root {
  --ink: #2c2620;
  --ink-soft: #5b5044;
  --paper: #faf7f2;
  --paper-alt: #f1ece3;
  --line: #ddd3c4;
  --wash-blush: #e3c9bd;
  --wash-sage: #b9c9b6;
  --wash-sky: #a9c1c9;
  --wash-ochre: #d9b877;
  --focus: #3d6b5c;
  --max-width: 1180px;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }

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

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

/* Skip link — first focusable element, hidden until focused */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* Decorative watercolor-palette strip behind the nav.
   aria-hidden + no informational content, purely visual. */
.wash-strip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wash-strip span {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.wash-strip span:nth-child(1) { background: var(--wash-blush); top: -120px; left: 5%; }
.wash-strip span:nth-child(2) { background: var(--wash-sage);  top: -140px; left: 32%; }
.wash-strip span:nth-child(3) { background: var(--wash-sky);   top: -110px; left: 60%; }
.wash-strip span:nth-child(4) { background: var(--wash-ochre); top: -130px; left: 84%; }

.nav-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--wash-ochre);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; z-index: 2; position: relative; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

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

.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-portrait {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.98rem;
}
.button:hover, .button:focus-visible { background: var(--focus); color: #fff; }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button.secondary:hover, .button.secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Sections ---------- */

section { padding: 3rem 0; }
section.alt { background: var(--paper-alt); }

.section-intro { max-width: 60ch; margin-bottom: 2rem; }
.section-intro p { color: var(--ink-soft); }

/* ---------- Horizontal scrolling collection rows ---------- */

.collection-group {
  margin-bottom: 3.5rem;
}
.collection-group h3 {
  margin-bottom: 0.3rem;
}
.collection-desc {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 1rem;
}

.scroll-row-wrap {
  position: relative;
}

.scroll-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.scroll-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.scroll-btn:hover, .scroll-btn:focus-visible { background: var(--ink); color: var(--paper); }
.scroll-btn:disabled { opacity: 0.35; cursor: default; }

.scroll-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
  list-style: none;
  margin: 0;
  padding-left: 0;
  /* keyboard/scrollbar affordance so it reads clearly as scrollable content */
  scrollbar-width: thin;
}
.scroll-row:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.scroll-row li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.art-tile {
  width: min(60vw, 320px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.art-tile img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  /* Deterrent only — not real protection. See DEPLOY.md. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.art-tile figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.gallery-status {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.gallery-error {
  color: #8a3b2b;
}

/* ---------- Info / contact ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li { margin-bottom: 0.7rem; }
.link-list a { text-decoration: none; }
.link-list a:hover, .link-list a:focus-visible { text-decoration: underline; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink-soft); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
