/* Azra Dewan site: soft pink and white */

:root {
  --bg: #fff9fb;
  --bg-elevated: #ffffff;
  --surface: #ffe8ef;
  --text: #3a2a32;
  --text-muted: #8a6d78;
  --pink: #f4a4bc;
  --pink-deep: #e889a6;
  --pink-soft: rgba(244, 164, 188, 0.28);
  --blush: #fff0f4;
  --line: rgba(232, 137, 166, 0.28);
  --veil: linear-gradient(
    180deg,
    transparent 0%,
    transparent 28%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.94) 100%
  );
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
  --shadow-soft: 0 18px 40px rgba(232, 137, 166, 0.12);
  --radius-cute: 1.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(244, 164, 188, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 214, 226, 0.45), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header: pink bar, white text, black active link */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--pink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(232, 137, 166, 0.28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #fff;
}

.site-logo__mark {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__text {
  display: inline-block;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.site-nav__link.is-active {
  color: #1a1a1a;
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  border-radius: 999px;
  background: #1a1a1a;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.05);
  will-change: transform;
  animation: heroKenBurns 22s var(--ease) forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  pointer-events: auto;
}

.hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe4ec;
  opacity: 0;
  transform: translateY(1rem);
  animation: riseIn 1s var(--ease) 0.1s forwards;
}

.hero__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: riseIn 1s var(--ease) 0.2s forwards;
}

.letterhead {
  display: flex;
  justify-content: center;
  padding: 1.75rem var(--space-md) 0.25rem;
}

.letterhead__logo {
  width: 6.5rem;
  height: auto;
  opacity: 0.9;
}

.hero__tagline {
  margin: 0 0 var(--space-md);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(1rem);
  animation: riseIn 1s var(--ease) 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: riseIn 1s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(232, 137, 166, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
}

.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background: #fff;
  color: var(--pink-deep);
  border-color: #fff;
  text-shadow: none;
}

.hero .btn--primary {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--pink);
  color: var(--pink-deep);
  background: var(--blush);
}

/* Page shell */

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.page-intro {
  margin-bottom: var(--space-lg);
  max-width: 34rem;
}

.page-intro--wide {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.page-intro__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-intro__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
}

/* About */

.about-blurb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about-blurb--single {
  grid-template-columns: 1fr;
  max-width: 36rem;
}

.about-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-cute);
  box-shadow: var(--shadow-soft);
}

.about-card--accent {
  background: linear-gradient(160deg, #fff 0%, #ffe8ef 100%);
}

.about-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
}

.about-card strong {
  color: var(--pink-deep);
  font-weight: 500;
}

.timeline-section {
  margin-bottom: var(--space-xl);
}

.timeline-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.legend {
  display: flex;
  gap: 0.75rem;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legend__item::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.legend__item--sa::before {
  background: var(--pink);
}

.legend__item--gb::before {
  background: #b7d4f5;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), #c9dff8, var(--pink-soft));
}

.timeline__item {
  position: relative;
  margin-bottom: 1.15rem;
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__dot {
  position: absolute;
  left: -1.28rem;
  top: 1.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--pink-soft);
  background: var(--pink);
}

.timeline__item--gb .timeline__dot {
  background: #8eb9ea;
  box-shadow: 0 0 0 2px rgba(142, 185, 234, 0.35);
}

.timeline__card {
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-cute);
  box-shadow: var(--shadow-soft);
}

.timeline__item--gb .timeline__card {
  border-color: rgba(142, 185, 234, 0.45);
  background: linear-gradient(145deg, #fff 0%, #f3f8ff 100%);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pink-deep);
  line-height: 1;
}

.timeline__item--gb .timeline__year {
  color: #5b87b8;
}

.timeline__place {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline__tag {
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-deep);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__item--gb .timeline__tag {
  background: #e8f2fc;
  color: #5b87b8;
}

.timeline__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.timeline__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.wiki-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-cute);
  background: linear-gradient(120deg, #ffe4ec 0%, #fff 55%, #eaf3ff 100%);
  border: 1px solid var(--line);
}

.wiki-banner__label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.wiki-banner__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

/* Gallery */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 28rem;
}

.gallery-item:nth-child(2) {
  grid-column: span 5;
  min-height: 13.5rem;
}

.gallery-item:nth-child(3) {
  grid-column: span 5;
  min-height: 13.5rem;
}

.gallery-item:nth-child(4),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  grid-column: span 4;
  min-height: 16rem;
}

.gallery-item:nth-child(7) {
  grid-column: span 12;
  min-height: 18rem;
}

.gallery-item__button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item__button:hover .gallery-item__image,
.gallery-item__button:focus-visible .gallery-item__image {
  transform: scale(1.04);
}

.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.25rem 1rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(58, 42, 50, 0.55));
  pointer-events: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  background: rgba(58, 42, 50, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 56rem);
  max-height: 88vh;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.lightbox__caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe8ef;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  opacity: 0.7;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible,
.lightbox__close:hover,
.lightbox__close:focus-visible {
  opacity: 1;
  color: var(--pink);
}

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 40rem;
}

.contact-form {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-cute);
  box-shadow: var(--shadow-soft);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--blush);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: #fff;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status--success {
  color: #6f9b78;
}

.form-status--error {
  color: #c47878;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.55);
}

.page-home .site-footer {
  position: relative;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pink-deep);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__credit {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: right;
}

.site-footer__credit a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--text);
  text-decoration-color: var(--pink);
}

/* Animations */

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKenBurns {
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image,
  .hero__eyebrow,
  .hero__title,
  .hero__tagline,
  .hero__actions,
  .gallery-item,
  .gallery-item__image,
  .timeline__item {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .about-blurb {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-column: span 6;
    min-height: 14rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    z-index: 120;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--pink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .site-nav__link {
    font-size: 1rem;
  }

  .site-nav__link.is-active::after {
    bottom: -0.55rem;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 12;
    min-height: 16rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline__tag {
    margin-left: 0;
  }

  .wiki-banner {
    padding: var(--space-md);
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__prev {
    left: calc(50% - 4rem);
  }

  .lightbox__next {
    right: calc(50% - 4rem);
  }
}
