@font-face {
  font-family: "Redaction";
  src: url("./assets/fonts/Redaction-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 10";
  src: url("./assets/fonts/Redaction_10-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 20";
  src: url("./assets/fonts/Redaction_20-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 35";
  src: url("./assets/fonts/Redaction_35-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 70";
  src: url("./assets/fonts/Redaction_70-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 100";
  src: url("./assets/fonts/Redaction_100-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 50";
  src: url("./assets/fonts/Redaction_50-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #171717;
  --page-background: #E0E0E0;
  background: var(--page-background);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: min(100%, 80rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
}

.screen-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.screen-film {
  position: relative;
  width: 100%;
  max-width: 34rem;
}

.screen-photo {
  display: block;
  width: 100%;
  height: auto;
}

.wall-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--page-background);
  pointer-events: none;
}

.copy {
  width: 100%;
  max-width: 24.375rem;
}

h1, p { margin: 0; }

h1 {
  color: #595959;
  font-family: "Redaction 35", Georgia, serif;
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.035em;
}


h1[data-intro-pending] { visibility: hidden; }
h1[data-intro-font="100"] { font-family: "Redaction 100", Georgia, serif; }
h1[data-intro-font="70"] { font-family: "Redaction 70", Georgia, serif; }
h1[data-intro-font="50"] { font-family: "Redaction 50", Georgia, serif; }
h1[data-intro-font="35"] { font-family: "Redaction 35", Georgia, serif; }
h1[data-intro-font="20"] { font-family: "Redaction 20", Georgia, serif; }
h1[data-intro-font="10"] { font-family: "Redaction 10", Georgia, serif; }

.description {
  color: #595959;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.description { margin-top: 1.5rem; }
.description-line { display: block; }

a {
  display: inline-block;
  color: #303030;
  text-decoration-color: #999;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #000;
  text-decoration-color: currentColor;
}

.signup {
  width: 100%;
  max-width: 17.5rem;
  margin-top: 2rem;
}

input {
  min-height: 2.5rem;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: inherit;
  background: transparent;
}

input::placeholder { color: inherit; opacity: 1; }

.email-field { position: relative; color: #595959; }
.email-field:has(input[aria-invalid="true"]) { color: #a1261c; }
.email-field.shake { animation: field-shake 300ms ease-in-out; }
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .email-field.shake { animation: none; }
  .email-field input[aria-invalid="true"] { border-color: #a1261c; }
}
.email-field input { padding-right: 2.75rem; }

.signup-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.signup-submit svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

:focus-visible {
  outline: 2px solid #555;
  outline-offset: 4px;
}

.email-field input:focus-visible {
  outline: none;
  border-bottom-color: currentColor;
  box-shadow: 0 1px 0 currentColor;
}

.email-field input[aria-invalid="true"] { border-bottom-color: #a1261c; }

.form-message {
  min-height: 1.6em;
  margin-top: 0.75rem;
  color: #666;
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-message.error { color: #a1261c; }
.form-message:empty { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
    padding-block: 3.5rem 2.5rem;
  }

  .copy { justify-self: center; }
  .email-field input { font-size: 1rem; }
}

/* Reveal the supporting content after the title finishes, on every page load. */
.copy[data-content-pending] > :is(.description, .signup) {
  visibility: hidden;
}

.copy[data-content-ready] > :is(.description, .signup) {
  animation: content-reveal 280ms ease-out both;
}
.copy[data-content-ready] > .signup { animation-delay: 100ms; }
.copy[data-content-ready] > .signup:focus-within { animation: none; }

@keyframes content-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .copy[data-content-ready] > :is(.description, .signup) {
    animation: none;
  }
}
