/* Task Manager Classic: one page, the Pro site's type and tokens (WebsiteMagazine/style.css), cut to what it uses. */
:root {
  color-scheme: light dark;
  --ground: #f4f5f7; --ink: #0e0f12; --ink2: rgb(14 15 18 / 0.64); --accent: #0a66e8;
  --green: #1f8f3e; --cl-field: #dcebd6; --cl-ink: #0f2416; --cl-ink2: rgb(15 36 22 / 0.68);
  --m: 32px; --pt: clamp(0.34px, calc(100vw / 1300), 1px);
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ground: #0e0f12; --ink: #f2f3f5; --ink2: rgb(242 243 245 / 0.66); --accent: #2f7bff;
    --green: #2ea44f; --cl-field: #10251a; --cl-ink: #e9f5ec; --cl-ink2: rgb(233 245 236 / 0.7); }
}
:root[data-theme="dark"] { --ground: #0e0f12; --ink: #f2f3f5; --ink2: rgb(242 243 245 / 0.66); --accent: #2f7bff;
  --green: #2ea44f; --cl-field: #10251a; --cl-ink: #e9f5ec; --cl-ink2: rgb(233 245 236 / 0.7); }

* { box-sizing: border-box; margin: 0; }
/* The page scroll bar floats over the content: the native bar is hidden and site.js draws a thin knob (.sbar). */
html { background: var(--ground); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { background: url(img/grain.webp) 0 0 / 128px, var(--ground); color: var(--ink); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: none; }
::selection { background: var(--accent); color: #fff; }
.wall::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(img/grain.webp) 0 0 / 128px; }

.sbar { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: 14px; }
.sbar i { position: absolute; right: 3px; width: 5px; min-height: 56px; border-radius: 3px; background: rgb(128 128 128 / 0.5);
  opacity: 0; transition: opacity .35s ease, background-color .2s; }
.sbar.on i { opacity: 1; }
.sbar.drag i { background: rgb(128 128 128 / 0.75); }

.masthead { font: 400 19.4vw/0.8 var(--serif); letter-spacing: -0.035em; white-space: nowrap; margin-left: -0.04em; display: inline-block; }
.big { font: 400 clamp(64px, 8.4vw, 150px)/0.9 var(--serif); letter-spacing: -0.03em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; max-width: 30ch; text-wrap: pretty; }

/* The page: green text page on the left, the window centred on its wallpaper on the right. */
.classic { display: grid; grid-template-columns: 40% 60%; min-height: 100svh; background: var(--cl-field); color: var(--cl-ink); }
.page-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px var(--m); }
.mark { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.mark img { width: 40px; height: 40px; }
.desk { position: relative; overflow: hidden; background: #222; min-height: 100svh; }
.wall { position: absolute; inset: 0; }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.desk .win { position: absolute; left: 50%; top: calc(50% + var(--pt) * 12); width: calc(var(--pt) * 570); height: auto; translate: -50% -50%; }

/* The macOS 26 menu bar over the wallpaper (site.js fills it): clear, 24 pt, dark ink on this bright wallpaper. */
.mb { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: calc(var(--pt) * 24); display: flex; align-items: center;
  padding: 0 calc(var(--pt) * 21) 0 calc(var(--pt) * 16); font: 400 calc(var(--pt) * 13)/1 var(--sans); white-space: nowrap; pointer-events: none;
  color: rgb(0 0 0 / 0.85); }
.mb-r { display: flex; align-items: center; margin-left: auto; height: 100%; }
.mb-s { display: flex; align-items: center; justify-content: center; width: calc(var(--pt) * var(--w, 40)); height: 100%; }
.mb-s.s-bat { --w: 32; }
.mb-s.s-wifi { --w: 50; }
.mb-s.s-cc { --w: 30; }
.mb .clock { margin-left: calc(var(--pt) * 12.5); }
.mb .cpu { margin-right: calc(var(--pt) * 16.85); font-variant-numeric: tabular-nums; }
.mb .ic { display: block; height: calc(var(--pt) * var(--h, 14)); aspect-ratio: var(--a); background: currentColor; mask: var(--m) center / contain no-repeat; -webkit-mask: var(--m) center / contain no-repeat; }
.mb .i-wifi { --h: 11.7; --a: 16.7 / 11.7; --m: url(img/mb/wifi.png); }
.mb .i-cc { --h: 12.5; --a: 13.3 / 12.5; --m: url(img/mb/control-center.png); }
.mb .i-bat { --h: 12.8; --a: 25.7 / 12.8; --m: url(img/mb/battery.png); }

/* Download: dark green ink with the icon and a second line. */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn { display: inline-flex; align-items: center; height: 64px; padding: 0 28px 0 22px; gap: 14px; border-radius: 16px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.b-cl { background: var(--cl-ink); color: var(--cl-field); }
.b-cl:hover, .b-cl:focus-visible { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-field)); }
.dli { display: block; width: 22px; height: 22px; background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M10 3v10m-4-4 4 4 4-4M4 16h12"/></svg>') center/contain no-repeat; }
.cl-t { display: flex; flex-direction: column; line-height: 1.15; }
.cl-t small { font-size: 13px; font-weight: 500; opacity: 0.78; }

/* Copy pill: the whole pill is one button. A click copies, the icon turns into a check, and "Copied" shows. */
.cmd { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; align-self: flex-start; height: 44px; padding: 0 5px 0 18px;
  border: 0; border-radius: 999px; font: inherit; color: inherit; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--cl-ink) 8%, transparent); }
.cmd:hover, .cmd:focus-visible { background: color-mix(in srgb, var(--cl-ink) 15%, transparent); }
.cmd:active { background: color-mix(in srgb, var(--cl-ink) 20%, transparent); }
.cmd code { min-width: 0; font: 14px/1 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; }
.cmd-i { position: relative; flex: none; width: 34px; height: 34px; }
.cmd-i svg { position: absolute; inset: 7.5px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .2s ease, scale .35s var(--spring), rotate .35s var(--ease); }
.cmd .i-done { stroke: var(--green); stroke-width: 2; opacity: 0; scale: 0.4; stroke-dasharray: 18; stroke-dashoffset: 18; transition: opacity .2s, scale .35s var(--spring), stroke-dashoffset .35s var(--ease) .08s; }
.cmd.done .i-copy { opacity: 0; scale: 0.4; rotate: -40deg; }
.cmd.done .i-done { opacity: 1; scale: 1; stroke-dashoffset: 0; }
.cmd-ok { position: absolute; right: 46px; top: 50%; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--green);
  background: var(--cl-field); opacity: 0; translate: 6px -50%; transition: opacity .2s ease, translate .3s var(--ease); pointer-events: none; }
.cmd.done .cmd-ok { opacity: 1; translate: 0 -50%; }

/* The quiet way up to Pro: gray text, no button. */
.more { align-self: flex-start; font-size: 16px; color: var(--cl-ink2); }
.more i { display: inline-block; font-style: normal; transition: translate .2s var(--ease); }
.more:hover, .more:focus-visible { color: var(--cl-ink); }
.more:hover i, .more:focus-visible i { translate: 3px 0; }

.fn { font: 600 13px/0 var(--sans); letter-spacing: 0; vertical-align: super; margin-left: 0.2em; padding: 0 1px; cursor: help; color: var(--cl-ink2);
  text-decoration: underline dotted 1.5px; text-underline-offset: 3px; }
.tip { position: fixed; z-index: 60; max-width: min(320px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4;
  background: var(--ink); color: var(--ground); box-shadow: 0 8px 28px rgb(0 0 0 / 0.25); pointer-events: none; }

/* Footer: the name at full width, then the links, then the copyright and the samhq mark. */
.foot { padding: 160px var(--m) 48px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 72px; color: var(--ink2); }
.foot-row nav { display: flex; gap: 28px; font-size: 17px; color: var(--ink); }
.foot-row nav a:hover { color: var(--accent); }
.foot-row .legal { color: var(--ink2); font-size: 15px; }
.foot-end { margin-top: 32px; padding-top: 24px; border-top: 0.5px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.samhq { font-size: 15px; }
.samhq span { color: var(--ink); font-weight: 600; border-bottom: 1.5px dotted color-mix(in srgb, var(--ink) 45%, transparent); padding-bottom: 1px; }
.samhq b { color: #f0654f; font-weight: 600; }
.samhq:hover span { border-bottom-style: solid; }

/* Entrances: rise and fade once, staggered (site.js sets the delay). */
.js [data-in] { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .9s var(--ease), background-color .2s ease-out, color .2s ease-out; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
.js [data-in].in { opacity: 1; translate: 0 0; }
.btn, .foot-row nav a, .samhq { transition: background-color .2s ease-out, color .2s ease-out; }
.btn:hover, .btn:focus-visible, .foot-row nav a:hover, .samhq:hover { transition-duration: .15s; }
.js .cmd[data-in]:hover, .js .more[data-in]:hover { transition-duration: .7s, .9s, .15s, .15s; }

@media (max-width: 760px) {
  :root { --m: 16px; }
  .big { font-size: 15vw; }
  .classic { grid-template-columns: minmax(0, 1fr); }
  .page-text { padding: 56px var(--m) 48px; }
  .desk { min-height: 0; height: calc(var(--pt) * 1100); }
  .desk .win { width: calc(var(--pt) * 800); }
  .cmd code { font-size: 13px; padding-right: 12px; mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .foot { padding: 112px var(--m) 40px; }
  .foot-row { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .foot-end { flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-in] { opacity: 1; translate: none; transition: none; }
}
