:root { color-scheme: light; font-family: system-ui, sans-serif; background: #f4f8f7; color: #183534; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #146855; text-underline-offset: .2em; }
button, textarea { font: inherit; }
:focus-visible { outline: 3px solid #197f68; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; padding: .6rem; }
.skip:focus { transform: none; }
header, main, footer { width: min(calc(100% - 2rem), 66rem); margin-inline: auto; }
header, footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: 1rem; }
header { justify-content: space-between; border-bottom: 1px solid #cbded8; }
header nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.brand { font-weight: 750; color: #183534; text-decoration: none; }
.compare-logo { display: block; width: min(10rem, 100%); height: auto; }
.intro { padding-block: clamp(1.25rem, 5vw, 3rem) 1.2rem; }
h1 { margin: 0; font: 500 clamp(2.3rem, 7vw, 4.8rem)/1.07 Georgia, serif; letter-spacing: -.04em; }
p { line-height: 1.55; }
.editor, .results { padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid #cbded8; border-radius: 1rem; background: white; }
.editor > p:first-child, .results > h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 3vw, 1.5rem); }
label { display: inline-block; margin-bottom: .45rem; font-weight: 650; }
textarea { width: 100%; min-height: 11rem; resize: vertical; padding: .7rem; border: 1px solid #829e95; border-radius: .45rem; color: #183534; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
button { padding: .62rem .85rem; border: 1px solid #829e95; border-radius: .45rem; background: white; color: #183534; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.primary { background: #146855; color: white; border-color: #146855; font-weight: 650; }
.status { margin-block: .75rem 0; }
.status:empty { display: none; }
.results { margin-top: 1rem; }
.figure { font-weight: 650; }
.match-controls:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.passage { position: relative; max-block-size: 24rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f8f7; border-radius: .5rem; padding: .75rem; }
mark { background: #f9df88; color: #263924; }
mark[aria-current="true"] { outline: 2px solid #146855; outline-offset: 1px; }
.method { max-width: 50rem; padding-block: 1.15rem 1.5rem; }
footer { border-top: 1px solid #cbded8; }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .results:not([hidden]) { animation: appear .22s ease-out; }
  @keyframes appear { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
