/**
 * Gallery-style typography: Inter for body, headings, and UI.
 * Load after each page’s inline <style> block so these rules override defaults.
 */

:root {
  --text: #1a1a1a;
  --muted: #3d3d3d;
  --muted-soft: #5c5c5c;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-body);
}

html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body {
    font-size: 1.125rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text);
}

h1 {
  letter-spacing: 1px;
}

h2 {
  letter-spacing: 0.75px;
}

h3 {
  letter-spacing: 0.5px;
}

.gallery-header__title {
  letter-spacing: 1px;
}

.gallery-section h2 {
  font-family: var(--font-heading);
  letter-spacing: calc(0.12em + 0.5px);
}

.gallery-available .detail__text .detail__title {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.site-nav a.logo {
  font-family: var(--font-heading);
}

/* Current page: underline main nav only (not language switcher) */
.site-nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Painting descriptions: full column width (overrides inline gallery .text-block p max-width) */
.gallery-available .detail__text .artwork-notes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  max-width: none;
}

@media (min-width: 960px) {
  .gallery-available .detail__text .artwork-notes {
    font-size: 1.0625rem;
  }
}

/* Collection intro / memoir paragraphs: fill the text frame */
.text-block.collection-intro p,
.text-block.collection-description p {
  max-width: none;
}

.gallery-available .detail__text .artwork-notes p + p {
  margin-top: 1.15rem;
}

/* Title block under artwork: at least 16px; price matches size line */
.gallery-available .detail__text .artwork-details,
.gallery-available .detail__text .artwork-dimensions,
.gallery-available .detail__text .artwork-price {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: normal;
  max-width: 55ch;
}

/* Private collection captions */
.gallery-caption,
#gallery-private .gallery-caption {
  font-family: var(--font-body);
  line-height: 1.55;
}

#gallery-private .artwork-title {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

/* Long-form pages */
.about-content p,
.policy-page p,
.policy-page li,
.policy-page ol,
.cookies-main p,
.cookies-main li {
  font-family: var(--font-body);
  line-height: 1.6;
}

.policy-page h1,
.policy-page h2,
.cookies-main h1,
.about-main h1 {
  font-family: var(--font-heading);
}

.cookies-main h1 {
  letter-spacing: 1px;
}

.policy-page h1 {
  letter-spacing: 1px;
}

.policy-page h2 {
  letter-spacing: 0.75px;
}

@media (min-width: 960px) {
  .about-main .about-content p {
    font-size: 1.125rem;
  }
}

#gallery-private .artwork-status,
.gallery-available .detail__text .artwork-status {
  font-family: var(--font-body);
}

.contact-modal__title {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.contact-modal__subject {
  font-family: var(--font-heading);
}

.contact-modal__form,
.contact-modal__note,
.contact-modal__success {
  font-family: var(--font-body);
}
