@font-face {
  font-family: Silkscreen;
  src: url("./assets/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Devanagari";
  src: url("./assets/NotoSerifDevanagari.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #e7edf0;
  --ink: #10151f;
  --muted: #454f59;
  --rule: #a5afb6;
  --white: #f4f7f8;
  --error: #932b30;
  font-family: "Cascadia Mono", "Courier New", monospace;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:disabled:hover {
  transform: none;
}
button,
select,
input,
textarea {
  border-radius: 0;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
textarea {
  caret-color: var(--ink);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand svg {
  width: 24px;
  height: 24px;
  stroke: none;
}
.workspace-brand {
  font-size: 12px;
}
.site-header nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
}
.site-header nav a:hover,
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  min-height: calc(100svh - 78px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  padding: 57px 18px 78px;
  position: relative;
  z-index: 2;
  width: 55%;
  min-height: calc(100svh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.hero h1 {
  font:
    700 clamp(58px, 6.5vw, 88px)/0.92 Silkscreen,
    monospace;
  letter-spacing: -0.035em;
  margin: 0;
}
.devanagari {
  font-family: "Noto Serif Devanagari", "Nirmala UI", serif;
  font-weight: 600;
  line-height: 1.28;
  font-size: 1.05em;
  letter-spacing: 0;
}
.hero-bottom {
  padding-top: 16px;
}
.hero-description {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 47ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}
.button {
  min-height: 38px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
}
.button.primary:hover:not(:disabled) {
  background: #303b49;
}
.button.secondary:hover:not(:disabled),
.copy-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}
.button svg {
  width: 16px;
  height: 16px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: var(--ink);
}
.text-link span {
  font-size: 20px;
  line-height: 1;
}
.hero-facts {
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 27px 0 0;
}
.hero-facts span {
  font-size: 12px;
}
.hero-art {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 49%;
}
.hero-art video {
  position: absolute;
  width: 100%;
  height: auto;
  right: 0;
  top: 128px;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.speech-bubble {
  position: absolute;
  z-index: 1;
  right: 20%;
  top: 33px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 13px 17px;
  font-size: 13px;
  line-height: 1.4;
  min-width: 226px;
  box-shadow:
    3px 3px 0 var(--paper),
    4px 4px 0 var(--ink);
}
.speech-bubble:after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -13px;
  width: 13px;
  height: 13px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  transform: skewY(-40deg);
}
.cursor {
  animation: blink 1.2s steps(1) infinite;
}
.motion-toggle {
  position: absolute;
  bottom: 13px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  width: 31px;
  height: 31px;
  box-shadow: 2px 2px 0 var(--ink);
}
.motion-toggle svg {
  width: 16px;
  height: 16px;
}
.workspace {
  max-width: 1440px;
  margin: auto;
  padding: 12px 38px 44px;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  padding: 12px 0 36px;
}
.session-label {
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
}
.capture-panel h1 {
  font:
    700 43px/0.98 Silkscreen,
    monospace;
  letter-spacing: -0.03em;
  margin: 0 0 25px;
}
.capture-panel > p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 29px;
}
.capture-panel > label:not(.upload-button) {
  font-size: 12px;
  display: block;
  margin-bottom: 10px;
}
.capture-panel select {
  appearance: auto;
  width: 100%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 12px 10px;
  font-size: 12px;
  min-height: 42px;
}
.record-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.record-button {
  flex: 1;
  min-height: 48px;
}
.record-button svg {
  width: 20px;
  height: 20px;
}
.record-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  min-height: 20px;
}
.record-meta output {
  font-variant-numeric: tabular-nums;
}
.capture-divider {
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  border: 1px dashed var(--rule);
  padding: 14px 12px;
  margin: 13px 0;
  cursor: pointer;
  position: relative;
}
.upload-button:hover {
  border-color: var(--ink);
}
.upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-button:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.capture-panel > .limits {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}
.capture-panel audio {
  width: 100%;
  height: 36px;
}
.transcript-panel {
  border: 1px solid var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 510px;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.editor-header > label {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.editor-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}
.copy-button {
  min-height: 33px;
  padding: 7px 11px;
  font-size: 12px;
}
.quiet-button {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  border: 0;
  padding: 10px 0;
}
.quiet-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.editor-body {
  position: relative;
  flex: 1;
  display: flex;
}
.editor-body textarea {
  position: relative;
  z-index: 1;
  display: block;
  resize: vertical;
  min-height: 360px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Cascadia Mono", "Nirmala UI", "Courier New", monospace;
  font-size: 17px;
  line-height: 1.8;
  padding: 32px;
  white-space: pre-wrap;
}
.editor-body textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}
.editor-body textarea::placeholder {
  color: #59616a;
  opacity: 1;
  font-size: 14px;
}
.editor-body #empty-mark {
  position: absolute;
  bottom: 15px;
  right: 28px;
  font-family: Georgia, serif;
  font-size: 130px;
  line-height: 1;
  color: #cbd5dc;
  user-select: none;
}
.editor-footer {
  border-top: 1px solid var(--rule);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.status-line {
  font-size: 12px;
  line-height: 1.7;
  margin: 25px 0 0;
  max-width: 95ch;
  min-height: 36px;
}
.status-line[data-tone="error"] {
  color: var(--error);
}
.status-line[data-tone="busy"]:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  margin-right: 9px;
  animation: blink 1s steps(1) infinite;
}
.session-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  min-height: 30px;
}
.info-page {
  max-width: 850px;
  padding: 45px 38px 100px;
  margin: auto;
}
.info-page h1 {
  font:
    700 clamp(32px, 5vw, 55px)/1.1 Silkscreen,
    monospace;
  letter-spacing: -0.03em;
  margin: 55px 0 36px;
}
.info-page p,
.info-page li {
  font-size: 14px;
  line-height: 1.8;
  max-width: 68ch;
}
.info-page li {
  margin: 16px 0;
}
.info-page .button {
  margin-top: 25px;
}
.info-page a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.noscript {
  padding: 20px;
}
.is-recording .record-button {
  background: #8f262d;
}
.is-recording #record-state {
  color: #8f262d;
}
.is-recording #timer {
  color: #8f262d;
}
.is-recording .record-meta:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #8f262d;
  animation: blink 1s steps(1) infinite;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--rule);
  border: 2px solid var(--paper);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (min-width: 1600px) {
  .hero-copy {
    padding-top: 80px;
    padding-bottom: 120px;
  }
  .hero-art video {
    top: 110px;
  }
  .hero-art {
    width: 48%;
  }
  .speech-bubble {
    top: 50px;
    right: 25%;
  }
}
@media (max-width: 1000px) {
  .hero-copy {
    width: 60%;
    padding-top: 75px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .hero-art {
    width: 48%;
    top: 80px;
  }
  .hero-art video {
    top: 140px;
    width: 120%;
    right: -20%;
  }
  .speech-bubble {
    right: 10%;
    font-size: 12px;
    min-width: 190px;
  }
  .workspace {
    padding: 12px 24px 35px;
  }
  .workspace-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
  }
  .capture-panel h1 {
    font-size: 37px;
  }
  .editor-body textarea {
    padding: 24px;
    font-size: 16px;
  }
  .site-header nav {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
    align-items: center;
  }
  .site-header nav {
    gap: 17px;
    font-size: 12px;
  }
  .site-header nav a:nth-child(2) {
    display: none;
  }
  .hero {
    min-height: calc(100svh - 72px);
    padding-bottom: 20px;
  }
  .hero-copy {
    min-height: 0;
    width: 100%;
    padding: 33px 22px 0;
    gap: 0;
  }
  .hero h1 {
    font-size: clamp(48px, 12vw, 78px);
    line-height: 0.95;
  }
  .hero-bottom {
    padding-top: 35px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 48ch;
  }
  .hero-actions {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-facts {
    font-size: 12px;
    gap: 9px;
    margin-top: 18px;
  }
  .hero-art {
    position: relative;
    width: 100%;
    height: 280px;
    top: auto;
    bottom: auto;
    margin-top: 22px;
  }
  .hero-art video {
    height: 300px;
    width: 450px;
    right: -35px;
    top: 0;
    object-fit: contain;
  }
  .speech-bubble {
    left: 23px;
    right: auto;
    top: 20px;
    font-size: 12px;
    padding: 10px 12px;
    min-width: 160px;
  }
  .motion-toggle {
    bottom: 12px;
  }
  .workspace {
    padding: 5px 19px 32px;
  }
  .workspace-top {
    padding: 10px 0 27px;
  }
  .session-label {
    display: none;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .capture-panel h1 {
    font-size: 36px;
    line-height: 1;
    max-width: 100%;
    margin-bottom: 19px;
  }
  .capture-panel > p {
    font-size: 12px;
    margin-bottom: 22px;
  }
  .record-controls {
    margin-top: 17px;
  }
  .capture-divider {
    margin-top: 23px;
  }
  .capture-panel > .limits {
    margin: 0;
  }
  .transcript-panel {
    min-height: 420px;
  }
  .editor-header {
    padding: 13px 16px;
  }
  .editor-body textarea {
    min-height: 300px;
    padding: 22px;
    font-size: 16px;
  }
  .editor-body textarea::placeholder {
    font-size: 12px;
  }
  .editor-footer {
    font-size: 12px;
    padding: 13px 15px;
    line-height: 1.6;
  }
  .editor-header > label {
    font-size: 12px;
  }
  .editor-tools {
    gap: 14px;
  }
  .status-line {
    margin-top: 18px;
    font-size: 12px;
  }
  .session-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .info-page {
    padding: 26px 22px 70px;
  }
  .info-page h1 {
    margin-top: 40px;
  }
  .info-page p,
  .info-page li {
    font-size: 12px;
  }
  .workspace-brand {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
