@import url("route-sheet.css");
:root {
  color-scheme: light dark;
  --page:var(--sw-color-canvas); --surface:var(--sw-color-surface); --ink:var(--sw-color-ink); --muted:var(--sw-color-muted);
  --action:var(--sw-color-primary); --button-text:var(--sw-color-on-primary); --border:var(--sw-color-border);
  --wash:var(--sw-color-tint); --focus:var(--sw-color-focus); --accent:var(--sw-color-accent);
  --paper:var(--surface); --paper-ink:var(--ink);
}
:root[data-theme=light] {color-scheme:light;}
:root[data-theme=dark] {color-scheme:dark;}
* {box-sizing:border-box;}
[hidden] {display:none!important;}
body {margin:0; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; background:var(--page);color:var(--ink);font:normal 1rem/1.55 var(--sw-font-sans,system-ui,sans-serif);overflow-wrap:anywhere;}
h1,h2,h3,p,ul {margin:0;}
a {color:var(--action);text-decoration-thickness:.08em;text-underline-offset:.18em;}
button,input {font:inherit;}
button,a,input,summary {-webkit-tap-highlight-color:transparent;}
button,a {touch-action:manipulation;}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {outline:3px solid var(--focus);outline-offset:3px;}
button {cursor:pointer;}
.wrap {width:min(100%,74rem);margin-inline:auto;padding-inline:max(clamp(1rem,3vw,2rem),env(safe-area-inset-left)) max(clamp(1rem,3vw,2rem),env(safe-area-inset-right));}
.skip {position:absolute;top:.5rem;left:.5rem;z-index:2;transform:translateY(-180%);background:var(--surface);padding:.6rem;}
.skip:focus {transform:none;}
.mast {border-bottom:1px solid var(--border);}
.mast-inner {display:flex;align-items:center;justify-content:space-between;gap:.6rem 1.8rem;flex-wrap:wrap;padding-block:max(.85rem,env(safe-area-inset-top)) .85rem;}
.brand {display:inline-flex;align-items:center;gap:.6rem;min-height:44px;font-size:1.16rem;font-weight:720;letter-spacing:-.03em;}
.brand img {width:2.5rem;height:2.5rem;max-width:100%;}
.brand b {color:var(--accent);}
.mast a {color:var(--ink);text-decoration:none;}
.mast nav,.actions,.article-links,.foot,.mark-control {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem 1.25rem;}
.mast nav a,.foot a,.theme,.back,.article-link,.quiet-link,.text-link {display:inline-flex;align-items:center;min-height:44px;}
.mast nav a {font-size:.94rem;}
.mast nav a[aria-current=page] {text-decoration:underline;text-underline-offset:.28em;}
.mast nav a:hover,.foot a:hover,.lesson-link:hover :is(h2,h3),.brand:hover {text-decoration:underline;}
.mast .account-link {border:1px solid var(--sw-color-control-border);border-radius:.7rem;padding:.4rem .95rem;background:var(--surface);}
main {flex:1;padding-block:clamp(1.1rem,3.4vw,3rem) clamp(3rem,7vw,6.5rem);}
h1,.library h2,.section-head h2,.sheet h2,.account-panel h2,.empty h2,.page-title h1,.next h2 {font-family:inherit;font-weight:700;letter-spacing:-.025em;line-height:1.18;text-wrap:balance;}
h1 {font-size:clamp(2.25rem,6vw,4.35rem);}
.lead {max-width:40rem;margin-top:1.05rem;font-size:clamp(1.03rem,1.8vw,1.22rem);color:var(--muted);line-height:1.54;}
.actions {margin-top:1.35rem;}
.button {min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1.14rem;border:1px solid transparent;border-radius:.63rem;font-size:1rem;font-weight:650;line-height:1.35;text-decoration:none;text-align:center;white-space:normal;overflow-wrap:anywhere;}
.button:hover {filter:brightness(.94);}
.primary {background:var(--action);color:var(--button-text);}
.secondary {background:var(--surface);color:var(--action);border-color:var(--border);}
.quiet-link,.text-link,.article-link,.back {font-weight:590;}
.sheet-wrap {background:var(--wash);padding:clamp(1rem,2.6vw,2rem);margin-top:1.5rem;border:1px solid var(--border);border-radius:1rem;}
.sheet {background:var(--paper);color:var(--paper-ink);padding:clamp(1.1rem,2.8vw,2rem);border-radius:.75rem;}
.sheet::before {content:"";display:block;background:var(--accent);width:2rem;height:.25rem;margin-bottom:.8rem;}
.sheet-label,.kind,.article-meta {font-weight:700;color:var(--accent);font-size:.8rem;line-height:1.4;letter-spacing:.055em;}
.sheet-label {color:var(--paper-ink);}
.sheet h2 {margin:.48rem 0 1.05rem;font-size:clamp(1.4rem,2.45vw,2.1rem);}
.sheet-answer {border-block:1px solid var(--paper-ink);padding:.65rem 0;line-height:1.45;}
.sheet-answer p + p {margin-top:.46rem;}
.sheet .text-link {color:var(--paper-ink);font-size:.91rem;margin-top:.35rem;}
.library {margin-top:clamp(2rem,4vw,3.5rem);}
.library h2,.section-head h2,.empty h2,.account-panel h2,.next h2 {font-size:clamp(1.55rem,3.5vw,2.3rem);margin-bottom:1rem;}
.lesson-list {list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.85rem;}
.lesson-link {display:flex;flex-direction:column;align-items:flex-start;height:100%;color:var(--ink);text-decoration:none;background:var(--surface);border:1px solid var(--border);border-radius:.8rem;padding:clamp(1rem,2vw,1.55rem);}
.lesson-link:hover {border-color:var(--action);}
.lesson-link :is(h2,h3) {font-size:1.22rem;line-height:1.28;letter-spacing:-.025em;margin-top:.5rem;}
.lesson-link p,.account-panel p,.empty p,.result-note {color:var(--muted);}
.lesson-link p {margin-top:.6rem;font-size:.96rem;}
.page-title {max-width:50rem;margin-bottom:1.55rem;}
.search {max-width:47rem;margin-bottom:1.65rem;}
.search label {display:block;font-weight:650;margin-bottom:.4rem;}
.search-line {display:flex;gap:.55rem;align-items:stretch;}
.search input {flex:1;min-width:0;border:1px solid var(--border);color:var(--ink);background:var(--surface);border-radius:.63rem;padding:.65rem .9rem;min-height:46px;}
.search input::placeholder {color:var(--muted);opacity:1;}
.result-note {margin-bottom:1rem;}
.reading {max-width:47rem;margin-inline:auto;}
.back {margin-top:-.6rem;}
.article-head {padding-block:1.05rem 1.7rem;border-bottom:1px solid var(--border);margin-bottom:1.6rem;}
.article-head h1 {font-size:clamp(2.15rem,5.4vw,3.85rem);margin:.6rem 0 .3rem;}
.article-meta {display:flex;flex-wrap:wrap;gap:.35rem 1rem;}
.article-meta span+span {font-weight:500;color:var(--muted);letter-spacing:0;}
.prose {max-width:45rem;font-size:1.05rem;line-height:1.68;}
.prose > * + *, .prose section + section {margin-top:1.25rem;}
.prose section h2,.prompt-head h2,.account-panel h3 {font-size:1.27rem;line-height:1.32;font-weight:680;letter-spacing:-.025em;margin-bottom:.45rem;}
.prose section p+p {margin-top:.8rem;}
.prompt,.check,.account-panel,.empty,.next,.notice {padding:clamp(1.1rem,3vw,1.8rem);border-radius:.85rem;}
.prompt,.next {background:var(--wash);border:1px solid var(--border);}
.prompt-head {display:flex;align-items:center;justify-content:space-between;gap:.4rem 1rem;flex-wrap:wrap;}
.prompt-head h2 {margin:0;}
.prompt-body {user-select:text;border-inline-start:.2rem solid var(--action);padding-inline-start:.85rem;line-height:1.58;white-space:pre-wrap;margin-top:.9rem;}
.status {font-size:.92rem;color:var(--muted);}
.status:not(:empty) {margin-top:.45rem;}
.check,.account-panel,.empty {background:var(--surface);border:1px solid var(--border);}
details {margin-top:.75rem;}
summary {cursor:pointer;color:var(--action);font-weight:650;min-height:44px;padding-block:.55rem;}
details p {margin-top:.45rem;}
.next,.next-link {margin-top:1.55rem;}
.next .button,.empty .button,.account-panel .button {margin-top:.75rem;}
.article-links {border-top:1px solid var(--border);margin-top:1.15rem;padding-top:.65rem;}
.next p {margin:.35rem 0;}
.mark-control {margin-top:.75rem;}
.account-panel,.empty {max-width:47rem;}
.account-panel .kind {color:var(--accent);margin-bottom:.5rem;}
.account-panel h3 {margin-top:1.05rem;}
.notice {border:1px solid var(--border);margin-bottom:1.1rem;background:var(--wash);}
.foot {min-height:5.25rem;padding-block:.7rem max(.7rem,env(safe-area-inset-bottom));}
footer {border-top:1px solid var(--border);}
.foot a,.theme {font-size:.95rem;color:var(--muted);}
.foot .channel {font-weight:680;color:var(--ink);gap:.25rem;text-decoration:none;}
.theme {margin-inline-start:auto;padding:.3rem .55rem;background:transparent;border:1px solid var(--border);border-radius:.55rem;}
@media (max-width:50rem) {
  .sheet-wrap {margin-top:1.5rem;max-width:34rem;}
  .mast-inner {column-gap:.6rem;}
  .mast nav {gap:.25rem .85rem;}
}
@media (max-width:38rem) {
  .mast-inner {display:block;padding-block:max(.5rem,env(safe-area-inset-top)) .25rem;}
  .brand {font-size:1.08rem;}
  .brand img {width:1.9rem;height:1.9rem;}
  .mast nav {margin-top:.05rem;justify-content:space-between;gap:.1rem .65rem;}
  .mast nav a {font-size:.91rem;}
  .mast .account-link {border:0;padding:.15rem 0;background:transparent;}
  .sheet-wrap {padding:1.05rem;}
  .sheet-label,.kind,.article-meta {letter-spacing:.035em;}
  .actions {gap:.5rem 1.05rem;}
  .theme {margin-inline-start:0;}
  .foot {gap:.1rem 1rem;}
}
@media (max-width:23rem) {
  .button {padding:.62rem .82rem;}
  .search-line {flex-wrap:wrap;}
  .search input {flex-basis:10rem;}
}
@media (forced-colors:active) {
  .button,.sheet,.lesson-link {border:1px solid ButtonText;}
}

.learning-start {margin-top:.65rem;}
.learning-start details,.learning-card,[data-saved-template] {max-width:47rem;}
.learning-card,[data-saved-template] {margin-top:1.25rem;}
.learning-card :is(h3,h4),.learning-start h3,[data-saved-template] h3 {margin:.65rem 0 .35rem;}
.learning-card summary,.learning-start summary {width:fit-content;}
.learning-card li + li,.learning-card p + p,.learning-start p + p {margin-top:.45rem;}
.choice-list {display:grid;gap:.45rem;justify-items:start;margin-block:.7rem;}
.choice-list .button {text-align:left;justify-content:flex-start;}
.learning-card label,.learning-start label {display:block;margin-top:.45rem;}
.learning-card fieldset {border:1px solid var(--border);border-radius:.6rem;min-width:0;padding:.55rem .85rem;}
.learning-card fieldset label {display:flex;align-items:center;gap:.6rem;min-height:44px;}
.learning-card legend {padding:0 .4rem;font-weight:650;}
.learning-card textarea,.learning-start select {width:100%;max-width:32rem;min-height:44px;display:block;margin:.35rem 0 .75rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:.55rem;background:var(--surface);color:var(--ink);font:inherit;}
.learning-card textarea {resize:vertical;}
.learning-start select:focus-visible,.learning-card textarea:focus-visible,.learning-start h3:focus,.learning-card [tabindex="-1"]:focus {outline:3px solid var(--focus);outline-offset:3px;}
.learning-start .actions {margin:.65rem 0;}
.learning-card form {margin:1rem 0 0;}

.graphite-hero {isolation:isolate;position:relative;overflow:hidden;color:#f5f3fc;background:#101020;border-radius:1.25rem;}
.hero-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% center;z-index:-2;}
.graphite-hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#101020 3%,rgb(16 16 32 / 95%) 34%,rgb(16 16 32 / 35%) 60%,transparent 83%);}
.hero-copy {padding:clamp(1.5rem,4.5vw,3.75rem);max-width:39rem;}
.graphite-hero h1 {font-size:clamp(2.25rem,4.6vw,3.75rem);line-height:1.08;letter-spacing:-.05em;max-width:15ch;}
.graphite-hero em {color:#d0baff;font-style:normal;}
.graphite-hero .lead {color:#eeeaf6;max-width:29rem;}
.graphite-hero .primary {background:#b49af8;color:#101020;}
.graphite-hero .quiet-link {color:#f5f3fc;}
.graphite-hero a:focus-visible {outline-color:#24d9c5;}
.button {min-height:48px;}
.card-icon {display:grid;place-items:center;width:2.65rem;height:2.65rem;background:var(--wash);color:var(--action);border-radius:.8rem;}
.card-icon svg {width:1.45rem;height:1.45rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.lesson-link {border-radius:1rem;}
.lesson-link :is(h2,h3) {margin-top:1rem;}
.library {margin-top:clamp(1.5rem,4vw,3rem);}
.practice-preview {margin-top:2rem;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:1.25rem;padding:clamp(1.25rem,3.4vw,2.5rem);background:var(--surface);border:1px solid var(--border);border-radius:1rem;}
.practice-preview h2 {line-height:1.2;margin-bottom:.6rem;}
.practice-preview>div>p {max-width:40ch;}
.example-message {background:var(--wash);border-radius:.8rem;padding:1rem;}
.example-message p {font-weight:600;margin-bottom:.65rem;}
.example-message [role=status]:not(:empty) {display:block;margin-top:.65rem;}
.example-message .article-link {display:flex;width:fit-content;}
:is(.search input,.learning-card textarea,.learning-start select,.button.secondary,.mast .account-link) {border-color:var(--sw-color-control-border);}
[data-course], [data-editorial-practice] {margin-block:1.5rem;padding:clamp(1rem,3vw,2rem);border:1px solid var(--border);border-inline-start:4px solid var(--action);border-radius:1rem;background:var(--surface);}
[data-course] :is(textarea, input),[data-editorial-practice] textarea {font:inherit;color:var(--ink);background:var(--page);border:1px solid var(--sw-color-control-border);}
[data-course] textarea {display:block;width:100%;max-width:100%;min-height:6rem;border-radius:.5rem;padding:.65rem;}
[data-course] :is(p, form, details, button) {margin-block:.5rem;}
[data-course] button {margin-inline-end:.5rem;}
:is([data-course],[data-editorial-practice]) :is(input,textarea):focus-visible {outline:3px solid var(--focus);outline-offset:3px;}
@media (max-width:40rem) {
  .graphite-hero::before {background:linear-gradient(90deg,rgb(16 16 32 / 98%) 5%,rgb(16 16 32 / 88%) 52%,rgb(16 16 32 / 42%));}
  .hero-art {object-position:76% center;}
  .hero-copy {padding:1.35rem;}
  .graphite-hero .lead {max-width:27ch;}
  .practice-preview {grid-template-columns:minmax(0,1fr);}
}
