/* Flat Library. Neutral and easy to read: one clean grotesk, light and large for headlines, on bone, stone and ink.
   The one colour on the page is the anchor blue, because the anchors are the point. */

:root {
  --paper: #ece9e2; --white: #f7f5f0; --stone: #d4cec2; --ink: #161513; --ink-2: #3b3934; --mute: #7a756b;
  --line: rgba(22, 21, 19, .16); --line-light: rgba(247, 245, 240, .18); --anchor: #2f5bff;
  --panel-tile: #f1efe9; --panel-line: #e2dfd7; --panel-mute: #8b867b;
  --display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --top: 60px;
  --gutter: clamp(18px, 4.4vw, 68px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* the column every section sits in, and the bands inside it: not full bleed, so a small screen keeps its margins */
  --band-margin: var(--gutter);
  --band: min(1180px, 100% - 2 * var(--band-margin));
  --band-pad: clamp(24px, 3.4vw, 48px);
  --band-gap: clamp(28px, 6vh, 64px);
  --band-radius: 14px;
  --art-h: min(600px, 100vh - var(--top) - 2 * var(--band-pad) - 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* (images can't be right-clicked or dragged off the page: the pointer passes through to what is behind them) */
img { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.flat { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--anchor); outline-offset: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 8px; }

h1, h2 { font-family: var(--display); font-weight: 300; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--mute); }
.bg-ink h2 em { color: #97928a; }
h1 { font-size: min(7.4vw, 14vh, 118px); line-height: 1; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-weight: 500; font-size: 17px; line-height: 1.3; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 14px; }
.lede { font-size: clamp(17px, 1.3vw, 19px); font-weight: 400; line-height: 1.5; color: var(--ink-2); margin-top: 20px; max-width: 32em; }
.lede.quiet { color: var(--mute); font-size: 16px; }
.fine { font-size: 13px; color: var(--mute); margin-top: 16px; }
.fine.center { text-align: center; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 1px;
  font: 500 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--anchor); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-line { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.link { font-size: 14px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.link:hover { background-size: 40% 1px; }

/* ---- header */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); margin-bottom: calc(var(--top) * -1); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 2.6vw, 36px); background: linear-gradient(rgba(236, 233, 226, .92), rgba(236, 233, 226, .72)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top > .btn, .top-end { justify-self: end; }
.top-end { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.top-signin { font-size: 14px; text-decoration: none; opacity: .75; transition: opacity .2s; white-space: nowrap; }
.top-signin:hover { opacity: 1; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.wordmark { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.top-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 14px; }
.top-nav a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.top-nav a:hover { opacity: 1; }

/* ---- the zone: garments, headline, panel */
.zone { position: relative; }
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; }
.snap-start { top: 0; }
.snap-end { top: var(--top); }
.zone-pin { position: relative; }

.hero { position: relative; z-index: 3; text-align: center; padding: calc(var(--top) + clamp(32px, 9vh, 96px)) var(--gutter) 0; }
.hero-kick { margin-bottom: clamp(14px, 2.4vh, 24px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { max-width: 31em; margin: clamp(10px, 2vh, 22px) auto 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin-top: clamp(16px, 3vh, 30px); }

.rack { position: relative; height: 64vw; max-height: 380px; overflow: hidden; z-index: 2; pointer-events: none; }
.hang { position: absolute; top: 0; }
.hang-par, .hang-sway { width: 100%; }
.hang-sway { position: relative; transform-origin: 50% -30vh; }
.cord { display: block; width: 1px; height: var(--cord); margin: 0 auto; background: rgba(22, 21, 19, .5); }
.hang img { width: 100%; height: auto; filter: var(--tone, none) drop-shadow(0 14px 16px rgba(40, 34, 24, .12)); }
html.motion .hang-sway { animation: sway var(--dur, 7s) ease-in-out var(--del, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--rot, 0deg) - var(--amp, .7deg))); } to { transform: rotate(calc(var(--rot, 0deg) + var(--amp, .7deg))); } }
html.motion .hang-par { animation: drop 1.5s var(--ease) both; animation-delay: var(--in, 0s); }
@keyframes drop { from { transform: translateY(-36vh); opacity: 0; } to { transform: none; opacity: 1; } }
html.motion .hero h1 .line > span { animation: rise 1.1s var(--ease) both; }
html.motion .hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
html.motion .hero-kick, html.motion .hero-sub, html.motion .hero-cta { animation: fadeUp .9s var(--ease) .35s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.try { position: relative; z-index: 4; display: grid; gap: 28px; padding: 44px var(--gutter); }
.try-copy h2 { font-size: clamp(34px, 3.4vw, 52px); }
.try-copy .lede { margin-top: 14px; font-size: 16.5px; }
.ticks { display: grid; gap: 0; margin-top: 18px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
.ticks li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* (pinned: the hero and the panel share one sticky screen, the page's scroll runs them) */
html.pinned .zone { height: 250vh; }
html.pinned .snap-end { top: calc(100% - 100vh + var(--top)); }
html.pinned .zone-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
html.pinned .hero { position: absolute; inset: 0 0 auto; }
html.pinned .rack { position: absolute; inset: 0; height: auto; max-height: none; overflow: visible; }
html.pinned .try { position: absolute; inset: var(--top) 0 0; padding: clamp(10px, 2vh, 22px) clamp(16px, 2.6vw, 36px); grid-template-columns: minmax(280px, 24vw) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 44px); align-items: center; pointer-events: none; }
html.pinned .panel { height: 100%; max-height: 800px; transform-origin: 0 0; will-change: transform; }
html.pinned .try-copy { opacity: 0; }
html.pinned .try.live, html.pinned .try.live > * { pointer-events: auto; }
html.pinned .hero.gone { pointer-events: none; }

/* ---- the panel */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 24vw, 330px); background: #fff; border-radius: 10px; overflow: hidden; color: var(--ink);
  box-shadow: 0 50px 90px -50px rgba(40, 34, 24, .5), 0 0 0 1px rgba(22, 21, 19, .08); font-size: 13px; line-height: 1.35; }
.p-stage { position: relative; background: var(--panel-tile); min-height: 420px; overflow: hidden; }
.p-canvas { position: absolute; inset: 42px 12px 50px; display: grid; gap: 4px; }
.p-canvas.row { grid-template-columns: 1fr 1fr; }
.p-view { position: relative; min-width: 0; min-height: 0; display: flex; }
.p-view svg { flex: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: visible; }
.p-view-tag { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 12px; color: var(--panel-mute); z-index: 1; white-space: nowrap; pointer-events: none; }
.p-view-tag ~ svg { height: calc(100% - 20px); margin-top: 20px; }
.p-view-tag b { font-weight: 500; color: var(--ink); }
.p-toast { position: absolute; left: 14px; top: 13px; max-width: 34%; font-size: 12px; color: var(--ink-2); pointer-events: none; z-index: 2; }
.p-toast a { pointer-events: auto; }
.p-switch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: #e6e3db; border-radius: 6px; z-index: 2; }
.p-switch button, .p-arms button { padding: 5px 11px; border-radius: 4px; font-size: 12px; color: #6d685f; white-space: nowrap; }
.p-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.p-dock { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; pointer-events: none; }
.try.live .p-dock > * { pointer-events: auto; }
.p-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* the outfit's layers, as in the plugin: + its name - */
.p-layers { display: flex; flex-direction: column; gap: 1px; width: 136px; padding: 3px; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(40, 34, 24, .1); }
.p-layers[hidden] { display: none; }
.p-layer { display: flex; align-items: center; gap: 1px; border-radius: 6px; }
.p-layer[aria-current="true"] { background: rgba(47, 91, 255, .1); }
.p-layer-name { flex: 1; min-width: 0; height: 26px; padding: 0 2px; border-radius: 5px; font-size: 12px; font-weight: 500; color: var(--panel-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: none; }
.p-layer-name:hover { color: var(--ink); }
.p-layer[aria-current="true"] .p-layer-name { color: var(--anchor); }
.p-layer-btn { flex: none; width: 24px; height: 26px; border-radius: 5px; font-size: 15px; line-height: 1; color: var(--panel-mute); transition: background-color .15s; }
.p-layer-btn:hover:not(:disabled) { background: var(--panel-tile); color: var(--ink); }
.p-layer-btn:disabled { opacity: .3; cursor: default; }
.p-canvas .gar { cursor: default; }
.p-tool { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--panel-mute); box-shadow: 0 1px 2px rgba(40, 34, 24, .1); }
.p-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.p-tool[aria-pressed="true"] { color: var(--ink); }
.p-tool[aria-pressed="true"] svg { color: var(--anchor); }
.p-tool-only { padding: 5px 7px; }
.p-tool:disabled { opacity: .45; cursor: default; }
.p-history { position: absolute; top: 9px; right: 10px; display: flex; gap: 2px; padding: 3px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(40, 34, 24, .1); z-index: 2; }
.p-history button { display: grid; place-items: center; width: 26px; height: 24px; border-radius: 4px; color: var(--ink); }
.p-history button:hover:not(:disabled) { background: var(--panel-tile); }
.p-history button:disabled { color: #c8c4ba; cursor: default; }
.p-history svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.p-reset { padding-left: 10px; color: var(--anchor); }
.p-reset[hidden] { display: none; }
.p-arms { display: flex; gap: 2px; padding: 3px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(40, 34, 24, .1); }
.p-arms button[aria-pressed="true"] { background: var(--panel-tile); color: var(--ink); }
.p-arms[hidden], .p-switch[hidden], .p-tools[hidden] { display: none; }

.p-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--panel-line); }
.p-kinds { flex: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px 8px 0; }
.p-kind { display: grid; place-items: center; height: 36px; border-radius: 6px; color: #6d685f; transition: background-color .2s; }
.p-kind svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.p-kind:hover { background: var(--panel-tile); }
.p-kind[aria-selected="true"] { background: var(--ink); color: #fff; }
.p-head { flex: none; padding: 10px 14px 9px; border-bottom: 1px solid var(--panel-line); }
.p-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.p-ok { font-size: 12px; color: var(--panel-mute); margin-top: 1px; }
.p-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 14px 12px; overscroll-behavior: contain; }
.p-label, .p-row-label { display: flex; justify-content: space-between; gap: 8px; margin: 11px 0 6px; font-size: 12px; font-weight: 500; color: var(--panel-mute); }
.p-count { font-weight: 400; }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-tile { display: block; width: 100%; padding: 4px 4px 6px; border-radius: 6px; background: var(--panel-tile); text-align: center; font-size: 11.5px; line-height: 1.2; transition: background-color .2s; }
.p-tile img { width: 100%; aspect-ratio: 1 / .96; object-fit: contain; margin-bottom: 3px; }
.p-tile:hover { background: #e9e6de; }
.p-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.p-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.p-pills.three { grid-template-columns: repeat(3, 1fr); }
.p-pill { min-height: 31px; padding: 4px 2px; border-radius: 4px; background: var(--panel-tile); font-size: 11.5px; line-height: 1.1; transition: background-color .2s; }
.p-pill:hover { background: #e9e6de; }
.p-pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.p-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.p-swatch { width: 25px; height: 25px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22, 21, 19, .16); }
.p-swatch[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 2px; }
.p-cloth { flex: none; padding: 2px 14px 12px; border-top: 1px solid var(--panel-line); }
.p-cloth .p-swatches { gap: 6px; }
.p-cloth .p-swatch { width: 23px; height: 23px; }
.p-fabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.p-fab, .fab { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(22, 21, 19, .18); }
.p-fab canvas, .fab canvas { display: block; width: 100%; height: 100%; }
.p-fab i, .fab i { position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(22, 21, 19, .55) calc(50% - .5px), rgba(22, 21, 19, .55) calc(50% + .5px), transparent calc(50% + .5px)); }
.p-fab[aria-pressed="true"], .fab[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 1px; }
.p-foot { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--panel-line); }
.p-insert { width: 100%; min-height: 40px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.p-insert:hover { background: var(--anchor); }

/* the blue points */
.pts { touch-action: none; }
.pts[hidden] { display: none; }
.pt { fill: rgba(47, 91, 255, .16); stroke: var(--anchor); stroke-width: 1.2px; vector-effect: non-scaling-stroke; pointer-events: none; transition: fill .15s; }
.pt-hit { fill: transparent; cursor: grab; touch-action: none; outline: none; }
.pt-hit:focus-visible + .pt, .pt.over, .pt.on { fill: var(--anchor); }
.pt.free { fill: #fff; stroke-width: 1px; }
.pt.free.over, .pt.free.on { fill: var(--anchor); }
.p-canvas.near { cursor: grab; }
.p-canvas.dragging, .p-canvas.dragging * { cursor: grabbing; }
.ghost { fill: var(--ink); stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }

/* ---- flats */
.flat { display: block; --lw: .78; --fabric: #fff; --inside: #d8d4cb; --stroke: #161513; --model: #c2bdb1; }
.flat path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--stroke); stroke-width: calc(var(--w, 1) * var(--lw) * 1px); stroke-linejoin: round; }
.flat .f { fill: var(--fabric); transition: fill .3s; }
.flat .i { fill: var(--inside); transition: fill .3s; }
.flat .k { fill: var(--stroke); }
.flat .t { --w: .7; stroke-dasharray: 2.6 1.9; }
.flat .r, .flat .e { --w: .5; stroke-linecap: round; }
.flat .s { stroke-linecap: round; }
.flat .d { fill: var(--stroke); stroke-width: .25px; }
.flat .z { --w: 2.4; stroke-dasharray: .55 .55; }
.flat .b { --w: 1.8; }
.flat .m path { stroke: var(--model); stroke-width: .75px; }
.flat image.fabric { pointer-events: none; animation: fabricIn .3s ease both; }
.flat .fabric-lines path { pointer-events: none; }
@keyframes fabricIn { from { opacity: 0; } }
.flat .a { fill: #fff; stroke: var(--anchor); stroke-width: 1px; vector-effect: non-scaling-stroke; }
html.motion .pop { animation: pop .55s var(--ease) both; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* ---- sections */
/* (each section sits in one column with room round it; a coloured one is a band in that column, not the whole width of the screen) */
.sec { width: var(--band); margin: var(--band-gap) auto; scroll-margin-top: 16px; }
.sec.bg-white, .sec.bg-stone, .sec.bg-ink { padding: var(--band-pad); border-radius: var(--band-radius); }
/* (the one exception: who it's for runs edge to edge under its rail of garments, its words back in the column) */
.sec.full { width: auto; margin-inline: 0; padding: clamp(36px, 6vh, 64px) 0; border-radius: 0; }
.sec.full > .head, .sec.full > .made-grid { width: var(--band); margin-inline: auto; }
.bg-white { background: var(--white); }
.bg-stone { background: var(--stone); }
.bg-stone .eyebrow { color: #625d53; }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink .eyebrow, .bg-ink .fine { color: #97928a; }
.bg-ink .lede { color: #c9c5bb; }
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.28fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.split-rev { grid-template-columns: minmax(0, 1.28fr) minmax(0, .82fr); }
.head { margin-bottom: clamp(22px, 4vh, 40px); }
.head h2 { max-width: 15em; }
html.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.motion .rv.in { opacity: 1; transform: none; }

/* front and back */
.sides-art { min-width: 0; }
.sides-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sides-view { position: relative; min-width: 0; padding: 16px 12px 10px; background: var(--white); overflow: hidden; }
.sides-view figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.sides-view figcaption b { font-weight: 600; color: var(--ink); }
.drag-svg { position: relative; touch-action: pan-y; margin: 0 auto; }
.drag-svg svg { display: block; width: 100%; height: 100%; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--anchor); opacity: 0; pointer-events: none; }
html.motion .sides-back.draw .drag-svg { animation: wipe 1.5s var(--ease) both; }
html.motion .sides-back.draw .scan { animation: scan 1.5s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { top: 8%; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.handle { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; cursor: grab; touch-action: none; display: grid; place-items: center; }
.handle::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: rgba(47, 91, 255, .18); border: 1.2px solid var(--anchor); transition: transform .15s var(--ease), background-color .15s; }
.handle:hover::before, .handle.active::before { transform: scale(1.25); background: var(--anchor); }
.handle.active { cursor: grabbing; }
.readouts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 14px; color: var(--mute); }
.readouts output { margin-left: 6px; font-size: 19px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4.4em; display: inline-block; }

/* the film: the plugin working in Illustrator */
.demo-sec { display: flex; flex-direction: column; align-items: center; text-align: center; }
.demo-film { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 20px; background: #1d1d1d; overflow: hidden; border-radius: var(--band-radius); box-shadow: 0 18px 50px rgba(22, 21, 19, .2); }
.demo-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-toggle { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 20, 18, .74); color: #f7f5f0; opacity: 0; transition: opacity .2s; }
.demo-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.demo-toggle .i-pause { display: none; }
.demo-toggle.playing .i-pause { display: block; }
.demo-toggle.playing .i-play { display: none; }
.demo-toggle:not(.playing), .demo-film:hover .demo-toggle, .demo-toggle:focus-visible { opacity: 1; }
.demo-expand { position: absolute; right: 54px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 20, 18, .74); color: #f7f5f0; opacity: 0; transition: opacity .2s; }
.demo-expand svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.demo-film:hover .demo-expand, .demo-expand:focus-visible { opacity: 1; }
@media (hover: none) { .demo-expand { opacity: 1; } .demo-toggle, .demo-expand { bottom: 8px; width: 30px; height: 30px; } .demo-toggle { right: 8px; } .demo-expand { right: 44px; } }
.demo-note { margin-top: 14px; max-width: 46em; }

.opts { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.opt-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.opt-row > span { font-size: 14px; color: var(--mute); }
.opt-row div { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.opt { font-size: 15px; color: var(--mute); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .35s var(--ease); }
.opt:hover { color: var(--ink); }
.opt[aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }

/* a whole set */
.set-art { position: relative; min-width: 0; }
.set-views { display: grid; grid-template-columns: 1fr 1fr; }
.set-views .flat { --model: #3b3934; --inside: #d8d4cb; width: 100%; height: 100%; max-height: var(--art-h); }
.set-views .flat g.off { display: none; }
.layers { margin-top: 20px; font-size: 14px; color: #e8e5dd; }
.layers-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; color: #97928a; }
.layers-head button { font-size: 12px; color: #e8e5dd; text-decoration: underline; text-underline-offset: 2px; }
.layers-head span { font-size: 14px; font-weight: 500; color: #f7f5f0; }
.layer-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid rgba(247, 245, 240, .24); border-radius: 8px; background: rgba(247, 245, 240, .05); text-align: left; cursor: pointer; transition: opacity .2s, background-color .2s, border-color .2s; }
.layer-row + .layer-row { margin-top: 6px; }
.layer-row:hover { background: rgba(247, 245, 240, .14); border-color: rgba(247, 245, 240, .55); }
.eye { flex: none; width: 19px; height: 19px; fill: none; stroke: #8aa2ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eye-shut { display: none; }
.layer-row[aria-pressed="false"] .eye { stroke: #97928a; }
.layer-row[aria-pressed="false"] .eye-shut { display: block; }
.layer-row[aria-pressed="false"] .eye-open { display: none; }
/* (a soft ring on the rows till the first click) */
.hint .layer-row { animation: rowHint 1.8s ease-in-out infinite; }
.hint .layer-row:nth-child(2) { animation-delay: .15s; }
.hint .layer-row:nth-child(3) { animation-delay: .3s; }
@keyframes rowHint { 0%, 100% { box-shadow: 0 0 0 0 rgba(138, 162, 255, 0); } 50% { box-shadow: 0 0 0 3px rgba(138, 162, 255, .32); } }
.layer-row small { margin-left: auto; font-size: 11px; color: #97928a; }
.layer-row[aria-pressed="false"] { opacity: .62; }

/* the rail: garments going by */
.rail { position: relative; height: clamp(230px, 34vh, 340px); margin: calc(clamp(36px, 6vh, 64px) * -1 + 28px) 0 clamp(22px, 3vh, 36px); overflow: hidden; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: rgba(22, 21, 19, .55); z-index: 1; }
.rail-track { position: absolute; left: 0; top: 18px; display: flex; gap: clamp(26px, 3.4vw, 54px); padding-left: 26px; width: max-content; }
html.motion .rail-track { animation: slide 80s linear infinite; }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.rail-item { flex: none; width: clamp(110px, 11vw, 170px); transform-origin: 50% 0; }
html.motion .rail-item { animation: sway var(--dur, 6s) ease-in-out var(--del, 0s) infinite alternate; }
.rail-item img { width: 100%; height: auto; }

/* figure */
.figure-art { min-width: 0; }
.figure-views { display: grid; height: var(--art-h); min-height: 0; }
.look { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; min-width: 0; min-height: 0; height: 100%; opacity: 0; transition: opacity .6s ease; }
.look.on { opacity: 1; }
.figure-views .flat { --model: #9b958a; width: 100%; height: 100%; min-height: 0; }
.seg { display: inline-flex; flex-wrap: wrap; margin-top: 26px; box-shadow: inset 0 0 0 1px var(--ink); }
.seg button { padding: 10px 16px; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg button:disabled { color: rgba(22, 21, 19, .35); cursor: default; }
.seg-small { margin-top: 12px; }
.seg-small button { padding: 7px 12px; font-size: 13px; }
.render-ctl .fine { margin-top: 10px; max-width: 36em; }
.ctl-label { display: flex; justify-content: space-between; gap: 10px; margin: 11px 0 5px; font-size: 13px; font-weight: 500; color: var(--ink); }
.ctl-note { font-weight: 400; color: #625d53; }
.looks { display: flex; flex-wrap: wrap; gap: 5px; }
.looks button { padding: 6px 11px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(22, 21, 19, .4); transition: background-color .2s, color .2s; }
.looks button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.fabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.render-sec .lede { margin-top: 12px; font-size: 16px; }

/* file */
.file-art { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, .8fr); gap: clamp(14px, 2vw, 32px); align-items: center; min-width: 0; }
.file-svg .flat { width: 100%; height: auto; max-height: var(--art-h); --lw: .9; }
.file-svg .a-layer[hidden] { display: none; }
.file-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--ink); }
.file-head span:last-child { color: var(--mute); }
.file-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; transition: color .2s; }
.file-row span:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.file-row:hover { color: var(--anchor); }
.check { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 15px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--anchor); }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step { background: var(--paper); padding: clamp(14px, 1.6vw, 22px); }
.step h3 { margin-top: 16px; }
.step h3 span { margin-right: 6px; color: var(--mute); }
.step p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.step-art { position: relative; aspect-ratio: 1 / 1.1; padding: 8%; background: var(--white); overflow: hidden; }
.step-art img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.step-art.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; padding: 4%; }
html.motion .step-art.grid img { animation: pick 8s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); opacity: .42; }
@keyframes pick { 0%, 30%, 100% { opacity: .42; } 8%, 22% { opacity: 1; } }
.step-art.stack img { position: absolute; inset: 8%; width: 84%; height: 84%; }
.step-art.stack img + img { opacity: 0; }
html.motion .step-art.three img { opacity: 0; animation: cross3 12s ease-in-out infinite; }
html.motion .step-art.three img:nth-child(2) { animation-delay: 4s; }
html.motion .step-art.three img:nth-child(3) { animation-delay: 8s; }
@keyframes cross3 { 0%, 100% { opacity: 0; } 6%, 30% { opacity: 1; } 36% { opacity: 0; } }
html.motion .step-art.two img { opacity: 0; animation: cross2 10s ease-in-out infinite; }
html.motion .step-art.two img:nth-child(2) { animation-delay: 5s; }
@keyframes cross2 { 0%, 100% { opacity: 0; } 8%, 44% { opacity: 1; } 54% { opacity: 0; } }
.hang-art { display: flex; justify-content: center; padding: 0 12% 8%; }
.swing { width: 100%; transform-origin: 50% 0; }
.swing img { height: auto; }
html.motion .swing { animation: sway 6s ease-in-out infinite alternate; --amp: 1.6deg; }

/* made for */
.made-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 22px; }
.made h3 { font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.02em; }
.made p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

/* pricing: a ledger, not boxes */
/* (a smaller band than the others: it should read at a glance) */
.pricing { --band: min(900px, 100% - 2 * var(--band-margin)); --band-pad: clamp(18px, 2vw, 26px); }
.price-head { text-align: center; margin-bottom: clamp(12px, 2vh, 18px); }
.price-head .eyebrow { margin-bottom: 8px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line-light); }
.plan { display: flex; flex-direction: column; align-items: stretch; padding: 16px clamp(14px, 2.2vw, 28px); }
.plan + .plan { border-left: 1px solid var(--line-light); }
.plan h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: #e8e5dd; }
.plan-for { margin-top: 3px; font-size: 14px; color: #97928a; }
.amount { margin-top: 8px; font-weight: 300; font-size: clamp(42px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; }
.amount sup { font-size: .42em; vertical-align: .8em; letter-spacing: 0; margin-right: .03em; }
.amount small { font-family: var(--body); font-size: 13px; letter-spacing: 0; color: #97928a; white-space: nowrap; }
.plan-body { flex: 1; margin: 10px 0 14px; }
.plan .btn { min-height: 42px; }
.plan .ticks { margin-top: 0; font-size: 14px; color: #c9c5bb; border-color: var(--line-light); }
.plan .ticks li { padding: 4px 0; border-color: var(--line-light); }
.seats { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: #c9c5bb; }
.seats output { font-size: 24px; font-weight: 300; line-height: 1; color: var(--white); }
.seat-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 6px 0 8px; background: linear-gradient(var(--line-light), var(--line-light)) 0 50% / 100% 1px no-repeat; cursor: pointer; }
.seat-range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: var(--ink); border: 1.5px solid #6c8bff; cursor: grab; }
.seat-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 0; background: var(--ink); border: 1.5px solid #6c8bff; cursor: grab; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 12px; color: #7f7b73; }
.tiers li { padding: 8px 0 0; border-top: 1px solid transparent; transition: color .2s; }
.tiers li b { display: block; font-weight: 500; color: inherit; }
.tiers li.on { color: var(--white); }
.checkout-note { margin-top: 14px; text-align: center; font-size: 14px; color: #c9c5bb; }
.checkout-note[hidden] { display: none; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq .head { margin: 0; position: sticky; top: calc(var(--top) + 30px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; font-size: 18px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 21px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 34px 20px 0; font-size: 16px; color: var(--ink-2); }

/* foot */
.foot { padding: clamp(30px, 5vh, 56px) var(--gutter) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font-size: min(15.6vw, 260px); font-weight: 300; line-height: 1; letter-spacing: -.055em; white-space: nowrap; text-align: center; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; font-size: 16px; }

/* ---- narrower screens */
@media (max-width: 1080px) {
  /* (no pinning here: three garments hang above the headline) */
  .hero { padding-top: 14px; }
  .rack { height: clamp(250px, 62vw, 460px); margin-top: var(--top); }
  .hang-2, .hang-3, .hang-5, .hang-6, .hang-7 { display: none; }
  .hang-0 { left: 4vw !important; width: 29vw !important; --cord: 3vw !important; }
  .hang-1 { left: 36.5vw !important; width: 27vw !important; --cord: 10vw !important; filter: none !important; opacity: 1 !important; }
  .hang-4 { right: 4vw !important; width: 29vw !important; --cord: 1.5vw !important; }
  .top { grid-template-columns: 1fr auto; }
  .top-nav { display: none; }
  .split, .split-rev, .faq { grid-template-columns: minmax(0, 1fr); }
  .split-rev .copy { order: -1; }
  .render-sec { gap: 0; }
  .render-sec .copy { display: contents; }
  .render-sec .eyebrow { order: -3; }
  .render-sec h2 { order: -2; }
  .render-sec .lede { order: -1; margin-bottom: 18px; }
  .render-sec .figure-art { order: 0; }
  .render-sec .render-ctl { order: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-art { grid-template-columns: minmax(0, 1fr); }
  .set-views .flat, .file-svg .flat { max-height: none; }
  .figure-views { height: auto; aspect-ratio: 1 / .92; max-height: 86vh; }
  .faq .head { position: static; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  /* (stacked, the drawing keeps its size and the layers and tools sit under it, so the stage grows with the layers) */
  .p-stage { display: flex; flex-direction: column; min-height: 0; padding: 42px 12px 10px; }
  .p-canvas { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / .96; max-height: 72vh; }
  .p-dock { position: static; margin-top: 8px; }
  .p-side { border-left: 0; border-top: 1px solid var(--panel-line); }
  .p-scroll { overflow: visible; }
}
@media (max-width: 720px) {
  :root { --band-margin: 16px; --band-pad: 18px; --band-radius: 12px; }
  .pricing { --band-pad: 18px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(42px, 13vw, 72px); }
  h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero { padding-top: calc(var(--top) + 40px); }
  .made-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line-light); }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 8px; }
  .p-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-tile { font-size: 10.5px; }
  .p-arms button, .p-switch button { padding: 5px 8px; }
  .p-toast { display: none; }
  .sides-view figcaption { flex-direction: column; gap: 0; }
  .plan-body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- the library's own pages */
.page { padding: calc(var(--top) + clamp(24px, 5vh, 56px)) var(--gutter) clamp(50px, 8vh, 90px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--mute); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.style-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.shot { margin: 0; background: #fff; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 0 0; background: var(--paper); font-size: 13px; color: var(--mute); }
.style-info h1 { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.03; letter-spacing: -.035em; }
.style-info .lede { margin-top: 18px; }
.style-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.spec { margin-top: 28px; border-top: 1px solid var(--ink); font-size: 15px; }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--mute); }
.prose { max-width: 46em; margin-top: clamp(36px, 6vh, 64px); }
.prose h2 { font-size: clamp(28px, 3vw, 44px); }
.prose p, .prose ol { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.prose ol { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; }
.prose a { text-underline-offset: 2px; }
.more { margin-top: clamp(40px, 7vh, 72px); }
.more > h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 18px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 18px 14px; }
.more-card { display: block; text-decoration: none; }
.more-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; mix-blend-mode: multiply; }
.more-card span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); }
.more-card:hover span { color: var(--anchor); }
.hub-head { max-width: 48em; margin-bottom: clamp(26px, 5vh, 48px); }
.hub-head h1 { font-size: clamp(42px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.04em; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.hub-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.hub-list a:hover { color: var(--anchor); }
.hub-list small { color: var(--mute); font-size: 13px; align-self: center; }
.hub-list.names { list-style: none; margin: 0; padding: 0; }
.hub-list.names li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.foot-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-links a { text-decoration: none; color: var(--ink-2); padding: 3px 0; }
.foot-links a:hover { color: var(--anchor); }
.foot-guides { margin-top: 14px; padding-top: 14px; }
.foot-about { margin-top: 18px; font-size: 14px; color: var(--mute); max-width: 56em; }
@media (max-width: 1080px) { .style-top { grid-template-columns: minmax(0, 1fr); } }

/* the Adobe Illustrator callout */
.runs { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 21, 19, .1); font-size: 14px; color: var(--mute); }
.runs strong { font-weight: 500; color: var(--ink); }
.ai-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: #330000; color: #ff9a00; font: 600 13px/1 var(--body); letter-spacing: -.02em; }
.runs-fine { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* the total */
.total { margin-top: clamp(14px, 2.4vh, 20px); padding-top: clamp(14px, 2.4vh, 20px); border-top: 1px solid var(--line-light); text-align: center; font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; color: var(--white); }
.pricing .runs-fine { margin-top: 12px; }

/* the buy pill, floating at the foot of the screen on a desktop */
.buy-pill { position: fixed; left: 50%; bottom: 18px; z-index: 35; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 7px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(22, 21, 19, .3), 0 0 0 1px rgba(247, 245, 240, .16); opacity: 0; visibility: hidden; transform: translate(-50%, 140%); transition: transform .45s var(--ease), opacity .3s ease, visibility 0s linear .45s; }
.buy-pill.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .45s var(--ease), opacity .3s ease; }
.buy-pill img { flex: none; width: 38px; height: 38px; padding: 4px; border-radius: 50%; background: var(--white); object-fit: contain; }
.buy-pill-text { display: block; padding-right: 8px; }
.buy-pill-text b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.buy-pill-text small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.2; color: #a8a39a; }
.buy-pill-go { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color .2s; }
.buy-pill-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.buy-pill:hover .buy-pill-go { background: #fff; }
.buy-pill:hover .buy-pill-go svg { transform: translateX(2px); }
@media (max-width: 1080px) { .buy-pill { display: none; } }

/* the blog: one calm column, the same paper as the rest of the site */
.guide-line { margin-top: 18px; font-size: 16px; }
.guide-line a { text-underline-offset: 3px; }
.post, .post-crumbs { max-width: 740px; margin: 0 auto; }
.blog-hub { max-width: 1180px; margin: 0 auto; }
.post-head h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -.035em; }
.post-head .lede { max-width: none; }
.post-meta { margin-top: 14px; font-size: 14px; color: var(--mute); }
.post-fig { margin: clamp(24px, 4vh, 36px) 0 0; }
.post-fig img { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; }
.post-fig figcaption { margin-top: 9px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.post-short { margin-top: clamp(24px, 4vh, 36px); padding: 20px 22px 22px; background: var(--white); border-radius: 12px; }
.post-short h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--mute); }
.post-short p { margin-top: 8px; font-size: 18.5px; line-height: 1.5; color: var(--ink); }
.post-toc { margin-top: clamp(24px, 4vh, 36px); padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; }
.post-toc > p { font-size: 14px; font-weight: 600; color: var(--mute); }
.post-toc ol { list-style: decimal; margin-top: 8px; padding-left: 22px; display: grid; gap: 4px; color: var(--mute); }
.post-toc a { color: var(--ink-2); text-decoration: none; }
.post-toc a:hover { color: var(--anchor); text-decoration: underline; text-underline-offset: 3px; }
.post-body h2 { margin-top: clamp(38px, 6vh, 58px); font-size: clamp(27px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -.025em; scroll-margin-top: calc(var(--top) + 18px); }
.post-body h3 { margin-top: 26px; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.post-body h3 + p { margin-top: 6px; }
.post-body p, .post-body ul, .post-body ol { margin-top: 14px; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.post-body ul { list-style: disc; padding-left: 22px; }
.post-body ol { list-style: decimal; padding-left: 24px; }
.post-body li + li { margin-top: 7px; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body a { text-underline-offset: 3px; }
.post-table { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.post-table th, .post-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.post-table thead th { border-bottom: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
.post-table tbody th { font-weight: 500; color: var(--ink); }
.post-plug { margin-top: clamp(26px, 4vh, 38px); padding: 22px 24px 24px; background: var(--ink); color: var(--white); border-radius: 12px; }
.post-plug p { color: var(--white); margin-top: 8px; font-size: 17px; line-height: 1.5; }
.post-plug a { color: inherit; }
.post-plug .post-plug-head { margin-top: 0; font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.post-plug .post-plug-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.post-plug .btn-ink { background: var(--white); color: var(--ink); }
.post-plug .link { color: var(--white); }
.post-sources { font-size: 15px !important; }
.post-group { margin-top: clamp(32px, 6vh, 56px); }
.post-group > h2, .post-more > h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; margin-bottom: 18px; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 26px 22px; }
.post-card { display: block; text-decoration: none; }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border-radius: 10px; }
.post-card-title { display: block; margin-top: 11px; font-size: 19px; font-weight: 500; line-height: 1.22; letter-spacing: -.012em; color: var(--ink); }
.post-card-text { display: block; margin-top: 5px; font-size: 15px; line-height: 1.42; color: var(--mute); }
.post-card:hover .post-card-title { color: var(--anchor); }
.post-more { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* the account page */
.acct { max-width: 640px; margin: 0 auto; }
.acct [hidden] { display: none !important; }
.acct h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.03; letter-spacing: -.035em; }
.acct .lede { max-width: none; overflow-wrap: anywhere; }
.acct-form { display: grid; gap: 10px; margin-top: 26px; max-width: 400px; }
.acct-form .btn { justify-self: start; margin-top: 4px; }
.acct-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.acct-input { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 2px; outline: none; }
.acct-input:focus { border-color: var(--ink); }
.acct-code { font-size: 22px; letter-spacing: .3em; }
.acct-num { width: 96px; }
.acct-sub { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-note { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--anchor); overflow-wrap: anywhere; }
.acct-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.acct-link { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.acct-link:hover { color: var(--anchor); }
.acct-band { margin-top: 26px; padding: 22px 24px 24px; background: var(--white); border-radius: 12px; }
.acct-band h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.acct-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.acct-head .acct-sub { margin-top: 0; color: var(--mute); }
.acct-list { margin-top: 14px; border-top: 1px solid var(--line); }
.acct-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-list b { display: block; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.acct-list small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mute); }
.acct-remove { flex: none; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.acct-remove:hover { color: var(--anchor); }
.acct-remove:disabled { opacity: .5; cursor: default; }
.acct-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.acct-row .acct-input { height: 42px; }
.acct-row .btn { flex: none; min-height: 42px; }
.acct-more-head { margin-top: 24px; font-size: 16px; }
.acct-more-head + .acct-row { margin-top: 8px; }
.acct-buy { display: grid; gap: 18px; margin-top: 18px; }
.acct-buy .btn { justify-self: start; }
.acct-buy-studio { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-buy-studio .acct-label { grid-column: 1 / -1; }
.btn-paper-line { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn-paper-line:hover { background: var(--ink); color: var(--white); }
.acct-out { margin-top: 24px; }
