:root {
  --ink: #171513;
  --ivory: #f5f0e8;
  --paper: #fbf8f3;
  --rose: #c9a4a2;
  --oxblood: #5a2028;
  --display: "Gilda Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
}

.launch-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.launch-image,
.launch-shade {
  position: absolute;
  inset: 0;
}

.launch-image {
  z-index: -3;
  background: #ddd4c8 url("assets/hero.webp") center / cover no-repeat;
  animation: image-arrival 9s cubic-bezier(.2,.75,.25,1) both;
}

.launch-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.78) 38%, rgba(245, 240, 232, 0.08) 69%),
    linear-gradient(0deg, rgba(23, 21, 19, 0.16), transparent 35%);
}

.launch-header,
.launch-footer {
  width: 100%;
  display: flex;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 5vw, 5rem);
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.launch-brand {
  color: inherit;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.launch-content {
  width: min(50rem, 58vw);
  padding: clamp(4rem, 10vh, 8rem) 0 4rem clamp(1.25rem, 5vw, 5rem);
  align-self: center;
  animation: content-arrival 900ms 180ms cubic-bezier(.2,.75,.25,1) both;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(4rem, 7.2vw, 8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.launch-copy {
  margin: 0 0 2.5rem;
  color: #4b4641;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.preview-access {
  width: min(100%, 30rem);
}

.preview-access summary {
  width: fit-content;
  padding: 0.45rem 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.preview-access summary::-webkit-details-marker {
  display: none;
}

.preview-access summary::after {
  margin-left: 0.7rem;
  content: "+";
}

.preview-access[open] summary::after {
  content: "−";
}

.access-panel {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 18px;
  background: rgba(251, 248, 243, 0.64);
  box-shadow: 0 18px 60px rgba(23, 21, 19, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.access-panel label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.password-row input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 21, 19, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.password-row button,
.access-button {
  min-height: 48px;
  display: inline-flex;
  padding: 0.75rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.password-row button:hover,
.password-row button:focus-visible,
.access-button:hover,
.access-button:focus-visible {
  background: var(--oxblood);
  transform: translateY(-1px);
}

.access-error {
  margin: 0.8rem 0 0;
  color: var(--oxblood);
  font-size: 0.78rem;
}

.access-panel-ready p {
  margin: 0 0 1rem;
  color: #4b4641;
  font-size: 0.86rem;
}

.launch-footer {
  color: rgba(23, 21, 19, 0.62);
}

@keyframes image-arrival {
  from { transform: scale(1.055); }
  to { transform: scale(1.01); }
}

@keyframes content-arrival {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .launch-image {
    background-position: 64% center;
  }

  .launch-shade {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.82) 46%, rgba(245, 240, 232, 0.16) 75%);
  }

  .launch-header > span {
    display: none;
  }

  .launch-content {
    width: 100%;
    padding: 4rem 1.25rem;
    align-self: start;
  }

  h1 {
    font-size: clamp(3.6rem, 16vw, 5.8rem);
  }

  .launch-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .password-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
