/* ============================================================
   mayashwayder.com — static rebuild
   Type: Libre Baskerville (display, italic like the original
   Baskerville MT SemiBold Italic), Jost (nav/labels, Futura-like),
   Mulish (body, Junction-like).
   ============================================================ */

:root {
  --ink: #2e2e2e;
  --ink-soft: #5a5a5a;
  --paper: #ffffff;
  --paper-warm: #f7f6f3;
  --line: #e4e1db;
  --navy: #222c3a;
  --navy-hover: #32405a;
  --serif: "Libre Baskerville", "Baskerville", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --label: "Jost", "Futura", "Century Gothic", sans-serif;
  --measure: 64ch;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.45rem); }

.kicker {
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.2vw, 1.7rem);
}

.site-nav a {
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

.site-nav .ext::after {
  content: "\2197";  /* ↗ */
  margin-left: 0.3em;
  font-size: 0.85em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 47.5em) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; }

  .site-nav a {
    display: block;
    padding: 0.85em 0;
    font-size: 0.95rem;
    border-bottom: none;
  }

  .site-nav a[aria-current="page"] { font-weight: 600; }

  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
}

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

main { display: block; }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { padding-top: 0; }
.section--warm { background: var(--paper-warm); padding-top: clamp(3rem, 8vw, 5.5rem) !important; }
.section-head { text-align: center; margin-bottom: clamp(1.8rem, 5vw, 3rem); }
.section-head .rule {
  width: 64px;
  height: 1px;
  background: var(--ink-soft);
  border: 0;
  margin: 1.1rem auto 0;
}

.prose { max-width: var(--measure); margin-inline: auto; }
.prose p { margin: 0 0 1.2em; }

/* ---------- hero (home) ---------- */

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.hero-name h1 { margin: 0; }
.hero-name .tagline {
  font-family: var(--label);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.hero-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(34, 44, 58, 0.18);
}

@media (max-width: 47.5em) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-name { text-align: center; order: 1; }
  .hero-photo { order: 0; }
}

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

.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  padding: 0.95em 2.2em;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover { background: var(--navy-hover); color: #fff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 2.2rem;
}

.cta {
  text-align: center;
  flex: 1 1 14rem;
  max-width: 20rem;
}

.cta p {
  margin: 0.8em 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- video embeds (click-to-load) ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.video-card h2, .video-card h3 { text-align: center; margin-bottom: 0.8em; }
.video-card .caption {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1em;
}

.yt-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #000 center / cover no-repeat;
}

.yt-lite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s ease;
}

.yt-lite:hover::before { background: rgba(0, 0, 0, 0); }

.yt-lite .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  pointer-events: none;
}

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

/* ---------- contact ---------- */

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 35em) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7em 0.9em;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 0;
  border-color: var(--navy);
}

.contact-form .btn { width: 100%; }

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1rem;
}

.form-status { text-align: center; margin-top: 1rem; }

.social-row {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.social-row a {
  color: var(--ink);
  display: inline-flex;
  padding: 0.4rem;
}

.social-row svg { width: 24px; height: 24px; }

/* ---------- CV page ---------- */

.headshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 34rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.headshot-strip a {
  scroll-snap-align: center;
  display: block;
}

.headshot-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.strip-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

@media (min-width: 60em) {
  .headshot-strip { grid-auto-columns: 1fr; grid-auto-flow: column; overflow: visible; }
  .strip-hint { display: none; }
}

.cv-section { padding: clamp(2.2rem, 6vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.cv-section:first-of-type { border-top: 0; }

.cv-section > h2 { margin-bottom: 1.5rem; }

.cv-entry {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.4rem 2.2rem;
  padding: 1.1rem 0;
}

.cv-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.55;
}

.cv-meta .dates { display: block; }
.cv-meta .place { display: block; }

.cv-body h3 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.4em;
}

.cv-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cv-body li { margin-bottom: 0.45em; }
.cv-body p { margin: 0 0 0.5em; }

@media (max-width: 47.5em) {
  .cv-entry { grid-template-columns: 1fr; padding: 1rem 0; }
  .cv-meta { text-align: left; }
  .cv-meta .dates, .cv-meta .place { display: inline; }
  .cv-meta .place::before { content: " · "; }
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}

.skills-list li {
  padding: 0.55em 0;
  border-bottom: 1px dashed var(--line);
}

.skills-list li:last-child { border-bottom: none; }

/* ---------- galleries (copy writing) ----------
   Images are shown at their natural aspect ratio (no cropping) so the
   sample text stays readable, especially at single-column mobile width. */

.shot-grid {
  columns: 2 24rem;
  column-gap: 1.25rem;
}

.shot-grid a {
  display: block;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d0d;
}

.shot-grid img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}

.shot-grid a:hover img { opacity: 0.9; }

.shot-grid.wide { columns: 1 30rem; max-width: 54rem; margin-inline: auto; }

/* lightbox */
.lightbox {
  border: 0;
  border-radius: 8px;
  padding: 0;
  max-width: min(94vw, 70rem);
  max-height: 92vh;
  background: transparent;
}

.lightbox::backdrop { background: rgba(15, 18, 24, 0.85); }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.lightbox .close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

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

.clip-grid {
  columns: 3 18rem;
  column-gap: 1.25rem;
}

.clip-card {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.clip-card:hover {
  box-shadow: 0 10px 28px rgba(34, 44, 58, 0.12);
  transform: translateY(-2px);
}

.clip-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.clip-card img { width: 100%; }

.clip-card .clip-text { padding: 0.9rem 1rem 1.05rem; }

.clip-card .outlet {
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
}

.clip-card .headline {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0;
}

.clip-card a:hover .headline { text-decoration: underline; text-underline-offset: 3px; }

.earlier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
  margin-inline: auto;
}

.earlier-list li {
  padding: 0.85em 0;
  border-bottom: 1px solid var(--line);
}

.earlier-list li:last-child { border-bottom: 0; }

.earlier-list .outlet {
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

.earlier-list .when { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }

/* ---------- page hero (interior pages) ---------- */

.page-head {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 7vw, 4.2rem) 0;
  text-align: center;
}

.page-head h1 { margin-bottom: 0.3em; }

.page-head .lede {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.site-footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-social {
  display: flex;
  gap: 1.1rem;
}

.footer-social a { color: var(--ink-soft); display: inline-flex; padding: 0.3rem; }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; }

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

.error-page {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
