.home-header,
.home {
  --home-accent: #b82512;
  --home-ticket: #f6e5cc;
  --home-ticket-ink: #2c1a12;
  --home-ticket-line: #a48165;
}

.dark .home-header,
.dark .home {
  --home-accent: #ef6b4c;
  --home-ticket: #f3d4a8;
  --home-ticket-line: #946340;
}

.home-header { border-color: var(--home-accent); }
.home-header .mark { font-size: clamp(32px, 4.4vw, 51px); }
.home-header .mark::after { width: 59%; left: 22%; }
.home-header nav { gap: clamp(14px, 2.3vw, 29px); }
.home-header .nav-link { font: 400 clamp(16px, 1.85vw, 24px)/1.25 Georgia, serif; color: var(--ink); }
.home-header .nav-link + .nav-link { border-left: 1px solid var(--home-accent); padding-left: clamp(14px, 2.3vw, 29px); }
.home-header .ico { border-color: transparent; }
.home-header .ico svg { width: 26px; height: 26px; }

.home { padding-top: 32px; }
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3.65vw, 48px);
}
.home-hall {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border-radius: 24px;
  background: var(--paper);
}
.home-intro h1,
.home-section h2 {
  margin: 0;
  font-size: clamp(36px, 5.1vw, 64px);
  font-weight: 700;
  letter-spacing: -.039em;
  line-height: .99;
}
.home-intro-copy > p {
  max-width: none;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--home-accent);
  font: italic clamp(17px, 1.72vw, 21px)/1.18 Georgia, serif;
}
.home-modes { display: grid; gap: 15px; margin-top: 23px; }
.home-mode {
  position: relative;
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr) 18%;
  align-items: center;
  width: 100%;
  min-height: clamp(66px, 7.15vw, 90px);
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--home-ticket);
  color: var(--home-ticket-ink);
  box-shadow: 0 3px 7px var(--shadow);
  text-align: left;
}
.home-mode:hover { box-shadow: 0 4px 12px var(--shadow), inset 0 0 0 1px var(--home-ticket-line); }
.home-mode-icon,
.home-mode-arrow { display: flex; align-items: center; justify-content: center; min-height: 100%; color: #a22514; }
.home-mode-icon { border-right: 1px solid #b82512; }
.home-mode-icon svg { width: clamp(25px, 3.15vw, 45px); height: auto; }
.home-mode-icon:has(svg + svg) svg { width: min(48%, 45px); }
.home-mode-arrow { border-left: 2px dotted var(--home-ticket-line); }
.home-mode-arrow svg { width: 28px; height: 28px; }
.home-mode-copy { display: grid; gap: 3px; padding: 0 clamp(10px, 1.8vw, 22px); }
.home-mode-copy strong { font: 700 clamp(26px, 3.45vw, 43px)/1.08 Georgia, serif; }
.home-mode-copy small { font: 16px/1.2 "Segoe UI", sans-serif; }
.home-code { margin-top: 14px; }
.home-code summary {
  display: inline list-item;
  width: fit-content;
  cursor: pointer;
  font: italic clamp(17px, 2.14vw, 25px)/1.2 Georgia, serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-code summary:hover { color: var(--home-accent); }
.home-code summary:focus-visible,
.home-collections:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.home-code form { margin-top: 10px; }

.home-section { margin-top: clamp(22px, 3vw, 38px); padding-top: clamp(13px, 1.7vw, 19px); border-top: 1px solid var(--home-accent); }
.home-section h2 { margin-bottom: .4em; }
.home-collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.1vw, 15px); }
.home-collection {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: 18px;
  background: var(--home-ticket);
  color: var(--home-ticket-ink);
  box-shadow: 0 2px 5px var(--shadow);
}
.home-collection img { display: block; width: 100%; aspect-ratio: 1.27; object-fit: cover; }
.home-collection-comedy img { object-position: center 47%; }
.home-collection-science-fiction img { object-position: center 72%; }
.home-collection-2000s img { object-position: center 40%; }
.home-collection-copy { display: flex; flex-direction: column; padding: 10px clamp(10px, 1.55vw, 20px) 11px; }
.home-collection h3 {
  flex: 1;
  padding-bottom: 7px;
  border-bottom: 1px solid #b82512;
  font-size: clamp(19px, 2.48vw, 32px);
  letter-spacing: -.035em;
}
.home-collection p { margin: 5px 0 3px; color: inherit; font: italic clamp(15px, 1.8vw, 21px)/1.22 Georgia, serif; }
.home-collection button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b2116;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 650;
  text-align: left;
}
.home-collection button:enabled:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-collection button:enabled::after { content: ""; position: absolute; inset: 0; }
.home-collection:has(button:focus-visible) { outline: 2px solid #8b2116; outline-offset: -3px; }
.home-collection button:focus-visible { outline: 0; }
.home-mode:focus-visible { outline: 2px solid #8b2116; outline-offset: -3px; }
.home-collection button:disabled { color: #604633; opacity: 1; }
.home-collection button:disabled svg { display: none; }

.home-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1.76fr);
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-steps > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(7px, 1.3vw, 15px);
  align-content: start;
  align-items: start;
}
.home-step-number {
  display: grid;
  place-items: center;
  width: clamp(28px, 3.5vw, 42px);
  aspect-ratio: 1;
  border: 1.5px solid var(--home-accent);
  border-radius: 50%;
  color: var(--home-accent);
  font: 700 clamp(18px, 2.4vw, 27px)/1 Georgia, serif;
}
.home-steps > li > svg { align-self: center; color: var(--home-accent); }
.home-step-copy h3 { font-size: clamp(18px, 2.35vw, 30px); letter-spacing: -.025em; }
.home-step-copy p { margin-top: 6px; font: italic clamp(15px, 1.65vw, 20px)/1.18 Georgia, serif; }
.home-match {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
  padding: 13px 12px;
  border-radius: 10px;
  background: var(--home-ticket);
  color: var(--home-ticket-ink);
  box-shadow: 0 2px 5px var(--shadow);
}
.dark .home-match { background: var(--paper); color: var(--ink); }
.home-match img { display: block; width: 100%; aspect-ratio: .92; object-fit: cover; object-position: center 40%; border-radius: 8px; }
.home-match-copy { padding-left: 10px; border-left: 1px solid var(--home-accent); }
.home-match-copy strong { font: 700 clamp(15px, 1.85vw, 23px)/1.1 Georgia, serif; }
.home-match-title { display: block; color: #922915; font: 700 italic clamp(28px, 4.2vw, 47px)/1 Georgia, serif; }
.dark .home-match-title { color: var(--ink); }
.home-match-copy p { margin-top: 7px; color: inherit; font: italic clamp(14px, 1.5vw, 19px)/1.18 Georgia, serif; }
.home-create {
  margin-top: 22px;
  min-height: 51px;
  padding: 10px clamp(28px, 5vw, 65px);
  border: 0;
  border-radius: 100px;
  background: #b82512;
  color: #fff4df;
  font: clamp(23px, 3.15vw, 38px)/1.15 Georgia, serif;
}
.home-create:hover { background: #9d1f10; }
.home-footer { margin-top: 28px; font-size: 14px; }
.home-footer a { color: var(--mut); }

@media (max-width: 800px) {
  .home-header { height: 57px; width: auto; margin: 0 16px; }
  .home-header nav { display: none; }
  .home-header .mob { display: flex; gap: 4px; }
  .home-header .ico { width: 40px; height: 40px; }
  .home-header + .mobile-nav { display: flex; flex-wrap: wrap; gap: 10px 17px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .home { width: auto; padding: 16px 16px 24px; }
  .home-intro { display: block; }
  .home-hall { display: none; }
  .home-intro h1 { max-width: 11ch; }
  .home-intro-copy > p { margin-top: 10px; padding-top: 7px; }
  .home-modes { gap: 9px; margin-top: 13px; }
  .home-mode { min-height: 56px; }
  .home-code { margin-top: 9px; }
  .home-collections {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 77%;
    overflow-x: auto;
    margin-inline: -3px;
    padding: 3px;
    gap: 10px;
    scroll-padding-inline: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .home-collection { border-radius: 15px; scroll-snap-align: start; }
  .home-collection img { aspect-ratio: 2.07; }
  .home-collection-comedy img { object-position: center 34%; }
  .home-collection-science-fiction img { object-position: center 67%; }
  .home-collection-copy { padding: 7px 12px 4px; }
  .home-section h2 { font-size: clamp(29px, 5.9vw, 48px); }
  .home-steps { grid-template-columns: 1fr; gap: 12px; }
  .home-steps > li { grid-template-columns: auto minmax(0, 1fr); }
  .home-steps > li > svg { display: none; }
  .home-step-number { margin-inline: 6px 7px; }
  .home-step-copy p { margin-top: 3px; }
  .home-match { grid-column: 1 / -1; padding: 10px 12px; }
  .home-match-copy { border-left-width: 1.5px; }
  .home-create { width: 100%; margin-top: 14px; }
}
