:root {
    color-scheme: light;
    --canvas: #e9e3d5;
    --paper: #f8f4e9;
    --paper-deep: #efe8d8;
    --ink: #20211d;
    --ink-soft: #5f615a;
    --rule: #b9b4a7;
    --rule-light: #d8d2c4;
    --red: #c83f2e;
    --red-dark: #9f2f22;
    --blue: #365d6e;
    --green: #476956;
    --yellow: #e9cf7c;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--canvas);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 13% 17%, rgba(255, 255, 255, .48) 0 1px, transparent 1.5px) 0 0 / 17px 19px,
        radial-gradient(circle at 74% 56%, rgba(31, 33, 29, .045) 0 1px, transparent 1.4px) 0 0 / 23px 29px,
        var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent 49.8%, rgba(54, 49, 39, .025) 50%, transparent 50.2%);
    content: "";
    pointer-events: none;
}

button,
textarea,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible + span {
    outline: 3px solid rgba(200, 63, 46, .3);
    outline-offset: 3px;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

.sr-only {
    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: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-frame {
    width: min(1440px, calc(100% - 72px));
    margin-inline: auto;
}

.masthead {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(32, 33, 29, .65);
}

.identity {
    display: inline-flex;
    align-items: stretch;
    color: var(--ink);
    text-decoration: none;
}

.identity-number {
    display: grid;
    min-width: 52px;
    place-items: center;
    border: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .05em;
}

.identity-copy {
    display: flex;
    flex-direction: column;
    padding: 7px 0 6px 13px;
}

.identity-copy strong {
    font-family: var(--display);
    font-size: 17px;
    line-height: .88;
    letter-spacing: -.03em;
}

.identity-copy strong span {
    display: block;
}

.identity-copy small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.masthead-note {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.masthead-note span {
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(71, 105, 86, .12);
}

.masthead-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 34px);
    margin-inline: auto;
    padding-inline: 36px;
}

.masthead-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.masthead-nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.masthead-nav a:hover::after,
.masthead-nav a:focus-visible::after,
.masthead-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.masthead-nav a[aria-current="page"] {
    color: var(--ink);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(50px, 9vw, 150px);
    align-items: center;
    padding: clamp(70px, 9vw, 126px) clamp(8px, 3vw, 46px) clamp(76px, 9vw, 124px);
}

.guide-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr);
    gap: clamp(36px, 7vw, 110px);
    align-items: end;
    padding: clamp(70px, 9vw, 126px) clamp(8px, 3vw, 46px) 0;
}

.guide-intro .kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.guide-intro .lede {
    margin: 0 0 10px;
}

.intro-copy {
    max-width: 920px;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.kicker span {
    padding: 5px 7px 4px;
    background: var(--ink);
    color: var(--paper);
}

h1 {
    max-width: 1050px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(52px, 7.1vw, 108px);
    font-weight: 400;
    line-height: .89;
    letter-spacing: -.055em;
}

h1 em {
    position: relative;
    color: var(--red);
    font-weight: 400;
}

h1 em::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 2%;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg width='600' height='10' viewBox='0 0 600 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7 C95 1 172 10 261 5 S428 7 598 3' fill='none' stroke='%23c83f2e' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    content: "";
    opacity: .8;
}

.lede {
    max-width: 690px;
    margin: 37px 0 21px;
    color: #52544e;
    font-family: var(--display);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sample-link span {
    color: var(--red);
    font-size: 18px;
    transition: transform .18s ease;
}

.sample-link:hover span {
    transform: translate(3px, 2px);
}

.editors-note {
    position: relative;
    padding: 36px 32px 32px;
    background: #ead895;
    box-shadow: 7px 8px 0 rgba(32, 33, 29, .12);
    transform: rotate(1.1deg);
}

.note-tape {
    position: absolute;
    top: -17px;
    left: 50%;
    width: 92px;
    height: 34px;
    background: rgba(244, 238, 214, .72);
    box-shadow: 0 1px 2px rgba(32, 33, 29, .1);
    transform: translateX(-50%) rotate(-3deg);
}

.note-index {
    margin: 0 0 23px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.editors-note > p:nth-of-type(2) {
    margin: 0;
    font-family: var(--display);
    font-size: 19px;
    line-height: 1.45;
}

.editors-note dl {
    margin: 25px 0 0;
    border-top: 1px solid rgba(32, 33, 29, .35);
}

.editors-note .note-caveat {
    margin: 16px 0 0;
    padding-left: 10px;
    border-left: 2px solid rgba(200, 63, 46, .65);
    color: #5e5536;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.5;
}

.editors-note dl div {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(32, 33, 29, .22);
}

.editors-note dt,
.editors-note dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.4;
}

.editors-note dt {
    font-weight: 700;
}

.pencil-note {
    display: block;
    margin: 19px 3px -6px 0;
    color: var(--red-dark);
    font-family: var(--display);
    font-size: 14px;
    font-style: italic;
    text-align: right;
    transform: rotate(-2deg);
}

.workbench {
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 10px 11px 0 rgba(32, 33, 29, .13);
}

.workbench-header {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--ink);
}

.sheet-title {
    display: flex;
    align-items: center;
}

.folio {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-right: 16px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: var(--display);
    font-size: 20px;
    font-style: italic;
}

.sheet-title p,
.sheet-title h2 {
    margin: 0;
}

.sheet-title p {
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sheet-title h2 {
    font-family: var(--display);
    font-size: 23px;
    font-weight: 400;
}

.mode-picker {
    display: flex;
    align-items: stretch;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
}

.mode-picker legend {
    align-self: center;
    margin-right: 12px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mode-option {
    cursor: pointer;
}

.mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-option > span {
    display: flex;
    min-width: 128px;
    flex-direction: column;
    padding: 10px 13px;
    border: 1px solid var(--rule);
    background: #f3eee2;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mode-option strong {
    font-family: var(--sans);
    font-size: 12px;
}

.mode-option small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .02em;
}

.mode-option input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: 3px 3px 0 rgba(200, 63, 46, .75);
    color: var(--paper);
}

.mode-option input:checked + span small {
    color: #c8c6bc;
}

.mode-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 8px 28px;
    border-bottom: 1px solid var(--rule);
    background: #eee8da;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.45;
}

.hint-mark {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--ink-soft);
    border-radius: 50%;
    font-family: var(--display);
    font-size: 11px;
    font-style: italic;
}

.desk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    min-height: 520px;
}

.editor-panel {
    display: grid;
    min-width: 0;
    grid-template-rows: auto minmax(360px, 1fr) auto;
}

.source-panel {
    border-right: 1px solid var(--rule);
}

.output-panel {
    border-left: 1px solid var(--rule);
}

.panel-header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px 14px 25px;
    border-bottom: 1px solid var(--rule-light);
}

.panel-index {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.panel-header h3,
.report-header h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 400;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.utility-button,
.reveal-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid var(--rule);
    background: #f4efe3;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.utility-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.utility-button:hover:not(:disabled),
.reveal-button:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-1px);
}

.utility-button.quiet {
    border-color: transparent;
    background: transparent;
    color: var(--ink-soft);
}

.utility-button:disabled,
.reveal-button:disabled {
    cursor: default;
    opacity: .38;
}

.copy-button:not(:disabled) {
    border-color: var(--ink);
}

.text-sheet {
    --editor-baseline: 21px;
    --editor-leading: 32px;
    --editor-margin-x: 31px;
    --editor-pad-top: 24px;
    position: relative;
    min-height: 0;
    background-image: linear-gradient(
        90deg,
        transparent var(--editor-margin-x),
        rgba(200, 63, 46, .22) var(--editor-margin-x),
        rgba(200, 63, 46, .22) calc(var(--editor-margin-x) + 1px),
        transparent calc(var(--editor-margin-x) + 1px)
    );
}

.output-sheet {
    background-color: #f3efe4;
}

textarea {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    resize: none;
    border: 0;
    outline: 0;
    padding: var(--editor-pad-top) 30px 28px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: transparent;
    background-image: linear-gradient(
        to bottom,
        rgba(54, 93, 110, .105) 0 1px,
        transparent 1px
    );
    background-repeat: repeat-y;
    background-position: 0 calc(var(--editor-pad-top) + var(--editor-baseline));
    background-size: 100% var(--editor-leading);
    background-attachment: local;
    color: var(--ink);
    font-family: var(--display);
    font-size: 16px;
    line-height: var(--editor-leading);
    caret-color: var(--red);
}

textarea::placeholder {
    color: #969389;
    font-style: italic;
}

.output-sheet textarea {
    color: #31332e;
}

.drop-message {
    position: absolute;
    inset: 18px;
    display: none;
    place-items: center;
    align-content: center;
    border: 2px dashed var(--red);
    background: rgba(248, 244, 233, .94);
    color: var(--red-dark);
    pointer-events: none;
    text-align: center;
}

.drop-message span {
    font-family: var(--display);
    font-size: 24px;
}

.drop-message small {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
}

.text-sheet.is-dragging .drop-message {
    display: grid;
}

.text-sheet.is-scanning::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--red);
    box-shadow: 0 3px 14px rgba(200, 63, 46, .35);
    content: "";
    pointer-events: none;
    animation: proof-scan 1s ease-in-out infinite alternate;
}

@keyframes proof-scan {
    from { top: 12%; }
    to { top: 86%; }
}

.stale-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 9px 13px 7px;
    border: 3px double var(--red);
    background: rgba(248, 244, 233, .91);
    color: var(--red);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.stale-stamp small {
    font-size: 7px;
    font-weight: 500;
}

.panel-footer {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 18px;
    padding: 0 25px;
    border-top: 1px solid var(--rule-light);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.panel-footer b {
    color: var(--ink);
    font-size: 10px;
}

.action-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background: var(--paper-deep);
}

.rail-line {
    width: 1px;
    height: 58px;
    background: var(--rule);
}

.clean-button {
    width: 90px;
    min-height: 124px;
    padding: 12px 9px;
    border: 1px solid var(--ink);
    background: var(--red);
    box-shadow: 4px 4px 0 var(--ink);
    color: #fff9eb;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.clean-button:hover:not(:disabled) {
    background: #d54a38;
    box-shadow: 6px 6px 0 var(--ink);
    transform: translate(-2px, -2px);
}

.clean-button:active:not(:disabled) {
    box-shadow: 2px 2px 0 var(--ink);
    transform: translate(2px, 2px);
}

.clean-button:disabled {
    cursor: wait;
    opacity: .68;
}

.clean-button-icon {
    display: block;
    margin-bottom: 12px;
    font-family: var(--display);
    font-size: 31px;
    line-height: 1;
}

.clean-button-copy strong,
.clean-button-copy small {
    display: block;
}

.clean-button-copy strong {
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.25;
}

.clean-button-copy small {
    margin-top: 10px;
    color: rgba(255, 249, 235, .75);
    font-family: var(--mono);
    font-size: 7px;
}

kbd {
    font-family: var(--mono);
    font-size: .9em;
}

.report {
    border-top: 1px solid var(--ink);
    background: #ece6d8;
}

.report-header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 28px;
    border-bottom: 1px solid var(--rule);
}

.reveal-button {
    min-height: 38px;
    padding-inline: 12px;
    background: transparent;
}

.reveal-eye {
    position: relative;
    width: 18px;
    height: 11px;
    border: 1px solid currentColor;
    border-radius: 50% / 65%;
}

.reveal-eye::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.report-empty {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    color: var(--ink-soft);
}

.empty-glyph {
    color: var(--red);
    font-family: var(--display);
    font-size: 44px;
}

.report-empty strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 400;
}

.report-empty p {
    margin: 5px 0 0;
    font-family: var(--mono);
    font-size: 9px;
}

.report-results {
    padding: 26px 28px 30px;
}

.result-summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 23px;
}

.summary-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.summary-number strong {
    color: var(--red);
    font-family: var(--display);
    font-size: 47px;
    font-style: italic;
    font-weight: 400;
    line-height: .8;
}

.summary-number span {
    max-width: 60px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.3;
    text-transform: uppercase;
}

.result-summary p {
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
}

.finding-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 9px;
}

.finding-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--rule);
    background: var(--paper);
}

.finding-tag {
    display: grid;
    min-height: 43px;
    place-items: center;
    border: 1px solid var(--red);
    color: var(--red-dark);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    transform: rotate(-1.5deg);
}

.finding-card.is-preserved .finding-tag {
    border-color: var(--blue);
    color: var(--blue);
}

.finding-copy {
    min-width: 0;
}

.finding-copy strong,
.finding-copy small,
.finding-copy em {
    display: block;
}

.finding-copy strong {
    overflow: hidden;
    font-family: var(--sans);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finding-copy small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
}

.finding-copy em {
    margin-top: 6px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 7px;
    font-style: normal;
    line-height: 1.35;
}

.finding-count {
    min-width: 38px;
    text-align: right;
}

.finding-count strong,
.finding-count span {
    display: block;
}

.finding-count strong {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
}

.finding-count span {
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 7px;
    text-transform: uppercase;
}

.finding-action {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 4px;
    background: rgba(200, 63, 46, .1);
    color: var(--red-dark);
    font-family: var(--mono);
    font-size: 7px;
    font-style: normal;
    text-transform: uppercase;
}

.finding-card.is-preserved .finding-action {
    background: rgba(54, 93, 110, .1);
    color: var(--blue);
}

.normalization-note {
    margin: 18px 0 0;
    padding-left: 13px;
    border-left: 2px solid var(--yellow);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.5;
}

.marked-preview {
    padding: 22px 28px 30px;
    border-top: 1px dashed var(--rule);
    background: var(--paper);
}

.preview-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.preview-heading strong {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 400;
}

.preview-heading span {
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
}

.marked-preview pre {
    max-height: 290px;
    margin: 0;
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--rule);
    background:
        repeating-linear-gradient(to bottom, transparent 0, transparent 25px, rgba(54, 93, 110, .08) 25px, rgba(54, 93, 110, .08) 26px),
        #f7f2e7;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 26px;
    white-space: pre-wrap;
    word-break: break-word;
}

.mark-token {
    display: inline-block;
    margin: 0 2px;
    padding: 0 4px;
    border: 1px solid var(--red);
    background: rgba(200, 63, 46, .09);
    color: var(--red-dark);
    font-size: 9px;
    font-weight: 800;
    line-height: 17px;
    vertical-align: 1px;
}

.mark-token.is-preserved {
    border-color: var(--blue);
    background: rgba(54, 93, 110, .08);
    color: var(--blue);
}

.preview-truncated {
    color: var(--red-dark);
    font-style: italic;
}

.field-guide {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    gap: 0;
    margin-top: clamp(96px, 11vw, 160px);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.home-page .field-guide {
    margin-bottom: clamp(80px, 10vw, 150px);
}

.field-guide > * {
    min-height: 230px;
    padding: 34px 28px;
}

.field-guide > * + * {
    border-left: 1px solid var(--rule);
}

.guide-heading {
    background: var(--ink);
    color: var(--paper);
}

.guide-heading span,
.field-guide article > span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guide-heading h2 {
    max-width: 220px;
    margin: 63px 0 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.05;
}

.field-guide article > span {
    color: var(--red);
}

.field-guide article h3 {
    margin: 57px 0 11px;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 400;
}

.field-guide article p {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.65;
}

.content-section {
    scroll-margin-top: 24px;
}

.method-section {
    margin-top: clamp(90px, 10vw, 148px);
}

.content-heading {
    display: grid;
    grid-template-columns: minmax(130px, .45fr) minmax(300px, 1.2fr) minmax(240px, .8fr);
    gap: clamp(24px, 4vw, 68px);
    align-items: end;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--ink);
}

.content-heading > p,
.section-label {
    margin: 0;
    color: var(--red-dark);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.content-heading h2,
.context-section h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(34px, 4vw, 57px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.035em;
}

.content-heading > span {
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.7;
}

.method-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--ink);
    list-style: none;
}

.method-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 17px;
    min-height: 210px;
    padding: 34px 28px 38px;
}

.method-list li + li {
    border-left: 1px solid var(--rule);
}

.method-list li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--red);
    border-radius: 50%;
    color: var(--red-dark);
    font-family: var(--mono);
    font-size: 10px;
    transform: rotate(-4deg);
}

.method-list h3,
.faq-grid h3 {
    margin: 5px 0 13px;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.1;
}

.method-list p,
.faq-grid p,
.context-section article > p:not(.section-label) {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.75;
}

.character-reference {
    margin-top: clamp(86px, 9vw, 130px);
}

.compact-heading {
    align-items: start;
}

.reference-table-wrap {
    overflow-x: auto;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    background: rgba(248, 244, 233, .58);
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.reference-table th,
.reference-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule-light);
    vertical-align: middle;
}

.reference-table tr:last-child th,
.reference-table tr:last-child td {
    border-bottom: 0;
}

.reference-table th + th,
.reference-table th + td,
.reference-table td + td {
    border-left: 1px solid var(--rule-light);
}

.reference-table thead th {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reference-table tbody th {
    width: 23%;
    font-weight: 400;
}

.reference-table tbody td {
    font-family: var(--display);
    font-size: 14px;
}

.reference-table code {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
}

.action-yes,
.action-kept,
.action-warn {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid currentColor;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.action-yes {
    color: var(--green);
}

.action-kept {
    color: var(--blue);
}

.action-warn {
    color: var(--red-dark);
    transform: rotate(-1deg);
}

.reference-footnote {
    margin: 0;
    padding: 18px 22px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    background: rgba(233, 207, 124, .16);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.65;
}

.reference-footnote strong {
    color: var(--ink);
}

.context-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: clamp(86px, 9vw, 130px);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.context-section article {
    min-height: 350px;
    padding: clamp(34px, 4vw, 60px);
}

.context-section article + article {
    border-left: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.context-section h2 {
    max-width: 520px;
    margin-top: clamp(45px, 6vw, 82px);
    font-size: clamp(31px, 3.4vw, 49px);
}

.context-section article > p:not(.section-label) {
    max-width: 620px;
    margin-top: 22px;
}

.context-section article + article > p:not(.section-label) {
    color: #c8c5bc;
}

.context-section article + article .section-label {
    color: #e87968;
}

.faq-section {
    margin-top: clamp(86px, 9vw, 130px);
    margin-bottom: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--ink);
}

.faq-grid article {
    min-height: 220px;
    padding: 30px 27px 34px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.faq-grid article:nth-child(-n + 3) {
    background: rgba(248, 244, 233, .46);
}

.faq-grid h3 {
    max-width: 320px;
    margin-top: 0;
}

.roadmap-note {
    display: grid;
    grid-template-columns: minmax(130px, .45fr) minmax(0, 2fr);
    gap: clamp(24px, 4vw, 68px);
    align-items: baseline;
    margin-top: clamp(52px, 6vw, 82px);
    margin-bottom: clamp(80px, 10vw, 150px);
    padding: 22px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.roadmap-note > p {
    margin: 0;
}

.roadmap-note > p:last-child {
    font-family: var(--display);
    font-size: clamp(19px, 2.1vw, 28px);
    line-height: 1.25;
}

.legal-main {
    padding-block: clamp(70px, 8vw, 118px) clamp(88px, 10vw, 150px);
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr);
    gap: clamp(36px, 7vw, 110px);
    align-items: end;
    padding-inline: clamp(8px, 3vw, 46px);
}

.legal-hero .kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.legal-hero h1 {
    font-size: clamp(58px, 8vw, 118px);
}

.legal-lede {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-family: var(--display);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
}

.legal-sheet {
    max-width: 1120px;
    margin: clamp(70px, 8vw, 118px) auto 0;
    border-right: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    background: rgba(248, 244, 233, .48);
}

.legal-warning {
    padding: 24px 28px;
    border-top: 1px solid var(--red-dark);
    border-bottom: 1px solid var(--red-dark);
    background: rgba(233, 207, 124, .32);
    color: var(--ink);
}

.legal-warning > strong {
    color: var(--red-dark);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
}

.legal-warning p {
    max-width: 880px;
    margin: 9px 0 0;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.65;
}

.legal-warning .config-list {
    color: var(--red-dark);
    overflow-wrap: anywhere;
}

.legal-warning code,
.legal-placeholder {
    font-family: var(--mono);
    font-size: .88em;
}

.legal-placeholder {
    display: inline-block;
    padding: 2px 5px;
    border: 1px dashed var(--red);
    color: var(--red-dark);
}

.legal-section {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    border-top: 1px solid var(--ink);
}

.legal-section:last-child {
    border-bottom: 1px solid var(--ink);
}

.legal-section > h2 {
    margin: 0;
    padding: 36px 28px;
    color: var(--red-dark);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.45;
    text-transform: uppercase;
}

.legal-copy {
    min-width: 0;
    padding: 32px clamp(28px, 5vw, 70px) 38px;
    border-left: 1px solid var(--rule);
}

.legal-copy p,
.legal-copy address,
.legal-copy li {
    color: #464842;
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.68;
}

.legal-copy p {
    margin: 0;
}

.legal-copy p + p,
.legal-copy dl + p,
.legal-copy p + dl {
    margin-top: 18px;
}

.legal-copy strong {
    color: var(--ink);
}

.legal-copy a {
    color: var(--red-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-copy address {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    font-style: normal;
}

.preserve-lines {
    white-space: pre-line;
}

.legal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px 36px;
}

.legal-details p + p {
    margin-top: 0;
}

.data-ledger {
    margin: 24px 0 0;
    border-top: 1px solid var(--rule);
}

.data-ledger div {
    display: grid;
    grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr);
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule-light);
}

.data-ledger dt,
.data-ledger dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.55;
}

.data-ledger dt {
    color: var(--ink-soft);
    text-transform: uppercase;
}

.data-ledger dd {
    color: var(--ink);
}

.legal-caution,
.objection-note {
    padding: 15px 17px;
    border-left: 2px solid var(--red);
    background: rgba(200, 63, 46, .06);
}

.objection-note {
    margin: 23px 0;
}

.objection-note > strong {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.objection-note p {
    margin-top: 7px;
}

.legal-note-section {
    background: var(--paper-deep);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-block: 50px 40px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 13px;
}

.site-footer > p:last-child {
    text-align: right;
}

.footer-center {
    display: grid;
    gap: 9px;
    justify-items: center;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
    text-transform: uppercase;
}

.shortcut-note kbd {
    padding: 2px 4px;
    border: 1px solid var(--rule);
    background: rgba(248, 244, 233, .55);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    min-width: 260px;
    max-width: min(430px, calc(100vw - 36px));
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    box-shadow: 5px 5px 0 rgba(200, 63, 46, .6);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.4;
}

.toast[hidden] {
    display: none;
}

.toast.is-error {
    background: var(--red-dark);
    box-shadow: 5px 5px 0 var(--ink);
}

.toast-mark {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.toast button {
    margin-left: auto;
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .masthead-nav {
        gap: 14px;
        padding-inline: 18px;
    }

    .desk-grid {
        grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    }

    .clean-button {
        width: 70px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-actions {
        width: 100%;
    }

    .panel-actions .utility-button {
        flex: 1;
    }

    .field-guide {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-guide > *:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .field-guide > *:nth-child(4) {
        border-top: 1px solid var(--rule);
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .page-frame {
        width: min(100% - 36px, 760px);
    }

    .masthead {
        flex-wrap: wrap;
    }

    .masthead-nav {
        display: flex;
        width: 100%;
        order: 3;
        justify-content: flex-start;
        gap: 28px;
        margin: 0;
        padding: 5px 0 4px;
        border-top: 1px solid var(--rule-light);
    }

    .masthead-nav .nav-section-link {
        display: none;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 72px;
        padding-inline: 0;
    }

    .guide-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 72px 0 0;
    }

    .guide-intro .lede {
        max-width: 620px;
        margin: 0;
    }

    .editors-note {
        width: min(390px, 90%);
        justify-self: end;
    }

    .workbench-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mode-picker {
        width: 100%;
    }

    .mode-picker legend {
        margin-right: auto;
    }

    .desk-grid {
        grid-template-columns: 1fr;
    }

    .source-panel,
    .output-panel {
        border: 0;
    }

    .source-panel {
        border-bottom: 1px solid var(--rule);
    }

    .action-rail {
        min-height: 104px;
        flex-direction: row;
    }

    .rail-line {
        width: 18%;
        height: 1px;
    }

    .clean-button {
        display: flex;
        width: min(270px, 64%);
        min-height: 64px;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 10px 18px;
    }

    .clean-button-icon {
        margin: 0;
        transform: rotate(90deg);
    }

    .clean-button-copy {
        display: flex;
        align-items: center;
        gap: 13px;
    }

    .clean-button-copy small {
        margin-top: 0;
    }

    .output-panel {
        border-top: 1px solid var(--rule);
    }

    textarea {
        min-height: 360px;
    }

    .content-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-heading h2 {
        max-width: 650px;
    }

    .content-heading > span {
        max-width: 560px;
    }

    .method-list {
        grid-template-columns: 1fr;
    }

    .method-list li {
        min-height: 0;
    }

    .method-list li + li {
        border-top: 1px solid var(--rule);
        border-left: 0;
    }

    .reference-table {
        min-width: 650px;
    }

    .context-section {
        grid-template-columns: 1fr;
    }

    .context-section article {
        min-height: 0;
    }

    .context-section article + article {
        border-top: 1px solid var(--ink);
        border-left: 0;
    }

    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-hero h1 {
        max-width: 700px;
    }

    .legal-lede {
        max-width: 620px;
    }

    .legal-section {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .shortcut-note {
        display: none;
    }

    .site-footer > p:last-child {
        display: none;
    }
}

@media (max-width: 620px) {
    .page-frame {
        width: min(100% - 22px, 760px);
    }

    .masthead {
        min-height: 80px;
    }

    .masthead-note {
        max-width: 100px;
        font-size: 7px;
        line-height: 1.4;
        text-align: right;
    }

    .identity-number {
        min-width: 43px;
    }

    .identity-copy {
        padding-left: 9px;
    }

    .identity-copy strong {
        font-size: 15px;
    }

    .identity-copy small {
        font-size: 7px;
    }

    .intro {
        gap: 58px;
        padding-block: 68px 80px;
    }

    h1 {
        font-size: clamp(47px, 15vw, 72px);
    }

    h1 br {
        display: none;
    }

    .lede {
        margin-top: 31px;
        font-size: 18px;
    }

    .editors-note {
        width: 95%;
        padding: 32px 25px 26px;
    }

    .workbench {
        box-shadow: 5px 6px 0 rgba(32, 33, 29, .13);
    }

    .workbench-header {
        gap: 20px;
        padding: 20px 17px;
    }

    .folio {
        width: 48px;
        height: 48px;
    }

    .mode-picker {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mode-picker legend {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .mode-option > span {
        min-width: 0;
    }

    .mode-hint {
        align-items: flex-start;
        padding: 11px 17px;
    }

    .panel-header {
        min-height: 112px;
        padding: 16px;
    }

    .panel-actions {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .utility-button {
        white-space: nowrap;
    }

    .source-panel .utility-button,
    .output-panel .utility-button {
        flex: 1 0 auto;
    }

    .text-sheet {
        --editor-leading: 30px;
        --editor-margin-x: 21px;
        --editor-pad-top: 20px;
    }

    textarea {
        min-height: 330px;
        padding: var(--editor-pad-top) 18px 24px 34px;
        font-size: 15px;
        line-height: var(--editor-leading);
    }

    .panel-footer {
        justify-content: space-between;
        gap: 7px;
        padding-inline: 16px;
        font-size: 6px;
    }

    .panel-footer b {
        font-size: 8px;
    }

    .clean-button {
        width: 74%;
    }

    .report-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .reveal-button {
        width: 100%;
    }

    .report-empty {
        justify-content: flex-start;
        padding-inline: 20px;
    }

    .report-empty p {
        line-height: 1.5;
    }

    .report-results,
    .marked-preview {
        padding: 22px 17px;
    }

    .result-summary {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 15px;
    }

    .summary-number strong {
        font-size: 40px;
    }

    .finding-list {
        grid-template-columns: 1fr;
    }

    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .field-guide {
        grid-template-columns: 1fr;
        margin-top: 90px;
    }

    .field-guide > * {
        min-height: 190px;
    }

    .field-guide > * + *,
    .field-guide > *:nth-child(4) {
        border-top: 1px solid var(--rule);
        border-left: 0;
    }

    .guide-heading h2,
    .field-guide article h3 {
        margin-top: 40px;
    }

    .method-section,
    .character-reference,
    .context-section,
    .faq-section {
        margin-top: 82px;
    }

    .content-heading {
        padding-bottom: 24px;
    }

    .content-heading h2,
    .context-section h2 {
        font-size: 36px;
    }

    .method-list li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 13px;
        padding: 27px 19px 30px;
    }

    .method-list li > span {
        width: 30px;
        height: 30px;
    }

    .reference-table th,
    .reference-table td {
        padding: 14px;
    }

    .context-section article {
        padding: 34px 24px 39px;
    }

    .context-section h2 {
        margin-top: 42px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid article {
        min-height: 0;
    }

    .faq-grid article:nth-child(-n + 3) {
        background: transparent;
    }

    .faq-grid article:nth-child(odd) {
        background: rgba(248, 244, 233, .46);
    }

    .roadmap-note {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .legal-main {
        padding-block: 68px 90px;
    }

    .legal-hero {
        gap: 25px;
        padding-inline: 0;
    }

    .legal-hero h1 {
        font-size: clamp(56px, 20vw, 82px);
    }

    .legal-lede {
        font-size: 18px;
    }

    .legal-sheet {
        margin-top: 66px;
    }

    .legal-warning {
        padding: 21px 18px;
    }

    .legal-section {
        grid-template-columns: 1fr;
    }

    .legal-section > h2 {
        padding: 24px 19px 18px;
    }

    .legal-copy {
        padding: 0 19px 29px;
        border-left: 0;
    }

    .legal-copy p,
    .legal-copy address,
    .legal-copy li {
        font-size: 15px;
    }

    .data-ledger div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer {
        padding-block: 38px 32px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .toast {
        right: 11px;
        bottom: 11px;
        left: 11px;
        min-width: 0;
        max-width: none;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
