/* Marina Claire — site styles
   Fonts are stand-ins for the Squarespace originals (Minerva Modern / Anziano).
   To switch fonts, change the two variables below and the Google Fonts link in each page. */
:root {
  --font-heading: "Marcellus", "Optima", "Candara", serif;
  --font-body: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --bg: #efebeb;
  --ink: #000;
  --accent: #fc2a1f;
  --gutter: 3vw;
  --header-h: 113px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.home { background: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .5em 1em; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }

.site-title {
  font-family: var(--font-heading);
  font-size: 31px;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 28px; }

.site-nav { display: flex; gap: 20px; }
.site-nav a {
  font-size: 17px;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.social { display: flex; gap: 18px; }
.social a { display: block; width: 20px; height: 20px; }
.social svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }

.burger {
  display: none;
  width: 36px; height: 36px; padding: 0;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.burger span { display: block; height: 1px; background: currentColor; margin: 8px 6px; transition: transform .25s; }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.home .mobile-menu { background: #fff; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu a { font-size: 28px; text-decoration: none; }
.mobile-menu .social { margin-top: 1em; }
.mobile-menu .social a { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px var(--gutter) 40px; }
.site-footer p { margin: 0; font-style: italic; font-size: 17px; }

/* ---------- Home ---------- */
.hero { height: 100vh; height: 100svh; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- Sculpture: looping reels ---------- */
.reels { padding-bottom: 40px; }
.reel { margin-bottom: 110px; }
.reel-viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.reel-track {
  display: flex;
  height: max(320px, calc(100vh - 260px));
  will-change: transform;
}
.reel-track.animate { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.reel-slide { flex: none; height: 100%; margin: 0; cursor: pointer; }
.reel-slide img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.reel-caption { margin: 26px var(--gutter) 0; font-size: 13px; text-align: center; min-height: 1.7em; }

.reel-btn, .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff; color: #000; border: 0; padding: 0; cursor: pointer;
}
.reel-btn svg, .lb-btn svg { width: 22px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.reel-prev { left: 15px; }
.reel-next { right: 15px; }

.wide-image { margin: 0 var(--gutter) 80px; }
.wide-image img { width: 100%; }

/* ---------- Painting: strips ---------- */
.strips { padding-top: 42px; }
/* Each row is as tall as fits on one screen (leaving room for captions),
   or shorter if its images would otherwise overflow the page width.
   --sum (total width/height ratio) and --n (image count) are set per row in the HTML. */
.strip {
  --h: min(calc(100vh - 120px), calc((100vw - 2 * var(--gutter) - (var(--n) - 1) * 20px) / var(--sum)));
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: 14px 20px;
  padding: 0 var(--gutter);
  margin-bottom: 110px;
}
.strip-item { flex: none; width: calc(var(--ar) * var(--h)); margin: 0; cursor: pointer; }
.strip-item img { width: 100%; }
/* One caption per row, centred under the image(s) */
.strip-caption { flex: 0 0 100%; margin: 0; font-size: 13px; line-height: 1.5; text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3vw; align-items: center;
  padding: 0 var(--gutter) 80px;
}

/* ---------- About ---------- */
.about { padding: 14px var(--gutter) 60px; }
.about-intro {
  display: grid; grid-template-columns: 367fr 683fr; gap: 100px; align-items: center;
  max-width: 1150px; margin: 0 auto;
}
.about-bio { max-width: 1120px; margin: 50px auto 0; font-style: italic; }

.cv { max-width: 672px; margin: 0 auto; font-size: 15px; line-height: 1.85; }
.cv h2 {
  font-family: var(--font-body); font-weight: 400; font-size: 17px;
  margin: 110px 0 18px;
}
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: 88px 1fr; }
.cv-list--spaced li { margin-bottom: 18px; }
.cv a { color: var(--accent); }

.about-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 672px; margin: 110px auto 0; font-size: 15px;
}
.about-contact h2 { font-family: var(--font-body); font-weight: 400; font-size: 17px; margin: 0 0 8px; }
.about-contact p { margin: 0 0 .3em; }
.about-studio { margin: 110px calc(var(--gutter) * -1) 0; }
.about-studio img { width: 100%; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 86vh; width: auto; height: auto; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close { top: 20px; right: 20px; transform: none; font-size: 30px; line-height: 1; font-family: var(--font-body); }

/* ---------- Mobile ---------- */
@media (max-width: 799px) {
  :root { --gutter: 6vw; --header-h: 84px; }
  .site-title { font-size: 24px; }
  .header-right > .site-nav, .header-right > .social { display: none; }
  .burger { display: block; }

  .reel { margin-bottom: 70px; }
  .reel-track { height: min(calc(100svh - 230px), 110vw); }

  /* Sets stay side by side on phones, shrunk to fit the screen width */
  .strip {
    --h: min(calc(100svh - 140px), calc((100vw - 2 * var(--gutter) - (var(--n) - 1) * 8px) / var(--sum)));
    gap: 12px 8px;
    margin-bottom: 70px;
  }

  .split, .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-intro > * { min-width: 0; }
  .about-intro img { width: 100%; max-width: 420px; }
  .cv h2 { margin-top: 70px; }
  .cv-list li { grid-template-columns: 60px 1fr; }
  .about-contact { grid-template-columns: 1fr; margin-top: 70px; }
  .about-studio { margin-top: 70px; }
}
