:root {
  --ink: #202124;
  --muted: #536070;
  --blue: #185abc;
  --action: #0b57d0;
  --pale: #eaf2ff;
  --canvas: #edf2f8;
  --line: #dce1e8;
  --field: #adb7c5;
  --white: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.55 "Studio Sans", Roboto, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { opacity:.38; cursor:default; }
a { color: var(--blue); text-underline-offset: 4px; }
:is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.wrap { width: min(1256px, calc(100% - 88px)); margin-inline: auto; }
.skip { position:absolute; left:16px; top:-60px; z-index:5; background:white; padding:8px; }
.skip:focus { top:10px; }
.mast { border-bottom:1px solid var(--line); }
.mast .wrap, footer .wrap { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.mast .wrap { height:64px; }
.mast nav, footer nav { display:flex; align-items:center; gap:30px; }
.mast nav a, footer nav a { text-decoration:none; color:var(--muted); font-weight:500; font-size:15px; }
.mast nav a[aria-current] { color:var(--ink); text-decoration:underline; text-decoration-color:var(--action); text-underline-offset:7px; text-decoration-thickness:2px; }
.mast nav a:hover, footer a:hover { color:var(--blue); text-decoration:underline; }
.brand, .wordmark { color:var(--ink); display:inline-flex; align-items:center; gap:9px; font-size:29px; font-weight:550; letter-spacing:-1.3px; text-decoration:none; line-height:1; }
.mark { width:34px; height:34px; }
.intro { padding:22px 16px 12px; text-align:center; }
.intro h1 { margin:0; font-size:clamp(36px,3.45vw,48px); font-weight:450; line-height:1.08; letter-spacing:-.024em; text-wrap:balance; }
.intro p { max-width:64ch; margin:9px auto 0; color:var(--muted); font-size:18px; line-height:1.5; text-wrap:pretty; }
.tool-switcher { display:flex; justify-content:center; }
.toolnav { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:5px; }
.toolnav a, .mobile-tools nav a { display:inline-flex; align-items:center; gap:8px; padding:9px 15px; min-height:40px; border-radius:24px; font-size:14px; font-weight:500; color:var(--muted); text-decoration:none; }
.toolnav a:hover, .mobile-tools nav a:hover { background:var(--canvas); }


.toolnav a[aria-current=page], .mobile-tools a[aria-current=page] { background:var(--pale); color:var(--blue); }
.rail-icon { display:inline-flex; align-items:center; }
.rail-icon svg, .mobile-tools summary svg, .ui-icon { width:19px; height:19px; flex:none; }
.mobile-tools,.short-nav,.mobile-adjust { display:none; }
.adjustments { display:grid; gap:19px; }
.bench { display:grid; grid-template-columns:minmax(260px,315px) minmax(0,1fr); gap:clamp(28px,4vw,64px); align-items:stretch; margin:16px 0 64px; --sheet-aspect:.7727273; }
.editor-column { min-width:0; }
.controls { padding:17px 0; }
.controls h2, .deskbar h2 { margin:0; font-weight:520; font-size:22px; letter-spacing:-.035em; line-height:1.25; }
.controls form { margin-top:24px; }
.controls form, .letter-options, .options>div { display:grid; gap:19px; }
.field { display:grid; align-content:start; gap:7px; font-size:14px; font-weight:500; }
.field :is(select,textarea,input[type=text]) { width:100%; min-width:0; background:white; border:1px solid var(--field); border-radius:9px; padding:11px 13px; font-size:16px; line-height:1.4; font-weight:400; }
.field :is(select,textarea,input[type=text]):hover { border-color:var(--muted); }
.field textarea { resize:vertical; min-height:94px; }
.field select { min-height:45px; text-overflow:ellipsis; }
.two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.check { display:flex; align-items:center; gap:10px; font-size:15px; }
.check input { width:18px; height:18px; margin:0; accent-color:var(--action); }
.options { border-block:1px solid var(--line); }
.options summary, .notes summary, .mobile-tools summary { list-style:none; }
summary::-webkit-details-marker { display:none; }
.options summary { display:flex; align-items:center; gap:10px; padding:15px 1px; font-size:15px; font-weight:500; }
.options summary::after, .notes summary::after, .mobile-tools summary::after { content:""; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); flex:none; margin-left:auto; }
details[open]>summary::after { transform:rotate(225deg); }
.options>div { padding:4px 0 21px; }
.check[hidden] { display:none; }
.template-status { margin:14px 0 10px; display:flex; justify-content:space-between; align-items:center; gap:8px; background:var(--pale); border-radius:10px; padding:8px 12px; font-size:14px; }
.template-status[hidden] { display:none; }
.template-status button, .fit { border:0; background:transparent; color:var(--blue); border-radius:16px; padding:6px 12px; font-size:14px; font-weight:500; }


.desk { display:grid; grid-template-rows:auto minmax(0,1fr) auto; align-self:stretch; min-width:0; overflow:hidden; background:var(--canvas); border-radius:22px; }
.deskbar, .deskfoot, .paging { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.deskbar { padding:14px 24px 0; }
.deskbar>div { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 13px; }
.deskbar h2 { font-size:17px; font-weight:550; }
.paper-size { color:var(--muted); font-size:13px; text-transform:capitalize; }
.print { display:inline-flex; align-items:center; justify-content:center; gap:9px; flex:none; min-height:42px; padding:9px 20px; border-radius:24px; border:0; color:white; background:var(--action); font-weight:550; font-size:15px; }
.print:hover { background:var(--blue); }
.paper-frame { container-type:size; min-height:clamp(490px,calc(100svh - 289px),920px); padding:16px 26px; display:grid; place-items:center; }
.paper-view { aspect-ratio:var(--sheet-aspect); width:min(100cqw,calc(100cqh * var(--sheet-aspect))); min-width:0; background:white; box-shadow:0 0 0 1px rgb(60 64 67 / 12%),0 3px 10px rgb(60 64 67 / 12%); }
.paper-page { display:block; height:auto; width:100%; }
.desk.zoomed .paper-frame { container-type:normal; min-height:0; }
.desk.zoomed .paper-view { aspect-ratio:var(--sheet-aspect); width:min(100%,816px); }
.deskfoot { min-height:42px; padding:0 18px 9px; }
.fit:hover, .paging button:hover:not(:disabled) { background:white; }
.paging { gap:5px; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.paging button { display:grid; place-items:center; width:34px; height:32px; border:0; background:transparent; border-radius:20px; }
.paging .ui-icon { width:15px; height:15px; }
.empty { height:100%; display:grid; place-items:center; margin:0; padding:24px; text-align:center; color:var(--muted); }
.samples,.notes { border-top:1px solid var(--line); padding:38px 0 46px; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.section-head h2,.notes h2,.about-copy h2 { margin:0; font-size:28px; font-weight:450; line-height:1.2; letter-spacing:-.035em; }
.section-head a,.sample-links a { font-size:14px; font-weight:500; text-decoration:none; }
.section-head a:hover,.sample-links a:hover { text-decoration:underline; }
.sample-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px; }
.sample { display:grid; grid-template-columns: minmax(150px,42%) 1fr; column-gap:20px; align-content:start; }
.sample-open { display:contents; color:var(--ink); }


.sample-open:focus-visible .sample-art { outline:3px solid var(--action); }
.sample-art { grid-row:1/4; background:var(--canvas); border-radius:14px; min-height:145px; padding:20px 12px 0; overflow:hidden; display:grid; align-items:end; }
.sample:nth-child(2n) .sample-art { background:#f1eef8; }
.paper-tile { object-fit:cover; object-position:top left; width:100%; height:auto; aspect-ratio:2/1; box-shadow:0 0 0 1px rgb(60 64 67 / 10%); background:white; }
.sample-name { font-size:20px; line-height:1.3; align-self:end; font-weight:500; letter-spacing:-.025em; padding-top:8px; }
.sample-open:hover .sample-name { color:var(--blue); }
.sample p,.sample-links { grid-column:2; }
.sample p { margin:6px 0 12px; color:var(--muted); font-size:15px; }
.sample-links { display:flex; gap:6px 18px; flex-wrap:wrap; }
.notes { display:grid; grid-template-columns:1fr 1.65fr; gap:9%; }
.notes>div:first-child p { color:var(--muted); max-width:36ch; }
.notes details { border-bottom:1px solid var(--line); }
.notes summary { display:flex; align-items:center; gap:15px; padding:15px 0; font-weight:500; }
.notes details p,.about-copy p { max-width:70ch; color:var(--muted); }
.about-copy { max-width:720px; margin:0 auto 64px; }
.about-copy h2 { margin:28px 0 8px; }
.about-copy p { margin:0 0 18px; }
footer { padding:38px 0; border-top:1px solid var(--line); background:#f8fafd; }
footer p { font-size:14px; margin:8px 0 0; color:var(--muted); }
.wordmark { font-size:25px; }
#sheet-print { display:none; }
@media(max-width:980px) {
 .wrap { width:calc(100% - 48px); }
 .bench { grid-template-columns:minmax(230px,28%) minmax(0,1fr); gap:24px; }
 .toolnav a { padding:8px 10px; }
 .sample-grid { gap:22px; }
 .sample { grid-template-columns:1fr; }
 .sample-art,.sample-name,.sample p,.sample-links { grid-column:1; grid-row:auto; }
 .sample-art { height:162px; padding-inline:12%; }
 .paper-tile { height:auto; }
 .sample-name { padding-top:13px; }
}
@media(max-width:720px) {
 .wrap { width:calc(100% - 32px); }
 .mast .wrap { height:60px; }
 .brand { font-size:25px; gap:5px; }
 .mark { width:29px;height:29px; }
 .mast nav { gap:14px; }
 .mast nav a { font-size:14px; white-space:nowrap; }
 .long-nav { display:none; }
 .short-nav { display:inline; }
 .controls h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .mobile-adjust { display:inline-flex; align-items:center; justify-self:start; gap:8px; border:0; color:var(--blue); font-size:14px; font-weight:500; padding:7px 0; background:transparent; }


 .mobile-adjust::after { content:""; display:block; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-left:4px; }
 .mobile-adjust[aria-expanded="true"]::after { transform:rotate(225deg); }
 .mobile-adjust[aria-expanded="false"] + .adjustments { display:none; }
 .intro { padding:32px 2px 18px; }
 .intro h1 { font-size:36px; }
 .intro p { font-size:16px; margin-top:9px; }
 .tool-switcher .toolnav { display:none; }
 .mobile-tools { display:block; position:relative; }
 .mobile-tools summary { display:flex; align-items:center; gap:9px; padding:9px 15px; background:var(--pale); border-radius:20px; color:var(--blue); font-size:14px; font-weight:500; }
 .mobile-tools nav { position:absolute; z-index:2; top:calc(100% + 4px); left:50%; transform:translateX(-50%); width:218px; display:grid; padding:6px; border-radius:15px; border:1px solid var(--line); box-shadow:0 5px 18px rgb(60 64 67 / 15%); background:white; }
 .mobile-tools nav a { border-radius:8px; }
 .bench { grid-template-columns:1fr; gap:16px; margin:22px 0 36px; }
 .controls { padding:0; }
 .controls h2 { font-size:20px; }
 .controls form { margin-top:0; gap:6px; }
 .field textarea { min-height:60px; }
 .letter-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .letter-options .check { grid-column:1/-1; }
 .desk { border-radius:16px; }
 .deskbar { padding:12px 13px 0; }
 .deskbar>div { display:grid; gap:0; }
 .deskbar h2 { font-size:16px; }
 .print { font-size:14px; padding:8px 15px; }
 .paper-frame,.desk.zoomed .paper-frame { container-type:normal; min-height:0; padding:16px 20px; }
 .paper-view { width:100%; }
 .desk.zoomed .paper-frame { padding-inline:4px; }
 .deskfoot { padding-inline:8px; }
 .section-head h2,.notes h2 { font-size:24px; }
 .section-head { margin-bottom:17px; }
 .samples,.notes { padding:26px 0; }
 .sample-grid,.notes { grid-template-columns:1fr; gap:23px; }
 .sample { grid-template-columns:94px 1fr; gap:0 13px; }
 .sample-art { height:106px; min-height:0; padding:10px 6px 0; grid-row:1/4; }
 .paper-tile { height:90px; object-fit:cover; object-position:left center; }
 .sample-name,.sample p,.sample-links { grid-column:2; }
 .sample-name { padding-top:0; font-size:17px; }
 .sample p { font-size:14px; margin:3px 0 6px; }
 footer .wrap { align-items:flex-start; flex-direction:column;gap:18px; }
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{html,body{margin:0!important;padding:0!important;background:white!important}body>*:not(#sheet-print){display:none!important}

#sheet-print{display:block!important}.printed{display:block;break-after:page;break-inside:avoid;overflow:hidden}.printed:last-child{break-after:auto}.printed svg.paper-page{width:100%;height:100%;display:block}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
