@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Milonga&display=swap");

:root {
  --brand-font: "Milonga", "Cormorant Garamond", Georgia, serif;
  --display-font: "Fraunces", Georgia, serif;
  --text-font: "Manrope", Inter, Arial, sans-serif;
  --background: #f8f1e8;
  --surface: #fffaf4;
  --ink: #241611;
  --muted: #725f54;
  --line: rgba(36, 22, 17, 0.15);
  --accent: #b85a2f;
  --accent-2: #007f86;
  --olive: #6c7041;
  --shadow: 0 18px 45px rgba(36, 22, 17, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text-font);
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero,
.section,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}

.logo {
  display: grid;
  gap: 2px;
  min-width: max-content;
}

.logo span {
  font-family: var(--brand-font);
  font-size: 2.08rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 0 0.01px currentColor;
}

.logo small {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  padding: 8px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-2);
}

.hero {
  width: min(1320px, calc(100% - 32px));
  padding: 86px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 54px;
  align-items: center;
  justify-items: stretch;
}

.hero-copy {
  max-width: 620px;
  text-align: left;
}

.kicker,
.section-label,
.tag {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  margin: 16px 0 20px;
  font-size: clamp(3.7rem, 9vw, 8rem);
}

.hero h1 {
  font-family: var(--brand-font);
  margin: 16px 0 20px;
  font-size: clamp(3.7rem, 9vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  text-shadow: 0 0 0.01px currentColor;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.7rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 740px;
  color: #5f4d42;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero .lead {
  font-size: clamp(0.84rem, 1.6vw, 1.02rem);
}

.hero-art {
  width: 100%;
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 90, 47, 0.12), rgba(0, 127, 134, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.hero-art > img {
  width: 100%;
  height: 100%;
  min-height: 574px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.art-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  min-height: 524px;
  border: 1px dashed rgba(25, 23, 22, 0.26);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.art-placeholder span {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 4rem);
}

.art-placeholder small {
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 800;
}

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

.button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.button.primary:hover {
  background: var(--accent-2);
  color: #fff;
}

.section {
  padding: 42px 0;
}

.section-intro {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro h2 {
  max-width: 900px;
}

.page-hero {
  padding-top: 76px;
  padding-bottom: 26px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.painting-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
  scroll-margin-top: 110px;
}

.painting-feature img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.painting-copy {
  max-width: 720px;
}

.painting-copy h2 {
  margin-bottom: 18px;
}

.painting-copy p {
  white-space: pre-line;
}

.painting-carousel {
  padding-top: 8px;
}

.painting-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 31%);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

.painting-strip a {
  display: grid;
  gap: 10px;
  color: var(--ink);
  scroll-snap-align: start;
}

.painting-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.painting-strip strong {
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
}

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

.card,
.art-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.film-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.film-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 127, 134, 0.42);
  box-shadow: 0 18px 44px rgba(25, 23, 22, 0.14);
}

.film-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  padding: 18px;
  border: 1px dashed rgba(25, 23, 22, 0.24);
  border-radius: 6px;
  color: var(--muted);
  background:
    linear-gradient(150deg, rgba(184, 90, 47, 0.14), rgba(0, 127, 134, 0.12)),
    #fbfaf7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.film-poster-image {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: var(--ink);
}

.film-poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-card strong {
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.film-studio {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.film-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.film-detail-poster {
  padding: 14px;
}

.film-detail-poster img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.film-detail-gallery {
  width: 100%;
}

.film-page-hero {
  padding-bottom: 12px;
}

.film-page-hero h1 {
  max-width: 1120px;
}

.film-visuals {
  display: grid;
  gap: 24px;
  padding-top: 10px;
}

.film-visuals img {
  display: block;
  width: min(100%, 980px);
  height: auto;
}

.film-mosaic {
  width: min(100% - 24px, 1540px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding: 10px;
  background: #15110f;
}

.film-mosaic img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  background: #7f7f7c;
}

.film-mosaic .mosaic-portrait {
  grid-column: span 6;
}

.film-mosaic .mosaic-wide {
  grid-column: span 6;
}

.film-mosaic .mosaic-full {
  grid-column: span 6;
}

.film-visual-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.film-visual-row img {
  width: 100%;
  height: auto;
}

.cv-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
}

.cv-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border-color: rgba(184, 90, 47, 0.30);
}

.book-cover-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed rgba(25, 23, 22, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(184, 90, 47, 0.14), rgba(0, 127, 134, 0.10)),
    #fbfaf7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.book-cover {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.book-cover img {
  width: min(100%, 310px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(25, 23, 22, 0.18);
}

.book-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.book-details h2 {
  margin-bottom: 14px;
}

.affiliate-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.book-list {
  display: grid;
  gap: 14px;
}

.book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-row h3 {
  margin-bottom: 4px;
}

.card p,
.art-card p,
.panel p {
  color: var(--muted);
}

.card a,
.list-links a,
.text-link {
  color: var(--accent-2);
  font-weight: 800;
}

.card a:hover,
.list-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.art-card {
  padding: 14px;
}

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

.individual-card {
  display: flex;
  flex-direction: column;
}

.individual-card h3 {
  margin-bottom: 2px;
}

.individual-card h3 a {
  color: inherit;
  text-decoration: none;
}

.individual-card h3 a:hover {
  color: var(--accent);
}

.project-image-link {
  display: block;
  color: inherit;
}

.project-image-link img {
  transition: transform 160ms ease, filter 160ms ease;
}

.project-image-link:hover img {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.art-date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-card h3,
.art-card p {
  padding-inline: 4px;
}

.image-open,
.title-open {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.image-open {
  display: block;
  width: 100%;
}

.title-open:hover {
  color: var(--accent-2);
}

.art-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 18px;
}

.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(36, 22, 17, 0.86);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 244, 0.5);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.art-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 1px dashed rgba(25, 23, 22, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(184, 90, 47, 0.10), rgba(0, 127, 134, 0.10)),
    #fbfaf7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 28px;
}

.panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  overflow-wrap: anywhere;
}

.list-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list-links a {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.site-footer {
  margin-top: 56px;
  background: var(--ink);
  color: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--surface);
  font-weight: 700;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 250, 244, 0.35);
  border-radius: 999px;
  color: var(--surface);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-links a:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a[aria-label="ArtStation"] svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero-grid,
  .section-intro,
  .split,
  .cv-card,
  .film-detail,
  .featured-book,
  .book-row,
  .painting-feature,
  .individual-paintings,
  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-visual-row {
    grid-template-columns: 1fr;
  }

  .film-mosaic {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .film-mosaic .mosaic-portrait,
  .film-mosaic .mosaic-wide,
  .film-mosaic .mosaic-full {
    grid-column: 1;
  }

  .painting-strip {
    grid-auto-columns: minmax(220px, 72%);
  }

  .hero {
    padding-top: 50px;
  }

  .hero-art,
  .hero-art > img,
  .art-placeholder {
    min-height: 620px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 22px, 1160px);
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .nav {
    font-size: 0.72rem;
  }

  .hero-art,
  .hero-art > img {
    min-height: 520px;
  }

  .film-grid {
    gap: 12px;
  }

  .film-card {
    padding: 10px;
  }

  .film-card strong {
    font-size: 1.25rem;
  }
}
