:root {
  --ink: #201f20;
  --muted: #625e5b;
  --red: #c6382f;
  --line: #dedad4;
  --paper: #f8f7f4;
  --white: #fff;
  --nav: #201f20;
  --radius: 15px;
  --sans: Inter,Roboto,"Segoe UI",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,summary {
  font: inherit;
}

button,summary {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {
  outline: 3px solid #2683be;
  outline-offset: 3px;
}

button:disabled {
  opacity: .6;
}

svg {
  flex: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,h2,h3,p,figure {
  margin: 0;
}

em {
  font-style: normal;
}

h1,h2,h3 {
  line-height: 1.15;
  letter-spacing: -.045em;
}

button {
  border: 0;
}

.wrap,.bar {
  width: min(1040px,calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
}

.skip:focus {
  top: 8px;
  background: white;
  color: black;
  padding: 10px;
  z-index: 3;
}

header {
  background: var(--nav);
  color: #fff;
}

.bar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.45px;
  line-height: 1.2;
  direction: ltr;
}

.logo {
  display: block;
  width: 34px;
  height: 34px;
  background: url(/assets/icon.svg) center/contain no-repeat;
}

.bar nav {
  display: flex;
  gap: 26px;
  height: 100%;
  align-items: stretch;
}

.bar nav a {
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  padding-top: 3px;
  font-size: 14px;
  font-weight: 570;
  color: #d7d4d3;
}

.bar nav a[aria-current] {
  border-color: #f06051;
  color: #fff;
}

.bar nav a:hover {
  color: white;
}

.languages {
  position: relative;
  margin-inline-start: auto;
  font-size: 14px;
}

.languages summary {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #595554;
  border-radius: 30px;
  padding: 6px 12px;
}

.languages div {
  position: absolute;
  inset-inline-end: 0;
  z-index: 4;
  top: 42px;
  background: white;
  color: var(--ink);
  box-shadow: 0 8px 30px #0002;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 150px;
  padding: 5px;
}

.languages a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
}

.languages a:hover {
  background: var(--paper);
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.hero {
  padding-block: 52px 27px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(39px,5.4vw,69px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero em {
  color: var(--red);
}

.hero p,.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-top: 15px;
  text-wrap: balance;
}

.workspace {
  max-width: 976px;
}

.workspace form,.previewbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 2px 3px #29231606;
}

.workspace form {
  padding: 20px 25px 15px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.entry {
  display: flex;
  gap: 10px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #c9c4bf;
  background: #fcfbfa;
  border-radius: 8px;
  padding-inline: 15px;
  flex: 1;
  min-width: 0;
  gap: 12px;
  color: #807b76;
}

.field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px #c6382f20;
}

.field input {
  color: var(--ink);
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  width: 100%;
  font-size: 16px;
  min-width: 0;
  line-height: 1.5;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
  padding: 13px 20px;
  border-radius: 8px;
  min-height: 46px;
}

.primary:hover {
  background: #a82f29;
}

.formbase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.formats,.filetag,.sampletag,.size bdi {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
}

.formats {
  font-size: 11px;
  color: #726d68;
}

.formats i {
  margin: 0 4px;
  font-style: normal;
}

.example,.minor button,.minor a,.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  background: transparent;
  padding: 2px 0;
}

.example {
  color: var(--red);
}

.textlink:hover,.minor a:hover,.example:hover,.minor button:hover {
  text-decoration: underline;
}

#status:not(:empty),#feedback:not(:empty) {
  margin-top: 12px;
  font-size: 14px;
}

#status {
  color: #953329;
}

#lookup[aria-busy] #status {
  color: var(--muted);
}

#feedback input {
  width: 100%;
}

.previewbox {
  margin-top: 18px;
  overflow: hidden;
}

.workspacehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 22px;
}

.workspacehead>span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.sampletag {
  font-size: 11px;
  border: 1px solid #dbd5ce;
  border-radius: 5px;
  padding: 1px 7px;
  color: #625c56;
  background: #faf8f5;
}

.results {
  padding: 20px 22px 17px;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(225px,1fr);
  gap: 24px;
}

.results figure {
  min-width: 0;
}

.stage {
  position: relative;
  background: #222426;
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 16/9;
}

.stage img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.filetag {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 11px;
  color: white;
  background: #14171ae8;
  border: 1px solid #ffffff3d;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: .035em;
}

.results figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.options h2 {
  font-size: 17px;
  letter-spacing: -.03em;
  margin: 1px 0 12px;
}

.size {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  min-height: 39px;
  background: white;
  margin-bottom: 6px;
}

.size:hover {
  border-color: #aa9d91;
}

.size[aria-pressed=true] {
  border-color: #c74c3e;
  background: #fff6f2;
}

.size i {
  width: 13px;
  height: 13px;
  border: 1px solid #a7a19a;
  border-radius: 50%;
}

.size[aria-pressed=true] i {
  border: 4px solid var(--red);
}

.size bdi {
  font-size: 13px;
  font-weight: 650;
}

.size small {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 11px;
}

.size[aria-pressed=true] small {
  color: var(--red);
  font-weight: 650;
}

.save {
  width: 100%;
  margin-top: 6px;
}

.minor {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.minor button,.minor a {
  font-size: 12px;
}

.info,.help {
  max-width: 976px;
  margin-top: 48px;
}

.info h2,.help h2 {
  font-size: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 19px;
}

.cards article {
  padding: 21px;
  border: 1px solid var(--line);
  background: #fcfbf9;
  border-radius: 12px;
}

.stepicon {
  color: var(--red);
  background: #f8eae4;
  padding: 8px;
  border-radius: 9px;
  display: inline-flex;
}

.cards h3 {
  font-size: 19px;
  margin-top: 14px;
}

.cards p,.help p,.guide p,footer p {
  color: var(--muted);
}

.cards p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 8px;
}

.help {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  padding-bottom: 62px;
}

.help p {
  margin: 12px 0;
  font-size: 15px;
}

.textlink {
  color: var(--red);
  font-size: 15px;
}

.questions details {
  border-top: 1px solid var(--line);
}

.questions details:last-child {
  border-bottom: 1px solid var(--line);
}

.questions summary {
  font-weight: 640;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
}

.questions summary span {
  font-size: 20px;
  color: var(--red);
}

.questions [open] summary span {
  transform: rotate(45deg);
}

.questions p {
  margin-top: 0;
}

.guide {
  max-width: 760px;
  padding-block: 45px 60px;
}

.guide h1 {
  font-size: clamp(35px,5vw,59px);
  margin: 22px 0 12px;
}

.guide section {
  margin: 28px 0 15px;
}

.guide section h2 {
  font-size: 26px;
  margin-bottom: 9px;
}

.guidefig {
  margin: 24px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.guidefig img {
  width: 100%;
  height: auto;
}

.guidefig figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}

.footnote {
  font-size: 13px;
  margin-top: 18px;
}

footer {
  padding: 25px 0 28px;
  border-top: 1px solid var(--line);
  background: #eeece8;
}

.footline {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footline .brand {
  margin-inline-end: auto;
  font-size: 22px;
}

.footline>a:not(.brand),.footline details {
  font-size: 14px;
}

.footline details p {
  max-width: 420px;
}

footer p {
  font-size: 12px;
  margin-top: 12px;
}

[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] .workspacehead>span:first-child {
  letter-spacing: 0;
  line-height: 1.45;
}

[dir=rtl] .entry .primary svg,[dir=rtl] .textlink svg:last-child {
  transform: scaleX(-1);
}

[dir=rtl] .sampletag {
  font-family: var(--sans);
}

@media(max-width:760px) {
  .wrap,.bar {
    width: calc(100% - 32px);
  }

  .bar {
    gap: 24px;
    height: 60px;
  }

  .hero {
    padding-block: 34px 23px;
  }

  .hero h1 {
    font-size: clamp(38px,7.5vw,53px);
  }

  .hero p {
    font-size: 15px;
  }

  .results {
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    padding: 16px;
  }

  .minor {
    gap: 8px;
  }

  .cards {
    gap: 8px;
  }

  .cards article {
    padding: 15px;
  }

  .help {
    gap: 22px;
  }

  .formats i {
    margin: 0 2px;
  }

}

@media(max-width:590px) {
  .bar {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 10px;
  }

  .brand {
    font-size: 23px;
  }

  .bar nav {
    order: 3;
    width: 100%;
    height: 40px;
    gap: 22px;
  }

  .bar nav a {
    font-size: 13px;
  }

  .languages summary {
    padding: 4px 10px;
  }

  .hero h1 {
    line-height: 1.03;
  }

  .hero p {
    margin-top: 10px;
  }

  .workspace form {
    padding: 14px;
  }

  .entry {
    flex-direction: column;
    gap: 8px;
  }

  .field {
    min-height: 46px;
  }

  .formbase {
    flex-wrap: wrap;
  }

  .formats {
    font-size: 10px;
  }

  .example {
    font-size: 12px;
  }

  .workspacehead {
    padding: 11px 14px;
  }

  .results {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .options h2 {
    margin-bottom: 8px;
  }

  .cards,.help {
    grid-template-columns: 1fr;
  }

  .info,.help {
    margin-top: 35px;
  }

  .info h2,.help h2 {
    font-size: 27px;
  }

  .cards article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
  }

  .stepicon {
    grid-row: span 2;
    align-self: start;
  }

  .cards h3 {
    margin: 0;
  }

  .cards p {
    margin-top: 4px;
  }

  .help {
    padding-bottom: 35px;
  }

  .guide {
    padding-top: 26px;
  }

  .footline {
    gap: 16px;
  }

  .size {
    min-height: 42px;
  }

  .minor {
    gap: 20px;
  }

  .minor button,.minor a {
    min-height: 36px;
  }

}

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

}


/* The tool and its primary action share a single high-contrast masthead. */
.tool-intro {
  color: white;
  padding-bottom: 32px;
  background: radial-gradient(ellipse at 88% 8%, #753c38 -26%, transparent 54%), linear-gradient(118deg, #201e22, #28282d 66%, #33292b);
  border-bottom: 4px solid #d95746;
}
header { border-bottom: 1px solid #454044; }
.tool-intro .hero { padding-block: 38px 22px; }
.tool-intro .hero h1 { font-size: clamp(38px, 5.4vw, 65px); }
.tool-intro .hero em { color: #ff9c83; }
.tool-intro .hero p { color: #e7dfdb; }
.tool-intro form { color: var(--ink); box-shadow: 0 8px 28px #0003; }
.previewbox { margin-top: 26px; }
.workspacehead { background: linear-gradient(100deg, #fffaf5, white 70%); }
.evidence {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  max-width: 976px;
  margin-top: 36px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #d7c9bf;
  border-radius: var(--radius);
  background: #f6eee6;
}
.evidence h2 { font-size: clamp(22px, 3vw, 29px); }
.evidence p, .profile-page section p { margin-block: 10px; }
.evidence time, .editor-note { font-size: 13px; color: #6a5550; }
.measurements { display: grid; align-content: center; gap: 9px; }
.measure, .profile-links a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 15px; border-radius: 8px;
  background: white; border: 1px solid var(--line);
}
.measure strong, .measure bdi { display: block; }
.measure bdi { font: 13px/1.6 ui-monospace, monospace; color: var(--muted); }
.measure:hover, .profile-links a:hover { border-color: var(--red); color: var(--red); }
.guide-index {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px;
  padding: 20px; margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.guide-index h2 { grid-column: 1/-1; font-size: 19px; margin-bottom: 2px; }
.guide-index a, .editor-note a { color: #94332b; text-decoration: underline; text-underline-offset: 3px; }
.guide-index a { font-size: 14px; }
.editor-note { margin-top: 12px; }
.profile-head { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.profile-head h1 { margin: 3px 0; }
.monogram {
  background: #282328; color: #ffd3be; border-radius: 18px;
  font-weight: 720; font-size: 28px; width: 70px; height: 70px;
  display: grid; place-items: center; flex: none;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.profile-links a { font-size: 14px; padding: 8px 12px; }
.footline a:hover { color: var(--red); }
[dir=rtl] .measure svg { transform: scaleX(-1); }
@media(max-width: 650px) {
  .evidence { grid-template-columns: 1fr; gap: 16px; }
  .guide-index { grid-template-columns: 1fr; }
  .tool-intro { padding-bottom: 18px; }
  .tool-intro .hero { padding-block: 25px 18px; }
  .previewbox { margin-top: 18px; }
  .profile-head { gap: 10px; }
  .languages div { max-height: 65vh; overflow-y: auto; }
}

.brand .logo { flex: none; }
.wordmark {
  display: grid;
  gap: 2px;
  text-align: left;
  white-space: nowrap;
  color: inherit;
}
.wordmark > span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1;
}
.wordmark strong {
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.12;
}
header .wordmark > span { color: #ffad96; }
.walkthrough {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.walkthrough li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.walkthrough img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.instruction { padding: 18px 17px 20px; }
.instruction h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 19px;
  line-height: 1.3;
}
.step-number {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #972e28;
  color: white;
  font: 650 14px/1 var(--sans);
  letter-spacing: normal;
}
.instruction p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.save[aria-busy] { opacity: .75; }
.save-actions #feedback:not(:empty) { padding: 8px 10px; background: #f6f3ed; border-radius: 6px; }
@media (max-width: 720px) {
  .walkthrough { grid-template-columns: 1fr; }
  .walkthrough li { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: center; }
  .walkthrough img { border-bottom: 0; }
  .bar { gap: 14px; }
}
@media (max-width: 590px) {
  .bar { gap: 0 6px; }
  .brand { gap: 7px; }
  .wordmark strong { font-size: 16px; }
  .bar .languages summary { gap: 5px; padding-inline: 7px; }
}
@media (max-width: 480px) {
  .walkthrough li { display: block; }
  .walkthrough img { border-bottom: 1px solid var(--line); }
}
.example-links { padding: 0; margin: 10px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
:lang(hi):is(h1,h2,h3) { letter-spacing: normal; line-height: 1.45; }
.walk-link { display: inline-block; color: #ffd4c8; text-decoration: underline; text-underline-offset: .17em; margin-inline-start: .3em; }
.walk-link:hover { color: white; }
.lang-code { display: none; }
@media (max-width: 860px) {
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    padding-top: 9px;
    gap: 0 8px;
  }
  .bar .brand { grid-area: 1 / 1; justify-self: start; }
  .bar .languages { grid-area: 1 / 2; }
  .bar nav { grid-area: 2 / 1 / 3 / -1; height: 40px; }
}
@media (max-width: 430px) {
  .languages .lang-full { display: none; }
  .languages .lang-code { display: inline; }
}

.export-panel { border-block-start: 1px solid var(--line); background: #fffaf5; }
.export-panel summary { display: flex; align-items: center; gap: 9px; padding: 14px 22px; font-weight: 670; }
.export-panel summary svg:first-child { color: var(--red); flex: none; }
.export-panel summary svg:last-child { margin-inline-start: auto; flex: none; }
.export-panel[open] summary svg:last-child { transform: rotate(180deg); }
.export-body { padding: 0 22px 18px; max-width: 680px; }
.export-body p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.export-body p:first-child { color: var(--ink); font-weight: 650; margin-bottom: 4px; }
.export-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.export-actions button { text-align: start; border: 1px solid #d0beb0; border-radius: 9px; background: white; padding: 11px 13px; }
.export-actions button:hover, .export-actions button:focus-visible { border-color: var(--red); }
.export-actions button > * { display: block; }
.export-actions button > span { display: flex; align-items: center; gap: 6px; color: #962d24; font-weight: 720; }
.export-actions .target { font-size: 14px; }
.export-actions small { color: var(--muted); font-size: 12px; }
#export-feedback:not(:empty) { margin-top: 10px; }
[aria-busy=true] { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  #lookup[aria-busy=true] .entry button svg { animation: checking-link 1.05s ease-in-out infinite alternate; }
  .lookup-result { animation: reveal-result 180ms ease-out; }
  .size, .size i { transition: background-color 140ms ease, border-color 140ms ease; }
  .export-panel summary svg:last-child { transition: transform 150ms ease; }
  @keyframes checking-link { from { opacity: .4; } to { opacity: 1; } }
  @keyframes reveal-result { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
@media(max-width: 480px) {
  .export-panel summary { padding: 13px 14px; }
  .export-body { padding-inline: 14px; }
  .export-actions button { padding: 9px; }
}
