/* =========================================================
   elinuss.com — recreated from the Squarespace design
   Colors, fonts and sizes measured from the live site.
   ========================================================= */
:root {
  --cream: #ece4da;     /* page / light sections */
  --brown: #522d07;     /* dark sections, body text */
  --rust: #7d4e16;      /* headings, nav, header */
  --tan: #b79d81;       /* gallery band, hero text, buttons */
  --offwhite: #f6f3ec;  /* text on dark */

  --heading: "Young Serif", Georgia, serif;
  --body: "Bitter", Georgia, serif;

  /* Squarespace's fluid type scale: (size - 1) * 1.2% of min(viewport, 1400px) + 1rem */
  --u: calc(min(100vw, 1400px) * 0.012);
  --h1: calc(3 * var(--u) + 1rem);     /* "Meet Eli", "Videos", "Contact Eli", hero name */
  --h2: calc(1.8 * var(--u) + 1rem);   /* "Gallery", "Productions", footer name */
  --h4: calc(0.6 * var(--u) + 1rem);   /* hero tagline, footer column titles */

  /* Editable colors (Pages CMS -> Colors). Unset = original look. */
  --bg: var(--c-bg, var(--cream));

  --gutter: 4vw;
  --header-h: calc(var(--sp-header-height, 52) * 1px);   /* editable in Pages CMS → Spacing */
  --k: 1;                                       /* spacing scale: shrinks on smaller screens */
}

@media (max-width: 1100px) { :root { --k: .8; } }
@media (max-width: 767px) { :root { --k: .6; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--c-body, var(--brown));
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h4 { font-family: var(--heading); font-weight: 400; letter-spacing: -0.02em; margin: 0; }

.container { width: 100%; max-width: calc(1400px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.display { font-size: var(--h1); line-height: 1.056; color: var(--c-heading, var(--rust)); margin-bottom: 1.2rem; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 999; background: var(--brown); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 1rem/1.2 var(--heading); text-decoration: none;
  --btn-default: var(--tan);
  color: var(--c-btn-text, var(--btn-default));
  background: var(--c-btn-fill, transparent);
  border: 2px solid var(--c-btn, var(--btn-default)); border-radius: 10px;
  padding: .6em 1.8em; cursor: pointer; transition: opacity .2s ease;
}
.btn:hover { opacity: .7; }
.btn-tan { --btn-default: var(--tan); min-width: clamp(190px, 11.1vw, 283px); min-height: clamp(50px, 2.8vw, 71px); }
.btn-brown { --btn-default: var(--rust); }
.btn-small { --btn-default: #fff; font-size: 1rem; padding: .7em 2em; min-width: 11em; min-height: 48px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: var(--bg); color: var(--c-heading, var(--rust));
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-title { font: 400 calc(0.5 * var(--u) + 1rem)/1.2 var(--heading); letter-spacing: -0.02em; text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: max(1.5rem, 2vw); }
.header-nav a { text-decoration: none; font-family: var(--heading); font-size: 1.05rem; letter-spacing: -0.01em; }
.header-nav > a:hover { opacity: .7; }
.header-social { display: flex; align-items: center; gap: max(1.5rem, 2vw); }
.header-social svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.header-social a:hover { opacity: .7; }

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

@media (max-width: 767px) {
  .burger { display: block; position: relative; z-index: 2; }
  .site-title { position: relative; z-index: 2; }
  .header-nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    font: 400 var(--h2)/1.2 var(--heading);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .header-nav.open { opacity: 1; visibility: visible; }
  .header-social { margin: .8rem 0 0; gap: 2rem; }
  .header-social svg { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: max(36.2vw, 440px); overflow: hidden; background: var(--brown); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 31%; }
/* Film grain over the hero photo. Strength comes from Pages CMS (Top banner → grain). */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='2.2' intercept='-.6'/><feFuncG type='linear' slope='2.2' intercept='-.6'/><feFuncB type='linear' slope='2.2' intercept='-.6'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: overlay; opacity: var(--grain, .6);
}
.hero-content {
  z-index: 2;
  position: absolute; left: 0; right: 0; bottom: max(7.5vw, 48px);
  text-align: center; padding: 0 var(--gutter);
}
/* Title + subtitle colors and outline are editable in Pages CMS -> Colors.
   paint-order puts the stroke behind the letters so the outline sits outside them. */
.hero h1 {
  font-size: var(--h1); line-height: 1.056;
  color: var(--c-title, var(--tan));
  -webkit-text-stroke: calc(var(--outline-w, 2) * 1px) var(--outline-c, var(--brown));
  paint-order: stroke fill;
}
.hero-tagline {
  font: 400 var(--h4)/1.17 var(--heading); letter-spacing: -0.02em; margin: max(1.3vw, 12px) 0 0;
  color: var(--c-subtitle, var(--tan));
  -webkit-text-stroke: calc(var(--outline-w, 2) * .5px) var(--outline-c, var(--brown));
  paint-order: stroke fill;
}

/* ---------- Meet Eli ---------- */
.meet { padding: calc(var(--sp-meet-top, 32) * 1px * var(--k)) 0 calc(var(--sp-meet-bottom, 71) * 1px * var(--k)); }
.meet-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: max(2vw, 28px); }
.meet-photo { justify-self: center; width: 74%; margin-right: 6%; }
.meet-photo img { width: 100%; aspect-ratio: 518 / 523; object-fit: cover; object-position: 48% 0%; }
.meet-text { width: 74%; justify-self: center; margin-right: 4%; }
.meet-text .display { margin-bottom: .6rem; }
.meet-btn { display: flex; justify-content: center; }
.meet-btn.b1 { margin-right: 6%; }
.meet-btn.b2 { margin-right: 4%; }

@media (max-width: 767px) {
  .meet-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .meet-photo, .meet-text { width: 100%; margin: 0; }
  .meet-photo { order: 1; }
  .meet-btn.b1 { order: 2; margin: 0; }
  .meet-text { order: 3; margin-top: 16px; }
  .meet-btn.b2 { order: 4; margin: 0; }
}

/* ---------- Carousels (Gallery + Productions) ---------- */
.list-title { color: var(--c-heading, inherit); font-size: var(--h2); line-height: 1.114; text-align: center; margin-bottom: calc(var(--sp-gallery-heading-gap, 50) * 1px * var(--k)); }
.carousel { --per: 3; --gap: 20px; position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: var(--gap); padding: 0 var(--gutter); will-change: transform; }
.carousel-track.animate { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { margin: 0; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.slide .btn { display: flex; width: fit-content; margin: calc(var(--sp-gallery-button-gap, 52) * 1px * var(--k)) auto 0; }

.arrow {
  position: absolute; top: 0; z-index: 2;
  width: clamp(40px, 2.35vw, 60px); height: clamp(40px, 2.35vw, 60px);
  border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  /* vertically centred on the square image */
  transform: translateY(-50%);
  margin-top: calc((100vw - 2 * var(--gutter) - (var(--per) - 1) * var(--gap)) / var(--per) / 2);
  transition: opacity .2s;
}
.arrow:hover { opacity: .8; }
.arrow svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow-prev { left: calc(var(--gutter) + 1vw); }
.arrow-next { right: calc(var(--gutter) + 1vw); }

@media (max-width: 767px) {
  .carousel { --per: 1; --gap: 12px; }
}

/* Gallery band */
.gallery { position: relative; background: var(--tan); color: #fff; padding: calc(var(--sp-gallery-top, 144) * 1px * var(--k)) 0 calc(max(6.3vw, 40px) + var(--sp-gallery-bottom, 130) * 1px * var(--k)); }
.gallery .arrow { background: var(--cream); color: var(--tan); }

/* Productions band */
.productions { background: var(--brown); color: var(--offwhite); padding: calc(var(--sp-productions-top, 144) * 1px * var(--k)) 0 calc(var(--sp-productions-bottom, 144) * 1px * var(--k)); }
.productions .arrow { background: var(--tan); color: var(--offwhite); }

/* ---------- Wave dividers ---------- */
.has-wave { position: relative; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; display: block; pointer-events: none; }
.wave-line { fill: none; stroke-width: 2.5; }
.gallery .wave { height: max(6.3vw, 40px); }
.gallery .wave-fill { fill: var(--bg); }
.gallery .wave-line { stroke: #fff; }
.videos .wave { height: max(5.1vw, 34px); }
.videos .wave-fill { fill: var(--brown); }
.videos .wave-line { stroke: var(--tan); }

/* ---------- Videos ---------- */
.videos { padding: calc(var(--sp-videos-top, 58) * 1px * var(--k)) 0 calc(max(5.1vw, 34px) + var(--sp-videos-bottom, 109) * 1px * var(--k)); }
.videos .display { margin-bottom: max(2.9vw, 24px); }
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; margin-bottom: 14px; }
.video { position: relative; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.wide { aspect-ratio: 16 / 9; }
.video.classic { aspect-ratio: 4 / 3; }
.video.large { width: 53.5%; }
.video.medium { width: 49.3%; }
.video.small { width: 40.9%; }
@media (max-width: 767px) {
  .video.large, .video.medium, .video.small { width: 100%; }
}

/* ---------- Credits strip ---------- */
.credits { background: var(--brown); color: var(--offwhite); padding: 6px 0; font-size: 12px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { padding: calc(var(--sp-contact-top, 69) * 1px * var(--k)) 0 calc(var(--sp-contact-bottom, 69) * 1px * var(--k)); color: var(--c-body, var(--rust)); }
.contact-grid { display: grid; grid-template-columns: 32.8% 1fr 49.6%; }
.contact-intro { grid-column: 1; }
.contact-intro .display { margin-bottom: max(1.25vw, 16px); }
.contact-form { grid-column: 3; color: var(--c-body, var(--brown)); }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 6px; font-size: 1rem; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form label { display: block; }
.contact-form .field { margin-bottom: 20px; }
.lbl { display: block; font-size: .8rem; margin-bottom: 4px; }
.lbl.big { font-size: 1rem; }
.req { font-size: .7rem; opacity: .7; margin-left: 4px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  font: 400 1rem/1.5 var(--body); color: var(--c-body, var(--brown));
  background: transparent; border: 1px solid var(--c-body, var(--brown)); border-radius: 23.84px;
  padding: 8px 15px; height: 42px;
}
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-width: 2px; padding: 7px 14px; }
.contact-form .hp { display: none; }
.form-status { margin-top: 14px; min-height: 1.5em; color: var(--rust); }

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .contact-intro, .contact-form { grid-column: 1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--offwhite); padding: calc(var(--sp-footer-top, 32) * 1px * var(--k)) 0 calc(var(--sp-footer-bottom, 36) * 1px * var(--k)); }
.footer-grid { display: grid; grid-template-columns: 1fr 16.6% 16.6%; align-items: start; }
.footer-title { color: var(--c-heading, inherit); font-size: var(--h2); line-height: 1.114; }
.footer-col { padding-top: max(1.2vw, 6px); }
.footer-col h4 { font-size: var(--h4); line-height: 1.17; margin-bottom: max(1.25vw, 14px); }
.footer-col.right { text-align: right; }
.footer-col a { text-underline-offset: 2px; }
.footer-col a:hover { opacity: .7; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr auto auto; column-gap: 48px; }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .footer-col.right { text-align: left; }
}

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-content: center; text-align: center; padding: 64px var(--gutter); }
.notfound .display { margin-bottom: 1rem; }
.notfound p { margin-bottom: 2rem; }
