:root {
  --ink: #121625;
  --muted: #5a6172;
  --paper: #fbf8f3;
  --line: rgba(24, 22, 31, 0.16);
  --pink: #f0147a;
  --blue: #1266f1;
  --deep-blue: #071a4a;
  --cyan: #00a9d6;
  --lime: #9fdc3b;
  --sun: #ffbe2e;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(18, 102, 241, 0.5);
  box-shadow: 0 12px 34px rgba(18, 102, 241, 0.28);
}

.site-header nav a {
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.9;
}

.site-header nav a.nav-login {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(18, 102, 241, 0.62);
  opacity: 1;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.languageIcon {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.languageIcon.active {
  background: rgba(18, 102, 241, 0.7);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-image: url("assets/festival-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 26, 74, 0.82), rgba(7, 26, 74, 0.45) 46%, rgba(7, 26, 74, 0.12)),
    linear-gradient(to top, rgba(7, 26, 74, 0.72), rgba(0, 0, 0, 0.08) 55%, rgba(7, 26, 74, 0.3));
}

.hero-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 78px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 650;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.44);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(18, 102, 241, 0.32);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(8px);
}

.button.full {
  width: 100%;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.ticker span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 900;
}

.ticker span:nth-child(1) {
  background: rgba(240, 20, 122, 0.08);
}

.ticker span:nth-child(2) {
  background: rgba(18, 102, 241, 0.1);
}

.ticker span:nth-child(3) {
  background: rgba(255, 190, 46, 0.15);
}

.ticker span:nth-child(4) {
  background: rgba(159, 220, 59, 0.16);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 275px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature:nth-child(1) {
  border-top: 6px solid var(--pink);
}

.feature:nth-child(2) {
  border-top: 6px solid var(--blue);
}

.feature:nth-child(3) {
  border-top: 6px solid var(--sun);
}

.feature:nth-child(4) {
  border-top: 6px solid var(--lime);
}

.feature-letter {
  display: block;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.8;
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
}

.feature p,
.first-copy p,
.heat-callout p,
.privacy {
  color: var(--muted);
  line-height: 1.65;
}

.heat-callout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 68px clamp(18px, 6vw, 96px);
  background:
    linear-gradient(135deg, var(--deep-blue), #102d74 56%, #0a8ec2);
  color: var(--white);
}

.heat-callout p {
  align-self: end;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.friends-section {
  padding-top: 74px;
  padding-bottom: 0;
}

.friends-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(18, 22, 37, 0.16);
}

.friends-hero img,
.friends-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.friends-hero img {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.friends-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 26, 74, 0.88), rgba(7, 26, 74, 0.54) 43%, rgba(7, 26, 74, 0.06) 78%),
    linear-gradient(to top, rgba(7, 26, 74, 0.58), rgba(7, 26, 74, 0.04));
}

.friends-copy {
  width: min(54%, 620px);
  padding: clamp(34px, 6vw, 72px);
}

.friends-copy h2 {
  max-width: 620px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.first-copy {
  padding-top: 18px;
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.clean-list li {
  padding: 16px 18px;
  border-left: 5px solid var(--blue);
  background: rgba(18, 102, 241, 0.09);
  font-weight: 800;
}

.signup-stack {
  display: grid;
  gap: 18px;
}

.waitlist {
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(24, 22, 31, 0.12);
}

.form-kicker {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
}

.form-intro {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.quick-signup {
  border-top: 6px solid var(--blue);
}

.claim-signup {
  border-top: 6px solid var(--pink);
}

.field-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

label,
legend {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fffdfb;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 94px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(18, 102, 241, 0.18);
  border-color: var(--blue);
}

fieldset {
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.choice-grid input {
  width: 18px;
  min-height: 18px;
}

.loading-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.is-error-text {
  color: #8a0637;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(159, 220, 59, 0.12);
  line-height: 1.35;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.privacy,
.reserved-note,
.form-status {
  margin: 13px 0 0;
  font-size: 0.82rem;
}

.reserved-note {
  margin: -5px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #073b20;
  background: rgba(159, 220, 59, 0.22);
  border: 1px solid rgba(74, 143, 40, 0.35);
}

.form-status.is-error {
  color: #8a0637;
  background: rgba(240, 20, 122, 0.12);
  border: 1px solid rgba(240, 20, 122, 0.32);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.auth-page,
.profile-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7, 26, 74, 0.94), rgba(18, 102, 241, 0.72)),
    url("assets/festival-hero.png") center / cover fixed;
}

.auth-shell,
.profile-shell {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 42px;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
}

.auth-card {
  border-top: 6px solid var(--blue);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-links a {
  color: var(--blue);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--white);
}

.profile-header nav {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.profile-shell {
  width: min(820px, calc(100% - 32px));
  padding-top: 142px;
}

.profile-card {
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
}

.profile-photo {
  display: block;
  width: min(280px, 74vw);
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(18, 102, 241, 0.22);
}

.text-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0 72px;
}

.text-page article {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 58px rgba(7, 26, 74, 0.1);
}

.text-page h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.profile-card h1 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
}

.profile-username,
.profile-meta,
.profile-bio {
  color: var(--muted);
  line-height: 1.6;
}

.profile-username {
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.tag-row span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--deep-blue);
  background: rgba(18, 102, 241, 0.1);
  font-size: 0.84rem;
  font-weight: 900;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.profile-actions form {
  margin: 0;
}

.profile-secondary {
  color: var(--ink);
  background: rgba(18, 22, 37, 0.08);
  box-shadow: none;
}

.status-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--deep-blue);
  background: rgba(159, 220, 59, 0.24);
  font-weight: 900;
}

.message-box {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.community-page h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.community-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.community-avatar,
.community-avatar img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.community-avatar {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  overflow: hidden;
}

.community-avatar img {
  object-fit: cover;
}

.community-row p,
.message-meta {
  margin: 0;
  color: var(--muted);
}

.message-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.message-item textarea,
.message-box textarea {
  width: 100%;
  margin: 8px 0;
}

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

  .ticker,
  .feature-grid,
  .section-heading,
  .heat-callout,
  .split {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .hero {
    min-height: 88vh;
  }

  .friends-hero {
    min-height: 500px;
  }

  .friends-copy {
    width: min(72%, 620px);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 54px 0;
  }

  .heat-callout {
    padding: 54px 18px;
  }

  .friends-copy {
    width: 100%;
    padding: 34px 22px;
  }

  .friends-copy h2 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .friends-overlay {
    background:
      linear-gradient(to top, rgba(7, 26, 74, 0.88), rgba(7, 26, 74, 0.56) 52%, rgba(7, 26, 74, 0.12)),
      linear-gradient(90deg, rgba(7, 26, 74, 0.72), rgba(7, 26, 74, 0.18));
  }

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

  .site-footer {
    display: grid;
  }
}
