/* The motion look (web/motion) · base styles
   Light theme by default; dark only after the moon button (stored as site-theme). */

:root {
  --bg: #f4efe7;          /* plaster */
  --bg-2: #ebe4d7;
  --surface: #fbf8f3;
  --ink: #16192b;         /* lapis ink */
  --ink-2: #4b4f63;
  --ink-3: #5b5e71;       /* 5.6:1 on plaster, so the small grey text stays easy to read */
  --line: rgba(22, 25, 43, .12);
  --line-2: rgba(22, 25, 43, .22);
  --lapis: #2443a6;       /* the blue of the shop sign */
  --lapis-soft: rgba(36, 67, 166, .1);
  --saffron: #e2a33a;
  --madder: #a11d2e;
  --turq: #16716e;
  --night: #0b1022;
  --night-2: #121a33;
  --glow: #f4c66a;
  --shadow: 0 1px 2px rgba(22, 25, 43, .06), 0 12px 32px -12px rgba(22, 25, 43, .28);
  --shadow-lg: 0 2px 6px rgba(22, 25, 43, .08), 0 40px 80px -30px rgba(22, 25, 43, .45);
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --silk: cubic-bezier(.2, .7, 0, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));   /* a phone on its side keeps everything clear of the notch */
  --hdr: 72px;
  color-scheme: light;
}

/* dark theme, and the always-dark cinematic chapters */
[data-theme='dark'],
.dark {
  --bg: #0b1022;
  --bg-2: #121a33;
  --surface: #161f3b;
  --ink: #f2ece1;
  --ink-2: #c7c4cf;
  --ink-3: #9d9fb3;
  --line: rgba(242, 236, 225, .12);
  --line-2: rgba(242, 236, 225, .24);
  --lapis: #93a9ff;
  --lapis-soft: rgba(147, 169, 255, .12);
  --saffron: #f0b952;
  --madder: #f27a88;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 80px -30px rgba(0, 0, 0, .85);
}
[data-theme='dark'] { color-scheme: dark; }
.dark { color: var(--ink); }   /* body's colour was worked out with the light values, so dark chapters set their own */
[data-theme='dark'] .dark { --bg: #060914; --bg-2: #0d1328; --surface: #121a33; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
em { font-style: italic; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--lapis);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }

.ch-title {
  font: 400 clamp(40px, 6.2vw, 92px)/.98 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ch-title em { color: var(--lapis); font-weight: 400; }
.ch-lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 36em; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 14.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .45s var(--silk), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {               /* a woven stripe that slides through on hover */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 7px, rgba(226, 163, 58, .38) 7px 9px);
  transform: translateX(-102%); transition: transform .7s var(--silk);
}
@media (hover: hover) { .btn:hover::after { transform: translateX(0); } }
.btn-solid { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .btn-solid:hover { box-shadow: 0 10px 28px -12px var(--ink); } }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn-line:hover { border-color: var(--ink); } }
.btn-wide { width: 100%; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 700 12.5px/1 var(--sans); cursor: pointer; transition: background-color .25s, border-color .25s;
}
@media (hover: hover) { .chip-btn:hover { border-color: var(--ink); } }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--spring), border-color .25s;
}
@media (hover: hover) { .round-btn:hover { border-color: var(--ink); transform: scale(1.06); } }
.round-btn svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { border: 0; background: none; padding: 0; color: var(--lapis); text-decoration: underline; cursor: pointer; font-weight: 700; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--silk), color .4s;
}
.hdr.is-solid {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.on-dark { color: #f2ece1; }
.hdr.on-dark.is-solid { background: rgba(8, 12, 28, .66); box-shadow: 0 1px 0 rgba(242, 236, 225, .08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-star { width: 30px; height: 30px; color: var(--lapis); transition: transform 1.2s var(--silk); }
.hdr.on-dark .brand-star { color: #93a9ff; }
@media (hover: hover) { .brand:hover .brand-star { transform: rotate(90deg); } }
.brand-words { display: grid; line-height: 1; }
.brand-royal { font: italic 600 21px/1 var(--serif); letter-spacing: -.01em; }
.brand-carpets { font: 800 10px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  position: relative; padding: 10px 12px; font: 600 14px/1 var(--sans); text-decoration: none; opacity: .86;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--saffron);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--silk);
}
@media (hover: hover) { .nav a:hover { opacity: 1; } }
.nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .hdr-actions { margin-left: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: inherit; text-decoration: none; transition: background-color .25s;
}
@media (hover: hover) { .icon-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); } }
.theme-btn .i-sun { display: none; }
[data-theme='dark'] .theme-btn .i-sun { display: block; }
[data-theme='dark'] .theme-btn .i-moon { display: none; }
.bag-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--madder); color: #fff; font: 800 12px/18px var(--sans); text-align: center;
}
.bag-count.pop { animation: pop .6s var(--spring); }
@keyframes pop { 0% { transform: scale(.3); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

/* phone menu */
.menu {
  position: fixed; inset: 0; z-index: 39; background: var(--bg); padding: calc(var(--hdr) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; overscroll-behavior: contain;   /* a phone on its side is shorter than the list */
}
.menu nav { display: grid; gap: 2px; }
.menu nav a {
  padding: 3px 0; font: 400 clamp(34px, 9vw, 56px)/1.15 var(--serif); text-decoration: none; letter-spacing: -.02em;
  opacity: 0; transform: translateY(24px);
  animation: menu-in .7s var(--silk) forwards; animation-delay: calc(var(--i) * 55ms + 60ms);
}
.menu nav a:nth-child(odd) { font-style: italic; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.menu-kilim { width: 100%; height: 34px; border-radius: 6px; }

/* ---------- chapter index ---------- */
.chapters {
  position: fixed; right: 18px; top: 50%; z-index: 30; transform: translateY(-50%);
  transition: opacity .4s, transform .5s var(--silk);
}
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 4px;
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-decoration: none; color: var(--ink-3);
  mix-blend-mode: normal;
}
.chapters .lbl {
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--silk);
  text-transform: uppercase; white-space: nowrap; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 4px 8px; border-radius: 999px;
}
.chapters a:focus-visible .lbl { opacity: 1; transform: none; }
@media (hover: hover) { .chapters a:hover .lbl { opacity: 1; transform: none; } }
.chapters .num { font-variant-numeric: tabular-nums; }
.chapters .dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s, transform .4s var(--spring), border-color .3s; }
.chapters a.is-on { color: var(--ink); }
.chapters a.is-on .dot { background: var(--saffron); border-color: var(--saffron); transform: scale(1.5); }
.chapters.on-dark a { color: rgba(242, 236, 225, .55); }
.chapters.on-dark a.is-on { color: #f2ece1; }
.chapters.is-off { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(20px, -50%); }

/* ---------- screens & page transitions ---------- */
.screen { min-height: 100vh; }
::view-transition-old(root) { animation: vt-out .38s var(--silk) both; }
::view-transition-new(root) { animation: vt-in .6s var(--silk) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }
::view-transition-group(rug-hero) { animation-duration: .7s; animation-timing-function: var(--silk); }

/* reveal on scroll: split words rise out of a mask */
/* each word rises out of its own mask; the mask reaches past the line on every side (and the margins take it back, so
   nothing moves), so the tails of g, p and y and the swashes of italics are never cut */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em .1em .3em; margin: -.14em -.1em -.3em; }
.split .w > span { display: inline-block; transform: translateY(150%); transition: transform 1s var(--silk); transition-delay: calc(var(--wi) * 45ms); }
.split.is-in .w > span { transform: none; }
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--silk), transform 1s var(--silk); transition-delay: var(--d, 0ms); }
.rise.is-in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.ftr { background: var(--bg); color: var(--ink); padding: 0 var(--gutter) 28px; position: relative; overflow: hidden; }
.ftr-kilim { display: block; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: 30px; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding: 64px 0 40px; }
.ftr h3 { font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--saffron); margin-bottom: 18px; }
.ftr-cols a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .2s, transform .35s var(--silk); }
@media (hover: hover) { .ftr-cols a:hover { color: var(--ink); transform: translateX(4px); } }
.ftr-news p { color: var(--ink-2); margin-bottom: 14px; }
.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: 500 16px var(--sans);   /* 16px: iPhones zoom in on smaller text fields */
}
.ftr .btn-solid { background: var(--saffron); color: #1b1407; }
.ftr-mark {
  font: italic 400 min(9.3vw, 176px)/.95 var(--serif); letter-spacing: -.04em; white-space: nowrap;
  /* the gradient paints only inside this box: room above and below for the tall letters and the tails of y and p */
  text-align: center; margin: calc(12px - .3em) 0 calc(18px - .34em); padding: .3em 0 .34em;
  background: linear-gradient(100deg, var(--ink) 0 38%, var(--saffron) 47%, var(--ink) 56% 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
.ftr-mark em { font-style: normal; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.ftr-small { color: var(--ink-3); font-size: 13px; text-align: center; }
.ftr-small a { color: inherit; }
.ftr-addr { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; text-align: center; font-size: 14px; }
.ftr-addr a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .ftr-addr a:hover { color: var(--ink); text-decoration: underline; } }
@media (pointer: coarse) { .ftr-addr a { display: inline-block; padding: 12px 4px; margin: -12px -4px; } }
.ftr-credit { margin-top: 10px; text-align: center; color: var(--ink-3); font: 500 13px/1.4 var(--sans); }
.ftr-credit b { color: var(--saffron); font-weight: 800; letter-spacing: .04em; }

/* ---------- bag drawer ---------- */
.bag { position: fixed; inset: 0; z-index: 60; }
.bag-scrim { position: absolute; inset: 0; background: rgba(11, 16, 34, .45); animation: fade .4s ease both; }
.bag-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide-in .55s var(--silk) both;
}
.bag-panel { padding-right: env(safe-area-inset-right, 0px); }   /* a phone on its side: clear of the notch */
.bag.is-closing .bag-panel { animation: slide-out .4s var(--silk) both; }
.bag.is-closing .bag-scrim { animation: fade .35s ease reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
.bag-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bag-panel h2 { font: 400 28px/1 var(--serif); }
.bag-items { list-style: none; margin: 0; padding: 8px 20px; overflow: auto; flex: 1; }
.bag-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: rise-in .6s var(--silk) both; }
.bag-items img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.bag-items b { font: 500 18px/1.2 var(--serif); display: block; }
.bag-items small { color: var(--ink-3); }
.bag-items button { border: 0; background: none; color: var(--ink-3); cursor: pointer; text-decoration: underline; font-size: 13px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
.bag-empty { padding: 24px 20px; color: var(--ink-3); }
.bag-panel > footer { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag-panel > footer p { color: var(--ink-3); font-size: 13px; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; }
.bag-total b { font: 500 26px/1 var(--serif); }

/* the rug that rolls into the bag */
.flyer {
  position: fixed; z-index: 70; pointer-events: none; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: center / cover no-repeat;
}
.flyer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(255,255,255,.18) 35%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .3s; }
.flyer.is-rolled::after { opacity: 1; }

/* ---------- draft switcher ---------- */
.draftbar {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font: 700 12px/1 var(--sans);
}
.draft-tag { border: 0; background: none; cursor: pointer; min-height: 32px; padding: 0 8px 0 10px; letter-spacing: .16em; text-transform: uppercase; font: 800 12px/1 var(--sans); color: var(--saffron); }
.draft-links { display: contents; }
.draftbar a { padding: 9px 11px; border-radius: 999px; text-decoration: none; opacity: .75; transition: background-color .25s, opacity .25s; }
@media (hover: hover) { .draftbar a:hover { opacity: 1; } }
.draftbar a.is-on { background: var(--bg); color: var(--ink); opacity: 1; }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .chapters { display: none; }
}
.menu-draft { display: none; }
@media (max-width: 960px) {
  :root { --hdr: 62px; }
  .nav { display: none; }
  .nav + .hdr-actions { margin-left: auto; }   /* the buttons sit at the right edge once the links fold into the menu */
  .menu-btn { display: grid; }
  .brand-royal { font-size: 19px; }
  .ftr-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 48px; }
  .ftr-news { grid-column: 1 / -1; }
  /* phones and tablets: the draft switcher is in the menu, so nothing floats over the page */
  .draftbar { display: none; }
  .menu-draft {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; align-self: flex-start; width: min(100%, 420px);
    margin: 28px 0 14px; padding: 4px; border-radius: 22px; background: var(--ink); color: var(--bg);
  }
  .menu-draft span { grid-column: 1 / -1; padding: 10px 12px 6px; font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); }
  .menu-draft a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border-radius: 999px; font: 700 14px/1 var(--sans); text-decoration: none; opacity: .8; }
  .menu-draft a.is-on { background: var(--bg); color: var(--ink); opacity: 1; }
  [data-theme='dark'] .menu-draft { background: var(--surface); color: var(--ink); }
  [data-theme='dark'] .menu-draft a.is-on { background: var(--ink); color: var(--bg); }
  .menu-draft + .menu-kilim { flex: none; }
  .menu nav + .menu-draft { margin-top: auto; padding-top: 4px; }
}
@media (max-width: 480px) {
  .hdr { gap: 8px; }
  .hdr-actions { gap: 0; }
  .hdr-actions a.icon-btn { display: none; }
  .brand-star { width: 26px; height: 26px; }
}
/* a phone on its side: the menu's links in two columns, so the list fits the short screen */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .menu { padding-top: calc(var(--hdr) + 10px); }
  .menu nav { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .menu nav a { padding: 6px 0; font-size: clamp(24px, 7.4vh, 30px); }
  .menu nav a.menu-room { grid-column: 1 / -1; }
  .menu-draft { margin-top: 16px; }
}

/* touch screens: everything a finger taps is at least 44 px (Apple's guide; Android asks 48 dp) */
@media (pointer: coarse) {
  .chip-btn { min-height: 44px; }
  .brand { min-height: 44px; }
  .ftr-cols a { padding: 10px 0; }
  .bag-items button { min-height: 44px; padding: 0 6px; }
  .link-btn { min-height: 44px; }
  .draft-tag { min-height: 44px; }
  .draftbar a { display: inline-flex; align-items: center; min-height: 44px; }
  /* small links inside a line of text: a taller hit area that leaves the line where it is */
  .ftr-small a, .crumbs a, .flag figcaption a { padding: 13px 6px; margin: -13px -6px; }
}
@media (max-width: 360px) {
  .brand-royal { font-size: 17px; }
  .brand-carpets { letter-spacing: .32em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .split .w > span, .rise { transform: none; opacity: 1; }
}

/* tablets and touch screens wider than the menu's 960 px: the header links are 44 px to the finger, and the draft
   switcher stays folded to its tag (its links open on a tap) */
@media (min-width: 961px) and (pointer: coarse) {
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .draftbar:not(.is-open) .draft-links { display: none; }
  .draft-tag::after { content: ' ▴'; }
  .draftbar.is-open .draft-tag::after { content: ' ▾'; }
}
/* the draft switcher slides away with the header while you scroll down, and comes back when you scroll up */
.draftbar { transition: transform .5s var(--silk), opacity .3s; }
.hdr-off .draftbar:not(.is-open) { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
