/* axi0 Translate (/translate/): the axi0 family look, as on My search and Notes. True black, Instrument Sans, the
   orange core as the one accent. No inline styles in the markup. */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --core: #f6a04d; --ink: #f5f5f7; --text: #d6d6dc; --mute: #8e8e98; --line: #1c1c21; --line2: #2a2a31;
  --panel: #0a0a0c; --hover: #141418; --danger: #ff8f78;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: #000;
  font: 15px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--core); text-underline-offset: 3px; }
::selection { background: rgba(246, 160, 77, .35); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--core); color: #000; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 8px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; color: #fff; text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.mark-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 9px var(--core); transform: translateY(-2px); }
.mark-s { color: var(--mute); font-weight: 500; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: #b4b4bd; text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: #fff; text-decoration: underline; }

/* ---- layout ------------------------------------------------------------------------------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 4px 20px 28px; }
h1 { margin: 22px 0 8px; color: #fff; font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.lede { max-width: 46em; margin: 0; color: #a3a3ad; }

.langs { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
select {
  min-height: 42px; min-width: 150px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 12px;
  background: #050506; color: #fff; font: inherit; font-size: 15px;
}
select:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(246, 160, 77, .18); }
.swap { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: var(--panel); color: #fff; cursor: pointer; }
.swap:hover { border-color: rgba(246, 160, 77, .7); }
.swap svg { width: 20px; height: 20px; }

.panes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pane { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.pane:focus-within { border-color: #3a3a42; }
textarea, .out {
  display: block; width: 100%; min-height: 240px; margin: 0; padding: 18px 20px; border: 0; background: transparent;
  color: #fff; font: inherit; font-size: 18px; line-height: 1.55; resize: none; white-space: pre-wrap; overflow-wrap: anywhere;
}
textarea:focus { outline: none; }
textarea::placeholder { color: #7c7c87; }
.out { color: #f1f1f4; }
.out.is-busy { color: #9a9aa4; }
.out-pane { background: #0d0d10; }
.pane-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 10px 10px 20px; border-top: 1px solid var(--line); }
.count { color: var(--mute); font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; margin: 0;
  border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: #fff; font: inherit; font-size: 13.5px;
  white-space: nowrap; cursor: pointer; transition: border-color .15s;
}
.btn:hover { border-color: rgba(246, 160, 77, .7); }
.btn:disabled { opacity: .5; cursor: default; }

.state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; margin: 12px 0 0; }
.state-t { flex: 1 1 22em; margin: 0; color: var(--mute); font-size: 13.5px; }
.state-t.is-bad { color: var(--danger); }
progress { flex: 0 1 220px; height: 6px; border: 0; border-radius: 999px; background: #1d1d23; color: var(--core); accent-color: var(--core); -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { border-radius: 999px; background: #1d1d23; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--core); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--core); }

.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; color: #a3a3ad; font-size: 14px; }
.facts li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.facts strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 600; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- footer ------------------------------------------------------------------------------------------------ */
.foot { max-width: 1080px; margin: 0 auto; padding: 4px 20px 44px; color: #868692; font-size: 12.5px; }
.foot p { margin: 0 0 6px; max-width: 60em; }
.foot a { color: #c4c4cc; text-decoration: underline; text-decoration-color: rgba(196, 196, 204, .45); }
.foot a:hover { text-decoration-color: currentColor; }

@media (max-width: 600px) {
  .top { padding: 16px 16px 4px; }
  .mark { font-size: 22px; }
  .top-nav { gap: 14px; }
  main { padding: 0 14px 22px; }
  .langs { margin-top: 18px; }
  select { flex: 1 1 0; min-width: 0; }
  textarea, .out { min-height: 168px; padding: 14px 16px; font-size: 17px; }
  .pane-foot { padding-left: 16px; }
  .foot { padding: 4px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
