/* ============================================
   mrssolomou.com — Core Stylesheet
   Aesthetic: Audrey Hepburn elegance
   Palette: Navy, Gold, Tiffany Blue, Charcoal, Rose Gold, Platinum
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --navy: #0a1628;
  --gold: #aa8f5e;
  --tiffany: #81d8d0;
  --tiffany-light: #b5ece7;
  --charcoal: #3a3a3a;
  --rose-gold: #b76e79;
  --platinum: #d4d4d4;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #faf9f7;
  --warm-gray: #f2f0ed;
  --light-gray: #e8e6e3;
  --mid-gray: #999;
  --dark-gray: #555;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 780px;
  --max-width-wide: 1400px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Page transition: fade in smoothly --- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--charcoal);
  background-color: var(--off-white);
  animation: pageFadeIn 0.3s ease forwards;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.375rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-tiffany { color: var(--tiffany); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-xl) 0;
}

.section--large {
  padding: var(--space-2xl) 0;
}

/* --- Decorative Elements --- */
.divider {
  width: 180px;
  height: 24px;
  background: url('../assets/images/ornament-divider.svg') no-repeat center / contain;
  margin: var(--space-md) 0;
  border: none;
}

.divider--center {
  margin: var(--space-md) auto;
}

.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: var(--space-lg) 0;
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.nav__logo:active {
  opacity: 0.6;
}

.nav__monogram {
  height: 64px;
  width: auto;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 0.5rem 0;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--navy);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: var(--off-white);
  overflow: hidden;
}

.hero__content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.hero__left {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero__right {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.hero__image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.hero__image {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__monogram {
  width: 160px;
  height: auto;
  margin: 0 auto var(--space-md);
}

.hero__name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero__image-placeholder {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  aspect-ratio: 4/3;
  background: var(--warm-gray);
  border: 2px dashed var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-md);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

.hero__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  transition: color 0.3s var(--ease), transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero__social a:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.hero__social svg {
  width: 26px;
  height: 26px;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--dark-gray);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Essay Cards --- */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}

.essay-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.essay-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.essay-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--light-gray);
}

.essay-card__body {
  padding: var(--space-md);
}

.essay-card__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: var(--space-xs);
}

.essay-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.essay-card__excerpt {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.essay-card__link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.essay-card__link::after {
  content: '\2192';
  transition: transform 0.3s var(--ease);
}

.essay-card:hover .essay-card__link::after {
  transform: translateX(4px);
}

/* --- Essay Full Page --- */
.essay-page {
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.essay-page__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.essay-page__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: var(--space-sm);
}

.essay-page__title {
  font-size: 2.75rem;
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.essay-page__hero-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  border-radius: 4px;
}

/* --- Essay Toolbar (audio + translate) --- */
.essay-toolbar {
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Listen Widget --- */
.essay-listen {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.essay-listen__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid-gray);
  transition: border-color 0.25s, color 0.25s;
}

.essay-listen__btn:hover {
  border-color: var(--gold);
  color: var(--charcoal);
}

.essay-listen__btn.is-playing {
  border-color: var(--gold);
  color: var(--charcoal);
}

.essay-listen__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.essay-listen__time {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--mid-gray);
  letter-spacing: 0.02em;
  min-width: 3.2rem;
}

.essay-listen__progress {
  width: 60px;
  height: 3px;
  background: var(--light-gray);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.essay-listen__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s linear;
}

@media (max-width: 600px) {
  .essay-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .essay-listen__progress {
    width: 80px;
  }
}

/* --- Translate Widget --- */
.essay-translate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.essay-translate__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.essay-translate__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.essay-translate__select {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.essay-translate__select:hover,
.essay-translate__select:focus {
  border-color: var(--gold);
}

.essay-page__content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.85;
}

.essay-page__content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
}

.essay-page__content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.375rem;
}

.essay-page__content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--dark-gray);
}

.essay-page__content ul,
.essay-page__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.essay-page__content li {
  margin-bottom: 0.5rem;
}

.essay-page__sources {
  margin-top: var(--space-xl);
}
.essay-page__sources h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.essay-page__sources ol {
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.8;
}
.essay-page__sources li {
  margin-bottom: 0.25rem;
}

.essay-page__author {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--light-gray);
}

.essay-page__author-bio {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  font-style: italic;
  line-height: 1.7;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: var(--space-md);
}

.video-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.video-card__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--navy);
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__info {
  padding: var(--space-sm) var(--space-md);
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
}

/* --- Art Gallery --- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-sm);
}

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

.art-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.art-item:hover img {
  transform: scale(1.03);
}

.art-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.7));
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.art-item:hover .art-item__overlay {
  opacity: 1;
}

.art-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

/* --- Art Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: opacity 0.3s var(--ease);
}

.lightbox__close::before {
  transform: rotate(45deg);
}

.lightbox__close::after {
  transform: rotate(-45deg);
}

.lightbox__close:hover::before,
.lightbox__close:hover::after {
  opacity: 0.6;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* (old about-content grid removed — now using about-layout flex) */

/* --- Contact Page --- */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s var(--ease);
}

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

.contact-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  transition: color 0.3s var(--ease), transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-social a:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.contact-social svg {
  width: 26px;
  height: 26px;
}

/* --- About Page --- */
.about-layout {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.about-text {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.about-photo {
  flex: 1.3;
  min-width: 0;
}

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

.about-caption {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--dark-gray);
  margin-top: var(--space-xs);
  text-align: center;
}

.about-caption-line2 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--dark-gray);
  margin-top: 2px;
  text-align: center;
}

.about-credit {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  margin-top: 4px;
  text-align: center;
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.about-text .divider {
  margin: var(--space-sm) auto var(--space-md);
}

.about-identities {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

.about-closing {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  margin-top: var(--space-md);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--platinum);
  padding: var(--space-lg) 0;
  text-align: center;
}

.site-footer__monogram {
  height: 48px;
  width: auto;
  margin: 0 auto var(--space-sm);
  opacity: 0.5;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  margin-bottom: var(--space-md);
}

.site-footer__links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--platinum);
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}

.site-footer__links a:hover {
  opacity: 1;
  color: var(--platinum);
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.4;
}

/* --- Newsletter Popup --- */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* dynamic viewport height for iOS Safari address bar */
  z-index: 3000;
  background: rgba(10, 22, 40, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  padding: max(var(--space-md), env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-md), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left));
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s linear 0.4s;
  transition: background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s linear 0.4s;
  touch-action: manipulation;
}

.newsletter-popup.active {
  visibility: visible;
  pointer-events: auto;
  background: rgba(10, 22, 40, 0.85);
  -webkit-transition: background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s linear 0s;
  transition: background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s linear 0s;
}

.newsletter-popup__box {
  background: var(--off-white);
  border-radius: 4px;
  padding: var(--space-lg) var(--space-lg);
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
  -webkit-transform: translateY(20px) scale(0.97);
  transform: translateY(20px) scale(0.97);
  -webkit-transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), -webkit-transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-popup.active .newsletter-popup__box {
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
}

.newsletter-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-popup__close::before,
.newsletter-popup__close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--mid-gray);
  transition: background 0.3s var(--ease);
}

.newsletter-popup__close::before {
  transform: rotate(45deg);
}

.newsletter-popup__close::after {
  transform: rotate(-45deg);
}

.newsletter-popup__close:hover::before,
.newsletter-popup__close:hover::after {
  background: var(--navy);
}

.newsletter-popup__greeting {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.newsletter-popup__subtitle {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

.newsletter-popup__divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto var(--space-md);
}

.newsletter-popup__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.newsletter-popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-popup__input {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s var(--ease);
  width: 100%;
}

.newsletter-popup__input:focus {
  border-color: var(--gold);
}

.newsletter-popup__input::placeholder {
  color: var(--mid-gray);
  font-style: italic;
}

.newsletter-popup__button {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s ease;
  width: 100%;
}

.newsletter-popup__button:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.newsletter-popup__disclaimer {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--mid-gray);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
}

.newsletter-popup__success {
  display: none;
}

.newsletter-popup__success.show {
  display: block;
}

.newsletter-popup__success p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Remove backdrop-filter on mobile entirely so that
     position:fixed nav overlay covers the full viewport.
     backdrop-filter creates a containing block that traps
     fixed-position children inside the header. */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--off-white);
  }

  .nav__logo {
    position: relative;
    z-index: 10001;
  }

  .nav__links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--off-white) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    z-index: 9999 !important;
    padding: var(--space-md) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__links a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--navy);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links a:hover,
  .nav__links a.active {
    color: var(--gold);
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 10000;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-lg);
  }

  .hero__content {
    flex-direction: column;
    padding: var(--space-md);
    text-align: center;
  }

  .hero__image {
    width: 260px;
    height: 260px;
  }

  .hero__monogram {
    width: 120px;
  }

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

  .essay-card__body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .essay-card__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .essay-card__excerpt {
    font-size: 1.05rem;
    line-height: 1.65;
  }

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

  .video-card__info {
    padding: var(--space-sm) var(--space-md);
  }

  .video-card__title {
    font-size: 1.25rem;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-layout {
    flex-direction: column;
    padding: 0;
  }

  .about-photo {
    order: -1;
  }

  .about-photo img {
    max-width: 100%;
  }

  .essay-page__title {
    font-size: 2rem;
  }

  .newsletter-popup__box {
    padding: var(--space-md) var(--space-md);
    margin: var(--space-sm);
  }

  .newsletter-popup__greeting {
    font-size: 1.75rem;
  }

  .newsletter-popup__text {
    font-size: 1rem;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .section--large {
    padding: var(--space-xl) 0;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .contact-social {
    gap: var(--space-xs);
  }
}
