/* ============================================================
   xhatesme.com — styles
   Edit colors in :root. Layout: left site+form, right shorts.
   ============================================================ */

:root {
  --paper: #f2efe8;
  --paper-dark: #e6e0d4;
  --ink: #0a0a0a;
  --red: #e21e26;
  --yellow: #f4eb49;
  --muted: #3a3a3a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* —— Top bar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-family: "Archivo Black", Anton, Impact, sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.top-link {
  color: var(--yellow);
  text-decoration: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--yellow);
  padding: 0.35rem 0.6rem;
}
.top-link:hover { background: var(--yellow); color: var(--ink); }

/* —— Split page (stacks on mobile: site then shorts) —— */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pane-site { max-width: 36rem; }

.display {
  margin: 0.5rem 0 0.6rem;
  font-family: Anton, "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display .red { color: var(--red); }

.display.domain-headline {
  text-transform: none;
  font-size: clamp(2.4rem, 9.5vw, 4.5rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.red-rule {
  width: min(100%, 14rem);
  height: 4px;
  background: var(--red);
  margin: 0.35rem 0 1.1rem;
  transform: rotate(-0.4deg);
}

.pitch {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.red-em { color: var(--red); font-weight: 800; }

.value-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.value-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.value-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* —— Waitlist form —— */
.intake {
  padding-top: 1.5rem;
  border-top: 4px solid var(--ink);
}
.intake-title {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.intake-lede {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-weight: 500;
}

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.lab {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.req { color: var(--red); }

input {
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.9rem;
  border: 2.5px solid var(--ink);
  background: #faf8f3;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  appearance: none;
}
input:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.form-note {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.nudge { margin: 0.25rem 0 0; }

.submit {
  margin-top: 0.15rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}
.submit-stamp {
  display: inline-block;
  font-family: "Archivo Black", Impact, sans-serif;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  padding: 1rem 1.35rem;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.submit:hover .submit-stamp,
.submit:focus-visible .submit-stamp {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.submit:disabled .submit-stamp { opacity: 0.6; cursor: wait; }

.refugees-line {
  font-family: Anton, "Archivo Black", Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0;
  text-transform: none;
}

.site-foot {
  margin: 0.5rem 0 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #666;
}

.form-msg {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
}
.form-msg.error { background: #fff; border-color: var(--red); color: var(--red); }
.form-msg.ok { background: var(--yellow); color: var(--ink); }

/* —— The shorts (right column) —— */
.pane-shorts {
  border-top: 4px solid var(--ink);
  padding-top: 1.5rem;
}
.shorts-title {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 2.6rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.shorts-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 28rem;
}

.shorts-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 22rem;
}

.short-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #faf8f3;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.short-card.is-link:hover,
.short-card.is-link:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.16);
  outline: none;
}
.short-card.is-soon {
  cursor: default;
  opacity: 0.92;
}

.short-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}
.short-play {
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  padding-left: 2px;
  box-shadow: 2px 2px 0 var(--ink);
}
.short-soon-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem;
  border: 1.5px solid var(--ink);
  text-transform: uppercase;
}

.short-meta { padding: 0.85rem 0.9rem 1rem; }
.short-meta .title {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}
.short-meta .hint {
  margin: 0.4rem 0 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

/* —— Desktop split —— */
@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 22rem);
    gap: 2.5rem 3rem;
    align-items: start;
    padding: 2rem 2rem 4rem;
  }
  .pane-site { max-width: none; }
  .pane-shorts {
    border-top: 0;
    border-left: 3px solid var(--ink);
    padding-top: 0;
    padding-left: 2rem;
    position: sticky;
    top: 4.25rem;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
  }
  .display.domain-headline {
    font-size: clamp(3rem, 4.8vw, 4.75rem);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  .shorts-col { max-width: none; }
}
