/* kp-orange-writing.v1.css: generated from Writing.dc.html by convert.py. Do not edit by hand; edit src/ and regenerate. */
body.ko-body-writing{margin:0;background:#F6F2EA;color:#17161A;font-family:"Hanken Grotesk",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.ko-writing a{color:#B83A0A;text-decoration:none}
.ko-writing a:hover{color:#8F2C06}
.ko-writing *{box-sizing:border-box}
.ko-writing ::selection{background:#FF5A1F;color:#0B0B0C}
.ko-writing .disp{font-family:"Big Shoulders Display","Oswald",Impact,sans-serif;text-transform:uppercase;letter-spacing:-0.01em}
.ko-writing .serif{font-family:"Instrument Serif",Georgia,serif}
.ko-writing .label{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase}
.ko-writing :focus-visible{outline:3px solid var(--signal);outline-offset:4px;border-radius:2px}
.ko-writing .navlink{color:#EFE9DF;font-size:14px;font-weight:500;padding:12px 4px;position:relative;cursor:pointer}
.ko-writing .navlink::after{content:"";position:absolute;left:4px;right:4px;bottom:6px;height:2px;background:var(--signal);transform:scaleX(0);transform-origin:right;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.ko-writing .navlink:hover{color:#EFE9DF}
.ko-writing .navlink:hover::after{transform:scaleX(1);transform-origin:left}
.ko-writing .btn{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:0 24px;border-radius:999px;background:var(--signal);color:#0B0B0C;font-weight:700;font-size:15px;cursor:pointer;transition:transform .3s cubic-bezier(.16,1,.3,1),background .2s;border:none}
.ko-writing .btn:hover{color:#0B0B0C;background:#FF7A45;transform:translateY(-2px)}
.ko-writing .btn svg{transition:transform .3s cubic-bezier(.16,1,.3,1)}
.ko-writing .btn:hover svg{transform:translateX(4px) rotate(-45deg)}
.ko-writing .ghost{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:999px;border:1.5px solid rgba(239,233,223,.35);color:#EFE9DF;font-weight:600;font-size:15px;cursor:pointer;transition:border-color .2s,background .2s;background:transparent}
.ko-writing .ghost:hover{color:#0B0B0C;background:#EFE9DF;border-color:#EFE9DF}
.ko-writing .ghost.dark{border-color:rgba(23,22,26,.3);color:#17161A;background:transparent}
.ko-writing .ghost.dark:hover{background:#17161A;color:#F6F2EA;border-color:#17161A}
.ko-writing .helppill{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;border:1.5px solid #FF5A1F;color:#EFE9DF;font-weight:700;font-size:14px;cursor:pointer;transition:background .2s,color .2s}
.ko-writing .helppill:hover{background:#FF5A1F;color:#0B0B0C}
.ko-writing .soc{color:#EFE9DF;font-size:15px;font-weight:500;display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.ko-writing .soc:hover{color:var(--signal)}
.ko-writing .filterbtn{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid rgba(23,22,26,.22);background:transparent;color:#4A4640;font-family:"Hanken Grotesk",sans-serif;font-weight:600;font-size:13px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.ko-writing .filterbtn:hover{border-color:#17161A;color:#17161A}
.ko-writing .filterbtn[aria-pressed="true"]{background:#17161A;border-color:#17161A;color:#F6F2EA}
.ko-writing .row{display:grid;grid-template-columns:150px minmax(0,1fr) 56px;align-items:center;gap:28px;padding:28px 0;border-top:1px solid rgba(23,22,26,.16);color:#17161A;cursor:pointer;text-decoration:none}
.ko-writing .row:hover{color:#17161A}
.ko-writing .row .rt{font-weight:800;font-size:23px;line-height:1.24;transition:color .2s}
.ko-writing .row:hover .rt{color:#B83A0A}
.ko-writing .row .rsub{margin-top:8px;font-size:13px;color:#6A635B}
.ko-writing .row .ra{width:44px;height:44px;border-radius:50%;background:#17161A;color:#F6F2EA;display:flex;align-items:center;justify-content:center;transition:transform .35s cubic-bezier(.16,1,.3,1),background .2s;flex:0 0 auto}
.ko-writing .row:hover .ra{background:#B83A0A;transform:rotate(-45deg)}
@supports (animation-timeline: view()){.ko-writing .upin{animation:upIn linear both;animation-timeline:view();animation-range:entry 0% cover 30%}}
@keyframes upIn{from{transform:translateY(30px);opacity:0}}
@media (prefers-reduced-motion: reduce){.ko-writing *,.ko-writing *::before,.ko-writing *::after{animation:none!important;transition:none!important}}
@media (min-width: 900px) and (max-width: 1279px){.ko-writing .ko-root{zoom:calc(100vw / 1280px)}}@supports not (zoom: calc(100vw / 1280px)){@media (min-width: 900px) and (max-width: 1279px){.ko-writing .ko-root{zoom:.85}}}
/* ---- stage 3 common: lessons from My Story and the homepage, applied up front ----
   convert.py replaces .ko-writing with the page scope (.ko-about, .ko-media, ...). */

/* 1. Photos show whole, never cropped (Khary 2026-09-23/24: faces were cut off). A photo keeps its own
      shape and its frame follows it; no fixed-height frames, no parallax zoom, no object-fit crop.
      Decorative images (alt="") are handled per page. */
html body .ko-writing .ko-root img:not([alt=""]){height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;animation:none!important;transform:none!important;translate:none!important;scale:none!important}
html body .ko-writing .ko-root *:has(> img:not([alt=""])){height:auto!important;min-height:0!important;aspect-ratio:auto!important}

/* 2. Scroll reveals finish within 160 px of entering the screen (Khary 2026-09-24): nothing on screen
      may sit dim, half-drawn, clipped or on a wrong number. */
html body .ko-writing :is(.upin,.reveal,.bar,.draw){animation-range:entry 0% entry 160px!important}
/* overflow:hidden makes a box a scroll container, and a reveal inside it follows that box (which never
   scrolls) instead of the page, so it parks part-way forever (found on the Experience closer: 77.5%).
   overflow:clip clips the same way without becoming a scroll container. */
html body .ko-writing .ko-root:is([style*="overflow: hidden"], [style*="overflow:hidden"]), html body .ko-writing .ko-root :is([style*="overflow: hidden"], [style*="overflow:hidden"]){overflow:clip!important}

/* 4. Phones and small tablets (no phone artboards for these pages). The page's own help band and footer
      give way to the shell's phone help band and footer, as on Get help. */
@media (max-width: 899px){
  html body .ko-writing .ko-root{--ko-gut:max(20px, calc((100vw - 680px) / 2));overflow-x:clip}
  html body .ko-writing .ko-root :is(.helpband, footer){display:none!important}
  /* frame: one gutter (20 px at 390, wider on tablets so lines stay near 640 px), phone section rhythm */
  html body .ko-writing .ko-root section, html body .ko-writing .ko-root>[data-ko-sec]{padding:64px var(--ko-gut)!important;min-height:0!important;height:auto!important}
  html body .ko-writing .ko-root [data-ko-sec]:has(> section){padding:0!important}  /* wrappers around sections */
  html body .ko-writing .ko-root>:first-child{padding-top:116px!important}         /* clears the floating shell header */
  /* every drawn grid becomes one column; sticky columns scroll normally */
  html body .ko-writing .ko-root :is([style*="grid-template-columns"], .cols){grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
  html body .ko-writing .ko-root [style*="position: sticky"], html body .ko-writing .ko-root .sticky{position:static!important}
  html body .ko-writing .ko-root [style*="display: flex"]{flex-wrap:wrap}
  html body .ko-writing .ko-root [style*="width:"]:not(img):not(svg):not([aria-hidden="true"]){max-width:100%!important}
  /* photos: whole, full column width, no taller than a comfortable screen share */
  html body .ko-writing .ko-root img:not([alt=""]){width:100%!important;max-width:560px}
  html body .ko-writing .ko-root figure{margin-left:0!important;margin-right:0!important;rotate:0deg!important}
  /* type, from the phone artboards (Home, My Story, Get help) */
  html body .ko-writing .ko-root h1{font-size:clamp(52px, 17vw, 76px)!important;line-height:.86!important}
  html body .ko-writing .ko-root h2.disp, html body .ko-writing .ko-root .ttl{font-size:clamp(38px, 12vw, 56px)!important;line-height:.9!important;max-width:none!important}
  html body .ko-writing .ko-root .num{font-size:108px!important;-webkit-text-stroke-width:1.5px}
  html body .ko-writing .ko-root :is(p, li){max-width:none!important}
  html body .ko-writing .ko-root p.serif, html body .ko-writing .ko-root .serif[style*="font-size: 2"], html body .ko-writing .ko-root .serif[style*="font-size: 3"]{font-size:23px!important;line-height:1.2!important}
  html body .ko-writing .ko-root .body p{font-size:18px;line-height:1.65}
  html body .ko-writing .ko-root .head{flex-wrap:wrap;gap:12px 20px!important;margin-bottom:32px!important}
  html body .ko-writing .ko-root h2, html body .ko-writing .ko-root .ttl{overflow-wrap:anywhere;hyphens:manual}
  html body .ko-writing .ko-root .stat{flex:1 1 140px!important}
  html body .ko-writing .ko-root .know{columns:1!important}
  html body .ko-writing .ko-root .btn, html body .ko-writing .ko-root .ghost{min-height:48px}
  /* dated rows (timeline, "On the record", awards): the date sits above its text instead of a 150 px column */
  html body .ko-writing .ko-root :is(.tlrow, .rec li, .plain li){grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
  /* the desktop help band's wrapper and the rule drawn above it go with it */
  html body .ko-writing .ko-root *:has(> .helpband):not(section){display:none!important}
  html body .ko-writing .ko-root .draw:has(+ * > .helpband){display:none!important}
}

/* Wide screens (lesson 3): past 1440 px every section keeps its 1440 px composition, centered.
   Generated by preview/wide_rules.py from the side padding each section has at 1440 px. */
@media (min-width: 1441px){
html body .ko-writing [data-ko-sec="01-intro"]{padding-left:calc((100vw - 1440px) / 2 + 48px)!important;padding-right:calc((100vw - 1440px) / 2 + 48px)!important}
html body .ko-writing [data-ko-sec="02-featured"]{padding-left:calc((100vw - 1440px) / 2 + 48px)!important;padding-right:calc((100vw - 1440px) / 2 + 48px)!important}
html body .ko-writing [data-ko-sec="03-filter-list"]{padding-left:calc((100vw - 1440px) / 2 + 48px)!important;padding-right:calc((100vw - 1440px) / 2 + 48px)!important}
html body .ko-writing [data-ko-sec="04-help-band"]{padding-left:calc((100vw - 1440px) / 2 + 48px)!important;padding-right:calc((100vw - 1440px) / 2 + 48px)!important}
html body .ko-writing [data-ko-sec="footer"]{padding-left:calc((100vw - 1440px) / 2 + 48px)!important;padding-right:calc((100vw - 1440px) / 2 + 48px)!important}
}

/* phone layout, hand-written from the phone artboards (G1, G2, G4) */
/* Writing on phones and small tablets (no phone artboard). */
@media (max-width: 899px){
  /* post rows: category label on its own line, title beside the arrow */
  html body .ko-writing .row{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px 16px!important;padding:22px 0!important}
  html body .ko-writing .row>.label{grid-column:1 / -1}
  html body .ko-writing .row .rt{font-size:21px}
  /* featured card: tighter padding, arrow under the text */
  html body .ko-writing [data-ko-sec="02-featured"]>a{padding:28px 22px!important;gap:20px!important}
  html body .ko-writing [data-ko-sec="02-featured"] h3{font-size:34px!important}
  /* category buttons scroll sideways in one row instead of stacking five deep */
  html body .ko-writing [role="group"]{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--ko-gut) * -1);padding-inline:var(--ko-gut)}
  html body .ko-writing [role="group"]::-webkit-scrollbar{display:none}
  html body .ko-writing .filterbtn{flex:0 0 auto;white-space:nowrap}
}
@media (max-width: 899px){
  /* date and reading time on their own line under the title */
  html body .ko-writing .row .rsub{display:block}
}

/* Category filter and "Show more posts" (kp-orange-writing.v1.js): .row is a grid, which would override the
   hidden attribute. Without script every post stays listed. */
html body .ko-writing .row[hidden], html body .ko-writing .ko-more[hidden]{display:none!important}
html body .ko-writing .ko-more{display:inline-flex}

/* Contrast (axe 2026-09-25): the post counter was #8A8378 on paper (3.35:1) and the sitewide legal links #8B8B92 (3.03:1). */
html body .ko-writing [data-ko-count]{color:#6A635B!important}
html body.ko-body-writing .kp-legal-links a{color:#4A4640!important}
/* Contrast (axe 2026-09-25): the sitewide legal row copyright was #8B8B92 on paper (3.03:1). */
html body.ko-body-writing .kp-legal-links, html body.ko-body-writing .kp-legal-links span{color:#4A4640!important}

