/* aaronkovalchik.net — static rebuild
   Palette (light olive-brown site):
     --bg      #c9b78c  warm olive-brown ground
     --ink     #30291e  body text
     --bright  #201b13  name / active nav
     --muted   #504127  captions, inactive nav
*/

:root {
  --bg: #c9b78c;
  --ink: #30291e;
  --bright: #201b13;
  --muted: #504127;
  --serif: "EB Garamond", Garamond, "Hoefler Text", "Palatino", "Times New Roman", serif;
  --content-max: 1100px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem 0;
}

.site-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.14em;
  color: var(--bright);
}

.site-title a { text-decoration: none; }

.site-tagline {
  margin: 0.35rem 0 0;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(1.5rem, 6vw, 5rem);
  row-gap: 0.5rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--muted);
  padding-bottom: 0.85rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--bright); }

.site-nav a[aria-current="page"] {
  color: var(--bright);
  font-weight: 600;
}

/* Mobile: keep all four items on one line; abbreviate "Bio & Contact"
   to "Bio" and tighten spacing instead of wrapping or hiding the nav. */
@media (max-width: 540px) {
  .site-nav {
    flex-wrap: nowrap;
    column-gap: clamp(0.9rem, 5vw, 1.6rem);
  }
  .site-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    white-space: nowrap;
  }
  .nav-long { display: none; }
}

/* caret under active nav item — carried over from the old site */
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--muted);
}

/* ---------- layout ---------- */

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem;
}

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  display: block;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.video-facade:hover img,
.video-facade:focus-visible img { opacity: 1; }

.video-facade::after {
  /* play triangle */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-left: 26px solid rgba(236, 230, 214, 0.95);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.55));
}

.video-facade:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}

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

.hero { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.caption,
.video-title {
  margin: 0.6rem 0 0;
  font-size: 0.95em;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.video-grid figure { margin: 0; }

/* ---------- bio ---------- */

.bio { font-size: 1.02em; }

.bio-photo {
  margin: 0 0 1rem;
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.bio-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: var(--muted);
}

@media (min-width: 720px) {
  .bio-photo {
    float: right;
    width: 46%;
    margin: 0 0 1.25rem 2rem;
  }
}

.bio p { margin: 0 0 1.1em; }

/* ---------- misc ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
