:root {
  color-scheme: light;
  --ink: #20191d;
  --muted: #6f6470;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #eadcc9;
  --rose: #e85d75;
  --mint: #2f8f7b;
  --gold: #f0b44c;
  --blue: #476fbd;
  --shadow: 0 18px 50px rgba(48, 35, 25, 0.13);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.artist-site {
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 93, 117, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(47, 143, 123, 0.12), transparent 28rem),
    var(--paper);
  color: var(--ink);
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand {
  font-family: Sen, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav nav a,
.button,
.tab-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  min-height: 42px;
  padding: 11px 16px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  padding: 44px 0 34px;
}

.hero-copy h1,
.gallery-hero h1,
.terms-hero h1 {
  font-family: Sen, Inter, sans-serif;
  font-size: clamp(2.35rem, 6vw, 5rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 20px;
  max-width: 850px;
}

.hero-copy p,
.gallery-hero p,
.terms-hero p,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.rich-text {
  white-space: pre-wrap;
}

.eyebrow {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
}

.button.primary,
.tab-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button.ghost,
.site-nav nav a {
  background: rgba(255, 255, 255, 0.72);
}

.hero-art,
.art-tile,
.gallery-card {
  background:
    linear-gradient(135deg, rgba(232, 93, 117, 0.16), rgba(47, 143, 123, 0.14)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.hero-art {
  aspect-ratio: 4 / 5;
  display: grid;
  position: relative;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-art figcaption {
  align-self: end;
  background: rgba(255, 250, 243, 0.9);
  bottom: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  left: 14px;
  padding: 10px 12px;
  position: absolute;
}

.contact-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px 0;
}

.contact-strip div,
.policy-card,
.summary-card,
.style-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.social-icons {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.social-icons a {
  align-items: center;
  background: var(--surface);
  border: 1px solid #d9d4ce;
  border-radius: 999px;
  color: #2c2c2c;
  display: inline-flex;
  font-size: 1.35rem;
  height: 54px;
  justify-content: center;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 54px;
}

.social-icons a:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-strip span,
.policy-card span,
.gallery-meta small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.language-tabs,
.sample-section,
.gallery-grid,
.terms-panel {
  padding: 34px 0;
}

.tab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gallery-language {
  margin-top: 24px;
}

.tab-button {
  background: var(--surface);
  cursor: pointer;
}

.language-panel {
  display: none;
}

.language-panel.active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-family: Sen, Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 12px;
}

.policy-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.policy-card p,
.summary-card p,
.style-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.policy-card.will {
  border-top: 5px solid var(--mint);
}

.policy-card.wont {
  border-top: 5px solid var(--rose);
}

.policy-card.payment {
  border-top: 5px solid var(--gold);
}

.summary-card {
  margin-bottom: 18px;
}

.summary-card h3,
.style-title h3 {
  margin: 0;
}

.summary-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.style-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-card {
  display: grid;
  gap: 16px;
}

.style-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.style-title span {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.style-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.style-card dl div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  gap: 14px;
}

.style-card dt {
  color: var(--muted);
}

.style-card dd {
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.sample-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, 180px);
  justify-content: start;
}

.art-tile {
  aspect-ratio: 4 / 5;
  display: grid;
  width: 180px;
  position: relative;
}

.art-tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.art-tile figcaption {
  align-self: end;
  background: rgba(32, 25, 29, 0.82);
  color: #fff;
  font-weight: 800;
  padding: 12px;
  position: absolute;
  width: 100%;
}

.gallery-hero {
  padding: 48px 0 10px;
}

.terms-hero {
  padding: 48px 0 10px;
}

.terms-panel {
  max-width: 860px;
}

.terms-content {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  padding: 24px;
}

.terms-content strong {
  color: var(--ink);
}

.terms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.gallery-card {
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 180px;
}

.gallery-frame {
  aspect-ratio: 1 / 1;
  display: grid;
  overflow: hidden;
  position: relative;
}

.gallery-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
  z-index: 1;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-fallback {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: absolute;
  text-align: center;
}

.gallery-meta {
  background: var(--surface);
  display: block;
  padding: 14px;
}

.gallery-meta strong {
  display: block;
  margin-bottom: 4px;
}

.lightbox {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 1000;
}

.lightbox.open {
  display: block;
}

.lightbox-backdrop {
  background: rgba(15, 12, 14, 0.86);
  inset: 0;
  position: absolute;
}

.lightbox-panel {
  align-items: center;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  inset: 24px;
  position: absolute;
}

.lightbox-panel figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  min-width: 0;
}

.lightbox-panel img {
  background: var(--paper);
  border-radius: 8px;
  max-height: calc(100vh - 150px);
  max-width: min(100%, 1080px);
  object-fit: contain;
}

.lightbox-panel figcaption {
  color: #fff;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 900;
  height: 44px;
  width: 44px;
}

.lightbox-close {
  position: absolute;
  right: 0;
  top: 0;
}

.lightbox-nav {
  justify-self: center;
}

@media (max-width: 820px) {
  .site-nav,
  .hero {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-direction: column;
    padding: 18px 0;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .contact-strip,
  .policy-grid,
  .style-grid {
    grid-template-columns: 1fr;
  }

  .sample-grid,
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  }

  .art-tile,
  .gallery-card {
    width: min(180px, 100%);
  }

  .hero-copy h1,
  .gallery-hero h1,
  .terms-hero h1 {
    font-size: 2.55rem;
  }

  .lightbox-panel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    inset: 14px;
  }
}
