/* CookReel validation page — "edit bay" direction.
   Ground: deep green-cast slate (kitchen at night / edit suite).
   Accents are semantic: butter = primary action and affordance.
   tomato is held in the palette for alert states; nothing claims it yet. */

:root {
  --ground: #101512;
  --panel: #182019;
  --panel-up: #1E2820;
  --ink: #F2EFE6;
  --ink-dim: #A9B2A1;
  --butter: #F2C14E;
  --tomato: #E4573D;
  --line: #2A342B;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* header wordmark */
header { padding: 0.25rem 0 2.5rem; }
header .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--butter);
}

/* hero */
.hero { margin-bottom: 3.5rem; }
.headline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  max-width: 15ch;
  text-wrap: balance;
}
.headline .hl { color: var(--butter); font-style: italic; }
.subhead {
  font-size: 1.08rem;
  color: var(--ink-dim);
  max-width: 34rem;
  margin: 0;
}
.subhead .brand { color: var(--butter); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hero > *:nth-child(2) { animation-delay: 0.12s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* montage — sprocketed film strip */
.montage { margin: 0 auto 3rem; max-width: 100%; width: max-content; }
.film {
  width: max-content; max-width: 100%;
  background: #0A0D0B; border: 1px solid var(--line); border-radius: 6px;
  overflow-x: auto;
}
.sprockets {
  height: 16px; width: 100%;
  background-image: repeating-linear-gradient(90deg,
    transparent 0 7px, var(--ground) 7px 17px, transparent 17px 24px);
  background-size: 24px 8px;
  background-position: 0 center;
  background-repeat: repeat-x;
}
.film .track { padding: 4px 8px; }
.film video { height: 220px; max-width: 100%; width: auto; display: block; border-radius: 2px; }
.film .label {
  display: block; text-align: right; padding: 0 .8rem .45rem 0;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim);
}
@media (max-width: 560px) { .film video { height: 160px; } }

/* feature cards — each one turns over to show what it does */
#cards { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 560px) { #cards { grid-template-columns: 1fr 1fr; } }

/* the button is only the hinge: perspective + focus ring, no surface of its own */
.fcard {
  display: block;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  perspective: 1100px;
}
.fcard:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; }

.flip {
  display: block;
  position: relative;
  height: 100%;
  min-height: 15.5rem;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.fcard.flipped .flip { transform: rotateY(180deg); }

/* both faces carry the panel surface, so the card looks the same either way */
.face {
  display: block;
  position: relative;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.face.back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--panel-up);
  border-left-color: var(--butter);
}

.fcard .still {
  display: block; width: 100%; height: 120px; object-fit: cover;
  border-bottom: 1px solid var(--line); filter: saturate(0.92);
}
.fcard .body { display: block; padding: 0.85rem 1.05rem 2.4rem; }
/* the back has no still to fill the top, so its copy sits centred in the card */
.face.back .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.15rem 1.05rem 2.4rem;
}
/* repeats the title purely to re-orient the eye; the front already announces it */
.fcard .kicker {
  display: block;
  color: var(--butter);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.fcard strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: 0.3rem;
}
.fcard .blurb, .fcard .detail {
  display: block; color: var(--ink-dim); font-size: 0.95rem;
}
.fcard .detail { color: var(--ink); }

/* chevron — the invitation to turn the card over */
.chev {
  position: absolute;
  right: 0.85rem;
  bottom: 0.7rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--butter);
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.face.back .chev { transform: rotate(180deg); }

@media (hover: hover) {
  .fcard:hover .face { border-left-color: var(--butter); background: var(--panel-up); }
  .fcard:hover .chev { opacity: 1; transform: translateX(3px); }
  .fcard:hover .face.back .chev { transform: rotate(180deg) translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .flip, .chev { transition: none; }
}

/* email capture */
#email-section {
  margin-top: 2.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
}
#email-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
#email-form { display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 560px) {
  #email-form { flex-direction: row; flex-wrap: wrap; }
  #email-input { flex: 1 1 14rem; }
}
#email-form input {
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
#email-form input::placeholder { color: var(--ink-dim); }
#email-form input:focus-visible { outline: 2px solid var(--butter); outline-offset: 1px; }
#email-form input:disabled { opacity: 0.55; }
#email-form button {
  font: inherit;
  font-weight: 700;
  color: var(--ground);
  background: var(--butter);
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
#email-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
#email-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#email-form button:disabled { opacity: 0.55; cursor: default; transform: none; }

/* one tap, no typing — answered before the email is asked for */
#channel-chips {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
/* the question owns its own line so the chips read as one clean row */
#channel-label { flex: 1 0 100%; }
#channel-chips button {
  font: inherit;
  color: var(--butter);
  background: transparent;
  border: 1px solid var(--butter);
  border-radius: 999px;
  padding: 0.6rem 1rem;   /* keeps the tap target at/above the 44px HIG minimum */
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
#channel-chips button:hover { background: var(--panel-up); }
#channel-chips button:focus-visible { outline: 2px solid var(--butter); outline-offset: 2px; }
#channel-chips button.on {
  background: var(--butter);
  color: var(--ground);
  font-weight: 700;
}

#email-status { margin: 0.8rem 0 0; color: var(--butter); min-height: 1.2em; }

/* footer */
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
footer p { color: var(--ink-dim); font-size: 0.85rem; margin: 0; }
