/* ── Emmy Speaks ── */

:root {
  --ink: #f0ecfa;
  --ink-muted: rgba(240,236,250,0.62);
  --red: #ff3b5c;
  --orange: #ff7b3d;
  --yellow: #ffd635;
  --green: #3dfc8e;
  --teal: #3dfcd0;
  --blue: #6aadff;
  --card-bg: rgba(8,4,24,0.92);
  --card-border: rgba(255,255,255,0.07);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --measure: 48rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  background: #060318;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Full-site flag background ── */
.emmy-site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('/assets/pride-flag.png') center top / 100% auto no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

/* ── Sticky logo top-right ── */
.emmy-sticky-logo {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 50;
  width: min(22%, 12rem);
}
.emmy-logo-frame {
  display: block;
  border-radius: 16px;
  padding: 4px;
  background: conic-gradient(from 0deg, #ff3b5c, #ff7b3d, #ffd635, #3dfc8e, #3dfcd0, #ff3b5c);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
.emmy-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

/* ── Pride bar ── */
.pride-bar {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg,
    #ff3b5c 0%, #ff7b3d 14%, #ffd635 28%,
    #3dfc8e 42%, #3dfcd0 52%, #6aadff 62%,
    #88b8ff 78%, #ffaacc 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: breathe 4s ease-in-out infinite;
}

/* ── Main wrapper ── */
.emmy-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.emmy-hero {
  text-align: center;
  padding: 3rem 0 1rem;
  position: relative;
  z-index: 1;
}
.emmy-hero-frame {
  display: inline-block;
  border-radius: 20px;
  padding: 5px;
  background: conic-gradient(from 0deg, #ff3b5c, #ff7b3d, #ffd635, #3dfc8e, #3dfcd0, #6aadff, #ff3b5c);
  margin-bottom: 2rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}
.emmy-hero-photo {
  display: block;
  width: 100%;
  max-width: 30rem;
  border-radius: 16px;
  height: auto;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
}
.emmy-chosen {
  display: block;
  font-size: 1em;
  font-weight: 700;
  background: linear-gradient(90deg, #6aadff, #3dfcd0, #3dfc8e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}
.emmy-dates {
  font-size: 1.05rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.emmy-subline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #ff3b5c, #ff7b3d, #ffd635, #3dfc8e, #3dfcd0, #6aadff);
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.emmy-rainbow {
  background: linear-gradient(90deg, #ff3b5c, #ff7b3d, #ffd635, #3dfc8e, #3dfcd0, #6aadff, #88b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── Nav ── */
.emmy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.emmy-nav a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s;
}
.emmy-nav a:nth-child(1):hover,
.emmy-nav a:nth-child(1):focus { background: rgba(106,173,255,0.15); border-color: var(--blue); color: var(--blue); transform: scale(1.04); }
.emmy-nav a:nth-child(2):hover,
.emmy-nav a:nth-child(2):focus { background: rgba(255,214,53,0.1); border-color: var(--yellow); color: var(--yellow); transform: scale(1.04); }
.emmy-nav a:nth-child(3):hover,
.emmy-nav a:nth-child(3):focus { background: rgba(61,252,142,0.1); border-color: var(--green); color: var(--green); transform: scale(1.04); }
.emmy-nav a:nth-child(4):hover,
.emmy-nav a:nth-child(4):focus { background: rgba(255,123,61,0.1); border-color: var(--orange); color: var(--orange); transform: scale(1.04); }
.emmy-nav a:nth-child(5):hover,
.emmy-nav a:nth-child(5):focus { background: rgba(61,252,208,0.1); border-color: var(--teal); color: var(--teal); transform: scale(1.04); }
.emmy-nav a:focus { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── Section cards ── */
.emmy-section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.emmy-section:first-of-type { margin-top: 0; }
.emmy-section-highlight {
  border-left: 3px solid var(--yellow);
}
.emmy-section-alt {
  border-left: 3px solid var(--teal);
}

#resources h2 { color: var(--blue); }
#why h2 { color: var(--yellow); }
#remembering h2 { color: var(--green); }
#spoken-word h2 { color: var(--orange); }
#in-her-memory h2 { color: var(--teal); }

h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}

.emmy-section-lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 1.75rem !important;
}
.emmy-section p {
  margin-bottom: 1.1rem;
}
.emmy-section p:last-child { margin-bottom: 0; }

/* ── Resources ── */
.emmy-resources-section { padding-top: 2rem; }
.emmy-resource-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.emmy-resource-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.emmy-resource-group:first-of-type { border-left: 3px solid var(--blue); }
.emmy-resource-group:nth-of-type(2) { border-left: 3px solid var(--red); }
.emmy-resource-group:last-of-type { border-left: 3px solid var(--green); }
.emmy-resource-group h3 { margin-top: 0; margin-bottom: 0.75rem; }
.emmy-resource-group:first-of-type h3 { color: var(--blue); }
.emmy-resource-group:nth-of-type(2) h3 { color: var(--red); }
.emmy-resource-group:last-of-type h3 { color: var(--green); }
.emmy-resource-group ul { list-style: none; padding: 0; }
.emmy-resource-group li { padding: 0.45rem 0; }
.emmy-resource-group li::before { content: '\25B8'; margin-right: 0.6rem; font-size: 0.85rem; }
.emmy-resource-group:first-of-type li::before { color: var(--blue); }
.emmy-resource-group:nth-of-type(2) li::before { color: var(--red); }
.emmy-resource-group:last-of-type li::before { color: var(--green); }
.emmy-disclaimer {
  font-size: 0.9rem; color: var(--ink-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem; margin-top: 1rem !important; opacity: 0.7;
}

/* ── Poem ── */
.emmy-poem-section {
  background: linear-gradient(160deg,
    rgba(255,123,61,0.08), rgba(255,214,53,0.05),
    rgba(61,252,142,0.05), rgba(61,252,208,0.06),
    rgba(106,173,255,0.06));
  border: 1px solid rgba(255,123,61,0.16);
}
.emmy-poem {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.95;
  color: #d5cde5;
  border-left: 3px solid var(--orange);
  padding-left: 1.5rem;
  font-style: italic;
}
.emmy-attribution {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.5rem !important; opacity: 0.8;
}

/* ── Butterfly ── */
.emmy-butterfly {
  text-align: center; padding: 3rem 1rem 2rem;
}
.emmy-butterfly p {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #6aadff, #3dfcd0, #3dfc8e, #ffd635, #ff7b3d, #ff3b5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  animation: float 3s ease-in-out infinite;
}

/* ── Footer ── */
.emmy-site-footer {
  text-align: center;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6;
  position: relative; z-index: 1;
}
.emmy-footer-brand {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800;
  margin-bottom: 0.25rem !important;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.emmy-footer-brand.emmy-rainbow { font-size: 1.3rem; }
.emmy-pride-badge { width: 28px; height: auto; border-radius: 3px; vertical-align: middle; opacity: 0.9; }
.emmy-footer-sub { font-size: 0.85rem; opacity: 0.45; margin-top: 0.5rem; }
.emmy-footer-powered {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.emmy-footer-powered a { text-decoration: none; color: inherit; }
.emmy-footer-note { font-size: 0.75rem; opacity: 0.35; margin-top: 0.75rem; }

/* ── Links ── */
a {
  color: #7abaff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(122,186,255,0.3);
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: #4dffa0; text-decoration-color: #4dffa0; }
a:focus { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ── Animations ── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes breathe { 0%,100%{opacity:1} 50%{opacity:0.7} }
.emmy-hidden { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.emmy-visible { opacity: 1; transform: translateY(0); }
.emmy-section, .emmy-resource-group, .emmy-poem-section { transition: opacity 0.7s ease, transform 0.7s ease; }

::selection { background: rgba(106,173,255,0.25); color: #fff; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .emmy-sticky-logo { width: min(18%, 10rem); top: 1.5rem; right: 1.5rem; }
}

@media (max-width: 600px) {
  .emmy-sticky-logo { display: none; }
  .emmy-wrap { padding: 0 1rem 1.5rem; }
  .emmy-hero { padding: 2rem 0 0.5rem; }
  .emmy-hero-frame { margin-bottom: 1.25rem; padding: 3px; border-radius: 14px; }
  .emmy-hero-photo { max-width: 100%; border-radius: 12px; }
  .emmy-nav { gap: 0.35rem; margin: 1rem 0 1.5rem; padding-bottom: 0.75rem; }
  .emmy-nav a { font-size: 0.8rem; padding: 0.35rem 0.6rem; min-height: 38px; }
  .emmy-section { padding: 1.25rem 1rem; margin: 1.5rem 0; }
  .emmy-poem { padding-left: 0.6rem; font-size: 0.95rem; }
  .emmy-butterfly { padding: 2rem 0.75rem 1.5rem; }
  .emmy-resource-group { padding: 1rem; }
  .emmy-footer-brand.emmy-rainbow { font-size: 1.1rem; }
  .emmy-pride-badge { width: 20px; }
}

@media (max-width: 400px) {
  .emmy-hero { padding: 1.25rem 0 0.25rem; }
  .emmy-nav a { font-size: 0.72rem; padding: 0.25rem 0.45rem; min-height: 32px; }
  .emmy-section { padding: 1rem 0.75rem; }
  .emmy-poem { font-size: 0.88rem; line-height: 1.75; }
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.15rem, 4.5vw, 1.4rem); }
}
