/* New York Memento — the pages a guest's phone lands on from the booth.
   The look follows newyorkmemento.com: grainy black-and-white booth photographs under an ink
   wash, cream type, letterspaced capitals, the burgundy and leopard of the site's sections.
   Everything is hosted with the pages -- no third-party requests: these load at a venue on one
   bar of signal, and the email-fix page carries a token in its URL. */

@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/SourceSerifPro-Regular.woff2") format("woff2"); }
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/SourceSerifPro-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/SourceSerifPro-Bold.woff2") format("woff2"); }
@font-face { font-family: "Source Serif Pro"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/SourceSerifPro-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/SourceSerifPro-Italic.woff2") format("woff2"); }

:root {
  --ink: #1A1511;
  --cream: #F0E9DE;
  --cream-soft: rgba(240, 233, 222, 0.82);
  --cream-quiet: rgba(240, 233, 222, 0.62);
  --hairline: rgba(240, 233, 222, 0.22);
  --burgundy: #5C1A1B;
  --umber: #3A2A1C;
  --serif: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--cream); }

body {
  font: 18px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------- the stage: photo + wash */

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  background-size: cover;
  background-position: center 22%;
  isolation: isolate;
}

/* Thanks: two friends against the leopard wall, washed darker where the words sit. */
.stage--thanks {
  background-image:
    linear-gradient(rgba(26, 21, 17, 0.55) 0%, rgba(26, 21, 17, 0.12) 26%, rgba(26, 21, 17, 0.35) 48%, rgba(26, 21, 17, 0.9) 70%, rgba(26, 21, 17, 0.97) 100%),
    url("/assets/hero-2.jpg");
}

/* Problems: the same photography under the site's burgundy, so it reads as "stop" without alarm. */
.stage--problem {
  background-image:
    linear-gradient(rgba(92, 26, 27, 0.6) 0%, rgba(92, 26, 27, 0.35) 30%, rgba(92, 26, 27, 0.88) 64%, rgba(92, 26, 27, 0.98) 100%),
    url("/assets/hero-1.jpg");
}

/* The address form needs calm behind it: the site's leopard sections, under ink. */
.stage--form {
  background-image:
    linear-gradient(rgba(26, 21, 17, 0.8), rgba(26, 21, 17, 0.86)),
    url("/assets/leopard-web.jpg");
  background-position: center;
}

/* ---------------------------------------------------------------- frame */

.masthead {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0;
}

.masthead img { width: 148px; height: auto; display: block; }

.content {
  margin-top: auto;
  width: 100%;
  max-width: 30rem;
  align-self: center;
  padding: 2.5rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stage--form .content { margin-top: 3.5rem; margin-bottom: auto; }

/* ---------------------------------------------------------------- type */

.eyebrow {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-quiet);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 10vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--cream);
  text-wrap: balance;
}

.lede { margin: 0.2rem 0 0; color: var(--cream-soft); font-size: 1.1rem; line-height: 1.55; }
.lede + .lede { margin-top: -0.2rem; font-size: 1rem; color: var(--cream-quiet); }
.lede strong { color: var(--cream); font-weight: 600; word-break: break-word; }

/* ---------------------------------------------------------------- sign-off, as on the site */

.signoff {
  width: 100%;
  max-width: 30rem;
  align-self: center;
  padding: 1.1rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
}

.signoff em {
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--cream-quiet);
}

.signoff a {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-quiet);
  text-decoration: none;
  white-space: nowrap;
}

.signoff a:hover { color: var(--cream); }

/* ---------------------------------------------------------------- the address form */

form { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.8rem; }

label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-quiet);
}

input[type="email"] {
  width: 100%;
  font: 400 1.1rem var(--serif);
  color: var(--ink);
  background: var(--cream);
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
}

button {
  font: 700 12px var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 0;
  padding: 1.05rem 1.25rem;
  margin-top: 0.3rem;
  cursor: pointer;
}

button:hover { background: transparent; color: var(--cream); }
button[disabled] { opacity: 0.55; cursor: progress; }

.error { margin: 0; color: #F2B8A8; font-size: 0.95rem; }

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

noscript p { color: var(--cream-soft); }

[hidden] { display: none !important; }

@media (min-width: 720px) {
  .stage { background-position: center 30%; }
  h1 { font-size: 3.2rem; }
}
