:root {
  color-scheme: light;
  --paper: #f5f6ee;
  --ink: #19261d;
  --muted: #4d5a4f;
  --green: #32614a;
  --line: #d6ddcf;
  --button: #d7f796;
  --nav: #19261d;
  --panel: #171e1a;
  --panel-line: #354138;
  --panel-text: #edf2e9;
  --panel-muted: #a7b6a9;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible { outline: 3px solid #337450; outline-offset: 5px; }
.wrap { width: min(100% - 6rem, 78rem); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  flex: none;
  border-radius: .42rem;
  background: var(--ink);
}
.brand-mark span {
  position: absolute;
  width: .75rem;
  height: .88rem;
  border: 2px solid var(--button);
  border-radius: .15rem;
  transform: skewX(-15deg);
}
.brand-mark span:first-child { left: .39rem; top: .45rem; }
.brand-mark span:last-child { left: .85rem; top: .68rem; background: var(--ink); }
nav { display: flex; gap: 1.75rem; align-items: center; }
.nav-link { color: var(--nav); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.nav-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.button {
  min-height: 2.75rem;
  padding: .65rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}
.button-outline { border-color: #acb8ab; }
.button-outline:hover { background: #e9eede; border-color: var(--ink); }
.button-primary { min-height: 3.25rem; padding-inline: 1.45rem; background: var(--button); font-size: 1rem; }
.button-primary:hover { background: #c7ec80; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 5.4vw, 5rem);
  align-items: center;
  padding-block: clamp(4.75rem, 8vw, 7.5rem);
}
.eyebrow {
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.hero h1 {
  margin-block: .85rem 1.2rem;
  font-size: clamp(2.95rem, 4.5vw, 4.55rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.052em;
}
.hero h1 span { color: var(--green); }
.hero-description { max-width: 32ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; }
.hero .button { margin-top: 1.65rem; }

.preview {
  min-width: 0;
  background: var(--panel);
  color: var(--panel-text);
  border: 1px solid #323f34;
  border-radius: .85rem;
  overflow: hidden;
  box-shadow: 0 22px 55px #263b2424, 0 2px 5px #19261d19;
}
.preview-header {
  min-height: 3.4rem;
  padding: .7rem 1.15rem;
  border-bottom: 1px solid var(--panel-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.workspace-name { display: flex; align-items: center; gap: .5rem; font-weight: 680; letter-spacing: -.02em; }
.nest-mark {
  width: .95rem;
  height: .95rem;
  border: 1.5px solid #a7c79d;
  border-left-width: 4px;
  border-radius: .25rem;
  transform: rotate(-8deg);
}
.preview-caption { color: var(--panel-muted); font-size: .875rem; }
.preview-body { padding: 1.1rem 1.1rem 0; }
.query {
  display: flex;
  gap: .7rem;
  align-items: center;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid var(--panel-line);
  border-radius: .45rem;
  background: #222d25;
  font-size: .9375rem;
}
.search-mark {
  position: relative;
  width: .68rem;
  height: .68rem;
  margin-right: .18rem;
  border: 1.5px solid #bac9ba;
  border-radius: 50%;
  flex: none;
}
.search-mark::after {
  position: absolute;
  right: -.29rem;
  bottom: -.14rem;
  width: .35rem;
  height: 1.5px;
  background: #bac9ba;
  transform: rotate(45deg);
  content: "";
}
.query-type { margin-left: auto; color: var(--panel-muted); font-size: .875rem; }
.results-label { margin-block: 1.25rem .65rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 650; }
.results-label span { color: var(--panel-muted); font-weight: 500; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.clip { min-width: 0; border: 1px solid var(--panel-line); border-radius: .4rem; overflow: hidden; }
.clip-image { position: relative; background: #465849; }
.clip-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; }
.timecode {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  padding: .12rem .28rem;
  background: #18241de8;
  color: #f4f8f1;
  border-radius: .18rem;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.clip-info { padding: .55rem .52rem .62rem; background: #202a23; }
.clip-info p { font-size: .875rem; font-weight: 650; line-height: 1.3; }
.clip-info > span { display: block; margin-top: .16rem; font-size: .8125rem; color: var(--panel-muted); }
.preview-footer { padding-block: .85rem; color: var(--panel-muted); font-size: .875rem; }

.workflow { border-block: 1px solid var(--line); background: #ebeee4; }
.workflow-inner { padding-block: clamp(2.5rem, 5vw, 4.1rem); }
.workflow h2 { margin-bottom: 1.5rem; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.055em; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 4vw, 3.5rem); }
.workflow-grid article { border-top: 1px solid #bfc9b8; padding-top: .95rem; }
.workflow-grid h3 { margin-bottom: .36rem; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.022em; }
.workflow-grid p { max-width: 34ch; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.25rem; font-size: .9375rem; }
.footer-brand { font-weight: 700; }
.footer-brand span { margin-left: .45rem; color: var(--muted); font-weight: 500; }
.site-footer a { text-decoration: none; font-weight: 650; }

@media (max-width: 60rem) {
  .wrap { width: min(100% - 3rem, 46rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; padding-block: 3.75rem; }
  .hero h1 { font-size: clamp(3.05rem, 7.7vw, 4.55rem); }
  .preview { width: 100%; }
}

@media (max-width: 35rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.2rem; }
  .hero { padding-block: 2.9rem 3.2rem; }
  .nav-link { display: none; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.3rem); }
  .preview-header { padding-inline: .75rem; }
  .preview-body { padding-inline: .65rem; }
  .clips { gap: .35rem; }
  .clip-info { padding-inline: .36rem; }
  .workflow-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
