/* Anna Shatalova — site styles. Fonts are self-hosted (see /fonts). No scroll-driven effects. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/bodoni-moda-italic-400-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/bodoni-moda-normal-400-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/jost-normal-300-600.woff2) format('woff2');
}
:root {
  --bg: #151413;
  --bg-alt: #201f1d;
  --surface: #242220;
  --ink: #f4f1ec;
  --muted: #a8a299;
  --line: #3a3733;
  --accent: #e9d5aa;
  --accent-ink: #151413;
  --header-bg: #000;
  --dark: #000;
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.eyebrow { font: 500 .8rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font: 500 1.35rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
h1.brand { margin: 0; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a { font: 500 .85rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; margin-right: -.6rem; cursor: pointer; color: inherit; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.6rem; height: 2px; background: currentColor; content: ''; position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
@media (max-width: 44rem) {
  .js .nav-toggle { display: block; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--header-bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: .75rem; }
}

/* Buttons */
.btn { display: inline-block; font: 500 .85rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.9rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--accent-ink); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .hero { grid-template-columns: 5fr 6fr; } }
.hero__img { background: var(--bg-alt); }
.hero h1 { margin-bottom: .35em; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .5rem; font: 500 .8rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.page-title { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem); }

.quote { font: italic 400 clamp(1.4rem, 3vw, 2.1rem)/1.4 var(--serif); max-width: 46rem; margin: 0 auto; text-align: center; }
.quote::before { content: '“'; display: block; font-size: 3em; line-height: .6; color: var(--accent); }

/* Split (text + image) */
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } .split--img-first > :first-child { order: 0; } }
.split__img { max-width: 28rem; }

/* Gallery */
.dancers__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.dancers__pair figure { margin: 0; }
.dancers__pair button { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); cursor: zoom-in; }
.dancers__pair img { display: block; width: 100%; height: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 0 2rem; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; font: 500 .9rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: .9rem 0; cursor: pointer; color: var(--muted); margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.gallery { columns: 2; column-gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .gallery { columns: 3; column-gap: 1.25rem; } }
.gallery li { break-inside: avoid; margin: 0 0 1rem; }
@media (min-width: 52rem) { .gallery li { margin-bottom: 1.25rem; } }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); cursor: zoom-in; }
.gallery img { width: 100%; }
html:not(.js) .tabs { display: none; }
.js .tabpanel[hidden] { display: none; }
html:not(.js) .tabpanel > h2 { margin-top: 3rem; }
.js .tabpanel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Lightbox (native <dialog>) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 13, 12, .94); }
.lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 3.5rem 4rem; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.5rem/1 var(--sans); padding: .75rem 1rem; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: .5rem; right: .5rem; }
.lightbox .lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) { .lightbox__stage { padding: 3.5rem .5rem; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: .25rem; transform: none; } }

/* Course cards & schedule */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--bg-alt); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card dl { margin: 0 0 1rem; font-size: .98rem; }
.card dt { font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .9rem; }
.card dd { margin: .3rem 0 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.table-wrap { overflow-x: auto; }
table.schedule { width: 100%; border-collapse: collapse; min-width: 38rem; }
.schedule th, .schedule td { text-align: left; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.schedule td:first-child { font-weight: 500; white-space: nowrap; }
@media (max-width: 724px) {
  table.schedule, .schedule thead, .schedule tbody { display: block; min-width: 0; }
  .schedule tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 1rem; border-bottom: 1px solid var(--line); }
  .schedule th, .schedule td { border-bottom: 0; }
  .schedule th:last-child { display: none; }
  .schedule td:last-child { grid-column: 1 / -1; padding-top: 0; color: var(--muted); }
}

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label { display: block; font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: .85rem 1rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); }
.form__status[hidden] { display: none; }
.form__status.is-error { border-left-color: #e5645a; }
.recaptcha-note { font-size: .75rem; color: var(--muted); }
.grecaptcha-badge { visibility: hidden; }

/* Footer */
.site-footer { background: var(--dark); border-top: 1px solid var(--line); color: #d8d1c7; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-grid h2 { font: 500 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #9b9389; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .45rem; }
.copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #332f2c; font-size: .8rem; color: #9b9389; }
.credits { font-size: .85rem; color: var(--muted); }
.prose { max-width: 44rem; }

/* Home hero: collage as a darkened background, everything centered */
.hero-home { background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)), url(/img/home-collage-960.webp) center / cover no-repeat; min-height: min(46rem, 90vh); display: grid; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
@media (min-width: 60rem) { .hero-home { background-image: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)), url(/img/home-collage-1600.webp); } }
.hero-home__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-home__logo { width: 200px; height: 300px; object-fit: contain; margin-bottom: 1.8rem; }
.hero-home .lead { max-width: 40rem; margin-bottom: 0; }
.hero-home .tags { align-items: center; font-size: .95rem; color: var(--ink); }
.hero-home .btn-row { justify-content: center; gap: 1.6rem; }
.hero-home .btn { font-size: 1.7rem; padding: 2.1rem 3.8rem; }
/* Phones: the two hero buttons are 30% smaller than on larger screens (1.7rem -> 1.19rem, 2.1rem -> 1.47rem, 20rem -> 14rem, 1.6rem -> 1.12rem). */
@media (max-width: 40rem) { .hero-home .btn-row { width: 100%; flex-direction: column; align-items: center; gap: 1.12rem; } .hero-home .btn { width: 100%; max-width: 14rem; font-size: 1.19rem; padding: 1.47rem 1rem; text-align: center; } }

/* Auto-sliding background (pure CSS crossfade: 6 slides x 6s). Not scroll-driven. */
.slideshow { position: relative; isolation: isolate; overflow: hidden; background: #000; min-height: min(34rem, 85vh); display: grid; align-items: center; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.slideshow::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .58); }
.slideshow__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.slideshow__slides li { position: absolute; inset: 0; opacity: 0; animation: slide-fade 36s infinite; animation-delay: calc(var(--i) * 6s); }
.slideshow__slides img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.slideshow .btn-row { justify-content: center; }
.slideshow .lead { max-width: 40rem; margin-inline: auto; }
.slideshow__inner .btn--solid { background: #ffd558; border-color: #ffd558; }
.slideshow__inner .btn--solid:hover { background: var(--ink); border-color: var(--ink); }
@keyframes slide-fade { 0% { opacity: 0; } 4% { opacity: 1; } 16.67% { opacity: 1; } 20.67% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .slideshow__slides li { animation: none; }
  .slideshow__slides li:first-child { opacity: 1; }
}

/* Footer map */
.footer-map { margin-top: 2.5rem; }
.footer-map iframe { display: block; width: 100%; height: 18rem; border: 0; background: var(--bg-alt); }
.footer-map p { margin: .7rem 0 0; font-size: .85rem; }

/* /art title block: painting as a darkened background (same image as the original design) */
.page-title--bg { background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(/img/art-hero-960.webp) center / cover no-repeat; padding-block: calc(clamp(3.5rem, 9vw, 7rem) + 125px); /* +250px of height in total */ margin-bottom: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 60rem) { .page-title--bg { background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(/img/art-hero-1600.webp); } }
.page-title--bg .eyebrow { color: var(--ink); }

/* Home announcement: Oil Painting From Scratch */
.announce__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 52rem) { .announce__inner { grid-template-columns: 6fr 5fr; } }
.announce__img { display: block; background: var(--bg-alt); }
.announce__img img { width: 100%; }
.announce__facts { font: 500 .95rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0; }
.announce__badge { text-align: center; font-size: clamp(1.9rem, 8vw, 51px); line-height: 1.15; text-transform: uppercase; color: #ffd558; }
.announce__text h2 { color: #ffd558; }
.announce__text p.eyebrow { font-size: clamp(1.05rem, 4.2vw, 24px); font-family: var(--serif); }
.announce__text .btn { font-size: 18px; background: #ffd558; border-color: #ffd558; margin-top: 40px; }
.announce__text .btn:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 51.99rem) { .announce__text .btn-row { justify-content: center; } }

/* /oil-painting-from-scratch */
.course-hero { min-height: min(34rem, 85vh); }
.course-hero__bg { position: absolute; inset: 0; z-index: -2; }
.course-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.program { list-style: none; counter-reset: lesson; margin: 0; padding: 0; position: relative; }
.program::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(1.5rem - 1px); width: 2px; background: var(--line); }
.program li { counter-increment: lesson; position: relative; margin: 0 0 1.5rem 4.5rem; background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; }
.program li:last-child { margin-bottom: 0; }
@media (max-width: 47.99rem) { .program li:nth-child(even) { background: #515151; } }
.program li::before { content: counter(lesson); position: absolute; top: 1rem; left: -4.5rem; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #ffd558; color: var(--accent-ink); font: 600 1.15rem/1 var(--sans); box-shadow: 0 0 0 6px var(--bg); }
.program h3 { font-size: 1.25rem; }
.program p { margin-bottom: .6em; }
@media (min-width: 48rem) {
  .program::before { left: calc(50% - 1px); }
  .program li { width: calc(50% - 3rem); margin: 0 0 1.5rem; }
  .program li:nth-child(odd) { margin-right: auto; }
  .program li:nth-child(even) { margin-left: auto; }
  .program li:nth-child(odd)::before { left: auto; right: -4.5rem; }
  .program li:nth-child(even)::before { left: -4.5rem; }
}
.page-scratch main :is(h1, h2, h3) { color: #ffd558; }
.page-scratch .wrap h2 { margin-bottom: 40px; }
