/*
Theme Name: Etheria Entertainment
Theme URI: https://www.youtube.com/@EtheriaEntertainment
Author: Etheria Entertainment
Author URI: https://www.youtube.com/@EtheriaEntertainment
Description: Tema cinematografico completo per Etheria Entertainment, con player YouTube, storie scritte, voti, social e invio privato dei racconti.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: etheria-entertainment
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: entertainment, video, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

:root {
  --ink: #050711;
  --deep: #0a0e1b;
  --paper: #f4f1ea;
  --muted: #aaa6b8;
  --gold: #e7c987;
  --violet: #7c3aed;
  --magenta: #d946ef;
  --intro: 0;
  --hero-scale: 1;
  --hero-dim: 0.15;
  --title-y: 0px;
  --title-opacity: 1;
  --portal-scale: 0.7;
  --portal-y: 46px;
  --page-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--paper);
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-geist-sans, Arial), sans-serif;
}

main,
section,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
iframe {
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--ink);
  background: var(--gold);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    repeating-radial-gradient(circle at 19% 31%, rgba(255, 255, 255, 0.42) 0 0.6px, transparent 0.8px 4px),
    repeating-radial-gradient(circle at 77% 63%, rgba(255, 255, 255, 0.22) 0 0.5px, transparent 0.7px 5px);
  background-size: 7px 7px, 9px 9px;
  mix-blend-mode: overlay;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.88), transparent);
}

.logo {
  display: block;
  width: 82px;
  height: 82px;
  transition: transform 220ms ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.follow {
  padding: 0.78rem 1.25rem;
  border: 1px solid rgba(231, 201, 135, 0.48);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 220ms ease;
}

.follow:hover {
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-2px);
}

.menu-button {
  position: relative;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(4, 6, 14, 0.28);
}

.menu-button i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transform-origin: center;
}

.menu-button i:first-child {
  transform: translate(-50%, -4px);
}

.menu-button i:last-child {
  transform: translate(-50%, 4px);
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--page-progress);
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--gold));
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12vh 10vw;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(124, 58, 237, 0.32), transparent 30%),
    rgba(4, 6, 14, 0.98);
  transition: opacity 350ms ease;
}

.menu.open {
  pointer-events: auto;
  opacity: 1;
}

.menu > small {
  margin-bottom: 2rem;
  color: var(--gold);
  letter-spacing: 0.28em;
}

.menu a {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  width: max-content;
  max-width: 100%;
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.94;
  transition: 220ms ease;
}

.menu a span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
}

.menu a:hover {
  color: var(--gold);
  transform: translateX(14px);
}

.intro {
  height: 205vh;
}

.intro-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--hero-scale));
  filter: saturate(0.88) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 13, 0.55), transparent 45%, rgba(3, 5, 13, 0.3)),
    linear-gradient(180deg, rgba(3, 5, 13, 0.5), transparent 42%, rgba(3, 5, 13, 0.85)),
    rgba(4, 6, 14, var(--hero-dim));
}

.aurora {
  position: absolute;
  right: -20vw;
  bottom: -34vw;
  z-index: 2;
  width: 75vw;
  height: 65vw;
  border-radius: 50%;
  opacity: 0.52;
  background: radial-gradient(circle, var(--magenta), var(--violet) 35%, transparent 68%);
  filter: blur(50px);
  animation: drift 13s ease-in-out infinite alternate;
}

.intro-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  opacity: max(0, var(--title-opacity));
  transform: translateY(var(--title-y));
}

.intro-copy small,
.portal-copy small,
.portal-label,
.eyebrow,
.emotion-copy > small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.intro-mark {
  width: clamp(88px, 8vw, 130px);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.intro-copy h1 {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6.2rem, 18vw, 18rem);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: 0.05em;
  text-shadow: 0 20px 65px rgba(0, 0, 0, 0.72);
}

.intro-copy p {
  margin: 4rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2.3rem);
  font-style: italic;
}

.portal {
  position: absolute;
  top: 10vh;
  left: 50%;
  z-index: 5;
  width: min(25vw, 370px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(231, 201, 135, 0.42);
  border-radius: 32px;
  opacity: clamp(0, calc((var(--intro) - 0.43) * 2), 1);
  box-shadow:
    0 0 0 1px rgba(217, 70, 239, 0.24),
    0 0 34px rgba(217, 70, 239, 0.48),
    0 0 100px rgba(124, 58, 237, 0.42),
    0 45px 100px rgba(0, 0, 0, 0.65);
  transform: translateX(-50%) translateY(var(--portal-y)) scale(var(--portal-scale));
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.portal:not(.portal-ready):not(.is-playing) {
  pointer-events: none;
}

.portal.is-playing {
  pointer-events: auto;
  opacity: 1;
}

.portal:hover,
.portal:focus-within {
  border-color: rgba(231, 201, 135, 0.78);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(217, 70, 239, 0.42),
    0 0 48px rgba(217, 70, 239, 0.6),
    0 0 120px rgba(124, 58, 237, 0.5),
    0 45px 100px rgba(0, 0, 0, 0.65);
}

.portal-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.portal-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-inline-player {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.portal.is-playing .portal-preview {
  display: none;
}

.portal.is-playing .portal-inline-player {
  display: block;
}

.portal-inline-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.portal-inline-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(10px);
  font-size: 1.35rem;
  line-height: 1;
}

.portal-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 13, 0.08) 34%, rgba(3, 5, 13, 0.95));
}

.portal-label {
  position: absolute;
  inset: 1.5rem 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.portal-label i.playing {
  background: #f18b7e;
  animation: pulse 1.2s ease-in-out infinite;
}

.portal-copy {
  position: absolute;
  inset: auto 1.6rem 1.6rem;
}

.portal-copy h2 {
  margin: 0.75rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  font-weight: 400;
  line-height: 0.98;
}

.player {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.2rem;
}

.player > .portal-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(4, 6, 14, 0.4);
}

.player > div {
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.player > div span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 1s linear;
}

.player time {
  font-size: 0.65rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 7;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: cue 1.7s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.stories-player {
  position: relative;
  overflow: hidden;
  padding: 13vh 5vw 8vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(124, 58, 237, 0.2), transparent 26%),
    linear-gradient(180deg, #070914, #0b0e1a);
}

.stories-player::before {
  position: absolute;
  top: 22%;
  left: -18vw;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.35;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.4), transparent 68%);
  filter: blur(42px);
}

.player-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  margin: 0 auto 6vh;
}

.player-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(4.6rem, 9vw, 9.5rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.06em;
}

.player-heading h2 em {
  color: var(--gold);
  font-weight: 400;
}

.player-heading > p {
  max-width: 500px;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.media-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.62fr);
  min-height: 670px;
  overflow: hidden;
  border: 1px solid rgba(231, 201, 135, 0.26);
  border-radius: 2.7rem;
  background: rgba(2, 4, 10, 0.92);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(124, 58, 237, 0.12);
}

.media-screen {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.media-screen iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border: 0;
  border-radius: 1.7rem;
  background: #000;
}

.media-screen.portrait iframe {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.media-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  min-height: 122px;
  padding: 1.5rem 0.7rem 0.35rem;
}

.media-caption small,
.playlist-title,
.playlist-copy small {
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.media-caption h3 {
  max-width: 800px;
  margin: 0.6rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.35vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
}

.media-caption time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.media-playlist {
  max-height: 790px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  scrollbar-color: rgba(231, 201, 135, 0.5) transparent;
}

.playlist-title {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 15, 0.96);
  backdrop-filter: blur(18px);
}

.playlist-title small {
  color: var(--muted);
}

.media-playlist button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 88px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
  cursor: pointer;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
  transition: background 200ms ease, padding 200ms ease;
}

.media-playlist button:hover,
.media-playlist button.active {
  background: rgba(231, 201, 135, 0.085);
}

.media-playlist button.active {
  box-shadow: inset 3px 0 var(--gold);
}

.playlist-number {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.media-playlist button > img {
  width: 88px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.65rem;
  filter: saturate(0.72);
}

.media-playlist button.active > img {
  filter: saturate(1);
}

.playlist-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.playlist-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-copy i {
  color: var(--muted);
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-playlist button > b {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 400;
}

.player-channel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 1rem 0;
}

.player-channel > span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
}

.player-channel > a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-channel > a b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(231, 201, 135, 0.48);
  border-radius: 50%;
  color: var(--gold);
  transition: 220ms ease;
}

.player-channel > a:hover b {
  color: var(--ink);
  background: var(--gold);
  transform: rotate(45deg);
}

.choice {
  position: relative;
  min-height: 110svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  align-items: center;
  overflow: hidden;
  padding: 14vh 8vw;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.13), transparent 44%),
    var(--deep);
}

.eyebrow {
  margin: 0 0 1.8rem;
}

.section-title h2,
.choice h2,
.finale h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 8.8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.body-copy {
  max-width: 640px;
  margin: 3rem 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-link b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(231, 201, 135, 0.42);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: 220ms ease;
}

.story-link:hover b {
  color: var(--ink);
  background: var(--gold);
  transform: rotate(45deg);
}

.daily-story {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  overflow: hidden;
  padding: 12vh 8vw;
  background:
    radial-gradient(circle at 16% 34%, rgba(124, 58, 237, 0.22), transparent 34%),
    linear-gradient(145deg, #080b17, var(--deep));
}

.daily-story::before {
  position: absolute;
  right: -12vw;
  bottom: -22vw;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.28;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.5), transparent 68%);
  filter: blur(40px);
}

.daily-story-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 590px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(231, 201, 135, 0.35);
  border-radius: 2.6rem;
  background: #03050b;
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 58, 237, 0.12);
}

.daily-story-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.daily-story-visual:hover > img {
  transform: scale(1.035);
}

.daily-story-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.42), transparent 38%, rgba(3, 5, 12, 0.75)),
    linear-gradient(90deg, rgba(3, 5, 12, 0.2), transparent);
}

.daily-story-date {
  position: absolute;
  inset: 2rem auto auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.daily-story-date small,
.daily-story-note {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.daily-story-date time {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  text-transform: capitalize;
}

.daily-story-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 6, 14, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.daily-story-visual:hover .daily-story-play {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.08);
}

.daily-story-index {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.daily-story-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.daily-story-copy h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 5.7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.daily-story-copy .body-copy {
  max-width: 720px;
  margin-block: 2.2rem;
}

.daily-story-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.daily-story-note i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(231, 201, 135, 0.1);
}

.written-stories {
  position: relative;
  overflow: hidden;
  padding: 14vh 6vw 11vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 9%, rgba(124, 58, 237, 0.24), transparent 32%),
    radial-gradient(circle at 8% 82%, rgba(217, 70, 239, 0.12), transparent 30%),
    linear-gradient(155deg, #080a15, #050711 58%, #0d0b1a);
}

.written-stories::before {
  position: absolute;
  top: -14rem;
  left: 42%;
  width: 32rem;
  height: 32rem;
  content: "";
  border: 1px solid rgba(231, 201, 135, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(231, 201, 135, 0.025),
    0 0 0 10rem rgba(124, 58, 237, 0.025);
}

.written-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 5rem;
}

.written-heading h2 {
  max-width: 980px;
  margin: 1rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(4.2rem, 7.7vw, 8.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.written-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.written-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.written-card {
  min-width: 0;
}

.written-card > a {
  height: 100%;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.written-card > a:hover,
.written-card > a:focus-visible {
  border-color: rgba(231, 201, 135, 0.55);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-8px);
}

.written-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 24%, rgba(231, 201, 135, 0.24), transparent 20%),
    linear-gradient(145deg, #17132c, #080a17 62%, #2a1350);
}

.written-card:nth-child(2) .written-card-cover {
  background:
    radial-gradient(circle at 32% 70%, rgba(217, 70, 239, 0.17), transparent 25%),
    linear-gradient(145deg, #090b18, #18203b 58%, #080a15);
}

.written-card:nth-child(3) .written-card-cover {
  background:
    radial-gradient(circle at 74% 26%, rgba(231, 201, 135, 0.2), transparent 22%),
    linear-gradient(145deg, #17101d, #080b16 58%, #2b1839);
}

.written-card-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.045), transparent 46%),
    linear-gradient(180deg, transparent 35%, rgba(3, 5, 12, 0.82));
}

.written-card-cover > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 500ms ease;
}

.written-card > a:hover .written-card-cover > img {
  transform: scale(1.045);
}

.written-card-cover > small {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  max-width: calc(100% - 3rem);
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.written-card-number {
  position: absolute;
  right: 1.4rem;
  bottom: 0.5rem;
  color: rgba(244, 241, 234, 0.82);
  font-family: Georgia, serif;
  font-size: clamp(4.8rem, 7vw, 8rem);
  line-height: 1;
}

.written-card-orbit {
  position: absolute;
  top: 50%;
  left: 24%;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(231, 201, 135, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -42%);
}

.written-card-orbit::before,
.written-card-orbit::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(231, 201, 135, 0.16);
  border-radius: 50%;
}

.written-card-orbit::after {
  inset: 42%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(231, 201, 135, 0.45);
}

.written-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
}

.written-card-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.written-card-copy h3,
.written-card-copy h2 {
  margin: 1.15rem 0 0.9rem;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.written-card-copy h2 a {
  font: inherit;
}

.written-card-copy p {
  margin: 0 0 1.7rem;
  color: var(--muted);
  line-height: 1.65;
}

.written-card-copy b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--gold);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.written-card-copy b i {
  font-size: 1rem;
  font-style: normal;
}

.written-archive-link {
  position: relative;
  z-index: 2;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto 0;
  padding: 0.95rem 1.3rem;
  color: var(--paper);
  border: 1px solid rgba(231, 201, 135, 0.42);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: 220ms ease;
}

.written-archive-link:hover,
.written-archive-link:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.written-archive .written-grid {
  width: min(100%, 1380px);
  margin-inline: auto;
}

.written-single-hero {
  text-align: center;
}

.written-single-hero h1 {
  margin-inline: auto;
}

.written-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.written-single-meta span + span::before,
.written-single-meta time::before {
  margin-right: 1.5rem;
  content: "·";
  color: var(--gold);
}

.single-written-story .entry-content > p:first-child::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--gold);
  font-size: 4.6em;
  line-height: 0.78;
}

.written-single-footer {
  width: min(100%, 760px);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.emotions {
  min-height: 112svh;
  padding: 14vh 6vw 8vh;
  color: var(--ink);
  background: var(--paper);
}

.section-title .eyebrow {
  color: #674a71;
}

.emotion-stage {
  position: relative;
  min-height: 64vh;
  margin-top: 6vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6vw;
  border-radius: 3rem;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% 22%, rgba(217, 70, 239, 0.4), transparent 31%),
    radial-gradient(circle at 20% 88%, rgba(124, 58, 237, 0.58), transparent 40%),
    #090b18;
}

.emotion-number {
  position: absolute;
  right: 2vw;
  top: 50%;
  color: transparent;
  font-family: Georgia, serif;
  font-size: 38vw;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
}

.emotion-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: emotion 500ms ease both;
}

.emotion-copy h3 {
  margin: 1.1rem 0;
  font-family: Georgia, serif;
  font-size: clamp(5rem, 11vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
}

.emotion-copy p {
  max-width: 440px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.emotion-short {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.82rem 1.05rem;
  color: var(--paper);
  border: 1px solid rgba(231, 201, 135, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: 220ms ease;
}

.emotion-short:hover,
.emotion-short:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-2px);
}

.emotion-short b {
  font-size: 0.95rem;
  font-weight: 400;
}

.emotion-tabs {
  position: absolute;
  right: 4vw;
  bottom: 3vw;
  z-index: 3;
  display: flex;
  gap: 0.65rem;
}

.emotion-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.66rem;
  white-space: nowrap;
  transition: 220ms ease;
}

.emotion-tabs a span {
  margin-right: 0.08rem;
  color: var(--gold);
  font-size: 0.5rem;
}

.emotion-tabs a b {
  margin-left: 0.1rem;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.75;
}

.emotion-tabs a:hover,
.emotion-tabs a:focus-visible,
.emotion-tabs a.active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.emotion-tabs a:hover span,
.emotion-tabs a:focus-visible span,
.emotion-tabs a.active span {
  color: var(--ink);
}

.choice {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.1), transparent 45%),
    var(--ink);
}

.vote-list {
  display: flex;
  flex-direction: column;
}

.vote-list button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 1.8rem 0;
  cursor: pointer;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  transition: 220ms ease;
}

.vote-list button:hover,
.vote-list button.selected {
  padding-left: 1rem;
  color: var(--gold);
}

.vote-list button small {
  color: var(--muted);
}

.vote-list button b {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  font-weight: 400;
}

.vote-list button i {
  font-style: normal;
}

.vote-list > p {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.facebook {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 8vw;
  align-items: center;
  overflow: hidden;
  padding: 14vh 8vw;
  background:
    radial-gradient(circle at 82% 28%, rgba(24, 119, 242, 0.2), transparent 28%),
    linear-gradient(140deg, rgba(124, 58, 237, 0.11), transparent 42%),
    #090b15;
}

.facebook::before {
  position: absolute;
  inset: auto auto -19vw -14vw;
  width: 47vw;
  height: 47vw;
  border-radius: 50%;
  content: "";
  opacity: 0.42;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.42), transparent 66%);
  filter: blur(34px);
}

.facebook-copy {
  position: relative;
  z-index: 2;
}

.facebook-copy h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(4.2rem, 7.4vw, 8rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.facebook-copy h2 em {
  color: var(--gold);
  font-weight: 400;
}

.facebook-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem 0.65rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 220ms ease;
}

.facebook-copy > a > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 0 32px rgba(24, 119, 242, 0.4);
}

.facebook-copy > a:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-3px);
}

.facebook-card {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 3rem;
  border: 1px solid rgba(231, 201, 135, 0.28);
  border-radius: 2.6rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 34%),
    rgba(5, 7, 16, 0.82);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition:
    border-color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.facebook-card:hover {
  border-color: rgba(231, 201, 135, 0.66);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.54),
    0 0 70px rgba(24, 119, 242, 0.13);
  transform: translateY(-8px);
}

.facebook-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 119, 242, 0.3), transparent 66%);
  filter: blur(28px);
  transform: translateX(-50%);
}

.facebook-card > img {
  position: relative;
  width: min(76%, 280px);
  height: auto;
  margin-bottom: 1.7rem;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.48));
  transition: transform 320ms ease;
}

.facebook-card:hover > img {
  transform: scale(1.035) translateY(-3px);
}

.facebook-mark {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 0 32px rgba(24, 119, 242, 0.4);
}

.facebook-card small {
  position: relative;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.facebook-card strong {
  position: relative;
  margin-top: 0.7rem;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 3.3vw, 3.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.facebook-card p {
  position: relative;
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
}

.facebook-card b {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facebook-card b span {
  color: var(--gold);
  font-size: 1.1rem;
}

.finale {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 12vh 6vw;
  text-align: center;
  background: #070914;
}

.finale > div:last-child {
  position: relative;
  z-index: 2;
  max-width: 1050px;
}

.finale h2 {
  font-size: clamp(5rem, 11vw, 12rem);
}

.finale > div > p:not(.eyebrow) {
  max-width: 620px;
  margin: 2rem auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.finale-light {
  position: absolute;
  left: 50%;
  bottom: -32vw;
  width: 78vw;
  height: 62vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.56), rgba(124, 58, 237, 0.24) 36%, transparent 68%);
  filter: blur(30px);
  transform: translateX(-50%);
}

.finale button {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.2rem;
  padding: 1rem 1rem 1rem 1.6rem;
  cursor: pointer;
  border: 1px solid rgba(231, 201, 135, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finale button span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  transition: transform 220ms ease;
}

.finale button:hover span {
  transform: rotate(45deg);
}

footer {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #04050b;
}

.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
}

.footer-center {
  text-align: center;
}

.footer-center > div {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.footer-center a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(231, 201, 135, 0.38);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.footer-center a:hover {
  border-color: var(--gold);
}

footer p {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

footer p:last-child {
  text-align: right;
}

@keyframes drift {
  to {
    transform: translate3d(-5vw, -4vw, 0) scale(1.08);
  }
}

@keyframes cue {
  50% {
    transform: translateY(7px) rotate(45deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(241, 139, 126, 0.06);
  }
}

@keyframes emotion {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (max-width: 960px) {
  .portal {
    width: min(44vw, 350px);
  }

  .player-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  .media-shell {
    grid-template-columns: 1fr;
  }

  .media-playlist {
    max-height: 540px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

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

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

  .facebook-card {
    width: min(100%, 620px);
    min-height: 570px;
    margin: 0 auto;
  }

  .emotion-tabs {
    right: 1.25rem;
    left: 1.25rem;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .header {
    height: 82px;
    padding: 0 1rem;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .follow {
    display: none;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .intro {
    height: 175vh;
  }

  .intro-stage {
    min-height: 610px;
  }

  .intro-copy h1 {
    font-size: 24vw;
  }

  .intro-mark {
    width: 76px;
    margin-bottom: 0.85rem;
  }

  .intro-copy p {
    margin-top: 2.5rem;
    font-size: 1.15rem;
  }

  .portal {
    top: 11vh;
    width: min(76vw, 330px);
  }

  .portal-copy h2 {
    font-size: 2rem;
  }

  .stories-player {
    padding: 12vh 0.75rem 7vh;
  }

  .player-heading {
    padding-inline: 0.5rem;
  }

  .player-heading h2 {
    font-size: 20vw;
  }

  .media-shell {
    min-height: 0;
    border-radius: 1.6rem;
  }

  .media-screen {
    padding: 0.55rem;
  }

  .media-screen iframe {
    min-height: 220px;
    border-radius: 1.2rem;
  }

  .media-caption {
    min-height: 132px;
    padding: 1.25rem 0.75rem 0.8rem;
  }

  .media-caption h3 {
    font-size: 1.55rem;
  }

  .media-playlist {
    max-height: 500px;
  }

  .media-playlist button {
    grid-template-columns: 22px 68px minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.9rem 0.75rem;
  }

  .media-playlist button > img {
    width: 68px;
  }

  .playlist-copy small {
    display: none;
  }

  .playlist-copy strong {
    font-size: 0.82rem;
  }

  .player-channel {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.8rem 0.75rem 0;
  }

  .choice {
    min-height: auto;
    padding: 15vh 1.25rem;
  }

  .section-title h2,
  .choice h2,
  .finale h2 {
    font-size: 17vw;
  }

  .emotions {
    padding: 12vh 1rem 6vh;
  }

  .emotion-stage {
    min-height: 74vh;
    align-items: flex-start;
    padding: 4rem 1.5rem 8rem;
    border-radius: 2rem;
  }

  .emotion-copy h3 {
    font-size: 21vw;
  }

  .emotion-tabs {
    bottom: 1.4rem;
  }

  .vote-list button {
    padding: 1.25rem 0;
  }

  .vote-list button b {
    font-size: 2rem;
  }

  .facebook {
    min-height: auto;
    padding: 13vh 1.25rem;
  }

  .facebook-copy h2 {
    font-size: 17vw;
  }

  .facebook-card {
    min-height: 520px;
    padding: 4rem 1.5rem 3rem;
    border-radius: 2rem;
  }

  .facebook-card > img {
    width: min(72%, 235px);
  }

  .facebook-mark {
    top: 1.25rem;
    right: 1.25rem;
  }

  .finale {
    min-height: 90svh;
    padding-inline: 1.25rem;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  footer p:last-child {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-art,
  .intro-copy,
  .portal {
    transform: none;
  }
}

/* WordPress integration */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.screen-reader-text:focus {
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  color: var(--ink);
  border-radius: 0.4rem;
  background: var(--gold);
  font-weight: 700;
}

.admin-bar .header {
  top: 32px;
}

.admin-bar .menu {
  top: 32px;
}

.menu-is-open,
.modal-is-open {
  overflow: hidden;
}

.menu .menu-items {
  counter-reset: etheria-menu;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu .menu-item {
  counter-increment: etheria-menu;
  margin: 0;
}

.menu .menu-item > a::before {
  min-width: 2ch;
  margin-right: 1.5rem;
  content: counter(etheria-menu, decimal-leading-zero);
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.menu-button[aria-expanded="true"] i:first-child {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-button[aria-expanded="true"] i:last-child {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-button i {
  transition: 220ms ease;
}

.portal:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.vote-list button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.vote-feedback,
.submission-status {
  min-height: 1.2em;
}

.emotion-copy.emotion-refresh {
  animation: emotion 500ms ease both;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(231, 201, 135, 0.38);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Story submission dialog */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms ease, visibility 260ms ease;
}

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

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 9, 0.86);
  backdrop-filter: blur(18px);
}

.story-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(231, 201, 135, 0.3);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 90% 4%, rgba(124, 58, 237, 0.23), transparent 32%),
    #0a0d19;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.72);
  transform: translateY(20px) scale(0.985);
  transition: transform 260ms ease;
}

.story-modal.open .story-modal-dialog {
  transform: none;
}

.story-modal-dialog h2 {
  max-width: 650px;
  margin: 0 0 2rem;
  font-family: Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.04em;
}

.story-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.6rem;
  line-height: 1;
}

.story-modal form,
.story-modal label {
  display: flex;
  flex-direction: column;
}

.story-modal form {
  gap: 1rem;
}

.story-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.story-modal label > span {
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-modal input[type="text"],
.story-modal input[type="email"],
.story-modal textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.7rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

.story-modal textarea {
  resize: vertical;
  line-height: 1.55;
}

.story-modal input:focus,
.story-modal textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 201, 135, 0.12);
}

.story-check {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  cursor: pointer;
}

.story-check input {
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.story-check span {
  margin: 0 !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}

.story-submit,
.content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: max-content;
  margin-top: 0.7rem;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* Blog, pages and story archives */
.content-shell {
  min-height: 80vh;
  padding: 18vh 6vw 10vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 5%, rgba(124, 58, 237, 0.2), transparent 30%),
    var(--ink);
}

.content-hero {
  max-width: 1160px;
  margin: 0 auto 8vh;
}

.content-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.post-grid {
  width: min(100%, 1240px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1.5rem;
  margin: 0 auto;
}

.post-card {
  min-width: 0;
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1.3rem;
  border-radius: 1.2rem;
  background: var(--deep);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card > small {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0.8rem 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.post-card p {
  color: var(--muted);
  line-height: 1.65;
}

.content-link {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-content > article,
.comments-area,
.post-navigation {
  width: min(100%, 920px);
  margin-inline: auto;
}

.single-content .content-hero {
  margin-bottom: 5vh;
}

.single-cover {
  overflow: hidden;
  margin-bottom: 3rem;
  border-radius: 2rem;
}

.single-cover img {
  width: 100%;
  height: auto;
}

.entry-content {
  color: #d0ccd8;
  font-family: Georgia, serif;
  font-size: clamp(1.14rem, 1.5vw, 1.35rem);
  line-height: 1.8;
}

.entry-content > * {
  max-width: 760px;
  margin-inline: auto;
}

.entry-content > .alignwide {
  max-width: 1100px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.single-story-player {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.single-story-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 2rem;
  background: #000;
}

.single-story-player.portrait iframe {
  width: min(100%, 470px);
  aspect-ratio: 9 / 16;
}

.post-navigation,
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.comments-area input,
.comments-area textarea {
  width: 100%;
  padding: 0.8rem;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
}

.navigation.pagination {
  width: min(100%, 1240px);
  margin: 4rem auto 0;
}

.nav-links {
  display: flex;
  gap: 0.7rem;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.page-numbers.current {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page > div {
  max-width: 920px;
}

.error-page h1 {
  margin: 0 0 2rem;
  font-family: Georgia, serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
}

.error-page p:not(.eyebrow) {
  color: var(--muted);
}

.error-page .content-button {
  margin-top: 1.3rem;
}

@media (max-width: 782px) {
  .admin-bar .header,
  .admin-bar .menu {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .menu {
    padding-inline: 1.5rem;
  }

  .menu a {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .menu .menu-item > a::before {
    margin-right: 0.8rem;
  }

  .story-form-row,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .story-modal {
    padding: 0;
  }

  .story-modal-dialog {
    min-height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .content-shell {
    padding: 16vh 1.25rem 8vh;
  }

  .content-hero h1 {
    font-size: 15vw;
  }

  .footer-menu {
    flex-wrap: wrap;
  }
}

/* Swipeable emotion stories carousel. */
.emotion-carousel {
  position: relative;
  margin-top: 4.5rem;
}

.emotion-track {
  position: relative;
  display: flex;
  gap: 1.25rem;
  margin-inline: -6vw;
  padding: 0 6vw 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 6vw;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.emotion-track::-webkit-scrollbar {
  display: none;
}

.emotion-slide {
  position: relative;
  min-width: 0;
  min-height: 610px;
  flex: 0 0 min(76vw, 1040px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3rem;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 70, 239, 0.42), transparent 30%),
    radial-gradient(circle at 15% 88%, rgba(124, 58, 237, 0.58), transparent 38%),
    #080a17;
  box-shadow: 0 34px 90px rgba(8, 5, 24, 0.26);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.emotion-slide:nth-child(2) {
  background:
    radial-gradient(circle at 78% 20%, rgba(231, 201, 135, 0.28), transparent 31%),
    radial-gradient(circle at 18% 82%, rgba(96, 165, 250, 0.32), transparent 40%),
    #090d19;
}

.emotion-slide:nth-child(3) {
  background:
    radial-gradient(circle at 80% 22%, rgba(244, 114, 182, 0.32), transparent 30%),
    radial-gradient(circle at 16% 84%, rgba(139, 92, 246, 0.5), transparent 42%),
    #0b0917;
}

.emotion-slide:nth-child(4) {
  background:
    radial-gradient(circle at 77% 18%, rgba(167, 139, 250, 0.32), transparent 31%),
    radial-gradient(circle at 16% 86%, rgba(231, 201, 135, 0.24), transparent 40%),
    #080b16;
}

.emotion-slide::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 32%),
    linear-gradient(180deg, transparent 40%, rgba(3, 5, 12, 0.3));
}

.emotion-slide .emotion-copy {
  min-height: 610px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 6rem);
}

.emotion-slide .emotion-copy h3 {
  max-width: 820px;
  margin: 1rem 0 1.5rem;
  font-size: clamp(4.5rem, 9vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.emotion-slide .emotion-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.emotion-slide .emotion-short {
  position: relative;
  z-index: 4;
  margin-top: 2rem;
}

.emotion-slide-number {
  position: absolute;
  right: 3vw;
  bottom: -0.08em;
  z-index: -1;
  color: transparent;
  font-family: Georgia, serif;
  font-size: clamp(13rem, 27vw, 30rem);
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.emotion-slide-ring {
  position: absolute;
  right: 18%;
  bottom: 18%;
  z-index: -1;
  width: clamp(8rem, 17vw, 15rem);
  height: clamp(8rem, 17vw, 15rem);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.4rem rgba(255, 255, 255, 0.018),
    0 0 0 4.8rem rgba(255, 255, 255, 0.012);
}

.emotion-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.emotion-controls > button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid rgba(5, 7, 17, 0.2);
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  transition: 200ms ease;
}

.emotion-controls > button:hover,
.emotion-controls > button:focus-visible {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.emotion-controls > button:disabled {
  cursor: default;
  opacity: 0.3;
}

.emotion-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline: 0.5rem;
}

.emotion-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 7, 17, 0.25);
  transition: width 220ms ease, background 220ms ease;
}

.emotion-dots button.active {
  width: 30px;
  background: var(--violet);
}

.emotion-counter {
  min-width: 4.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  color: rgba(5, 7, 17, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.emotion-counter strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

@media (max-width: 760px) {
  .emotions {
    padding: 7rem 0 4.5rem;
  }

  .emotions .section-title {
    padding-inline: 1rem;
  }

  .emotion-carousel {
    margin-top: 2.75rem;
  }

  .emotion-track {
    gap: 0.8rem;
    margin-inline: 0;
    padding: 0 1rem 0.8rem;
    scroll-padding-inline: 1rem;
  }

  .emotion-slide {
    min-height: 535px;
    flex-basis: calc(100vw - 2.75rem);
    border-radius: 2rem;
  }

  .emotion-slide .emotion-copy {
    min-height: 535px;
    justify-content: flex-start;
    padding: 3.3rem 1.5rem 2rem;
  }

  .emotion-slide .emotion-copy h3 {
    max-width: 100%;
    margin: 1rem 0 1.2rem;
    font-size: clamp(3.45rem, 16vw, 5.2rem);
    line-height: 0.86;
  }

  .emotion-slide .emotion-copy p {
    max-width: 22rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .emotion-slide .emotion-short {
    margin-top: 1.5rem;
  }

  .emotion-slide-number {
    right: 0.7rem;
    bottom: 0.25rem;
    font-size: 13rem;
  }

  .emotion-slide-ring {
    right: 13%;
    bottom: 14%;
    width: 7.5rem;
    height: 7.5rem;
  }

  .emotion-controls {
    justify-content: center;
    gap: 0.55rem;
    padding-inline: 1rem;
  }

  .emotion-controls > button {
    width: 46px;
    height: 46px;
  }

  .emotion-counter {
    min-width: auto;
    margin-inline: 0.35rem;
  }
}

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

/* Mobile refinement: prevents oversized editorial type from widening the page. */
@media (max-width: 960px) {
  .daily-story {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .daily-story-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .daily-story-copy {
    width: min(100%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .header {
    height: 76px;
    padding-inline: 0.85rem;
    background: rgba(5, 7, 17, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  .menu-button {
    width: 46px;
    height: 46px;
    background: rgba(8, 10, 21, 0.84);
  }

  .intro-copy {
    padding: 5rem 1rem 3.5rem;
    text-align: center;
  }

  .intro-copy small {
    max-width: 19rem;
    font-size: 0.56rem;
    line-height: 1.6;
    letter-spacing: 0.21em;
  }

  .intro-copy h1 {
    max-width: 100%;
    margin-top: 0.75rem;
    font-size: clamp(3.5rem, 18vw, 5.3rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .intro-copy p {
    max-width: 20rem;
    margin-top: 2rem;
    font-size: clamp(1.08rem, 5vw, 1.3rem);
    line-height: 1.35;
  }

  .portal {
    top: 13vh;
    width: min(72vw, 292px);
    border-radius: 1.5rem;
    opacity: clamp(0, calc((var(--intro) - 0.32) * 2.2), 1);
  }

  .portal.is-playing {
    opacity: 1;
  }

  .portal-label {
    inset: 1.15rem 1.15rem auto;
    letter-spacing: 0.2em;
  }

  .portal-copy {
    inset: auto 1.2rem 1.2rem;
  }

  .portal-copy h2 {
    font-size: clamp(1.6rem, 7.8vw, 2rem);
  }

  .stories-player {
    padding-inline: 1rem;
  }

  .player-heading {
    padding-inline: 0;
  }

  .player-heading h2 {
    font-size: clamp(4rem, 18vw, 5.2rem);
  }

  .player-heading > p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .media-caption {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.25rem 0.75rem 1.15rem;
  }

  .media-caption h3 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.08;
  }

  .media-playlist button {
    grid-template-columns: 20px 62px minmax(0, 1fr) 12px;
    gap: 0.58rem;
    padding: 0.85rem 0.65rem;
  }

  .media-playlist button > img {
    width: 62px;
  }

  .playlist-copy strong {
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .choice {
    padding: 7rem 1.1rem;
  }

  .choice h2,
  .finale h2 {
    font-size: clamp(3.2rem, 14.5vw, 4.7rem);
    line-height: 0.92;
  }

  .body-copy {
    margin: 1.8rem 0;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .vote-list button {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 1.15rem 0;
  }

  .vote-list button:hover,
  .vote-list button.selected {
    padding-left: 0.4rem;
  }

  .vote-list button b {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    line-height: 1.05;
  }

  .daily-story {
    min-height: auto;
    gap: 2.5rem;
    padding: 7rem 1.1rem;
  }

  .daily-story-visual {
    aspect-ratio: 4 / 5;
    border-radius: 1.6rem;
  }

  .daily-story-date {
    inset: 1.25rem auto auto 1.25rem;
  }

  .daily-story-date time {
    font-size: 1rem;
  }

  .daily-story-play {
    width: 62px;
    height: 62px;
  }

  .daily-story-index {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .daily-story-copy h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
  }

  .daily-story-copy .body-copy {
    margin-block: 1.5rem;
  }

  .daily-story-note {
    align-items: flex-start;
    margin-bottom: 1.6rem;
    line-height: 1.5;
  }

  .story-link {
    max-width: 100%;
    gap: 0.8rem;
    line-height: 1.45;
  }

  .story-link b {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }

  .emotions {
    min-height: auto;
    padding: 7rem 1rem 4rem;
  }

  .section-title h2 {
    font-size: clamp(3.2rem, 14vw, 4.7rem);
    line-height: 0.92;
  }

  .emotion-stage {
    min-height: 610px;
    margin-top: 3rem;
    padding: 3.5rem 1.25rem 10rem;
    border-radius: 1.6rem;
  }

  .emotion-copy {
    max-width: 100%;
  }

  .emotion-copy h3 {
    max-width: 100%;
    font-size: clamp(3.2rem, 15.5vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
  }

  .emotion-copy p {
    font-size: 0.96rem;
  }

  .emotion-short {
    margin-top: 0.8rem;
    padding: 0.74rem 0.9rem;
    font-size: 0.62rem;
  }

  .emotion-tabs {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .emotion-tabs a {
    min-width: 0;
    padding: 0.72rem 0.65rem;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .emotion-tabs a b {
    margin-left: auto;
  }

  .facebook {
    gap: 3rem;
    padding: 7rem 1.1rem 5rem;
  }

  .facebook-copy,
  .facebook-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .facebook-copy h2 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.9rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
  }

  .facebook-copy h2 em {
    overflow-wrap: anywhere;
  }

  .facebook-copy .body-copy {
    max-width: 100%;
  }

  .facebook-copy > a {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding-right: 0.9rem;
    font-size: 0.6rem;
    line-height: 1.4;
    letter-spacing: 0.085em;
    white-space: normal;
  }

  .facebook-copy > a > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .facebook-card {
    min-height: 450px;
    padding: 4.5rem 1.25rem 2.5rem;
    border-radius: 1.6rem;
  }

  .facebook-card > img {
    width: min(62%, 195px);
  }

  .facebook-card strong {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .facebook-card p {
    max-width: 19rem;
    line-height: 1.45;
  }

  .facebook-card b {
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.4;
  }

  .finale {
    min-height: 78svh;
    padding: 7rem 1.1rem;
  }

  .finale > div > p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .finale button {
    max-width: 100%;
    gap: 1rem;
    padding-left: 1.1rem;
    line-height: 1.4;
  }

  .site-footer {
    padding: 3rem 1.1rem;
  }
}

/* Final mobile navigation and written-story layout. */
@media (max-width: 760px) {
  .menu {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: max(7.5rem, 15vh) 1.15rem 2rem;
  }

  .menu > small {
    max-width: 100%;
    margin-bottom: 1.4rem;
    font-size: 0.64rem;
    line-height: 1.5;
  }

  .menu .menu-items,
  .menu .menu-item {
    width: 100%;
    min-width: 0;
  }

  .menu a {
    width: 100%;
    max-width: 100%;
    gap: 0.65rem;
    padding: 0.13rem 0;
    font-size: clamp(1.85rem, 8vw, 2.65rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .menu .menu-item > a::before {
    min-width: 2.2rem;
    flex: 0 0 2.2rem;
    margin-right: 0;
    font-size: 0.62rem;
  }

  .written-stories {
    padding: 7rem 1rem 5rem;
  }

  .written-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .written-heading h2 {
    max-width: 100%;
    font-size: clamp(3.15rem, 14vw, 4.8rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .written-heading > p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

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

  .written-card > a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 1.35rem;
  }

  .written-card > a:hover,
  .written-card > a:focus-visible {
    transform: translateY(-3px);
  }

  .written-card-cover {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .written-card-cover > small {
    display: none;
  }

  .written-card-number {
    right: 0.65rem;
    bottom: 0.55rem;
    font-size: 3.6rem;
  }

  .written-card-orbit {
    top: 32%;
    left: 50%;
    width: 4.8rem;
    height: 4.8rem;
  }

  .written-card-copy {
    min-width: 0;
    padding: 1.15rem;
  }

  .written-card-copy > div {
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    font-size: 0.5rem;
  }

  .written-card-copy h3,
  .written-card-copy h2 {
    margin: 0.8rem 0 0.65rem;
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .written-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .written-card-copy b {
    padding-top: 0.85rem;
    font-size: 0.56rem;
    line-height: 1.35;
  }

  .written-archive-link {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
  }

  .written-single-meta {
    gap: 0.45rem 0.8rem;
    font-size: 0.55rem;
    line-height: 1.5;
  }

  .written-single-meta span + span::before,
  .written-single-meta time::before {
    margin-right: 0.8rem;
  }
}
