:root {
  --yellow: #ffcc00;
  --purple: #570055;
  --purple-deep: #3d003c;
  --teal: #04b299;
  --teal-deep: #038a76;
  --cream: #fafbd3;
  --green: #cbfc8f;
  --ink: #3d003c;
  --white: #fffdf6;
  --header: 92px;
  --shadow: 0 18px 40px rgba(87, 0, 85, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Fredoka", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--purple);
  color: white;
  padding: 8px 12px;
  z-index: 50;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 28px;
  background: var(--yellow);
  border-bottom: 4px solid var(--purple);
}

.brand {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.brand img {
  width: 72px;
  height: 72px;
}

.header-line {
  flex: 1;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--purple);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-link:hover { background: rgba(87, 0, 85, 0.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--purple);
  color: white;
  font: inherit;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 0 var(--purple-deep);
}

.btn:hover { background: #6d0a6a; }

.btn:active { transform: translateY(2px); box-shadow: 0 4px 0 var(--purple-deep); }

.btn-small { padding: 10px 16px; box-shadow: 0 4px 0 var(--purple-deep); }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  text-decoration: none;
}

.icon-btn:hover { background: #6d0a6a; }

.screen {
  position: relative;
  height: 100dvh;
  padding-top: var(--header);
  background: var(--yellow);
  overflow: hidden;
}

.screen-art,
.screen-video {
  position: absolute;
  top: var(--header);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--header));
  object-fit: cover;
  object-position: center top;
}

.screen-art {
  animation: drift 32s ease-in-out infinite alternate;
}

.screen.is-playing .screen-art { opacity: 0; }

.screen-video { background: #1a0518; }

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.play {
  background: var(--teal);
  color: var(--purple-deep);
  box-shadow: 0 4px 0 var(--teal-deep);
}

.play:hover { background: #1ad4b8; }

.banner {
  background: var(--yellow);
  border-bottom: 4px solid var(--purple);
}

.banner img {
  width: 100%;
  height: auto;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.subscribe {
  background:
    radial-gradient(1200px 280px at 50% 100%, var(--green) 0%, transparent 70%),
    var(--cream);
  padding: 48px 0 72px;
}

.subscribe-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.script {
  margin: 0 0 4px;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
}

h1, h2 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--purple);
}

.lede {
  margin: 0 0 22px;
  max-width: 38rem;
  font-size: 1.12rem;
}

.card {
  background: var(--white);
  border: 3px solid var(--purple);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 14px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--purple);
}

.optional {
  font-weight: 500;
  color: #7a4d78;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e4c6e2;
  border-radius: 14px;
  padding: 12px 14px;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--teal);
  border-color: var(--teal);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  margin: 6px 0 16px;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--purple);
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

.form-error {
  margin: 0 0 12px;
  color: #9d1230;
  font-weight: 600;
}

.thanks h2 { font-size: clamp(2rem, 4vw, 3rem); }

.poster {
  margin: 0;
}

.poster img {
  width: auto;
  max-width: 100%;
  height: min(78vh, 760px);
  margin-inline: auto;
  border-radius: 32px;
  border: 4px solid var(--purple);
  box-shadow: var(--shadow);
  background: var(--yellow);
}

.contact {
  background: var(--green);
  padding: 72px 0 80px;
  border-top: 4px solid var(--purple);
}

.ig-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 420px);
  text-decoration: none;
  background: var(--purple);
  color: white;
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 8px 0 var(--purple-deep);
}

.ig-card:hover { background: #6d0a6a; }

.ig-card strong { display: block; font-size: 1.25rem; }

.ig-card small { display: block; opacity: 0.85; font-size: 0.95rem; }

.ig-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--teal);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list a {
  font-weight: 600;
  color: var(--purple);
}

.made {
  margin: 28px 0 0;
  font-weight: 600;
  color: var(--purple);
}

.inbox {
  margin-top: 22px;
}

.inbox table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.inbox th, .inbox td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #ead6e8;
  vertical-align: top;
}

.inbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-ghost {
  background: white;
  color: var(--purple);
  box-shadow: 0 6px 0 #e4c6e2;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .subscribe-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .contact-grid .poster { order: 2; }

  .poster img { height: auto; max-height: 70vh; }
}

@media (max-width: 720px) {
  :root { --header: 108px; }

  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    padding: 8px 12px 10px;
  }

  .brand { grid-row: 1; grid-column: 1; }
  .brand img { width: 52px; height: 52px; }

  .header-nav {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }

  .header-line {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 0.98rem;
  }

  .nav-link { display: none; }

  .btn-small { padding: 8px 12px; }

  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen-art { animation: none; }
  .btn:active { transform: none; }
}
