:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #202e46;
  background: #f7f9fc;
  font-synthesis: none;
  --blue: #245bd6;
  --muted: #5b687c;
  --line: #dbe2ed;
  --indent: 0.5in;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
button, a, select, textarea, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--blue); }
::selection { background: #dce7ff; color: #17336c; }
svg { flex-shrink: 0; }
.site-header, main, footer { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.wordmark { display: inline-flex; align-items: center; font-size: 23px; font-weight: 650; letter-spacing: -0.035em; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; margin-right: 9px; color: var(--blue); }
.brand-dot { color: var(--blue); }
.help-link { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
.help-link svg { width: 14px; height: 14px; }
.help-link:hover, .text-button:hover, footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.intro { padding: 39px 0 36px; }
h1 { font-size: clamp(27px, 3.2vw, 37px); font-weight: 620; line-height: 1.2; letter-spacing: -0.035em; margin: 0 0 13px; text-wrap: balance; }
.intro p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; }
.panel-heading { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
h2 { font-size: 15px; font-weight: 650; margin: 0; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 13px; padding: 10px 0; }
.text-button:disabled { color: #798394; text-decoration: none; }
.input-surface { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.input-surface:focus-within { border-color: var(--blue); }
textarea { display: block; width: 100%; min-height: 409px; resize: vertical; padding: 24px; background: transparent; border: none; color: #283750; font-size: 15px; line-height: 1.8; caret-color: var(--blue); scrollbar-color: #9caec9 #f4f7fc; }
textarea:focus { outline: none; }
textarea::placeholder { color: #69768a; opacity: 1; }
.input-bottom { min-height: 51px; display: flex; align-items: center; justify-content: space-between; margin: 0 23px; border-top: 1px solid #edf0f5; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.field-hint { font-size: 12px; margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.indent-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
select { background: #fff; color: #283750; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; min-height: 36px; padding: 5px 8px; cursor: pointer; }
select:hover { border-color: #9aabc3; }
.preview-surface { background: #edf2f9; border-radius: 12px; padding: 17px 24px 24px; }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; color: #596a83; font-size: 11px; line-height: 1.5; margin: 0 1px 15px; }
.paper { min-height: 388px; background: #fff; padding: 0 33px 28px; box-shadow: 0 3px 12px #00000008; }
.ruler { height: 39px; overflow: hidden; position: relative; border-bottom: 1px solid #e3e8ef; margin-bottom: 26px; background-image: repeating-linear-gradient(to right, #b9c6d8 0 1px, transparent 1px 0.125in); background-size: 100% 5px; background-repeat: no-repeat; background-position: bottom; }
.ruler-numbers { display: flex; gap: 0; position: absolute; left: 0; bottom: 9px; color: #728096; font-size: 9px; font-variant-numeric: tabular-nums; }
.ruler-numbers span { width: 1in; flex-shrink: 0; }
.indent-marker { position: absolute; left: var(--indent); bottom: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--blue); transform: translateX(-4px); }
.document { color: #263248; overflow-wrap: anywhere; user-select: text; cursor: text; }
.document.is-example { color: #606c80; }
.document p:last-child { margin-bottom: 0 !important; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 19px; }
.copy-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 235px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue); color: #fff; border: none; border-radius: 7px; min-height: 45px; padding: 11px 16px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.copy-button svg { width: 18px; height: 18px; }
.copy-button:hover:not(:disabled) { background: #1949b5; }
.copy-button:active:not(:disabled) { transform: translateY(1px); }
.copy-button:disabled { background: #dce4f2; color: #596c8d; }
.copy-button[data-copied="true"] { background: #247455; }
.paste-note { display: flex; gap: 12px; max-width: 790px; margin: 49px 0 46px; color: var(--muted); scroll-margin-top: 24px; }
.paste-note svg { width: 19px; height: 19px; margin-top: 1px; color: #637b9c; }
.paste-note p { margin: 0; font-size: 12px; line-height: 1.8; }
.paste-note strong { color: #384b67; font-weight: 600; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
footer > span:first-child { display: flex; gap: 7px; align-items: center; }
footer svg { width: 14px; height: 14px; }
footer a { text-decoration: none; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; z-index: 1; }
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }
@media (min-width: 1500px) { .intro { padding-top: 65px; } }
@media (max-width: 960px) {
  .site-header, main, footer { width: calc(100% - 48px); }
  .workspace { gap: 22px; }
  .copy-row { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
  .copy-button { width: 100%; }
  .copy-row p { max-width: none; }
  .preview-surface { padding-inline: 16px; }
  .paper { padding-inline: 24px; }
}
@media (max-width: 700px) {
  .site-header, main, footer { width: calc(100% - 36px); }
  .site-header { height: 78px; }
  .wordmark { font-size: 21px; }
  .help-link { font-size: 11px; gap: 3px; }
  .intro { padding: 23px 0 29px; }
  .intro p { max-width: 31ch; font-size: 14px; }
  .workspace { grid-template-columns: 1fr; gap: 27px; }
  .panel-heading { min-height: 39px; }
  textarea { min-height: 235px; padding: 19px; font-size: 16px; }
  .input-bottom { margin-inline: 19px; }
  .paper { min-height: 350px; padding-inline: 23px; }
  .copy-row { flex-direction: column-reverse; }
  .copy-button { min-height: 48px; }
  .paste-note { margin: 31px 0; }
  footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .copy-button:active:not(:disabled) { transform: none; } }
