/*
  The JAM ART — 2026 base stylesheet
  Modern minimal, mobile-first, dependency-free.
*/

:root {
  --jam-bg: #f8f6f1;
  --jam-surface: #fffdfa;
  --jam-muted: #eee9df;
  --jam-ink: #1f1e1b;
  --jam-text: #3d3932;
  --jam-soft: #6f685c;
  --jam-line: rgba(31, 30, 27, 0.14);
  --jam-line-strong: rgba(31, 30, 27, 0.24);
  --jam-accent: #5d4f3f;
  --jam-radius: 22px;
  --jam-shadow: 0 20px 48px rgba(31, 30, 27, 0.08);
  --jam-max: 1180px;
  --jam-narrow: 760px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--jam-bg);
  color: var(--jam-ink);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--jam-text);
  background: var(--jam-bg);
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--jam-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-130%);
  padding: 10px 14px;
  color: var(--jam-surface);
  background: var(--jam-ink);
  border-radius: 999px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--jam-max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 32px, var(--jam-narrow));
}

.section-pad {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section-muted {
  background: var(--jam-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--jam-bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header[data-scrolled] {
  border-bottom-color: var(--jam-line);
  box-shadow: 0 10px 28px rgba(31, 30, 27, 0.05);
}

.site-header__inner {
  width: min(100% - 32px, var(--jam-max));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  align-items: center;
  color: var(--jam-ink);
  background: transparent;
  border: 1px solid var(--jam-line);
  border-radius: 999px;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 16px auto 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--jam-surface);
  border: 1px solid var(--jam-line);
  border-radius: 24px;
  box-shadow: var(--jam-shadow);
}

.site-nav[data-open],
.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--jam-text);
  text-decoration: none;
  border-bottom: 1px solid var(--jam-line);
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--jam-ink);
  font-weight: 650;
}

.page-intro {
  padding-top: clamp(48px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--jam-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--jam-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 12vw, 7rem);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.lead {
  margin-top: 24px;
  color: var(--jam-ink);
  font-size: clamp(1.12rem, 2.8vw, 1.42rem);
  line-height: 1.5;
}

.lead + p {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.split-heading {
  display: grid;
  gap: 22px;
}

.split-heading > p {
  max-width: 620px;
  color: var(--jam-soft);
}

.collection-cover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.collection-cover-card {
  min-width: 0;
  display: grid;
  overflow: hidden;
  background: var(--jam-surface);
  border: 1px solid var(--jam-line);
  border-radius: var(--jam-radius);
  box-shadow: 0 14px 30px rgba(31, 30, 27, 0.05);
}

.collection-cover-card__media,
.image-open {
  position: relative;
  width: 100%;
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #e6ded2;
  border-radius: 0;
  text-align: left;
}

.image-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.image-open:hover img {
  transform: scale(1.025);
}

.image-open::after {
  content: "View image";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: var(--jam-ink);
  background: color-mix(in srgb, var(--jam-surface) 90%, transparent);
  border: 1px solid var(--jam-line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-cover-card__body {
  padding: clamp(18px, 5vw, 28px);
}

.object-type {
  margin-bottom: 10px;
  color: var(--jam-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-cover-card__body p:not(.object-type) {
  margin-top: 14px;
  color: var(--jam-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 22px;
}

.card-actions a,
.text-link,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--jam-ink);
  background: transparent;
  border: 1px solid var(--jam-line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}

.card-actions a:hover,
.text-link:hover,
.button:hover {
  color: var(--jam-surface);
  background: var(--jam-ink);
  border-color: var(--jam-ink);
}

.button-primary {
  margin-top: 24px;
  color: var(--jam-surface);
  background: var(--jam-ink);
  border-color: var(--jam-ink);
}

.button-primary:hover {
  color: var(--jam-ink);
  background: transparent;
}

.viewing-note,
.inquiry-band {
  background: var(--jam-bg);
  border-top: 1px solid var(--jam-line);
}

.inquiry-band {
  background: var(--jam-surface);
}

.site-footer {
  padding: 40px 0;
  color: color-mix(in srgb, var(--jam-surface) 82%, transparent);
  background: var(--jam-ink);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--jam-surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--jam-surface);
}

.image-dialog {
  width: min(94vw, 1180px);
  max-width: 1180px;
  max-height: 92dvh;
  padding: 0;
  color: var(--jam-surface);
  background: #111;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.image-dialog::backdrop {
  background: rgba(10, 9, 7, 0.82);
  backdrop-filter: blur(10px);
}

.image-dialog figure {
  margin: 0;
  display: grid;
  max-height: 92dvh;
}

.image-dialog img {
  width: 100%;
  max-height: calc(92dvh - 86px);
  object-fit: contain;
  background: #111;
}

.image-dialog figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.image-dialog figcaption strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 680px) {
  .collection-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 0.92rem;
  }

  .split-heading {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: end;
  }

  .collection-cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

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