@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.2bf3d951bf9d.woff2") format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter,system-ui,sans-serif;
  color: #161616;
  background: #fff;
  font-synthesis: none;
  --muted: #686868;
  --line: #dedede;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,input {
  font: inherit;
}

button,a,input,summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button: disabled {
  cursor: not-allowed;
  opacity: .45;
}

a,button,input,summary {
  touch-action: manipulation;
}

a: focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
}

button[hidden],[hidden] {
  display: none!important;
}

.site-header {
  max-width: 1040px;
  margin: auto;
  min-height: 100px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1.2px;
}

.wordmark span {
  margin-left: 1px;
}

.header-note {
  font-size: 12px;
  color: var(--muted);
}

.text-button {
  border: 0;
  padding: 12px 0;
  background: none;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}

.page {
  max-width: 640px;
  margin: 38px auto 0;
  padding: 0 24px;
}

.intro {
  margin-bottom: 44px;
}

.eyebrow {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 15px;
  color: #555;
}

h1 {
  font-size: 38px;
  letter-spacing: -1.7px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.35px;
  margin: 0 0 25px;
}

h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

label,legend {
  font-size: 13px;
  font-weight: 500;
}

input: not([type=radio]):not([type=hidden]) {
  height: 52px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #fff;
  padding: 0 14px;
  color: #161616;
  font-size: 16px;
  width: 100%;
}

input: :placeholder {
  color: #858585;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

legend {
  margin-bottom: 10px;
}

.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.language-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 15px;
  cursor: pointer;
}

.language-choice:has(input:checked) {
  border-color: #161616;
  background: #f7f7f7;
}

.language-choice input {
  accent-color: #111;
  width: 17px;
  height: 17px;
  margin: 0;
}

.language-choice span {
  font-size: 14px;
}

.destination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  padding: 4px 0 8px;
}

.destination>span {
  color: var(--muted);
}

.destination strong {
  font-weight: 500;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #161616;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  line-height: 1.4;
}

.primary {
  background: #161616;
  color: #fff;
}

.primary:hover:not(:disabled) {
  background: #333;
}

.secondary {
  background: #fff;
  color: #161616;
}

.secondary:hover {
  background: #f5f5f5;
}

.hint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.stack>.hint {
  margin-top: -9px;
}

.library {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 27px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
}

.empty-state {
  padding: 22px 0 12px;
  max-width: 340px;
}

.empty-state>p:first-child {
  font-size: 14px;
  margin: 0 0 8px;
}

.recording-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ebebeb;
  text-decoration: none;
}

.recording-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recording-row p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0;
}

.status-label {
  font-size: 11px;
}

.recording-row>span {
  padding: 5px;
  font-size: 19px;
}

.site-footer {
  max-width: 640px;
  margin: 60px auto 0;
  padding: 0 24px 30px;
  color: #777;
  font-size: 11px;
}

.notice {
  border: 1px solid #aaa;
  border-left: 3px solid #111;
  border-radius: 2px;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.65;
  padding: 13px 15px;
  margin: 0 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}

.back-link:hover {
  text-decoration: underline;
}

.recording-heading {
  margin-bottom: 30px;
}

.recording-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
}

.recording-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
  margin-bottom: 22px;
  gap: 14px;
}

.recording-status time {
  font-variant-numeric: tabular-nums;
  color: #555;
}

.caption-surface {
  font-size: 23px;
  line-height: 1.65;
  letter-spacing: -.4px;
  height: clamp(220px,36dvh,380px);
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  padding-right: 8px;
  overscroll-behavior: contain;
}

.caption-surface p {
  margin: 0 0 20px;
}

#placeholder {
  padding-top: 24px;
}

#placeholder>p:first-child {
  font-size: 21px;
  color: #777;
  margin-bottom: 12px;
}

.caption-surface .hint {
  font-size: 13px;
  letter-spacing: 0;
}

.interim {
  color: #777;
}

.follow-button {
  display: block;
  margin-left: auto;
}

.recorder-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.recording-help {
  margin-top: 18px;
}

#save-state {
  padding-top: 18px;
  min-height: 39px;
}

.transcript-section {
  margin-top: 32px;
}

.transcript {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  margin-top: 24px;
}

.download-link {
  font-size: 12px;
  text-underline-offset: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.source-transcript {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 18px;
}

.source-transcript summary {
  font-size: 14px;
  cursor: pointer;
  padding: 12px 0;
  line-height: 1.5;
}

.processing-state {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.processing-state>p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
}

.processing-state .button {
  margin-top: 30px;
}

.processing-state .hint {
  font-size: 12px;
}

.processing-mark {
  font-size: 32px;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 5;
}

.skip-link:focus {
  top: 16px;
}

.login-form {
  max-width: 420px;
}

@media(max-width:600px) {
  .recorder-controls {
    position: sticky;
    bottom: 0;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: #fff;
  }
  .site-header {
    padding: 20px 24px;
    min-height: 78px;
  }
  .wordmark {
    font-size: 22px;
  }
  .header-note {
    font-size: 10px;
  }
  .page {
    margin-top: 25px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.3px;
  }
  .intro {
    margin-bottom: 34px;
  }
  .lead {
    font-size: 14px;
  }
  .library {
    margin-top: 42px;
  }
  .site-footer {
    margin-top: 45px;
    padding-bottom: max(24px,env(safe-area-inset-bottom));
  }
  .recording-heading h1 {
    font-size: 27px;
  }
  .back-link {
    margin-bottom: 18px;
  }
  .caption-surface {
    font-size: 22px;
  }
  .destination {
    font-size: 12px;
  }
  .section-heading {
    gap: 8px;
  }
  .recording-heading {
    margin-bottom: 24px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .button {
    transition: background .15s;
  }
}
