@import "fonts.css";

:root {
  --ink: #0a0a0a;
  --plum: #382633;
  --accent: #9395d3;
  --accent-dark: #6f71b8;
  --bg: #ffffff;
  --bg-soft: #f4f3f7;
  --line: #e4e2ea;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-height: 64px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--plum);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* Language switch */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.lang-switch button {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--plum);
  opacity: 0.55;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em 0.35em;
}

.lang-switch button:hover {
  opacity: 0.85;
}

.lang-switch button[aria-pressed="true"] {
  opacity: 1;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-lang-switch {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 0 0.9rem;
}

.mobile-lang-switch button {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--plum);
  opacity: 0.55;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2em 0.4em;
}

.mobile-lang-switch button[aria-pressed="true"] {
  opacity: 1;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 800px) {
  .mobile-lang-switch { display: none; }
}

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 0.85em 0.25em;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  border-top: 2px solid transparent;
}

.mobile-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-top-color: var(--accent);
}

main {
  padding-bottom: 4.5rem; /* room for mobile nav */
}

@media (min-width: 800px) {
  .site-nav { display: block; }
  .mobile-nav { display: none; }
  main { padding-bottom: 0; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  opacity: 0.85;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.75) 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 0.15em;
}

.hero-content .eyebrow {
  color: var(--accent);
  display: block;
  margin-bottom: 0.75em;
}

.hero-content p {
  max-width: 40em;
  font-size: 1.05rem;
  color: #f0eff5;
}

/* ---------- Generic page header ---------- */

.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

/* ---------- Bio ---------- */

.bio-portrait {
  margin: 0 0 2rem;
  max-width: 22rem;
}

.bio-portrait img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(1);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: top;
}

@media (min-width: 800px) {
  .bio-portrait {
    float: right;
    margin: 0 0 1.5rem 2.5rem;
  }
}

.bio-text p { max-width: 68ch; }

details.long-bio {
  margin-top: 1.5rem;
  max-width: 68ch;
}

details.long-bio summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.5em 0;
}

/* ---------- Dates ---------- */

.dates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 68ch;
}

.dates-list li {
  border-bottom: 1px solid var(--line);
}

.date-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding: 1.1rem 0;
}

.date-item > .date-summary {
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

.date-item > .date-summary::-webkit-details-marker {
  display: none;
}

.date-item > .date-summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
}

.date-item[open] > .date-summary::after {
  content: "–";
}

.date-item > .date-summary:hover .date-title {
  color: var(--accent-dark);
}

.date-when {
  font-weight: 600;
  color: var(--ink);
  min-width: 9em;
}

.date-title {
  flex: 1 1 16em;
}

.date-body {
  padding: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.date-detail-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--plum);
  opacity: 0.65;
  min-width: 5.5em;
}

.date-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.dates-empty {
  color: var(--plum);
  opacity: 0.7;
  font-style: italic;
  padding: 1.1rem 0;
}

@media (max-width: 480px) {
  .date-when { min-width: 100%; }
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 620px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.project-card:hover {
  box-shadow: 0 8px 24px rgba(56, 38, 51, 0.12);
  transform: translateY(-2px);
}

.project-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .body {
  padding: 1rem 1.1rem 1.25rem;
}

.project-card h3 {
  margin-bottom: 0.2em;
}

.project-card .subtitle {
  font-size: 0.85rem;
  color: var(--plum);
  opacity: 0.75;
}

/* ---------- Contact ---------- */

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin: 0.5rem 0 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--plum);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ---------- Yamuna EPK ---------- */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
}

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

.epk-hero {
  background: var(--bg-soft);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}

.epk-hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.epk-hero-text .eyebrow {
  display: block;
  margin-bottom: 0.5em;
}

.epk-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 40rem;
}

.cover-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cover-trigger:hover,
.cover-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56, 38, 51, 0.18);
}

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

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (min-width: 700px) {
  .epk-hero .container { gap: 2rem; }
  .epk-covers { max-width: 44rem; }
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.download-list a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7em 1.1em;
  border-radius: 3px;
}

.download-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.epk-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

@media (min-width: 700px) {
  .epk-gallery { grid-template-columns: repeat(4, 1fr); }
}

.epk-gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
  border-radius: 3px;
}

/* ---------- Legal pages ---------- */

.legal-content {
  max-width: 68ch;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 1.75em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 6rem;
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--plum);
  opacity: 0.85;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

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

.site-footer a:hover {
  color: var(--accent-dark);
}

.site-footer .copyright {
  width: 100%;
  margin-top: 0.5rem;
  opacity: 0.7;
}

@media (min-width: 800px) {
  .site-footer { padding-bottom: 2.5rem; }
}
