/* ============================================
   PERSE GRAMMER — Portfolio Site
   Aesthetic: Editorial Theatre / Literary
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --color-bg: #0e0e0e;
  --color-bg-alt: #161616;
  --color-bg-card: #1a1a1a;
  --color-text: #e8e4de;
  --color-text-muted: #9a958d;
  --color-accent: #c9a96e;
  --color-accent-hover: #dfc08a;
  --color-border: #2a2724;
  --color-border-light: #3a3630;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-literary: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

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

/* ── NAVIGATION ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile-overlay.open {
  display: flex;
}

.nav-mobile-overlay a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active {
  color: var(--color-accent);
}

/* ── MAIN LAYOUT ── */

main {
  padding-top: var(--nav-height);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section--narrow {
  max-width: 800px;
}

.section--wide {
  max-width: 1400px;
}

/* ── HERO (Home) ── */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-text {
  animation: fadeUp 1s ease-out;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3em;
  color: var(--color-text);
}

.hero-text h1 .accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero-text .hero-subtitle {
  font-family: var(--font-literary);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-image {
  position: relative;
  animation: fadeIn 1.2s ease-out 0.3s both;
}

.hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 2px;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.4;
}

/* ── BUTTONS ── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transition: left var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--color-bg);
}

.btn:hover::before {
  left: 0;
}

.btn--small {
  font-size: 0.72rem;
  padding: 0.6rem 1.4rem;
}

/* ── PAGE HEADERS ── */

.page-header {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-family: var(--font-literary);
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── ABOUT PAGE ── */

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.about-photo {
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

.about-photo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border-light);
  z-index: -1;
}

.about-content {
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.about-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.about-tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.8rem 1.5rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.about-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.about-tab:hover,
.about-tab.active {
  color: var(--color-text);
}

.about-tab.active::after {
  transform: scaleX(1);
}

.about-panel {
  display: none;
}

.about-panel.active {
  display: block;
  animation: fadeUp 0.5s ease-out;
}

.about-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.about-panel p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.about-panel p strong {
  color: var(--color-text);
  font-weight: 500;
}

.about-panel em {
  font-style: italic;
  color: var(--color-text);
}

.accolades-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.accolades-year:first-child {
  margin-top: 0;
}

.accolades-list {
  list-style: none;
  padding: 0;
}

.accolades-list li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-muted);
  font-weight: 300;
}

.accolades-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Artist Statement */
.artist-statement {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.artist-statement h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.artist-statement p {
  font-family: var(--font-literary);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
  text-indent: 2em;
}

.artist-statement p:first-of-type {
  text-indent: 0;
}

.artist-statement p em {
  color: var(--color-text);
}

/* ── UPCOMING / EVENTS PAGE ── */

.events-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.events-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0.8rem auto 0;
}

.event-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: border-color var(--transition);
}

.event-card:hover {
  border-color: var(--color-border-light);
}

.event-card img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.event-card .event-by {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.event-card .event-date {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.event-card .event-venue {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.event-card .event-desc {
  font-family: var(--font-literary);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.event-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 4rem 0;
}

/* ── PLAYS PAGE ── */

.plays-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.plays-intro p {
  font-family: var(--font-literary);
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.plays-intro a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
}

.play-feature:last-of-type {
  border-bottom: none;
}

.play-feature img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.play-feature h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.play-meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.play-feature .play-desc {
  font-family: var(--font-literary);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

/* Reviews */
.reviews-section {
  padding-top: 2rem;
}

.reviews-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition);
}

.review-card:hover {
  border-color: var(--color-border-light);
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.2rem;
  line-height: 1;
}

.review-card .review-play {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.review-card blockquote {
  font-family: var(--font-literary);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.review-card blockquote strong {
  color: var(--color-text);
  font-weight: 500;
}

.review-card .review-author {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
}

/* ── GALLERY PAGE ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.gallery-caption {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  font-family: var(--font-literary);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.gallery-caption strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
  font-weight: 300;
}

.lightbox-nav:hover {
  color: var(--color-accent);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ── RESUME PAGE ── */

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.resume-block {
  margin-bottom: 3rem;
}

.resume-block h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-item:last-child {
  border-bottom: none;
}

.resume-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.resume-item .resume-venue {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.resume-item .resume-year {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
}

.resume-job {
  margin-bottom: 2rem;
}

.resume-job h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.1rem;
  font-style: normal;
}

.resume-job .resume-org {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.resume-job .resume-role {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.resume-job ul {
  list-style: none;
  padding: 0;
}

.resume-job ul li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0 0.2rem 1.2rem;
  position: relative;
  font-weight: 300;
}

.resume-job ul li::before {
  content: '·';
  position: absolute;
  left: 0.3rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* ── CONTACT PAGE ── */

.contact-section {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
}

.contact-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-lines {
  font-family: var(--font-literary);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 2.2;
  margin-bottom: 3rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-email:hover {
  border-bottom-color: var(--color-accent);
}

/* ── CTA FOOTER (repeated across pages) ── */

.cta-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.cta-footer p {
  font-family: var(--font-literary);
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 2;
}

.cta-footer a {
  display: inline-block;
  margin-top: 1rem;
}

/* ── SITE FOOTER ── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

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

/* ── ANIMATIONS ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-text .hero-subtitle {
    max-width: 100%;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 400px;
  }

  .hero-image::before {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo {
    max-width: 350px;
    margin: 0 auto;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .play-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item img {
    height: 200px;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .page-header {
    padding: 3.5rem 1.5rem 2rem;
  }
}

@media (max-width: 600px) {
  .about-tabs {
    flex-wrap: wrap;
  }

  .about-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item img {
    height: 160px;
  }
}
