:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #222321;
  --muted: #696b65;
  --line: #d9dad5;
  --coral: #c33b1e;
  --soft: #f0f0ed;
  --gutter: clamp(1.25rem, 4.4vw, 5rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
button, input, output { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex-shrink: 0; }
button, a, input, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--coral); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; padding: 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.page-frame { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.site-header { max-width: 1536px; min-height: 104px; margin-inline: auto; padding: 1.75rem var(--gutter); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.1rem; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { border: 1.5px solid currentColor; padding: .6rem .35rem; font-size: 1rem; letter-spacing: -.11em; }
.back-link { display: inline-flex; align-items: center; gap: .7rem; font-size: .875rem; }
.back-link span { color: var(--coral); font-size: 1.3rem; }
.back-link:hover, .site-footer a:hover { color: var(--coral); }
.intro { padding-block: clamp(3rem, 6vw, 5.5rem) 2.75rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 2rem; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.breadcrumbs a:hover { color: var(--coral); }
.kicker { display: flex; align-items: center; gap: .6rem; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .6875rem; letter-spacing: .1em; line-height: 1.5; }
.kicker > span { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; }
.intro-grid { margin-top: 1.45rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
h1 { font-size: clamp(2.8rem, 7.2vw, 6.5rem); line-height: 1.04; font-weight: 550; letter-spacing: -.075em; white-space: nowrap; }
.title-arrow { color: var(--coral); font-weight: 400; }
.title-period { color: var(--coral); }
.lead { flex-shrink: 0; padding-bottom: .4rem; color: var(--muted); font-size: 1rem; line-height: 1.65; letter-spacing: -.015em; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 345px; padding: 2.75rem 1.5rem 2.25rem; border: 1px dashed #adb0a6; background: #fff; text-align: center; transition: background 160ms ease, border-color 160ms ease; }
.drop-zone::before, .drop-zone::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--coral); border-style: solid; pointer-events: none; }
.drop-zone::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.drop-zone::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.drop-zone.dragging, .drop-zone.is-dragging, .drop-zone.drag-over, .drop-zone.is-dragover, .drop-zone[data-dragging="true"] { background: #fcf0eb; border-color: var(--coral); }
.drop-zone:focus-within { border-color: var(--coral); }
.file-symbol { position: relative; width: 48px; height: 56px; color: var(--muted); margin-bottom: 1.25rem; }
.file-symbol svg { width: 48px; height: 56px; }
.file-symbol span { position: absolute; top: 23px; left: -10px; padding: .28rem .38rem; color: #fff; background: var(--coral); font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; line-height: 1; letter-spacing: .04em; }
.drop-zone h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.drop-description { margin-top: .6rem; color: var(--muted); font-size: .9375rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.75rem; min-height: 46px; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 0; font-size: .875rem; line-height: 1.3; font-weight: 550; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.button span { font-size: 1.125rem; font-weight: 400; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover:not(:disabled) { background: #45463f; }
.button-primary { min-width: 212px; color: #fff; background: var(--coral); }
.button-primary:hover:not(:disabled) { background: #a93016; }
.button-quiet { color: var(--muted); background: transparent; border-color: var(--line); }
.button-quiet:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.button:disabled { color: #777970; background: #e7e8e2; border-color: transparent; }
#choose-files { margin-top: 1.4rem; }
.drop-limits { margin-top: 1.35rem; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.converter-controls { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.quality-control { width: min(100%, 340px); }
.quality-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; font-size: .875rem; }
.quality-label label { font-weight: 550; }
.quality-label output { font-family: "SFMono-Regular", Consolas, monospace; color: var(--coral); font-size: .8125rem; }
#quality { display: block; width: 100%; height: 20px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.control-note { margin-top: .5rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.conversion-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .75rem; }
.converter-baseline { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-top: 1.1rem; color: var(--muted); }
.privacy-note { display: flex; align-items: center; gap: .55rem; font-size: .75rem; line-height: 1.5; }
.privacy-note svg { width: 15px; height: 17px; }
.format-note { font-family: "SFMono-Regular", Consolas, monospace; font-size: .625rem; letter-spacing: .04em; white-space: nowrap; }
.status { min-height: 1.5em; margin-top: 1.1rem; color: var(--muted); font-size: .8125rem; line-height: 1.65; overflow-wrap: anywhere; }
.status:empty { display: none; }
.error-text, .status.error { color: #a12d1b; }
.error-text { margin-top: .45rem; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.results-section { padding-top: 2.5rem; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.results-heading h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -.045em; }
.file-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.file-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.file-icon, .file-preview { display: flex; align-items: center; justify-content: center; flex: 0 0 54px; width: 54px; height: 60px; background: var(--soft); color: var(--muted); object-fit: contain; font-family: "SFMono-Regular", Consolas, monospace; font-size: .625rem; letter-spacing: -.015em; }
.file-icon svg { max-width: 28px; max-height: 36px; }
.file-info { min-width: 0; flex: 1 1 auto; }
.file-name { display: block; color: var(--ink); font-size: .9375rem; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.file-meta { margin-top: .2rem; font-size: .75rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.file-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.file-info .file-status { margin-top: .25rem; }
.file-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin-left: auto; }
.download-link, .remove-file { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid var(--line); padding: .6rem .85rem; color: var(--ink); background: transparent; font-size: .75rem; font-weight: 500; line-height: 1.4; }
.download-link { color: var(--coral); border-color: #e5bcb1; }
.download-link:hover { color: #fff; background: var(--coral); border-color: var(--coral); }
.remove-file { color: var(--muted); }
.remove-file:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.remove-file:disabled { opacity: .45; }
.file-card[data-state="done"] .file-status { color: #397041; }
.file-card[data-state="working"] .file-status { color: var(--coral); }
.file-card[data-state="working"] .file-status::before { content: ""; width: 10px; height: 10px; border: 1px solid #edc5bb; border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
.file-card[data-state="error"] .file-status { color: #a12d1b; }
.results-note { margin-top: 1rem; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.how-it-works { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-top: 4rem; padding-block: 2.75rem 3.5rem; }
.section-heading h2 { margin-top: 1rem; font-size: clamp(1.7rem, 2.5vw, 2.25rem); line-height: 1.16; font-weight: 500; letter-spacing: -.05em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 1rem; }
.step-number { font-family: "SFMono-Regular", Consolas, monospace; color: var(--coral); font-size: .6875rem; }
.steps h3 { margin-top: 1.65rem; font-size: .9375rem; font-weight: 600; letter-spacing: -.025em; }
.steps p { margin-top: .6rem; color: var(--muted); font-size: .8125rem; line-height: 1.75; }
.details-section { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-block: 2.5rem 4.5rem; }
.details-section > h2 { padding-top: 1.25rem; font-size: 1.4rem; font-weight: 500; letter-spacing: -.04em; }
.details-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-size: .875rem; line-height: 1.5; font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { color: var(--coral); font-size: 1.2rem; font-weight: 400; }
details[open] summary > span { transform: rotate(45deg); }
details p { padding: 0 2rem 1.3rem 0; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem; border-top: 1px solid var(--line); padding-block: 1.8rem; color: var(--muted); font-size: .6875rem; line-height: 1.6; }
.footer-brand { color: var(--ink); font-size: .8125rem; font-weight: 800; letter-spacing: -.04em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-left: auto; }
.legal-page { padding-block: 3.5rem 5rem; }
.legal-page h1 { margin-top: 1rem; font-size: clamp(2.25rem, 6vw, 4.5rem); white-space: normal; }
.legal-intro { max-width: 65ch; margin-top: 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.license-section { max-width: 52rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.license-section h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.3; }
.license-section p, .license-section ul { margin-top: 1rem; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.license-section ul { padding-left: 1.25rem; }
.license-section li + li { margin-top: .4rem; }
.license-section a { color: var(--ink); text-decoration: underline; text-decoration-color: #c3c4bd; text-underline-offset: .2em; overflow-wrap: anywhere; }
.license-section a:hover { color: var(--coral); text-decoration-color: currentColor; }
.license-section code { color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .intro-grid { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .lead br { display: none; }
  .lead { font-size: 1rem; }
  h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); }
  .how-it-works, .details-section { grid-template-columns: 1fr 2.3fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .site-header { min-height: 82px; padding-block: 1.25rem; }
  .brand { font-size: .9375rem; gap: .5rem; }
  .brand-mark { padding: .4rem .3rem; font-size: .8rem; }
  .back-link { font-size: .6875rem; gap: .3rem; }
  .intro { padding-top: 2.75rem; padding-bottom: 1.75rem; }
  .intro-grid { margin-top: 1.15rem; gap: 1rem; }
  .lead { font-size: .9375rem; }
  .drop-zone { min-height: 315px; padding: 2.25rem 1rem; }
  .converter-controls { gap: 1.4rem; align-items: stretch; flex-direction: column; }
  .quality-control { width: 100%; }
  .conversion-actions { justify-content: flex-start; }
  #convert { flex: 1 1 auto; }
  .converter-baseline { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .format-note { display: none; }
  .how-it-works, .details-section { grid-template-columns: 1fr; gap: 1.75rem; }
  .how-it-works { margin-top: 2.3rem; padding-top: 2rem; padding-bottom: 2rem; }
  .section-heading h2 br { display: none; }
  .steps { gap: 1.25rem; }
  .steps h3 { margin-top: 1.2rem; line-height: 1.45; }
  .details-section { padding-top: 1rem; padding-bottom: 3rem; }
  .details-section > h2 { padding-top: 0; }
  .site-footer { gap: .8rem 1.5rem; }
  .site-footer nav { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 10.3vw; }
  .kicker { font-size: .625rem; }
  .drop-limits { max-width: 25ch; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .4rem .65rem; }
  .step-number { padding-top: .2rem; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 2; margin: 0; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .results-heading .button { width: 100%; }
  .file-card { flex-wrap: wrap; gap: .75rem; }
  .file-icon, .file-preview { flex-basis: 42px; width: 42px; height: 48px; }
  .file-info { flex-basis: calc(100% - 54px); }
  .file-actions { width: 100%; margin-left: 54px; justify-content: flex-start; }
  .file-card > .file-status { margin-left: 54px; }
  details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
