/* ===========================================================
   Secondhand Movie Co. — everything looks cut from cardboard,
   taped to the wall, and written on with a marker.
   Accessibility: WCAG 2.1 AA contrast, visible focus, reduced motion
   =========================================================== */

:root {
  /* the wall: big corrugated cardboard */
  --board:      #C89F63;
  --board-dark: #B58B4F;
  /* sheets: lighter cardboard scraps taped on top */
  --sheet:      #E4C990;
  --paper:      #F7EFDD;
  /* marker ink */
  --ink:        #33281A;   /* ~7.5:1 on --board, ~10:1 on --sheet */
  --ink-soft:   #4E3D26;
  --orange:     #A63A16;   /* marker accent, AA on board & sheet */
  --tape-c:     #EFE3C0;
  --edge:       #7A5B33;

  --corrugation: repeating-linear-gradient(90deg, rgba(122, 91, 51, .14) 0 2px, transparent 2px 11px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");

  /* wobbly hand-cut corners */
  --wobble:   255px 18px 230px 12px / 14px 230px 16px 255px;
  --wobble-2: 18px 245px 16px 235px / 240px 14px 250px 18px;

  --maxw: 1040px;

  --font-display: 'Luckiest Guy', 'Arial Black', system-ui, sans-serif;
  --font-marker:  'Permanent Marker', 'Comic Sans MS', cursive;
  --font-sans:    'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background-color: var(--board);
  background-image: var(--noise), var(--corrugation);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------- shared handmade bits --------- */
.marker { font-family: var(--font-marker); font-weight: 400; }

.taped { position: relative; }

.tape {
  position: absolute;
  width: 110px; height: 30px;
  background: var(--tape-c);
  opacity: .85;
  box-shadow: 0 2px 3px rgba(51, 40, 26, .18);
  z-index: 2;
  pointer-events: none;
}
.tape-t  { top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.tape-tl { top: -12px; left: -28px; transform: rotate(-38deg); }
.tape-br { bottom: -12px; right: -28px; transform: rotate(-38deg); }

/* a lighter cardboard scrap, hand-cut edges, taped to the wall */
.sheet {
  background-color: var(--sheet);
  background-image: var(--noise);
  border: 3px solid var(--edge);
  border-radius: var(--wobble);
  padding: 34px 34px 38px;
  box-shadow: 5px 6px 0 rgba(81, 59, 30, .35);
  transform: rotate(-.4deg);
}
.sheet-wide { padding: 30px clamp(16px, 4vw, 44px) 40px; text-align: center; }

.eyebrow {
  font-family: var(--font-marker);
  color: var(--orange);
  font-size: 1.3rem;
  margin: 0 0 2px;
  transform: rotate(-1.5deg);
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 1px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.1;
}
.section-title.center { text-align: center; }

.section-sub { margin: 0 auto 22px; max-width: 560px; color: var(--ink-soft); }
.sheet-wide .section-sub { margin-bottom: 24px; }

/* --------- buttons: cardboard cut-outs & tape --------- */
.btn {
  display: inline-block;
  font-family: var(--font-marker);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 12px 22px;
  cursor: pointer;
  border-radius: var(--wobble-2);
  transition: transform .12s ease;
  transform: rotate(-.6deg);
}
.btn:hover { transform: rotate(.5deg) scale(1.03); }
.btn:active { transform: scale(.98); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(81, 59, 30, .4);
}
.btn-ink:hover { background: #221A10; }

.btn-tape {
  background: var(--tape-c);
  color: var(--ink);
  border: 3px dashed var(--edge);
  box-shadow: 3px 4px 0 rgba(81, 59, 30, .3);
}
.btn-tape:hover { background: #F7EDD0; }

.scribble-link {
  font-family: var(--font-marker);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: underline wavy var(--orange) 2px;
  text-underline-offset: 6px;
}
.scribble-link:hover { color: var(--orange); }

/* --------- header --------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(200, 159, 99, .96);
  border-bottom: 3px dashed var(--edge);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-avatar {
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  border: 2px solid var(--ink);
  transform: rotate(-3deg);
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
}
.nav-links a:hover { text-decoration: underline wavy var(--orange) 2px; text-underline-offset: 6px; }
.nav-links .nav-cta {
  font-family: var(--font-marker);
  background: var(--ink); color: var(--paper);
  padding: 8px 16px;
  border-radius: var(--wobble-2);
  transform: rotate(-1deg);
}
.nav-links .nav-cta:hover { text-decoration: none; background: #221A10; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--ink);
  border-radius: 8px 10px 9px 11px;
  padding: 8px 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 3px;
  background: var(--ink); margin: 4px 0; border-radius: 2px;
}
.nav-toggle span:nth-child(2) { transform: rotate(-2deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sheet);
    border-bottom: 3px dashed var(--edge);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 1.1rem; }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; }
}

/* --------- hero --------- */
.hero { padding: 60px 0 30px; text-align: center; }
.hero .taped { display: inline-block; max-width: min(820px, 100%); }
.hero-sign {
  display: block;
  border: 3px solid var(--edge);
  border-radius: 14px 10px 16px 8px;
  box-shadow: 5px 7px 0 rgba(81, 59, 30, .35);
  transform: rotate(-.8deg);
}
.tagline {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink);
  margin: 30px 0 4px;
  transform: rotate(-1.2deg);
}
.subline { max-width: 520px; margin: 0 auto 28px; color: var(--ink-soft); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* --------- video embeds --------- */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 3px solid var(--edge);
  border-radius: 10px 14px 8px 12px;
  overflow: hidden;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(rgba(51, 40, 26, 0) 55%, rgba(51, 40, 26, .5));
  border: 0; cursor: pointer;
}
.yt-play::before {
  content: "";
  position: absolute;
  width: 78px; height: 78px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 46% 54% 52% 48% / 52% 48% 54% 46%;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  transform: rotate(-4deg);
}
.yt-play:hover::before { background: var(--tape-c); transform: rotate(2deg) scale(1.05); }
.yt-play .tri {
  position: relative;
  width: 0; height: 0;
  border-left: 26px solid var(--ink);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 8px;
}
.yt-play:focus-visible { outline-offset: -5px; }

.price-tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--tape-c);
  color: var(--ink);
  padding: 5px 13px;
  font-size: 1.05rem;
  transform: rotate(3deg);
  border-radius: 3px 6px 4px 7px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.price-tag.small { font-size: .9rem; padding: 3px 10px; }
.price-tag.corner { top: -16px; right: -20px; transform: rotate(7deg); font-size: 1.15rem; }

/* --------- now showing --------- */
.now-showing { padding: 40px 0 30px; }
.now-showing .eyebrow { font-size: 1.5rem; }

/* --------- coming soon: Jurassic Bark --------- */
.coming-soon { padding: 56px 0 26px; }
.cs-inner {
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: clamp(24px, 5vw, 60px); align-items: center;
}

.poster { max-width: 320px; justify-self: center; transform: rotate(2deg); }
.poster-board {
  background-color: var(--sheet);
  background-image: var(--noise);
  border: 3px solid var(--edge);
  border-radius: var(--wobble-2);
  box-shadow: 6px 7px 0 rgba(81, 59, 30, .35);
  padding: 26px 22px;
  text-align: center;
}
.poster-small { margin: 0; color: var(--orange); font-size: 1rem; transform: rotate(-1deg); }
.poster-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: .95;
  color: var(--ink);
  margin: 12px 0 4px;
  text-shadow: 3px 3px 0 rgba(122, 91, 51, .45);
  transform: rotate(-1.5deg);
}
.poster-dog { font-size: 4rem; margin: 6px 0; }

.cs-copy p { max-width: 480px; }
.perk-list { list-style: none; margin: 16px 0 24px; padding: 0; }
.perk-list li {
  padding: 6px 0 6px 34px;
  position: relative;
  font-weight: 500;
}
.perk-list li::before {
  content: "✔";
  position: absolute; left: 4px;
  font-family: var(--font-marker);
  color: var(--orange);
  transform: rotate(-6deg);
}
.cs-btns { margin: 0; }

@media (max-width: 820px) {
  .cs-inner { grid-template-columns: 1fr; }
  .poster { margin-bottom: 8px; }
}

/* --------- movies grid --------- */
.movies { padding: 56px 0 30px; }
.movies .section-title { margin-bottom: 26px; }

.film-grid {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 34px 26px;
}
.film-card {
  background-color: var(--sheet);
  background-image: var(--noise);
  border: 3px solid var(--edge);
  border-radius: 14px 10px 12px 16px;
  padding: 12px 12px 6px;
  box-shadow: 4px 5px 0 rgba(81, 59, 30, .3);
}
.film-card:nth-child(odd)  { transform: rotate(-.7deg); }
.film-card:nth-child(even) { transform: rotate(.7deg); }
.film-card h3 {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 10px 4px 8px;
  line-height: 1.3;
}

.more-row { text-align: center; margin: 34px 0 0; }

/* --------- shop & contact sheets --------- */
.shop { padding: 56px 0 26px; }
.contact { padding: 46px 0 70px; }

.shop-row {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
}
.shop-row .marker { color: var(--ink-soft); font-size: 1.15rem; }
.shop-row li::before { content: "✂ "; color: var(--orange); }

.newsletter { max-width: 520px; }
.newsletter label { display: block; font-weight: 600; margin-bottom: 8px; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; }

input[type="text"], input[type="email"], select, textarea {
  padding: 11px 13px;
  border: 3px solid var(--ink);
  border-radius: 8px 12px 9px 11px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.newsletter input[type="email"] { flex: 1; min-width: 220px; }

.contact-form { max-width: 640px; margin-top: 6px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { resize: vertical; }

/* --------- footer --------- */
.site-footer {
  border-top: 3px dashed var(--edge);
  padding: 26px 0 34px;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.foot-brand { margin: 0; font-size: 1.05rem; color: var(--ink-soft); transform: rotate(-.5deg); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a {
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-footer a:hover { text-decoration: underline wavy var(--orange) 2px; text-underline-offset: 6px; }

/* --------- static pages (thanks / accessibility) --------- */
.page {
  max-width: 680px; margin: 60px auto 80px; padding: 34px;
  background-color: var(--sheet);
  background-image: var(--noise);
  border: 3px solid var(--edge);
  border-radius: var(--wobble);
  box-shadow: 5px 6px 0 rgba(81, 59, 30, .35);
}
.page h1 { font-family: var(--font-display); color: var(--ink); font-size: 2rem; }
.page h2 { font-family: var(--font-marker); color: var(--ink); font-size: 1.3rem; }
.page a { color: var(--orange); font-weight: 600; }
