@font-face{font-family:"Norskpenn Sans";src:url(/fonts/norskpenn-sans-latin.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Norskpenn Sans";src:url(/fonts/atkinson-next-latin-ext.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}

/* Norskpenn. The type is Atkinson Hyperlegible Next, drawn by the Braille
   Institute so that similar letters can't be confused: the right face for
   people reading and writing in a second language. Its zero is slashed,
   which in Norwegian reads as Ø, so we serve a copy with an open zero
   (scripts/open-zero.py) under the name Norskpenn Sans. The palette is a written
   page: cool white paper, ballpoint-blue ink for what you can do, and the
   teacher's red only for corrections, so red always means "fix this". */
:root{
  --paper:#f7f8fa;--sheet:#ffffff;--ink:#14171c;--muted:#535a66;--line:#d9dde3;--line-strong:#b9bfc8;
  --blue:#2447c2;--blue-ink:#ffffff;--blue-soft:#e8eefc;
  --red:#b3301f;--red-soft:#fdecea;--ok:#1f6f43;
  --radius-s:6px;--radius-m:10px;
  --font:"Norskpenn Sans",system-ui,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --paper:#111318;--sheet:#181b21;--ink:#e9ebef;--muted:#a9b0bb;--line:#2b3039;--line-strong:#434a56;
  --blue:#8fb0ff;--blue-ink:#0d1220;--blue-soft:#1b2440;
  --red:#ff9a8f;--red-soft:#3a1d1b;--ok:#7fd1a2;
  color-scheme:dark;
}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.6 var(--font);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
main{flex:1 0 auto}
@media (min-width:137.5rem){html{font-size:112.5%}}
@media (min-width:187.5rem){html{font-size:125%}}
.nw{white-space:nowrap}
h1,h2,h3{margin:0;font-weight:700;line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
p{margin:0}
@media (min-width:48rem){p{text-wrap:pretty}}
p+p{margin-top:.85em}
a{color:var(--blue);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
button,select,textarea,input{font:inherit;color:inherit}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-3rem;background:var(--sheet);padding:.5rem .75rem;border-radius:var(--radius-s);z-index:2}
.skip:focus{top:1rem}

.wrap{width:100%;max-width:64rem;margin:0 auto;padding:0 1rem}
@media (min-width:48rem){.wrap{padding:0 2rem}}

/* Header: the mark and one link. */
.top{padding:1.1rem 0}
.top .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.mark{color:var(--ink);text-decoration:none;font-weight:800;font-size:1.125rem;letter-spacing:-.02em}
.mark span{color:var(--blue)}
.top nav{display:flex;gap:1.25rem;font-size:.9375rem}
.top nav a{color:var(--muted);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.top nav .short{display:none}
.top nav a:hover,.top nav a[aria-current]{color:var(--ink)}
@media (max-width:40rem){.top nav{gap:1.25rem}.top nav .long{display:none}.top nav .short{display:inline}}

/* Intro sized to its content, left aligned; the tool is the focal point. */
.intro{padding:1.5rem 0 1.75rem}
.intro h1{font-size:clamp(1.85rem,1.3rem + 2.4vw,3rem);max-width:20ch;letter-spacing:-.025em}
.lede{margin-top:.9rem;color:var(--muted);font-size:clamp(1.0625rem,1rem + .3vw,1.2rem);max-width:38rem}

/* The writing tool */
.tool{background:var(--sheet);border:1px solid var(--line);border-radius:var(--radius-m);padding:1.25rem}
@media (min-width:48rem){.tool{padding:1.75rem 2rem}}
.write{min-width:0}
@media (max-width:63.99rem){.write{margin-top:1.25rem}}
.pickers{display:grid;gap:1rem}
@media (min-width:48rem) and (max-width:63.99rem){.pickers{grid-template-columns:auto 1fr;align-items:end;gap:1.5rem}}
/* Wide screens: the task on the left like an exam sheet, the writing on the
   right at a comfortable line length. */
@media (min-width:64rem){.editor textarea{min-height:24rem}.tool{display:grid;grid-template-columns:18rem minmax(0,1fr);gap:2.5rem;align-items:start}.brief .task{margin-top:1.5rem}}
.field label,.field legend{display:block;line-height:1.4;font-weight:700;font-size:.9375rem;margin-bottom:.4rem;padding:0}
fieldset{border:0;margin:0;padding:0;min-width:0}
.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:var(--radius-s);overflow:hidden}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label{margin:0;padding:0 1rem;min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;font-variant-numeric:tabular-nums}
.seg label+input+label{border-left:1px solid var(--line-strong)}
.seg input:checked+label{background:var(--ink);color:var(--paper)}
.seg input:focus-visible+label{outline:2px solid var(--blue);outline-offset:-2px}
select{width:100%;min-height:44px;padding:0 2.25rem 0 .75rem;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23535a66' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center;appearance:none}
@media (prefers-color-scheme:dark){select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9b0bb' stroke-width='1.6'/%3E%3C/svg%3E")}}

.task{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.task-meta{font-size:.9375rem;color:var(--muted)}
.task h2{font-size:1.25rem;margin:.2rem 0 .6rem}
.editor-label{display:block;font-weight:700;font-size:.9375rem;margin-bottom:.4rem}
.task-sign{margin:-.15rem 0 .5rem;font-size:.9375rem;color:var(--muted)}
.task-sign[hidden]{display:none}
.task-intro{color:var(--muted);margin-bottom:.6rem;max-width:44rem}
.task-prompt{max-width:44rem;font-size:1.0625rem}

.editor textarea{display:block;width:100%;min-height:16rem;max-height:70vh;padding:1rem;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--paper);font-size:1.125rem;line-height:1.65;resize:vertical}
.editor textarea:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:transparent}
.editor-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;margin-top:.6rem;font-size:.9375rem;color:var(--muted);font-variant-numeric:tabular-nums}
.editor-bar .count.short{color:var(--ink)}
.timer{display:inline-flex;align-items:center;gap:.75rem}
.timer output{font-variant-numeric:tabular-nums;min-width:3.5rem}

.send{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin-top:1.25rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 1.4rem;border:0;border-radius:var(--radius-s);background:var(--blue);color:var(--blue-ink);font-weight:700;font-size:1.0625rem;text-decoration:none;cursor:pointer;transition:transform .15s ease-out,opacity .15s ease-out}
.btn:hover{text-decoration:none;opacity:.92}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:progress}
.btn.busy{opacity:1;background:var(--ink);color:var(--paper);font-variant-numeric:tabular-nums}
.after-actions{display:flex;flex-wrap:wrap;gap:.75rem}
@media (max-width:29.99rem){.after-actions .btn{flex:1 1 100%}}
.btn.quiet{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}
.link-btn{background:none;border:0;padding:0;min-height:44px;color:var(--blue);text-decoration:underline;text-underline-offset:.18em;cursor:pointer}
.send-note{font-size:.9375rem;color:var(--muted);max-width:42rem}
.explain{display:inline-flex;align-items:center;gap:.5rem;font-size:.9375rem}
.explain select{width:auto;min-height:44px}
.send .btn{min-width:10.5rem}
.status{margin-top:1rem;font-size:.9375rem}
.status.error{color:var(--red)}
.status .progress{display:inline-block;width:1em;text-align:left}

/* Pass (license key) */
.pass{margin-top:1.25rem;font-size:.9375rem}
.pass summary{cursor:pointer;color:var(--muted);padding:.75rem 0 .75rem 1.5rem}
.pass-form{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.5rem}
.pass-form.standalone{display:block;margin:1.5rem 0;max-width:34rem}
.pass-form.standalone label{display:block;font-weight:700;margin-bottom:.4rem}
.pass-row{display:flex;flex-wrap:wrap;gap:.6rem}
.pass-form input,.pass-row input{flex:1 1 16rem;min-height:44px;padding:0 .75rem;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--paper);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.pass-state{margin-top:.5rem}

/* Result */
.result{margin-top:2rem;scroll-margin-top:1rem;max-width:52rem}
.praise{margin-top:1.5rem}
.result[hidden]{display:none}
.verdict{display:grid;gap:.4rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}
.verdict-level{font-size:clamp(2.75rem,2rem + 3vw,4rem);font-weight:800;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.verdict-label{font-weight:700}
.verdict p{color:var(--muted);max-width:42rem}
.verdict .verdict-strength{color:var(--ink)}
.verdict .rule{font-size:.9375rem}

.scores{width:100%;border-collapse:collapse;margin-top:1.5rem;font-size:1rem}
.scores th,.scores td{text-align:left;vertical-align:top;padding:.8rem .75rem .8rem 0;border-bottom:1px solid var(--line)}
.scores thead th{font-size:.875rem;color:var(--muted);font-weight:600;padding-top:0}
.scores td.lvl{font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;width:5.5rem}
.scores tr.decides th,.scores tr.decides td{background:var(--blue-soft)}
.scores th:first-child{padding-left:.5rem}
.decides-note{display:block;font-size:.875rem;font-weight:600;color:var(--blue);margin-top:.15rem}
.scores th[scope=row]{font-weight:700;width:12rem}
@media (max-width:40rem){
  .scores,.scores tbody{display:block}
  .scores thead{display:none}
  .scores tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem 1rem;padding:.8rem 0;border-bottom:1px solid var(--line)}
  .scores th,.scores td{border:0;padding:0;width:auto}
  .scores td.lvl{text-align:right;width:auto}
  .scores th:first-child{padding-left:0}
  .scores tr.decides{background:var(--blue-soft);margin:0 -.5rem;padding:.8rem .5rem;border-radius:var(--radius-s)}
  .scores tr.decides th,.scores tr.decides td{background:none;box-shadow:none}
  .scores td.why{grid-column:1/-1}
}

.block{margin-top:2rem}
.block h3{font-size:1.125rem;margin-bottom:.75rem}
.block[hidden]{display:none}
.steps,.strengths,.rewrite .note{max-width:42rem}
.para-gap{display:block;height:.85em}
@media (max-width:63.99rem){.marked{line-height:1.95}}
/* Wide screens: the explanations sit beside the text, so a mark and its fix
   are in view together. */
@media (min-width:64rem){
  .corrections-grid{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:2rem;align-items:start}
  .corrections-grid .fixes-all{position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow-y:auto;padding-left:.75rem;margin-left:-.75rem}
  .corrections-grid .fixes li.active{margin:0 0 0 -.75rem;padding:.7rem .75rem}
  .corrections-grid .fixes{margin:0}
  .fixes-all>summary{display:none}
}
.marked{padding:1rem;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--paper);font-size:1.0625rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.marked mark{background:var(--red-soft);color:inherit;border-bottom:2px solid var(--red);padding:.15em .1em;cursor:pointer;border-radius:2px}
.marked mark:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.marked mark[aria-expanded=true]{background:var(--red);color:var(--sheet)}
.fixes-all>summary{padding:.75rem 0 .75rem 1.5rem;margin-top:.5rem;cursor:pointer;font-weight:700}
.fixes{list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:.1rem}
.fixes li{display:grid;grid-template-columns:1fr;gap:.15rem;padding:.7rem 0;border-bottom:1px solid var(--line)}
.fixes li.active{background:var(--red-soft);margin:0 -.5rem;padding:.7rem .5rem;border-radius:var(--radius-s)}
@media (min-width:48rem){.fixes li.active{margin:0 -.75rem;padding:.7rem .75rem}}
.fix-pair del{color:var(--red);text-decoration-thickness:1.5px}
.fix-pair ins{text-decoration:none;font-weight:700}
.fix-why{color:var(--muted);font-size:.9375rem}
.fix-cat{font-size:.875rem;color:var(--muted)}
/* Phones and tablets: the fix opens right under the word that was tapped. */
.inline-fix{display:block;margin:.4rem 0 .6rem;padding:.6rem .75rem;border-radius:var(--radius-s);background:var(--red-soft);line-height:1.5;white-space:normal}
.inline-fix .fix-why{display:block;margin-top:.15rem}
.inline-fix .fix-cat{display:block;margin-top:.15rem}
@media (min-width:64rem){.inline-fix{display:none}}
@media (max-width:63.99rem){.corrections-grid .fixes li.active{background:none;margin:0;padding:.7rem 0}}
.steps{margin:0;padding-left:1.25rem}
.steps li+li{margin-top:.6rem}
.strengths{margin:0;padding-left:1.25rem;color:var(--muted)}
.rewrite{display:grid;gap:1rem}
@media (min-width:48rem){.rewrite{grid-template-columns:1fr 1fr}}
.rewrite figure{margin:0;display:flex;flex-direction:column}
.rewrite figcaption{font-size:.875rem;font-weight:700;margin-bottom:.35rem}
.rewrite blockquote{flex:1;margin:0;padding:.9rem 1rem;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--paper)}
.rewrite .note{grid-column:1/-1;color:var(--muted);font-size:.9375rem}
.after{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center}

/* Below the tool */
.section{padding:3rem 0;border-top:1px solid var(--line);margin-top:3rem}
.section+.section{margin-top:0}
.section h2{font-size:clamp(1.5rem,1.25rem + 1vw,2rem);margin-bottom:1rem}
.prose:not(.page){max-width:42rem}
.prose h2{margin:2.5rem 0 .6rem}
.prose>h2:first-child,.two>.prose>h2:first-child{margin-top:0}
.section .prose h2,.price h2{margin-bottom:1rem}
.prose h3{font-size:1.1875rem;margin:1.75rem 0 .5rem}
.prose ul,.prose ol{padding-left:1.25rem;margin:.6rem 0 .75rem}
.page>*,.faq>*{max-width:42rem}
.prose li+li{margin-top:.35rem}
.table-wrap{overflow-x:auto;margin:.6rem 0 1rem}
.page>.table-wrap{max-width:48rem}
.prose table{border-collapse:collapse;width:100%;font-size:.9375rem}

.prose th,.prose td{text-align:left;vertical-align:top;padding:.6rem .75rem .6rem 0;border-bottom:1px solid var(--line)}
.prose th{font-weight:700}
/* Phones: each row becomes a block, the first cell its heading and the
   others labelled with their column, instead of a squeezed grid. */
@media (max-width:37.5rem){
  .prose table.stack,.prose table.stack tbody,.prose table.stack tr,.prose table.stack td{display:block;width:auto}
  .prose table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .prose table.stack tr{padding:.8rem 0;border-bottom:1px solid var(--line)}
  .prose table.stack td{border:0;padding:.15rem 0}
  .prose table.stack td:first-child{font-weight:700;padding-bottom:.35rem}
  .prose table.stack td:not(:first-child)::before{content:attr(data-label);display:block;font-size:.8125rem;font-weight:700;color:var(--muted)}
  .prose table.stack td:not(:first-child)+td{margin-top:.35rem}
}
.prose blockquote{margin:1rem 0;padding-left:1rem;border-left:2px solid var(--line-strong);color:var(--muted)}
.source{font-size:.875rem;color:var(--muted)}
.two{display:grid;gap:2rem}
@media (min-width:56rem){.two{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:4rem}}

.price{display:grid;gap:.75rem;align-content:start}
.price-amount{margin:0;font-size:2.5rem;font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.price-amount span{font-size:1.0625rem;font-weight:400;color:var(--muted);letter-spacing:0}
.price ul{margin:0;padding-left:1.25rem}
.price .btn{justify-self:start;margin-top:.5rem}
.fine{font-size:.875rem;color:var(--muted)}

.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;padding:1rem 0 1rem 1.5rem;font-weight:700}
.faq summary,.disclosure summary{list-style:none;position:relative}
.faq summary::-webkit-details-marker,.disclosure summary::-webkit-details-marker{display:none}
.disclosure summary::before{top:1.3rem}
.faq summary::before,.disclosure summary::before{content:"";position:absolute;left:.15rem;width:.45rem;height:.45rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .15s ease-out}
.faq summary::before{top:1.55rem}
.faq details[open]>summary::before,.disclosure[open]>summary::before{transform:rotate(45deg)}
.faq details>div{padding:0 0 1.1rem 1.5rem;color:var(--muted)}

.foot{border-top:1px solid var(--line);padding:2rem 0 2.5rem;font-size:.9375rem;color:var(--muted)}
.foot .wrap{display:grid;gap:1rem}
@media (min-width:48rem){.foot .wrap{grid-template-columns:1fr auto;align-items:start}}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:0}
@media (min-width:48rem){.foot ul{display:flex;gap:1.25rem;margin-top:-10px}}
.foot li a{min-height:44px;display:inline-flex;align-items:center}
.foot a{color:var(--muted)}
.foot a:hover{color:var(--ink)}

.page{padding-top:1.5rem;padding-bottom:3rem}
.page h1{font-size:clamp(1.85rem,1.4rem + 1.8vw,2.6rem);margin-bottom:.75rem;max-width:24ch}
.page .lede{margin-bottom:1.5rem}
.cta-box{margin:2.5rem 0 0;padding:1.25rem 1.5rem;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--sheet)}
.cta-box p{margin-bottom:.9rem}
.page-next{margin-top:2rem}

/* Motion: answers what the user did, nothing ambient. The result settles in
   once, with the score rows staggered. Off under reduced motion. */
@media (prefers-reduced-motion:no-preference){
  .result.enter .verdict{animation:settle .32s ease-out both}
  .result.enter .scores tbody tr{animation:settle .28s ease-out both;animation-delay:calc(var(--i,0) * 50ms + 120ms)}
  @keyframes settle{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
