:root {
  --umber: #2a1a12;
  --night: #120c09;
  --tallow: #e8a55a;
  --ember: #b8572a;
  --oxblood: #5a1a1c;
  --parchment: #efe3cc;
  --muted: #c9b99c;
  --slip: #efe3cc;
  --line: rgba(232, 165, 90, 0.35);
  --body: 'Cormorant Garamond', Georgia, serif;
  --tag: 'Cinzel', 'Cormorant Garamond', serif;
  --hand: 'Caveat', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* The table top stays put behind the page. A fixed layer instead of
   background-attachment: fixed, which iPhones ignore and stretch over the whole page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--night) url(img/asztallap.jpg) center top / cover no-repeat;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.5;
}

/* the fixed background is costly on phones; a plain scroll is fine there */
@media (max-width: 800px) {
  body { background-attachment: scroll; background-size: 160% auto; }
}

a { color: var(--tallow); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

.tag {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--tag); font-size: 13px; letter-spacing: 0.32em;
  color: var(--tallow); text-transform: uppercase; margin: 0 0 22px;
}
.tag::after { content: ""; width: 72px; height: 1px; background: var(--tallow); opacity: 0.7; }

/* ---------- landing ---------- */

.hero {
  display: grid; gap: 40px; align-items: start;
  padding: 48px 0 32px;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1fr 360px; gap: 64px; padding-top: 88px; }
}

h1 {
  font-weight: 500; font-size: clamp(36px, 8.4vw, 58px); line-height: 1.06;
  margin: 0 0 22px; letter-spacing: -0.005em;
}
h1 em { font-style: italic; color: var(--tallow); font-weight: 500; }

.lead { font-size: 21px; color: var(--parchment); margin: 0 0 30px; max-width: 34em; }
.lead + .lead { margin-top: -18px; }

.offer {
  display: flex; align-items: center; gap: 18px; margin: 0 0 22px;
}
.slip {
  flex: none; display: inline-block; padding: 8px 22px 6px 18px;
  background: linear-gradient(176deg, #f2e8d3, #e6d6b8);
  color: #1d1410; font-family: var(--hand); font-weight: 600; font-size: 30px;
  line-height: 1; transform: rotate(-3deg);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 6%, 22% 0, 51% 5%, 78% 0, 100% 4%, 99% 95%, 70% 100%, 44% 95%, 18% 100%, 1% 94%);
}
.offer p { margin: 0; font-size: 19px; line-height: 1.35; color: var(--muted); }
.offer strong { color: var(--parchment); font-weight: 600; }

form.signup { max-width: 470px; }
.field label {
  display: block; font-family: var(--tag); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
input[type=email], input[type=text] {
  width: 100%; font: inherit; font-size: 20px; color: var(--parchment);
  background: rgba(18, 12, 9, 0.78); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 15px; outline: none;
}
input[type=email]:focus, input[type=text]:focus {
  border-color: var(--tallow); box-shadow: 0 0 0 3px rgba(232, 165, 90, 0.18);
}
input::placeholder { color: #8d806c; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 18px;
  font-size: 17px; line-height: 1.35; color: var(--muted);
}
.consent input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tallow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 12px 20px;
  font-family: var(--tag); font-weight: 600; font-size: 15px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: #1d1108;
  background: linear-gradient(180deg, #f0b46c, var(--tallow) 55%, #d48e45);
  border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 165, 90, 0.22);
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.btn.ghost {
  color: var(--tallow); background: transparent; box-shadow: none;
  border: 1px solid var(--line);
}
.small { font-size: 16px; color: var(--muted); margin: 14px 0 0; }
.error { color: #f1a08a; font-size: 17px; margin: 10px 0 0; min-height: 1em; }

/* the clip */
.clip { margin: 0 auto; width: 100%; max-width: 360px; }
.clip .frame { position: relative; }
.clip video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000;
  border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.clip .sound {
  position: absolute; right: 12px; bottom: 12px; width: auto; min-height: 40px;
  font-size: 12px; padding: 8px 14px; background: rgba(18, 12, 9, 0.8);
  color: var(--parchment); border: 1px solid var(--line); box-shadow: none;
}
.clip figcaption { font-size: 16px; color: var(--muted); margin-top: 10px; text-align: center; }

/* the three points under the hero */
.about {
  display: grid; gap: 28px; padding: 40px 0 24px; border-top: 1px solid var(--line);
}
@media (min-width: 880px) { .about { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.about h2 {
  font-family: var(--tag); font-weight: 400; font-size: 14px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--tallow); margin: 0 0 8px;
}
.about p { margin: 0; color: var(--muted); font-size: 19px; }

.moly { padding: 8px 0 40px; }
.moly .btn { max-width: 470px; }

footer {
  border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 16px;
  color: var(--muted);
}
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
footer p { margin: 6px 0; }

/* ---------- thank-you page ---------- */

.thanks { padding: 56px 0 24px; max-width: 640px; }
.thanks h1 { font-size: clamp(34px, 8vw, 52px); }
.card-maker { padding: 28px 0 48px; border-top: 1px solid var(--line); max-width: 640px; }
.card-maker h2 { font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.card-maker .row { display: flex; gap: 10px; margin: 18px 0 10px; }
.card-maker .row input { flex: 1; min-width: 0; }
.card-maker .row .btn { width: auto; flex: none; }
.card-out { display: none; margin-top: 22px; }
.card-out.on { display: block; }
.card-out canvas {
  display: block; width: 100%; max-width: 320px; aspect-ratio: 9 / 16;
  border-radius: 4px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.card-out .actions[hidden] { display: none; }
.card-out .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; max-width: 320px; }
.card-out .actions .btn { flex: 1 1 140px; }

/* ---------- plain text pages ---------- */

.doc { max-width: 720px; padding: 48px 0 40px; }
.doc h1 { font-size: clamp(32px, 7vw, 46px); }
.doc h2 { font-weight: 600; font-size: 24px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--parchment); font-size: 19px; }
.doc .todo { background: rgba(184, 87, 42, 0.35); padding: 0 4px; }

.back { display: inline-block; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
