/* ============================================================
   Elisabeth Markman — site stylesheet
   Single file. Pure CSS. No build step.
   Design language: dusty periwinkle header/footer, pale lilac body,
   hand-script wordmark, structured editorial layouts.
   ============================================================ */

:root {
  --blue: #7e85a4;
  --blue-dark: #6b7290;
  --bg: #e8e8f0;
  --bg-card: #f4f4fa;
  --text: #1a1a1a;
  --text-on-blue: #ffffff;
  --text-muted: #6b6e80;
  --rule: rgba(26, 26, 26, 0.12);
  --max: 1100px;
}

/* ---------- Reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header band ---------- */
.site-header {
  background: var(--blue);
  color: var(--text-on-blue);
  padding: 32px 0 22px;
}

.brand {
  font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 56px;
  font-weight: normal;
  text-align: center;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.brand a {
  color: var(--text-on-blue);
}

.brand a:hover {
  opacity: 0.85;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-blue);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.site-nav a:hover {
  opacity: 0.75;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--text-on-blue);
}

@media (max-width: 560px) {
  .brand {
    font-size: 44px;
  }
  .site-nav ul {
    gap: 18px;
  }
}

/* ---------- Main layout ---------- */
main {
  padding: 48px 0 64px;
}

/* ---------- Home: carousel + bio ---------- */
/* Desktop: show all 3 photos side by side */
.carousel {
  margin: 0 auto 56px;
  overflow: visible;
}

.carousel-track {
  display: flex;
  width: 100%;
  gap: 6px;
  animation: none;
}

.carousel-track img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Left photo: show full body from top */
.carousel-track img:first-child {
  object-position: center top;
}

/* Mobile: single-photo sliding carousel */
@media (max-width: 800px) {
  .carousel {
    overflow: hidden;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
  }

  .carousel-track {
    width: 300%;
    gap: 0;
    animation: carousel-slide 12s ease-in-out infinite;
  }

  .carousel-track img {
    width: 33.333%;
    box-shadow: none;
    border-radius: 0;
  }
}

@keyframes carousel-slide {
  0%        { transform: translateX(0); }
  28%       { transform: translateX(0); }
  33%       { transform: translateX(-33.333%); }
  61%       { transform: translateX(-33.333%); }
  66%       { transform: translateX(-66.666%); }
  94%       { transform: translateX(-66.666%); }
  99%, 100% { transform: translateX(0); }
}

.bio-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.bio-block .bio-photo {
  max-width: 260px;
}

.bio-block .bio-photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  filter: grayscale(100%);
}

.bio-block .bio-text p {
  font-size: 15px;
  line-height: 1.7;
}

.bio-block .bio-text p + p {
  margin-top: 1.1em;
}

.bio-block .bio-text em {
  font-style: italic;
}

@media (max-width: 800px) {
  .bio-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bio-block .bio-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- Gallery: 2-column masonry ---------- */
.gallery-masonry {
  column-count: 2;
  column-gap: 16px;
}

.gallery-masonry img {
  width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 560px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* ---------- Resume: 2-column with inline content ---------- */
.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.resume-headshot img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.resume-content {
  font-size: 14px;
  line-height: 1.55;
}

.resume-name {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.resume-meta {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.resume-section {
  margin-bottom: 28px;
}

.resume-section h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.resume-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 2.2fr 1fr;
  gap: 8px 18px;
  padding: 8px 0;
  align-items: baseline;
}

.resume-row + .resume-row {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.resume-row .work {
  font-weight: 500;
}

.resume-row .role {
  font-style: italic;
}

.resume-row .director {
  color: var(--text-muted);
  font-size: 13px;
}

.resume-row .director small {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.85;
}

.resume-row .date {
  text-align: right;
  color: var(--text-muted);
  font-size: 12px;
}

.resume-skills {
  font-size: 14px;
}

.resume-actions {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 860px) {
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .resume-headshot {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .resume-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
  }
  .resume-row .date {
    text-align: left;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 12px 28px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Contact ---------- */
.contact-layout {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-layout h1 {
  font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 64px;
  font-weight: normal;
  margin-bottom: 32px;
  line-height: 1;
}

.contact-block {
  margin-bottom: 36px;
}

.contact-block h2 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-block .email-link {
  font-size: 20px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  display: inline-block;
}

.contact-block .email-link:hover {
  opacity: 0.7;
}

.contact-block .placeholder {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 560px) {
  .contact-layout h1 {
    font-size: 48px;
  }
  .contact-block .email-link {
    font-size: 17px;
  }
}

/* ---------- Reel placeholder ---------- */
.reel-placeholder {
  text-align: center;
  padding: 96px 24px;
}

.reel-placeholder h1 {
  font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 64px;
  font-weight: normal;
  margin-bottom: 16px;
  line-height: 1;
}

.reel-placeholder p {
  color: var(--text-muted);
}

/* ---------- Footer band ---------- */
.site-footer {
  background: var(--blue);
  color: var(--text-on-blue);
  padding: 28px 0 24px;
  text-align: center;
  margin-top: 48px;
}

.site-footer .socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.site-footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-on-blue);
  transition: background 0.25s ease;
}

.site-footer .socials a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.site-footer .socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer .copyright {
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 120px 24px;
}

.notfound h1 {
  font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 96px;
  font-weight: normal;
  margin-bottom: 12px;
  line-height: 1;
}

.notfound p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
