:root {
  --ink: #0f2019;
  --forest: #14291f;
  --lime: #dcf763;
  --cream: #f7f4ec;
  --sage: #dfe7d6;
  --text: #16291f;
  --muted: #56685b;
  --line: #d8d5c8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 500 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--forest); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 800 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* header */
.top {
  background: var(--ink);
  color: #fff;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font: 800 20px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}
.logo b { color: var(--lime); font-weight: 800; }
.top nav { display: flex; gap: clamp(16px, 4vw, 40px); font-size: 14px; font-weight: 700; }
.top nav a { text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; }
.top nav a.accent { color: var(--lime); opacity: 1; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font: 800 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e8ff7a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c3a2c; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #fbfaf5; }

/* hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 32, 25, 0.82) 0%, rgba(15, 32, 25, 0.35) 45%, rgba(15, 32, 25, 0) 70%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(76vh, 640px);
  padding-block: 72px;
}
.hero .eyebrow { color: var(--lime); }
.hero h1 {
  margin: 20px 0 18px;
  font: 400 clamp(3.4rem, 9.5vw, 7rem)/0.95 var(--serif);
  letter-spacing: -0.01em;
}
.hero h1 em { display: block; color: var(--lime); }
.hero p { margin-bottom: 28px; font-size: clamp(16px, 1.6vw, 19px); opacity: 0.92; }

/* find */
.find { background: var(--sage); }
.find .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px 48px;
  align-items: center;
  padding-block: 36px;
}
.find h2, .section h2 { font: 400 clamp(2rem, 4vw, 2.75rem)/1.05 var(--serif); }
.find p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.find form { display: flex; gap: 10px; }
.find input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 700 16px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.find input::placeholder { font-weight: 500; letter-spacing: 0; text-transform: none; color: #8b968d; }
.find .btn { height: 52px; white-space: nowrap; }
.find .hint { grid-column: 2; margin-top: -14px; font-size: 13px; }
.find .hint a { font-weight: 800; }

/* sections */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  list-style: none;
  padding: 24px 28px 4px 0;
}
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps { margin: 0; padding: 0; }
.steps .n { font: 400 2.5rem/1 var(--serif); color: #7d9a3c; }
.steps h3 { margin: 12px 0 6px; font: 800 18px/1.3 var(--sans); }
.steps p { color: var(--muted); font-size: 15px; }

/* feed */
.feed-band { background: #fff; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: 700 13px/1 var(--sans);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { text-decoration: none; }
.card[hidden] { display: none; }
.card figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s ease; }
.card:hover img { transform: scale(1.04); }
.card figure::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 32, 25, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dcf763' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.card h3 { margin-top: 12px; font: 800 16px/1.3 var(--sans); }
.card p { font-size: 13px; color: var(--muted); }

/* footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}
.foot strong { color: #fff; letter-spacing: 0.08em; }

/* clip page */
.clip { max-width: 520px; margin: 0 auto; padding: 28px 16px 56px; }
.clip .eyebrow { color: var(--muted); }
.clip h1 { margin: 10px 0 6px; font: 400 clamp(2.6rem, 11vw, 3.4rem)/1 var(--serif); }
.clip .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 15px; }
.code {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--sage);
  color: var(--text);
  font: 800 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
}
.player { margin: 20px 0 10px; border-radius: 16px; overflow: hidden; background: var(--ink); }
.player video { width: 100%; max-height: 82vh; object-fit: contain; cursor: pointer; }
.op { display: grid; gap: 10px; margin-top: 22px; }
.op label { margin-top: 8px; font: 800 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.op .row { display: flex; gap: 10px; }
.op input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 700 16px/1.2 var(--sans);
}
.op #code { letter-spacing: 0.12em; text-transform: uppercase; }
.op .btn-lime { min-height: 54px; margin-top: 12px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: wait; }
progress { width: 100%; height: 8px; margin-top: 16px; accent-color: var(--forest); }
.handoff { text-align: center; }
.handoff .bigcode { margin: 14px 0 12px; font: 800 clamp(2rem, 11vw, 2.75rem)/1 var(--sans); letter-spacing: 0.14em; }
.handoff img { margin: 0 auto 12px; border-radius: 8px; }
.handoff .actions { margin-top: 14px; }
.clip .note { font-size: 13px; color: var(--muted); }
/* a clip still being finished, or one we could not load: nothing to play, save or share yet */
.pending .player, .pending .note, .pending .actions, .pending .panel { display: none; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.actions .btn-lime { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
.status { min-height: 20px; margin-top: 10px; font-size: 13px; font-weight: 700; color: #3f6212; }
.panel { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.panel h2 { font: 800 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.panel .caption { margin: 10px 0 12px; font-size: 15px; }
.panel label { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.panel label input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); }
.panel label small { display: block; font-weight: 500; color: var(--muted); }
.sponsor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.sponsor summary::-webkit-details-marker { display: none; }
.sponsor strong { display: block; font-size: 17px; }
.sponsor small { color: var(--muted); }
.sponsor summary span:last-child { font-weight: 800; font-size: 14px; text-decoration: underline; white-space: nowrap; }
.sponsor p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.privacy { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .top nav a:not(.accent) { display: none; }
  .hero img { object-position: 82% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(15, 32, 25, 0.25) 0%, rgba(15, 32, 25, 0.55) 45%, rgba(15, 32, 25, 0.92) 100%); }
  .hero .wrap { justify-content: flex-end; min-height: min(78vh, 620px); padding-block: 40px; }
  .find .wrap { grid-template-columns: 1fr; }
  .find .hint { grid-column: 1; margin-top: -12px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 420px) {
  .find form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img, .btn { transition: none; }
}
