/* Sticky Widgets Website
 * Created by Tyler Hillsman on October 6, 2026.
 */

:root {
  --ink: #20252b;
  --muted: #525960;
  --link: #0055ad;
  --paper: #ffffff;
  --note: #fff8d7;
  --line: #d9dde0;
  --space: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
  scroll-behavior: auto;
  scroll-padding-top: 1.5rem;
  scrollbar-color: #91989e var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { color: var(--ink); background: #ffe382; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.8rem); letter-spacing: -.035em; font-weight: 720; max-width: 21ch; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; font-weight: 680; }
h3 { font-size: 1.125rem; letter-spacing: -.01em; font-weight: 660; }
svg { flex-shrink: 0; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header, main, .site-footer { max-width: 1160px; padding-inline: var(--space); margin-inline: auto; }
.site-header { min-height: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 720; letter-spacing: -.025em; overflow-wrap: normal; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; flex-shrink: 0; gap: 1.4rem; font-size: .95rem; }
.site-header nav a { color: var(--ink); white-space: nowrap; overflow-wrap: normal; }
.breadcrumbs { margin-top: 1.6rem; max-width: 95ch; font-size: .82rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .7rem; list-style: none; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; padding-left: .7rem; color: var(--muted); }
.article-header { padding-block: 2.5rem 2.75rem; max-width: 820px; }
.lead { margin-top: 1.5rem; max-width: 66ch; font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; }
.button { display: inline-flex; align-items: center; gap: .8rem; background: var(--ink); color: #fff; border-radius: 10px; padding: .85rem 1.15rem; margin-top: 1.5rem; font-weight: 630; font-size: .95rem; text-decoration: none; }
.button:hover { background: #363f49; text-decoration: underline; }
.purchase-note { margin-top: .6rem; color: var(--muted); font-size: .83rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { min-width: 0; max-width: 70ch; }
.feature-note { background: var(--note); padding: 1.2rem 1.4rem; border-radius: 12px; font-size: .97rem; }
.reviewed { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.prose section { margin-top: 2.75rem; }
.prose h2 { margin-bottom: 1rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.35rem; margin-top: 1rem; }
.prose li + li { margin-top: .7rem; }
.steps { padding-left: 1.6rem; margin-top: 1.4rem; }
.steps li { padding-left: .4rem; }
.steps li + li { margin-top: 1.5rem; }
.steps li::marker { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .45rem; }
.note-example { background: var(--note); padding: 1.5rem; border-radius: 12px; }
.note-example h2 { font-size: 1.5rem; }
.note-example p { margin-top: 1.3rem; font-size: .83rem; }
.note-example ul { margin-top: .9rem; }
.faq + .faq { margin-top: 1.5rem; }
.faq h3 { margin-bottom: .6rem; }
.help { padding-top: 2rem; border-top: 1px solid var(--line); }
.sidebar { min-width: 0; }
.mobile-contents { display: none; }
.contents { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.contents h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.contents ul { padding: 0; list-style: none; font-size: .9rem; }
.contents li + li { margin-top: .75rem; }
.app-example { margin: 2rem auto 0; width: 100%; max-width: 250px; }
.app-example img { display: block; width: 100%; height: auto; border-radius: 12px; }
.app-example figcaption { margin-top: .7rem; font-size: .79rem; line-height: 1.5; color: var(--muted); }
.related { margin-block: 4rem 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; margin-block: 1.4rem; }
.related li + li { margin-top: .8rem; }
.related li a { display: inline-flex; align-items: center; gap: .6rem; }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 3.5rem; padding-block: 3.5rem; }
.hub-intro h1 { max-width: 14ch; font-size: clamp(2.8rem, 5.5vw, 4rem); }
.hub-intro .app-example { margin: 0; }
.start-here { margin-top: 2.5rem; }
.start-here h2 { font-size: 1.3rem; }
.start-here ul { list-style: none; padding: 0; margin-top: 1rem; }
.start-here li + li { margin-top: .7rem; }
.start-here a { display: inline-flex; align-items: center; gap: .6rem; }
.topic-nav { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; padding-block: 1.2rem; border-block: 1px solid var(--line); font-size: .87rem; }
.guide-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; margin-top: 3rem; }
.guide-group > p { margin-top: .7rem; color: var(--muted); }
.guide-group ul { margin-top: 1.4rem; list-style: none; padding: 0; }
.guide-group li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.guide-group li a { display: flex; align-items: start; justify-content: space-between; gap: 1rem; font-size: 1.05rem; line-height: 1.4; font-weight: 630; }
.guide-group li svg { margin-top: .2rem; }
.guide-group li p { margin-top: .5rem; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.hub-help { margin-top: 3.5rem; background: var(--note); border-radius: 12px; padding: 2rem; }
.hub-help p { margin-top: 1rem; max-width: 68ch; }
.site-footer { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.site-footer > p:first-child { font-weight: 650; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1rem; }
.copyright { margin-top: 1.5rem; color: var(--muted); font-size: .78rem; }
@media (max-width: 800px) {
  .reading-layout { display: block; }
  .mobile-contents { display: block; margin-bottom: 1.5rem; padding-block: .9rem; border-block: 1px solid var(--line); }
  .mobile-contents summary { cursor: pointer; font-weight: 650; }
  .mobile-contents summary:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
  .mobile-contents ul { padding-left: 1.2rem; margin-top: 1rem; }
  .mobile-contents li + li { margin-top: .65rem; }
  .sidebar { margin-top: 3rem; }
  .sidebar .app-example { max-width: 230px; margin: 0 auto; }
  .contents { display: none; }
  .hub-intro { grid-template-columns: minmax(0, 1fr) 190px; gap: 2rem; }
  .guide-index { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .site-header { min-height: 80px; }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .site-header nav { gap: .9rem; font-size: .86rem; }
  .breadcrumbs li:last-child { display: none; }
  .breadcrumbs li:nth-last-child(2)::after { display: none; }
  .article-header { padding-block: 2rem; }
  .button { width: fit-content; max-width: 100%; gap: .6rem; }
  .hub-intro { display: block; padding-block: 2.5rem; }
  .hub-intro .app-example { max-width: 230px; margin: 2.25rem auto 0; }
  .guide-index { display: block; }
  .guide-group + .guide-group { margin-top: 2.5rem; }
  .sidebar { display: block; }
  .sidebar .app-example { max-width: 230px; margin: 2rem auto 0; }
  .hub-help { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media print {
  .site-header, .sidebar, .button, .purchase-note, .related, .site-footer, .topic-nav { display: none; }
  .reading-layout, .hub-intro, .guide-index { display: block; }
  main { max-width: none; padding: 0; }
  a { color: inherit; }
}
