/* Jacob Flekier — site styles
   To change the look, edit the variables below. */
:root {
  --bg: #fbfaf8;
  --text: #1c1b1a;
  --muted: #6b6762;
  --line: #e4e0da;
  --accent: #7a2e2e;      /* deep curtain red, used sparingly */
  --panel: #f3f0eb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h3 {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 2.5rem 0 1rem;
}

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.75rem;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; border-top: 1px solid var(--line); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center; padding: clamp(3rem, 8vw, 6rem) 0;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 30ch; margin: 1.25rem 0 2rem; }
.hero-links { display: flex; gap: 1.5rem; align-items: center; }
.headshot { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--panel); }

/* Buttons */
.button {
  display: inline-block; padding: 0.75rem 1.4rem;
  background: var(--text); color: var(--bg);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--text);
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button-outline { background: transparent; color: var(--text); }
.button-outline:hover { color: var(--bg); }
.text-link { font-size: 0.9rem; text-underline-offset: 4px; }

/* About */
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1rem; }
.pull-quote { margin: 3rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--accent); max-width: 52ch; }
.pull-quote p { font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; margin: 0 0 0.6rem; }
.pull-quote cite { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* Feature (Just for Us) */
.feature h2 { margin-bottom: 0.25rem; }
.feature-sub { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); margin: 0 0 1.75rem; }
.details { display: flex; gap: 3rem; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.details dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0.25rem 0 0; }

/* Resume */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.5rem; }
.affil { color: var(--muted); margin: 0; }
.credits { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.credits th {
  text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); padding: 0 1rem 0.6rem 0;
  border-bottom: 1px solid var(--text);
}
.credits td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits td:first-child { width: 38%; }
.credits td:nth-child(2) { width: 22%; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 0.4rem 0; }

/* Media (old) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--panel); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 1.4rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--panel); }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* Hero extras */
.unions { font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); margin: -1rem 0 2rem; }

/* Just for Us photos + press */
.show-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin: 3rem 0 0; }
.show-photos a { grid-column: span 2; display: block; }
.show-photos a.sp-lg { grid-column: span 3; }
.show-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.show-photos a:hover img { opacity: 0.85; }
.press { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.press li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.press blockquote { margin: 0 0 0.6rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.press-src { margin: 0; font-size: 0.85rem; color: var(--muted); }
.press li:first-child { grid-column: 1 / -1; }
.press li:first-child blockquote { font-size: clamp(1.5rem, 3vw, 1.9rem); max-width: 34ch; }
.press-src a { color: inherit; text-underline-offset: 3px; }

/* Photo credit + trailer card */
.photo-credit { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }
.trailer-card {
  display: flex; align-items: center; gap: 1.25rem; margin: 2rem 0 0; padding: 0.75rem;
  border: 1px solid var(--line); text-decoration: none; max-width: 520px; transition: border-color .2s;
}
.trailer-card:hover { border-color: var(--text); }
.trailer-thumb { position: relative; flex: 0 0 160px; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.trailer-thumb .yt-icon { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.trailer-thumb .yt-icon::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.trailer-card:hover .yt-icon { background: var(--accent); }
.trailer-text { display: flex; flex-direction: column; gap: 0.2rem; }
.trailer-text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.trailer-text span { font-size: 0.8rem; color: var(--muted); }

/* Resume link buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.button-row .button { text-align: center; }
@media (max-width: 720px) {
  .button-row { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
  .press { grid-template-columns: 1fr; gap: 1.5rem; }
  .show-photos { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .show-photos a, .show-photos a.sp-lg { grid-column: span 1; }
  .show-photos a.sp-lg { grid-column: 1 / -1; }
  .show-photos a:last-child { grid-column: 1 / -1; }
}

/* Resume two-column block */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
ul.plain li { line-height: 1.5; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.video-grid figure { margin: 0; }
.video-grid figcaption, .masonry span { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; display: block; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: #111 center / cover no-repeat;
}
.yt-icon {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: rgba(0,0,0,0.6); transition: background .2s;
}
.yt-icon::after {
  content: ""; position: absolute; left: 27px; top: 21px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.yt-play:hover .yt-icon { background: var(--accent); }
.yt-empty { display: grid; place-items: center; background: var(--panel); color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }

/* Photos */
.masonry { columns: 3; column-gap: 1rem; }
.masonry-4 { columns: 4; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 1rem; text-decoration: none; }
.masonry img { width: 100%; height: auto; transition: opacity .2s; }
.masonry a:hover img { opacity: 0.85; }
.masonry span { margin-top: 0.35rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,19,18,0.95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { color: #cfcac3; font-size: 0.85rem; margin-top: 0.75rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 1rem; opacity: 0.75;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 0.5rem; right: 0.75rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-email { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.5rem; }
.contact-email a, .socials a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.socials span { color: var(--muted); margin-left: 0.35rem; }

/* Footer */
.site-footer { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

@media (max-width: 1000px) { .masonry-4 { columns: 3; } }


/* Hero highlights */
.highlights { list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.95rem; }
.highlights li { display: grid; grid-template-columns: 4.75rem 1fr; align-items: baseline; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.highlights li:last-child { border-bottom: 1px solid var(--line); }
.highlights span {
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero-links { flex-wrap: wrap; }

/* Press band under hero */
.press-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
.press-band figure { margin: 0; }
.press-band .band-label { grid-column: 1 / -1; margin: 0 0 -0.75rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.press-band blockquote { margin: 0 0 0.5rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.25; }
.press-band figcaption { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pull-quote + .pull-quote { margin-top: 2rem; }
@media (max-width: 900px) { .press-band { grid-template-columns: 1fr 1fr; } }

/* Phones */
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .site-header nav { justify-content: flex-start; gap: 0.85rem; }
  .site-header nav a { font-size: 0.82rem; }
  html { scroll-padding-top: 110px; }
  .hero { grid-template-columns: 1fr; }
  .headshot { order: -1; max-width: 420px; }
  .gallery, .two-col, .video-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 0.6rem; }
  .masonry a { margin-bottom: 0.6rem; }
  .masonry span { display: none; }
  .lb-prev, .lb-next { display: none; }
  .credits { font-size: 0.88rem; }
  .credits thead { display: none; }
  .credits tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .credits td { display: block; width: auto !important; padding: 0; border: 0; }
  .credits td:first-child { font-weight: 500; }
  .credits td:not(:first-child) { color: var(--muted); }
}
