/* ==========================================================================
   daniellindeen.com — rebuilt as a standalone static site
   Type + palette lifted from the original Squarespace build:
     headings  Young Serif 400   body  Bitter 400
     accent #253551 (navy)   footer band #e0e0db   ink #000 on #fff
   ========================================================================== */

:root {
  --navy:  #253551;
  --ink:   #000;
  --paper: #fff;
  --stone: #e0e0db;
  --muted: #4a4a4a;

  --font-head: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Bitter", Georgia, "Times New Roman", serif;

  --page-max: 1800px;
  --gutter: 3vw;
  --header-h: 101px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);   /* 24px at 1440 */
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.056;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 3.7vw, 5.25rem); }   /* ~76px at 1440 */
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.8rem); }      /* ~55px at 1440 */
h3 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 3rem); }      /* ~45px at 1440 */
h4 { font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.7rem); }

p { margin: 0 0 1.5rem; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 1rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- header -- */
/* Sits on top of the hero rather than pushing it down, as on the original. */

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--gutter);
  color: var(--paper);
}
.site-header--dark { color: var(--ink); position: static; }

.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 84px; height: 84px; object-fit: contain; }
.site-header--dark .site-header__logo img { filter: invert(1); }

.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.6rem;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.5rem);
}
.site-nav a { text-decoration: none; padding-bottom: 2px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-nav a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
}

.social {
  display: flex; align-items: center; gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.social a { display: block; line-height: 0; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social a:hover { opacity: 0.65; }

.site-header .social { margin-left: 1.6rem; }

/* Small screens: nav wraps under the logo on its own line. */
@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .site-header { height: auto; padding-block: 1rem; flex-wrap: wrap; }
  .site-nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .site-header .social { margin-left: 0; width: 100%; justify-content: center; }
  .site-header__logo { margin: 0 auto; }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--paper);
  background: #111 center/cover no-repeat;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
}
.hero--full  { min-height: 100vh; }
.hero--tall  { min-height: 46vh; }
.hero--band  { min-height: 330px; }
.hero--video { min-height: 767px; }

.hero h1, .hero h2 { color: var(--paper); margin: 0; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero .social { justify-content: center; margin-top: 1.75rem; }

/* -------------------------------------------------------------- sections -- */

.section { padding: clamp(3rem, 6vw, 7rem) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tight { padding-top: clamp(2rem, 3vw, 3.5rem); }

/* About: copy left, portrait right. */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.about-grid .lead { font-weight: 700; }
.about-grid .note { font-style: italic; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.signature { margin-top: clamp(2rem, 5vw, 4.5rem); }
.signature .rule {
  width: 34px; height: 4px; background: var(--ink);
  border: 0; margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-block;
  background: var(--navy); color: var(--paper);
  text-decoration: none;
  padding: 1.4rem 2.2rem;
  line-height: 1.1;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: #1a2740; }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn-center { text-align: center; }

/* ---------------------------------------------------------------- films -- */
/* Alternating rows: a still on one side, a text card overlapping it. */

.film { display: grid; align-items: center; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.film:last-child { margin-bottom: 0; }
.film__still { grid-area: 1 / 1 / 2 / 9; }
.film__still img { width: 100%; }
.film__card {
  grid-area: 1 / 6 / 2 / 13;
  background: var(--paper); color: var(--ink);
  padding: clamp(1.5rem, 3vw, 3rem);
  z-index: 2;
}
.film--flip .film__still { grid-area: 1 / 5 / 2 / 13; }
.film--flip .film__card { grid-area: 1 / 1 / 2 / 8; }
.film { grid-template-columns: repeat(12, 1fr); }
.film__card h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); letter-spacing: 0; }
.film__card p { font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.25rem); }
.film__card .btn { margin-top: 0.5rem; }

@media (max-width: 800px) {
  .film, .film--flip { display: block; }
  .film__card { margin: -2rem 1rem 0; position: relative; }
}

/* -------------------------------------------------------------- weddings -- */

.duo {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.duo h3, .service h3 {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
}
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.5rem; }
.service .btn { margin: 0 0 1rem; }
.service .btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

.contact-split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- form -- */

.form label { display: block; margin-bottom: 0.35rem; }
.form .field { margin-bottom: 1.5rem; }
.form .field--split { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .field--split { grid-template-columns: 1fr; } }
.form input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #b9b9b9; background: #f7f7f7; color: var(--ink);
}
.form input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form .req { color: var(--muted); font-size: 0.8em; }
.form button { font: inherit; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- video -- */

.video-frame {
  max-width: 1015px; margin: 0 auto;
  background: #000;
}
.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; }

/* -------------------------------------------------------------- writing -- */

.scripts {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}
@media (max-width: 900px) { .scripts { grid-template-columns: 1fr; } }
.script h2 { font-style: italic; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.script p { font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.25rem); }

/* --------------------------------------------------------------- gallery -- */
/* Masonry via CSS columns — matches the original two-up staggered grid. */

.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 0 var(--gutter);
  align-items: start;
}
.gallery__col { display: grid; gap: 3px; }
.gallery img { width: 100%; }
/* Single column on phones: collapse the two columns so the photos fall back
   into their original order (each img carries its own `order`). */
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__col { display: contents; }
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--stone);
  min-height: 330px;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem var(--gutter);
}
.site-footer .social { gap: 1.4rem; }
.site-footer .social svg { width: 26px; height: 26px; }

/* Respect a reduced-motion preference for the autoplaying hero. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------- hero background video */
/* Cover-fills the hero the way object-fit:cover would, but for an iframe. */

.hero__video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;              /* 16:9 keyed off width  */
  min-height: 100%; min-width: 177.78vh;      /* ...or off height      */
  transform: translate(-50%, -50%);
  border: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

/* Force the same two-line wrap the original uses for the name. */
.hero--full h1 { max-width: 677px; margin-inline: auto; }

/* The films banner is 660px on the original, the reel banner 330px. */
.hero--tall { min-height: 660px; }

/* Section label above the two services — body font, bold, matching the original. */
.duo-title {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* reel and contact lead with an h1 for document structure, but visually they
   sit at the same size the h2 did before. */
.hero--band h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.8rem); }
.contact-split h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.8rem); }

/* ------------------------------------------------------------------- 404 -- */

.notfound { padding-block: clamp(3rem, 8vw, 7rem); }
.notfound__code {
  font-family: var(--font-head);
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  line-height: 1; color: var(--stone);
  margin: 0 0 0.25rem;
}
.notfound h1 { margin-bottom: 1rem; }
.notfound__lead { max-width: 46ch; }

.notfound__links {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0; padding: 0;
  display: grid; gap: 1rem;
  /* Six links, so a fixed 3 x 2 rather than auto-fit — auto-fit left an
     empty cell hanging off the last row. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.notfound__links li {
  background: var(--paper); padding: 1.25rem 1.5rem;
  border: 1px solid var(--stone);
}
@media (max-width: 900px) { .notfound__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .notfound__links { grid-template-columns: 1fr; } }
.notfound__links a {
  font-family: var(--font-head); text-decoration: none;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.7rem);
  display: block;
}
.notfound__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.notfound__links span {
  display: block; margin-top: 0.15rem;
  font-size: 0.82em; color: var(--muted);
}
