/* ==========================================================================
   The notebook: the introduction is set like a page from a 1930s magazine
   (white stock, three columns with rules between, thin geometric capitals,
   a book serif, small caps and raised initials), and beside it the tablet's
   system is printed straight onto a sheet of paper. Scoped to html.nb.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;600;700&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=UnifrakturMaguntia&family=Yellowtail&display=swap');

html.nb{
  --nb-rail: 0px;
  --nb-tab-w: min(400px, 29vw);
  --f-news: 'Old Standard TT', 'Times New Roman', Georgia, serif;
  --f-deco: 'Josefin Sans', Futura, 'Century Gothic', sans-serif;
  --f-black: 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --f-script: 'Yellowtail', 'Brush Script MT', cursive;
  --ink: #141414;
  --sheet-shadow: 0 1px 2px rgba(20,20,20,.06), 0 16px 34px -18px rgba(20,20,20,.22);
}
.nb-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the hero holds the page (and, below 1180px, the tablet beside it) ---------------- */
html.nb .hero.nb-hero{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px !important;
  min-height: 0;
  padding: 100px 22px 40px !important;
  gap: 40px;
  align-items: start;
}
html.nb .hero.nb-hero > .hero__copy,
html.nb .hero.nb-hero > .hero__media{ display: none !important; }
html.nb section.marquee{ display: none; }

/* ---- the magazine page ------------------------------------------------------------------- */
.nb-letter{
  position: relative;
  max-width: 920px; margin: 0 auto;
  opacity: 0; translate: 0 10px;
  transition: opacity .9s var(--pw-ease), translate .9s var(--pw-ease);
}
html.nb-ready .nb-letter{ opacity: 1; translate: 0 0; }
.nb-letter__paper{
  position: relative;
  padding: 26px 32px 30px;
  background: #fff;
  box-shadow: var(--sheet-shadow);
  color: var(--ink);
}
.nb-folio{
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0 0 16px;
  font-family: var(--f-news); font-size: 12px;
}
.nb-folio__name{ font-family: var(--f-deco); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; }
.nb-folio__mid{ font-style: italic; color: #555; }

.nb-mag{ display: grid; grid-template-columns: 1.12fr 1fr 1.04fr; align-items: start; }
.nb-mag__col{ padding: 0 18px; min-width: 0; }
.nb-mag__col:first-child{ padding-left: 0; }
.nb-mag__col:last-child{ padding-right: 0; }
.nb-mag__col + .nb-mag__col{ border-left: 1px solid var(--ink); }
.nb-mag__col--ad{ text-align: center; }

.nb-thin{ margin: 0; font-family: var(--f-deco); font-weight: 300; color: var(--ink); line-height: 1.12; }
.nb-thin--s{ font-size: 20px; }
.nb-thin--m{ font-size: 21px; margin: 10px 0 2px; }
.nb-thin--h{ font-size: 27px; letter-spacing: .05em; text-transform: uppercase; text-align: center; line-height: 1.1; }
.nb-thin--x{ font-size: 23px; text-align: center; margin: 12px 0 14px; }
.nb-big{ margin: 8px 0 0; font-family: var(--f-deco); font-weight: 300; line-height: 1.04; }
.nb-big__pre{ display: block; font-size: 20px; }
.nb-big__name{ display: block; margin-top: 6px; font-size: 46px; letter-spacing: .03em; text-transform: uppercase; }
.nb-native{ margin: 2px 0 14px; font-family: var(--f-news); font-size: 14px; color: #555; }

.nb-ht{ display: block; width: 100%; background: #fff; }
.nb-ht--wide{ height: 150px; margin: 0 0 18px; }
.nb-ht--tall{ height: 360px; }

.nb-copy{
  margin: 0 0 9px;
  font-family: var(--f-news); font-size: 15px; line-height: 1.45;
  text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto;
  color: var(--ink);
}
.nb-copy + .nb-copy{ text-indent: 1.1em; }
.nb-copy--note{ font-style: italic; }
.nb-sc{ font-variant: small-caps; letter-spacing: .05em; }
.nb-sc--lead{ font-size: 1.22em; letter-spacing: .03em; }
.nb-drop{ float: left; margin: 5px 3px 0 0; font-family: var(--f-news); font-size: 48px; line-height: .78; }

.nb-recipe{ margin: 16px 6px 14px; text-align: center; font-family: var(--f-deco); color: var(--ink); }
.nb-recipe__by{ margin: 0 0 8px; font-size: 11.5px; line-height: 1.3; }
.nb-recipe__by b{ font-weight: 600; font-size: 13px; }
.nb-recipe__t{ margin: 0 0 3px; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nb-recipe__x{ margin: 0; font-weight: 600; font-size: 11px; line-height: 1.35; text-align: justify; text-align-last: center; }
.nb-sig{ display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.nb-sig__s{ font-family: var(--f-script); font-size: 44px; line-height: 1; transform: rotate(-5deg); transform-origin: 0 100%; }
.nb-sig__t{ font-family: var(--f-deco); font-weight: 600; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }

.nb-deck{ margin: 6px 0 14px; font-family: var(--f-news); font-style: italic; font-size: 15px; line-height: 1.3; text-align: center; }
.nb-cut{ float: left; width: 92px; height: 92px; margin: 2px 10px 4px -6px; }
.nb-cut svg{ width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.nb-cut .h{ stroke-width: .8; }

.nb-brand{ display: block; text-align: center; font-family: var(--f-black); font-size: 36px; line-height: 1; color: var(--ink); text-decoration: none; }
.nb-brand:hover{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nb-addr{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin: 6px 0 0; font-family: var(--f-deco); font-weight: 600; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.nb-addr span:nth-child(even){ text-align: right; }
.nb-tall{ position: relative; }
.nb-price{ position: absolute; left: 0; bottom: 6px; padding: 2px 8px 0 0; background: #fff; font-family: var(--f-deco); font-weight: 300; font-size: 40px; line-height: 1; }
.nb-with{ margin: 10px 0 6px; font-family: var(--f-deco); font-weight: 600; font-size: 12.5px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
.nb-with span{ font-family: var(--f-news); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; }
.nb-apply{ font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.nb-apply:hover{ color: rgb(var(--c-learn, 104,146,62)); border-color: currentColor; }

/* the highlighter, one colour per part of the site */
.nb-hl{
  color: inherit; text-decoration: none;
  padding: 0 .1em; margin: 0 -.05em;
  background-image: var(--nb-swipe); background-repeat: no-repeat;
  background-position: 0 70%; background-size: 0% 74%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .8s var(--pw-ease) var(--d, .6s), color .2s ease;
  cursor: pointer;
}
html.nb-ready .nb-hl{ background-size: 100% 74%; }
.nb-hl:hover, .nb-hl:focus-visible{ color: rgb(var(--c, 76,56,240)); outline: none; }
.nb-hl:focus-visible{ text-decoration: underline; text-underline-offset: 5px; }
.nb-recipe__by b{ display: block; }
.nb-box{ margin: 22px 0 0; padding: 14px 14px 16px; text-align: center; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; }
.nb-box__k{ margin: 0; font-family: var(--f-deco); font-weight: 700; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; }
.nb-box__t{ margin: 6px 0 8px; font-size: 21px; }
.nb-box__x{ margin: 0 0 10px; font-family: var(--f-news); font-style: italic; font-size: 13.5px; line-height: 1.4; }

/* ---- each column: text, then a drawing from the sketchbook in whatever room is left ---------- */
.nb-letter{ --pw-ink: #141414; }
.nb-mag{ align-items: stretch; }
.nb-mag__col{ display: flex; flex-direction: column; }
.nb-mag__body{ flex: none; }
.nb-spot{ position: relative; flex: 1 1 0; min-height: 70px; margin: 8px 0 4px; }
.nb-spot .pw-vignette{ position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.nb-spot .pw-canvas{ object-fit: contain; object-position: 50% 100%; }
html.nb-ready .nb-spot .pw-ink, .nb-cut .pw-ink{ stroke-dashoffset: 0; }
html.nb-ready .nb-spot .pw-fill, .nb-cut .pw-fill{ opacity: .9; }
html.nb-ready .nb-spot .pw-canvas{ opacity: 1; }
.nb-spot .pw-ink{ transition-delay: calc(var(--t, 0) * 1600ms + 900ms); }
.nb-cut svg{ stroke: none; }
.nb-cut .pw-ink{ transition: none; }

/* ---- set tighter, so the page fits beside the tablet ------------------------------------------ */
.nb-letter__paper{ padding: 22px 28px 24px; }
.nb-folio{ margin-bottom: 12px; }
.nb-thin--s{ font-size: 17px; }
.nb-big{ margin-top: 4px; }
.nb-big__pre{ font-size: 17px; }
.nb-big__name{ font-size: 44px; margin-top: 4px; }
.nb-thin--m{ font-size: 16px; margin: 8px 0 2px; }
.nb-native{ margin-bottom: 10px; font-size: 13px; }
.nb-copy{ font-size: 14.5px; line-height: 1.42; margin-bottom: 7px; }
.nb-recipe{ margin: 10px 4px 6px; }
.nb-recipe__by{ margin-bottom: 4px; }
.nb-thin--h{ font-size: 23px; }
.nb-deck{ margin: 4px 0 10px; font-size: 14.5px; }
.nb-cut{ width: 78px; height: 78px; }
.nb-thin--x{ font-size: 20px; margin: 8px 0 10px; }
.nb-tall{ flex: 1 1 0; min-height: 170px; }
.nb-ht--tall{ height: 100%; }
.nb-with{ margin-top: 8px; }
.nb-box{ margin-top: 14px; padding: 10px 12px 12px; }
.nb-box__t{ margin: 4px 0 4px; font-size: 19px; }
.nb-box__x{ margin-bottom: 8px; font-size: 13px; }
.nb-sig{ margin-top: 6px; }
.nb-sig__s{ font-size: 38px; }


/* ---- the tablet: themes (each one is a different sheet of stock) ---------------------------- */
.nb-tablet, .nb-swatch[data-theme="paper"]{
  --t-screen: #fff; --t-ink: #141414; --t-mute: #5c5c5c; --t-rule: rgba(20,20,20,.2);
  --t-accent: #b0261c; --t-tile: #fff;
  --t-art: none; --t-blend: multiply;
}
.nb-tablet[data-theme="ivory"], .nb-swatch[data-theme="ivory"]{
  --t-screen: #fbf6e9; --t-ink: #1f1b15; --t-mute: #6c6252; --t-rule: rgba(31,27,21,.22);
  --t-accent: #8a531a; --t-tile: #fbf6e9;
  --t-art: sepia(.35); --t-blend: multiply;
}
.nb-tablet[data-theme="night"], .nb-swatch[data-theme="night"]{
  --t-screen: #161616; --t-ink: #f1efe9; --t-mute: #a19e96; --t-rule: rgba(241,239,233,.2);
  --t-accent: #e3bd68; --t-tile: #161616;
  --t-art: invert(1); --t-blend: screen;
}
.nb-tablet[data-theme="blueprint"], .nb-swatch[data-theme="blueprint"]{
  --t-screen: #1f4f88; --t-ink: #f4f8fc; --t-mute: #bfd2e8; --t-rule: rgba(244,248,252,.26);
  --t-accent: #f2d27a; --t-tile: #1f4f88;
  --t-art: invert(1); --t-blend: screen;
}

/* ---- the case ------------------------------------------------------------------------------- */
.nb-tablet{
  position: relative;
  width: 100%; height: 640px;
  opacity: 0; transition: opacity 1s var(--pw-ease) .25s;
  color: var(--t-ink);
}
html.nb-ready .nb-tablet{ opacity: 1; }
.nb-bezel{ height: 100%; display: flex; flex-direction: column; }
.nb-screen{
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background-color: var(--t-screen);
  box-shadow: var(--sheet-shadow);
  overflow: hidden;
  transition: background-color .5s ease;
}

/* ---- status bar ---------------------------------------------------------------------------- */
.nb-status{
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px 5px;
  font-family: var(--f-deco); font-weight: 600; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--t-mute);
}
.nb-status__who i{ font-family: var(--f-news); font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: 11px; }
.nb-status__right{ display: inline-flex; align-items: center; gap: 8px; }
.nb-status__bat{ width: 20px; height: 10px; fill: none; stroke: var(--t-mute); stroke-width: 1; }
.nb-status__charge{ fill: var(--t-mute); stroke: none; opacity: .7; }

/* ---- home ------------------------------------------------------------------------------------- */
.nb-views{ position: relative; flex: 1; min-height: 0; perspective: 1400px; }
.nb-home, .nb-app{ position: absolute; inset: 0; display: flex; flex-direction: column; }
.nb-home[hidden], .nb-app[hidden]{ display: none; }
.nb-home{ padding: 12px 18px 4px; }
.nb-greet{ text-align: center; padding-top: 4px; }
.nb-greet__day{ margin: 0; font-family: var(--f-deco); font-weight: 600; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--t-mute); }
.nb-greet__hi{ margin: 4px 0 0; font-family: var(--f-deco); font-weight: 300; font-size: 25px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--t-ink); }
.nb-greet__rule{ display: none; width: 150px; height: 10px; margin: 6px auto 0; fill: none; stroke: var(--t-ink); stroke-width: 1; }
.nb-greet__rule path:nth-child(2){ fill: var(--t-accent); stroke: none; }
.nb-grid{
  flex: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  align-content: center; gap: 12px 4px; padding: 6px 0;
}
.nb-icon{
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 2px 0; background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--t-ink); -webkit-tap-highlight-color: transparent;
}
.nb-icon__art{ width: 54px; height: 54px; overflow: visible; transition: transform .3s var(--pw-ease); }
.nb-icon__tile{ fill: var(--t-tile); stroke: var(--t-ink); stroke-width: 1.4; stroke-linejoin: miter; transition: fill .2s ease; }
.nb-icon__rule{ fill: none; stroke: var(--t-ink); stroke-width: .6; opacity: .55; transition: stroke .2s ease; }
.nb-icon__glyph{ fill: none; stroke: var(--t-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.nb-icon__glyph .h{ stroke-width: 1.1; opacity: .8; }
.nb-icon__glyph .seal{ fill: var(--t-accent); stroke: var(--t-accent); }
.nb-icon__glyph text{ stroke: none; fill: var(--t-ink); font-family: var(--f-script) !important; }
.nb-icon__label{ font-family: var(--f-deco); font-weight: 400; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--t-ink); padding-left: .17em; }
.nb-icon:hover .nb-icon__art, .nb-icon:focus-visible .nb-icon__art{ transform: translateY(-2px); }
.nb-icon:hover .nb-icon__glyph, .nb-icon:focus-visible .nb-icon__glyph, .nb-icon--called .nb-icon__glyph{ stroke: var(--t-accent); }
.nb-icon:hover .nb-icon__glyph text, .nb-icon--called .nb-icon__glyph text, .nb-icon:focus-visible .nb-icon__glyph text{ fill: var(--t-accent); }
.nb-icon:hover .nb-icon__label, .nb-icon--called .nb-icon__label, .nb-icon:focus-visible .nb-icon__label{ color: var(--t-accent); }
.nb-icon:focus-visible{ outline: none; }
.nb-icon--called .nb-icon__art{ animation: nb-wiggle .7s ease-in-out infinite; }
@keyframes nb-wiggle{ 0%, 100%{ transform: rotate(0); } 25%{ transform: rotate(-5deg); } 75%{ transform: rotate(5deg); } }
html.nb-ready .nb-home .nb-icon, .nb-unlocking .nb-home .nb-icon{ animation: nb-in .55s var(--pw-ease) both; animation-delay: calc(.2s + var(--i) * 35ms); }
@keyframes nb-in{ from{ opacity: 0; transform: translateY(6px); } }

/* ---- dock ------------------------------------------------------------------------------------- */
.nb-dock{ position: relative; z-index: 6; display: flex; background: var(--t-screen); transition: background-color .5s ease; }
.nb-dock__b{
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 9px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-deco); font-weight: 600; font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--t-mute);
}
.nb-dock__b svg{ width: 18px; height: 18px; fill: none; stroke: var(--t-ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.nb-dock__b:hover, .nb-dock__b:focus-visible{ color: var(--t-accent); outline: none; }
.nb-dock__b:hover svg, .nb-dock__b:focus-visible svg{ stroke: var(--t-accent); }

/* ---- lock screen ------------------------------------------------------------------------------ */
.nb-lock{
  position: absolute; z-index: 5; inset: 0;
  background: var(--t-screen);
  overflow: hidden; cursor: pointer; outline: none; isolation: isolate;
  transition: transform .8s var(--pw-ease), opacity .6s ease, background-color .5s ease;
}
.nb-tablet:not(.nb-locked) .nb-lock{ transform: translateY(-104%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .8s var(--pw-ease), opacity .6s ease, visibility 0s .8s; }
.nb-tablet.nb-locked .nb-dock__b--lock{ opacity: .35; pointer-events: none; }
.nb-lock__art{ position: absolute; inset: 0; pointer-events: none; filter: var(--t-art); mix-blend-mode: var(--t-blend); }
.nb-tablet[data-picture="plain"] .nb-lock__art{ display: none; }
html.nb .nb-lock .hero__media.pw-cover{
  display: block !important; position: absolute !important;
  inset: auto !important; left: -60% !important; top: 30% !important; right: auto !important;
  width: 158% !important; aspect-ratio: 10 / 7;
  margin: 0 !important; opacity: 1 !important; overflow: visible !important;
  -webkit-mask: none; mask: none; pointer-events: none;
}
html.nb .nb-lock .pw-cover .pw-stage{ inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; }
html.nb .nb-lock .media__hint{ display: none !important; }
html.nb .nb-lock .pw-sky{ pointer-events: none; }
.nb-lock::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1;
  background: linear-gradient(color-mix(in srgb, var(--t-screen) 0%, transparent), var(--t-screen) 72%);
  pointer-events: none;
}
.nb-lock__top{ position: relative; z-index: 2; padding: 70px 20px 0; text-align: center; }
.nb-lock__time{ margin: 0; font-family: var(--f-deco); font-weight: 200; font-size: 76px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; color: var(--t-ink); }
.nb-lock__date{ margin: 10px 0 0; font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--t-mute); }
.nb-dial{ display: none; width: 148px; height: 148px; margin: 0 auto; overflow: visible; }
.nb-tablet[data-clock="dial"] .nb-dial{ display: block; }
.nb-tablet[data-clock="dial"] .nb-lock__time{ display: none; }
.nb-tablet[data-clock="dial"] .nb-lock__art{ top: 5%; }
.nb-dial__ring{ fill: var(--t-screen); stroke: var(--t-ink); stroke-width: 2.4; }
.nb-dial__ring--thin{ fill: none; stroke-width: .8; }
.nb-dial__rays path{ stroke: var(--t-ink); stroke-width: .6; opacity: .28; }
.nb-dial__tick{ stroke: var(--t-ink); stroke-width: .9; opacity: .7; }
.nb-dial__big{ stroke: var(--t-ink); stroke-width: 2.4; }
.nb-dial__num text{ font-family: var(--f-deco); font-size: 16px; font-weight: 300; fill: var(--t-ink); }
.nb-dial__h path, .nb-dial__m path{ fill: var(--t-ink); }
.nb-dial__s path{ stroke: var(--t-accent); stroke-width: 1.1; }
.nb-dial__s circle{ fill: var(--t-accent); }
.nb-lock__hint{
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--t-mute);
}
.nb-lock__hint svg{ width: 18px; height: 12px; fill: none; stroke: var(--t-ink); stroke-width: 1.3; animation: nb-bob 2.4s ease-in-out infinite; }
@keyframes nb-bob{ 50%{ transform: translateY(-4px); } }
.nb-lock:focus-visible .nb-lock__hint span{ text-decoration: underline; }

/* ---- an app ------------------------------------------------------------------------------------ */
.nb-app__top{
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 7px 14px 8px;
}
.nb-app__back, .nb-app__close{
  justify-self: start; padding: 6px 2px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--t-mute);
}
.nb-app__close{ justify-self: end; }
.nb-app__back:hover, .nb-app__close:hover{ color: var(--t-accent); }
.nb-app__title{ margin: 0; font-family: var(--f-deco); font-weight: 300; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink); }
.nb-app__body{ flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--t-rule) transparent; }
.nb-pagebody{ padding: 12px 18px 20px; transform-origin: 0 50%; color: var(--t-ink); }
.nb-turn{ animation: nb-turn .55s var(--pw-ease) both; }
.nb-turn--back{ animation: nb-turn-back .45s var(--pw-ease) both; }
@keyframes nb-turn{ from{ opacity: 0; transform: rotateY(-24deg) translateX(18px); } }
@keyframes nb-turn-back{ from{ opacity: 0; transform: rotateY(14deg) translateX(-12px); } }

.nb-intro{ margin: 2px 0 10px; font-family: var(--f-news); font-style: italic; font-size: 14.5px; line-height: 1.5; color: var(--t-mute); }
.nb-group{
  display: flex; align-items: center; gap: 10px; margin: 16px 0 4px;
  font-family: var(--f-deco); font-weight: 700; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--t-mute);
}
.nb-group::after{ content: ''; flex: 1; border-top: 1px solid var(--t-rule); }
.nb-list, .nb-photos{ list-style: none; margin: 0; padding: 0; }
.nb-list > li + li{ border-top: 1px solid var(--t-rule); }
.nb-row{
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px;
  background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--t-ink); text-decoration: none;
}
.nb-row--still{ cursor: default; }
.nb-row__n{ flex: none; width: 20px; font-family: var(--f-deco); font-weight: 600; font-size: 10px; letter-spacing: .08em; color: var(--t-mute); }
.nb-row__icon{ flex: none; width: 22px; height: 22px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; }
.nb-row__t{ flex: 1; min-width: 0; font-family: var(--f-news); font-size: 16px; line-height: 1.3; }
.nb-row__s{ display: block; margin-top: 2px; font-size: 12.5px; font-style: italic; color: var(--t-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-row__go{ flex: none; font-family: var(--f-news); font-size: 18px; color: var(--t-mute); transition: transform .25s var(--pw-ease), color .2s; }
button.nb-row:hover .nb-row__t, a.nb-row:hover .nb-row__t, .nb-row:focus-visible .nb-row__t{ color: var(--t-accent); }
button.nb-row:hover .nb-row__go, a.nb-row:hover .nb-row__go{ transform: translateX(3px); color: var(--t-accent); }
.nb-row:focus-visible{ outline: none; }
.nb-photos{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 6px; }
.nb-photos .nb-row{ flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 6px 8px; background: var(--t-tile); border: 1px solid var(--t-ink); }
.nb-photos .nb-row__go{ display: none; }
.nb-photos .nb-row__t{ font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.nb-photos .nb-row__s{ font-family: var(--f-news); letter-spacing: 0; text-transform: none; }
.nb-photo{ display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.nb-chips{ display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.nb-chip{ padding: 6px 12px 5px; font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-ink); border: 1px solid var(--t-ink); }
.nb-media{ display: block; width: 100%; margin: 4px 0 14px; background: var(--t-tile); border: 1px solid var(--t-ink); filter: grayscale(.6) contrast(1.05); }
.nb-media--img{ aspect-ratio: 4 / 3; object-fit: cover; }
video.nb-media{ aspect-ratio: 16 / 10; object-fit: cover; }
.nb-kicker{ margin: 0 0 4px; font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--t-mute); }
.nb-h{ margin: 0 0 10px; font-family: var(--f-deco); font-weight: 300; font-size: 24px; line-height: 1.15; color: var(--t-ink); }
.nb-p{ margin: 0 0 12px; font-family: var(--f-news); font-size: 15px; line-height: 1.6; color: var(--t-ink); }
.nb-p--lede{ font-style: italic; }
.nb-ul{ margin: 0 0 14px; padding: 0; list-style: none; }
.nb-ul li{ position: relative; padding: 0 0 7px 18px; font-family: var(--f-news); font-size: 14.5px; line-height: 1.5; color: var(--t-ink); }
.nb-ul li::before{ content: '\25C6'; position: absolute; left: 0; top: .1em; font-size: 8px; color: var(--t-accent); }
.nb-callout{ margin: 4px 0 12px; padding: 10px 12px; font-family: var(--f-news); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--t-ink); border: 1px solid var(--t-ink); outline: 1px solid var(--t-ink); outline-offset: -4px; }
.nb-links{ display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; }
.nb-link{ font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.nb-portrait{ display: block; width: 112px; height: 136px; margin: 6px 0 14px; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--t-ink); outline: 1px solid var(--t-ink); outline-offset: 3px; }
.nb-btn{
  display: inline-block; margin: 14px 0 0; padding: 10px 16px 9px;
  font-family: var(--f-deco); font-weight: 700; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--t-ink); text-decoration: none; background: none;
  border: 1.5px solid var(--t-ink); cursor: pointer; transition: background-color .2s, color .2s;
}
.nb-btn:hover, .nb-btn:focus-visible{ background: var(--t-ink); color: var(--t-screen); outline: none; }
.nb-see{
  display: block; margin: 18px 0 0; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--t-mute);
}
.nb-see:hover{ color: var(--t-accent); }
.nb-contact{ display: flex; flex-direction: column; }
.nb-contact .nb-row + .nb-row{ border-top: 1px solid var(--t-rule); }

/* ---- settings -------------------------------------------------------------------------------- */
.nb-set{ margin: 0 0 16px; }
.nb-set__h{
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-family: var(--f-deco); font-weight: 700; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--t-mute);
}
.nb-set__h::after{ content: ''; flex: 1; border-top: 1px solid var(--t-rule); }
.nb-seg{ display: inline-flex; border: 1.5px solid var(--t-ink); }
.nb-seg__b{
  padding: 7px 12px 6px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-deco); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-ink);
}
.nb-seg__b + .nb-seg__b{ border-left: 1px solid var(--t-ink); }
.nb-seg__b[aria-checked="true"]{ background: var(--t-ink); color: var(--t-screen); }
.nb-seg__b:focus-visible{ outline: 2px solid var(--t-accent); outline-offset: 1px; }
.nb-swatches{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nb-swatch{ display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 0 4px; background: none; border: 1px solid transparent; cursor: pointer; }
.nb-swatch[aria-checked="true"]{ border-color: var(--t-ink); }
.nb-swatch__case{ display: block; width: 40px; height: 52px; padding: 7px 6px; background: var(--t-screen); box-shadow: 0 0 0 1px rgba(20,20,20,.14), 0 6px 10px -6px rgba(20,20,20,.35); }
.nb-swatch__screen{ display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; }
.nb-swatch__screen::before, .nb-swatch__screen::after{ content: ''; display: block; height: 1px; background: var(--t-ink); }
.nb-swatch__screen::after{ width: 60%; }
.nb-swatch__ink{ width: 7px; height: 7px; margin-top: auto; border-radius: 50%; background: var(--t-accent); }
.nb-swatch__name{ font-family: var(--f-news); font-style: italic; font-size: 11.5px; color: var(--t-ink); }
.nb-tablet .nb-swatch .nb-swatch__name{ color: var(--t-ink); }
.nb-set__note{ margin-top: 14px; font-size: 12.5px; }

/* a part of the page the tablet jumped to glows for a moment */
.nb-flash{ animation: nb-flash 2.2s ease-out; }
@keyframes nb-flash{ 0%, 30%{ background-color: rgba(var(--accent-ink-rgb, 76,56,240), .07); } 100%{ background-color: transparent; } }

/* the icons are pen sketches, drawn with the castle's own pen */
.nb-ink .pw-ink{ stroke: var(--t-ink); stroke-dashoffset: 0; transition: stroke .2s ease; }
.nb-ink .pw-fill{ fill: var(--t-ink); opacity: .9; transition: fill .2s ease; }
.nb-ink .pw-ink.pw-paper{ stroke: var(--t-screen); }
.nb-ink .pw-ink.pw-hue{ stroke: var(--t-accent); }
.nb-ink .pw-fill.pw-hue-fill{ fill: var(--t-accent); }
.nb-icon__art.nb-ink{ width: 64px; height: 64px; }
.nb-icon:hover .nb-ink .pw-ink, .nb-icon:focus-visible .nb-ink .pw-ink, .nb-icon--called .nb-ink .pw-ink{ stroke: var(--t-accent); }
.nb-icon:hover .nb-ink .pw-fill, .nb-icon:focus-visible .nb-ink .pw-fill, .nb-icon--called .nb-ink .pw-fill{ fill: var(--t-accent); }
.nb-unlocking .nb-ink .pw-ink{ animation: nb-draw .8s var(--pw-ease) both; animation-delay: calc(min(var(--i, 0) * 6ms, 500ms) + var(--k, 0) * 40ms); }
@keyframes nb-draw{ from{ stroke-dashoffset: 1; } to{ stroke-dashoffset: 0; } }
/* ---- pages: cells that are sheets torn from the same notebook --------------------------- */
.nb-sec{ position: relative; }
html.nb .nb-pages{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px 24px;
  margin-top: 26px;
}
html.nb .nb-pg{
  position: relative !important;
  isolation: isolate;
  padding: 26px 22px 30px !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--pw-ease);
}
html.nb .nb-pg > *:not(.pw-stampsvg){ position: relative; z-index: 1; }
html.nb .nb-pg > .pw-stampsvg{ position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0 !important; overflow: visible; pointer-events: none; }
html.nb .nb-pg > .pw-snap-tape{ position: absolute; z-index: 3; }
@media (hover: hover){
  html.nb .nb-pg:hover{ transform: rotate(0deg) translateY(-3px); }
  html.nb .nb-pg:hover .pw-snap__shadow{ opacity: .14; }
}
#research_panels.nb-pages > .panel:nth-child(odd){ --tilt: -.4deg; }
#research_panels.nb-pages > .panel:nth-child(even){ --tilt: .5deg; }
#research_panels.nb-pages > .panel h3{ margin-top: 0; }
#research_panels.nb-pages > .panel .callout{ background: rgba(var(--accent-ink-rgb, 76,56,240), .05) !important; border: 0 !important; border-left: 2px solid rgba(var(--accent-ink-rgb, 76,56,240), .3) !important; border-radius: 0 !important; }

.nb-pg__kind{ margin: 0 0 14px; font-family: var(--pw-hand); font-size: 15px; color: var(--pw-accent); transform: rotate(-2deg); transform-origin: 0 50%; }
.nb-pg__logo{ display: block; width: 34px; height: 34px; object-fit: contain; margin: 0 0 12px; filter: grayscale(1) contrast(1.05); opacity: .78; }
.nb-pg__title{ margin: 0 0 4px; font-family: var(--pw-sans); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--pw-ink); }
.nb-pg__sub{ margin: 0; font-family: var(--pw-serif); font-style: italic; font-size: 15px; color: var(--pw-ink-2); }


/* ---- the rest of the site in the magazine's type and ink (the drawings stay as they are) ---- */
html.nb{
  --pw-sans: 'Josefin Sans', Futura, 'Century Gothic', sans-serif;
  --pw-serif: 'Old Standard TT', 'Times New Roman', Georgia, serif;
  --pw-ink: #141414;
  --pw-ink-2: #3a3a3a;
  --pw-ink-3: #6e6e6e;
  --pc-paper: #fff;
}
html.nb .section__head h2:not(.about__title),
html.nb h2.about__title.pw-h-major{
  font-weight: 300 !important;
  font-size: clamp(34px, 4vw, 50px) !important;
  line-height: 1.05 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}
html.nb h2.about__title{ font-weight: 300 !important; letter-spacing: .05em !important; text-transform: uppercase !important; font-size: clamp(22px, 2.4vw, 28px) !important; }
html.nb .card h3, html.nb .panel h3, html.nb .row h3, html.nb article.card.pc h3{
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  line-height: 1.22 !important;
}
html.nb .grid .card h3, html.nb article.card.pc h3{ font-size: 19px !important; }
html.nb .section__head p, html.nb .card p, html.nb .panel p, html.nb .row p{ letter-spacing: 0; }
html.nb .pillrow__title{ font-weight: 300 !important; letter-spacing: .05em !important; text-transform: uppercase !important; }
html.nb .pw-snap__paper{ fill: #fff; }
html.nb .pw-index, html.nb .pw-item{ background-color: transparent; }
html.nb article.card.pc{ --pc-paper: #fff; }
html.nb .pw-portrait{ background: #fff !important; }
html.nb{ --pw-sepia: #5a5a5a; }

/* ---- one paper everywhere: white, like the magazine page ------------------------------------ */
html.nb{ --pw-paper: #fff; --bg: #fff; background: #fff; }
html.nb body{ background-color: #fff; background-image: none; }
html.nb .pw-nav--paper{ background: linear-gradient(#fff 62%, rgba(255,255,255,0)); }
html.nb .pc-pic__frame,
html.nb .pc-pic__frame--video .pc-pic__art,
html.nb .pw-portrait{ background: #fff !important; }
html.nb .pc-pic__frame--video::after{ background: rgba(255,255,255,.85); }
html.nb .pc-stamp__in{ background-color: #fff; }
html.nb .mini-card::after{ background: linear-gradient(rgba(var(--accent-soft-rgb, 204,199,255), .3), rgba(var(--accent-soft-rgb, 204,199,255), .3)), #fff !important; }
html.nb .pw-stamp-val{ background: #fff; }
html.nb .pw-smark__ring{ background: rgba(255,255,255,.35); }
html.nb .pw-snap__fibre{ fill: #f2f2f2; }
html.nb{ --sheet-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 1px 3px rgba(20,20,20,.07), 0 18px 36px -18px rgba(20,20,20,.26); }

/* ---- round 7 ------------------------------------------------------------------------------- */
/* a firm ink edge round the page and the tablet */
html.nb{ --sheet-shadow: 0 0 0 1px rgba(20,20,20,.82), 0 2px 4px rgba(20,20,20,.06), 0 20px 38px -20px rgba(20,20,20,.3); }

/* the portrait fills its space in every browser (Safari ignores % heights in flex items) */
.nb-tall{ position: relative; }
.nb-tall .nb-ht--tall{ position: absolute; inset: 0; width: 100%; height: 100%; }
.nb-price{ z-index: 1; }

/* the running head: one centred title */
.nb-status{ justify-content: center; padding: 14px 16px 4px; }
.nb-status__right{ display: none !important; }
.nb-status__who{ font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--t-ink); padding-left: .32em; }
.nb-status__who i{ font-family: var(--f-news); font-style: italic; font-weight: 400; font-size: 13px; letter-spacing: .02em; text-transform: none; margin-right: .25em; }

/* the dock: "Lock", a seal for home, "Settings"; no bar */
.nb-dock{ align-items: center; justify-content: center; gap: 30px; padding: 6px 0 16px; background: transparent; }
.nb-dock__b{ flex: none; flex-direction: row; gap: 0; padding: 6px 4px; font-family: var(--f-news); font-style: italic; font-weight: 400; font-size: 14.5px; letter-spacing: .01em; text-transform: none; color: var(--t-ink); }
.nb-dock__b--lock, .nb-dock__b--settings{ width: 76px; }
.nb-dock__b--lock{ justify-content: flex-end; }
.nb-dock__b--settings{ justify-content: flex-start; }
.nb-dock__b span{ background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s var(--pw-ease); padding-bottom: 1px; }
.nb-dock__b:hover span, .nb-dock__b:focus-visible span{ background-size: 100% 1px; }
.nb-dock__b--home{ padding: 0; }
.nb-seal{ display: block; width: 50px; height: 50px; background: none !important; transition: transform .4s var(--pw-ease); }
.nb-seal svg{ width: 100%; height: 100%; overflow: visible; }
.nb-dock__b--home:hover .nb-seal, .nb-dock__b--home:focus-visible .nb-seal{ transform: rotate(-8deg) scale(1.05); }
.nb-seal .pw-ink{ stroke: var(--t-ink); stroke-dashoffset: 0; transition: stroke .2s ease; }
.nb-seal .pw-fill{ fill: var(--t-ink); opacity: .9; }
.nb-seal .pw-fill.pw-hue-fill{ fill: var(--t-accent); }
.nb-seal .pw-ink.pw-paper{ stroke: var(--t-screen); }
.nb-dock__b--home:hover .nb-seal .pw-ink{ stroke: var(--t-accent); }
.nb-tablet.nb-locked .nb-dock__b--lock{ opacity: .3; }

/* ---- round 8 ------------------------------------------------------------------------------- */
/* the page and the tablet sit on the desk the way the postcards below do: no ink rule,
   a soft olive-black shadow, a hairline edge, and the same lift when the pointer is on them */
html.nb{ --sheet-shadow: 0 0 0 1px rgba(43,46,36,.10), 0 1px 1px rgba(43,46,36,.08), 0 12px 26px -10px rgba(43,46,36,.26), 0 2px 6px -3px rgba(43,46,36,.12); }

/* the photo, when the browser will not let it be screened into dots */
.nb-ht--photo{ filter: grayscale(1) contrast(1.15) brightness(1.04); }

/* while locked, the castle has the whole sheet; the dock comes back when it opens */
.nb-dock{ transition: opacity .5s ease .2s; }
.nb-tablet.nb-locked .nb-dock{ opacity: 0; pointer-events: none; transition-delay: 0s; }
.nb-lock__hint{ bottom: 22px; }

/* icons on their hand-drawn tiles */
.nb-icon__art.nb-ink{ width: 66px; height: 66px; }
.nb-grid{ gap: 16px 4px; }
.nb-icon:hover .nb-ink .pw-ink.pw-fine, .nb-icon--called .nb-ink .pw-ink.pw-fine{ stroke: var(--t-accent); }

/* the third column: a fashion plate in place of the photograph */
.nb-plate{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nb-tall{ min-height: 220px; }

/* ---- settings, set like the front matter of a book ------------------------------------------ */
.nb-tablet[data-ink="red"]{ --t-accent: #b0261c; }
.nb-tablet[data-ink="blue"]{ --t-accent: #2f4fa8; }
.nb-tablet[data-ink="green"]{ --t-accent: #3d6b3a; }
.nb-tablet[data-ink="gold"]{ --t-accent: #a8781c; }
.nb-tablet[data-theme="night"][data-ink="red"], .nb-tablet[data-theme="blueprint"][data-ink="red"]{ --t-accent: #ec7a68; }
.nb-tablet[data-theme="night"][data-ink="blue"], .nb-tablet[data-theme="blueprint"][data-ink="blue"]{ --t-accent: #9db4f2; }
.nb-tablet[data-theme="night"][data-ink="green"], .nb-tablet[data-theme="blueprint"][data-ink="green"]{ --t-accent: #9fcf92; }
.nb-tablet[data-theme="night"][data-ink="gold"], .nb-tablet[data-theme="blueprint"][data-ink="gold"]{ --t-accent: #e9c46c; }
.nb-tablet[data-size="s"] .nb-pagebody{ zoom: .92; }
.nb-tablet[data-size="l"] .nb-pagebody{ zoom: 1.1; }
.nb-tablet[data-size="l"] .nb-icon__label{ font-size: 11px; }
.nb-icon[hidden]{ display: none; }

.nb-owner{ display: flex; align-items: center; gap: 14px; margin: 4px 4px 18px; padding: 14px 14px; border: 1px solid var(--t-ink); outline: 1px solid var(--t-ink); outline-offset: 3px; }
.nb-owner__seal{ flex: none; width: 54px; height: 54px; }
.nb-owner__seal svg{ width: 100%; height: 100%; overflow: visible; }
.nb-owner__seal .pw-ink{ stroke: var(--t-ink); stroke-dashoffset: 0; }
.nb-owner__seal .pw-fill{ fill: var(--t-ink); opacity: .9; }
.nb-owner__seal .pw-fill.pw-hue-fill{ fill: var(--t-accent); }
.nb-owner__txt{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-owner__k{ font-family: var(--f-deco); font-weight: 600; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--t-mute); }
.nb-owner__name{ font-family: var(--f-black); font-size: 25px; line-height: 1.1; color: var(--t-ink); }
.nb-owner__ed{ font-family: var(--f-news); font-style: italic; font-size: 12.5px; color: var(--t-mute); }

.nb-set__ch{ display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; font-family: var(--f-deco); font-weight: 300; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink); }
.nb-set__ch::after{ content: ''; flex: 1; border-bottom: 1px dotted var(--t-rule); transform: translateY(-4px); }
.nb-set__n{ font-family: var(--f-news); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--t-accent); }
.nb-set__h::after{ display: none; }
.nb-set__h{ margin-bottom: 7px; }
.nb-set{ margin-bottom: 14px; }

.nb-inks{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.nb-inkpot{ display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 0 4px; background: none; border: 1px solid transparent; cursor: pointer; }
.nb-inkpot[aria-checked="true"]{ border-color: var(--t-ink); }
.nb-inkpot__blot{ width: 20px; height: 20px; border-radius: 52% 48% 55% 45% / 46% 56% 44% 54%; background: var(--t-accent); box-shadow: 0 0 0 1px var(--t-ink); }
.nb-inkpot[data-ink="red"] .nb-inkpot__blot{ background: #b0261c; }
.nb-inkpot[data-ink="blue"] .nb-inkpot__blot{ background: #2f4fa8; }
.nb-inkpot[data-ink="green"] .nb-inkpot__blot{ background: #3d6b3a; }
.nb-inkpot[data-ink="gold"] .nb-inkpot__blot{ background: #a8781c; }
.nb-inkpot[data-ink="theme"] .nb-inkpot__blot{ background: linear-gradient(135deg, var(--t-screen) 50%, var(--t-ink) 50%); }
.nb-inkpot__name{ font-family: var(--f-news); font-style: italic; font-size: 11px; line-height: 1.15; text-align: center; color: var(--t-ink); }

.nb-toggles{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nb-toggles li{ border-bottom: 1px dotted var(--t-rule); }
.nb-tog{ display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; background: none; border: 0; cursor: pointer; color: var(--t-ink); }
.nb-tog__name{ font-family: var(--f-news); font-size: 14.5px; }
.nb-tog[aria-checked="false"] .nb-tog__name{ color: var(--t-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.nb-tog__sw{ position: relative; width: 30px; height: 15px; border: 1.2px solid var(--t-ink); border-radius: 10px; }
.nb-tog__sw span{ position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--t-ink); transition: transform .25s var(--pw-ease), background-color .2s; }
.nb-tog[aria-checked="true"] .nb-tog__sw span{ transform: translateX(15px); background: var(--t-accent); }
.nb-tog:focus-visible{ outline: 2px solid var(--t-accent); outline-offset: 2px; }

.nb-about{ display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.nb-about dt{ font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--t-mute); padding-top: 3px; }
.nb-about dd{ margin: 0; font-family: var(--f-news); font-size: 14.5px; color: var(--t-ink); }
.nb-set__acts{ display: flex; flex-wrap: wrap; gap: 10px; }
.nb-set__acts .nb-btn{ margin-top: 4px; }
.nb-btn--quiet{ border-style: dashed; border-width: 1px; }

/* ---- apps of my own, and the music shelf -------------------------------------------------- */
.nb-x__pic{ filter: grayscale(1) contrast(1.12); transition: filter .3s ease; }
.nb-icon:hover .nb-x__pic, .nb-icon:focus-visible .nb-x__pic{ filter: none; }

.nb-x{ display: flex; flex-direction: column; gap: 12px; }
.nb-x__img{ display: block; width: 100%; max-height: 260px; object-fit: cover; border: 1px solid var(--t-ink); filter: grayscale(1) contrast(1.1); }
.nb-x__title{ margin: 2px 0 0; font-family: var(--f-black); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--t-ink); }
.nb-x__p{ margin: 0; font-family: var(--f-news); font-size: 15px; line-height: 1.55; color: var(--t-ink); white-space: pre-line; }
.nb-x .nb-btn{ align-self: flex-start; text-decoration: none; }
.nb-x__fine{ margin: 8px 0 0; font-family: var(--f-news); font-style: italic; font-size: 12px; color: var(--t-mute); }

.nb-x__store{ display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px dotted var(--t-rule); }
.nb-x__storeicon{ flex: none; width: 84px; height: 84px; border-radius: 19px; overflow: hidden; border: 1px solid var(--t-ink); background: var(--t-screen); display: grid; place-items: center; }
.nb-x__storeicon img{ width: 100%; height: 100%; object-fit: cover; }
.nb-x__storeicon svg{ width: 92%; height: 92%; }
.nb-x__storeicon .pw-ink{ stroke: var(--t-ink); stroke-dashoffset: 0; }
.nb-x__storeicon .pw-fill{ fill: var(--t-ink); }
.nb-x__storetxt{ min-width: 0; }
.nb-x__name{ margin: 0; font-family: var(--f-black); font-weight: 400; font-size: 25px; line-height: 1.1; color: var(--t-ink); }
.nb-x__tag{ margin: 4px 0 0; font-family: var(--f-news); font-style: italic; font-size: 14px; color: var(--t-mute); }
.nb-x__get{ margin: 2px 0 4px; }

/* now playing, under the greeting */
.nb-np{ display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: -4px 0 12px; font-family: var(--f-news); font-size: 13px; color: var(--t-ink); }
.nb-np[hidden]{ display: none; }
.nb-np__k{ font-family: var(--f-deco); font-weight: 600; font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--t-accent); }
.nb-np__t{ max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; background: none; border: 0; font: italic 13px var(--f-news); color: var(--t-ink); cursor: pointer; }
.nb-np__b{ padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; font: 600 9px var(--f-deco); letter-spacing: .2em; text-transform: uppercase; color: var(--t-ink); cursor: pointer; }

/* the shelf */
.nb-music .nb-set__ch{ margin-top: 14px; }
.nb-music .nb-set__ch:first-child{ margin-top: 0; }
.nb-embed{ display: block; width: 100%; margin: 4px 0 12px; border: 1px solid var(--t-ink); border-radius: 12px; background: var(--t-screen); }
.nb-songs{ list-style: none; margin: 0; padding: 0; }
.nb-song{ display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--t-rule); }
.nb-song__b{ flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.2px solid var(--t-ink); background: none; color: var(--t-ink); font-size: 10px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 0 1px; }
.nb-song--on .nb-song__b{ background: var(--t-ink); color: var(--t-screen); }
.nb-song__b:focus-visible{ outline: 2px solid var(--t-accent); outline-offset: 2px; }
.nb-song__txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nb-song__t{ font-family: var(--f-news); font-size: 15px; color: var(--t-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-song__a{ font-family: var(--f-news); font-style: italic; font-size: 12.5px; color: var(--t-mute); }
.nb-song__bar{ display: none; position: relative; height: 9px; margin-top: 3px; cursor: pointer; }
.nb-song__bar::before{ content: ''; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px dotted var(--t-ink); }
.nb-song__bar i{ position: absolute; left: 0; top: 3px; height: 3px; width: 0; background: var(--t-accent); }
.nb-song--on .nb-song__bar{ display: block; }
.nb-song__time{ flex: none; font-family: var(--f-deco); font-size: 10.5px; letter-spacing: .06em; color: var(--t-mute); font-variant-numeric: tabular-nums; }
.nb-song__out{ flex: none; color: var(--t-mute); text-decoration: none; font-size: 13px; }
.nb-song--err .nb-song__a::after{ content: ' · could not be played'; color: var(--t-accent); }

/* songs that play somewhere else, or open a link */
.nb-song{ flex-wrap: wrap; }
.nb-song .nb-embed--song{ flex: 0 0 100%; margin: 8px 0 2px; }
a.nb-song__b{ text-decoration: none; font-size: 13px; }
.nb-song__via{ font-family: var(--f-deco); font-weight: 600; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--t-mute); }

/* ---- the home screen in pages ------------------------------------------------------------- */
.nb-pager{
  flex: 1; min-height: 0; display: flex; margin: 0 -18px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: default;
}
.nb-pager::-webkit-scrollbar{ display: none; }
.nb-pager.nb-dragging{ scroll-snap-type: none; cursor: grabbing; user-select: none; }
.nb-pager.nb-dragging .nb-icon{ pointer-events: none; }
.nb-grid.nb-page{ flex: 0 0 100%; box-sizing: border-box; padding: 10px 18px 6px; align-content: start; scroll-snap-align: start; scroll-snap-stop: always; }

.nb-hfoot{ display: flex; align-items: center; justify-content: center; gap: 16px; padding: 2px 0 8px; }
.nb-find{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; background: none; border: 1px solid var(--t-ink); border-radius: 999px; cursor: pointer; color: var(--t-ink); font-family: var(--f-deco); font-weight: 600; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.nb-find svg{ width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nb-find:hover, .nb-find:focus-visible{ color: var(--t-accent); border-color: var(--t-accent); outline: none; }
.nb-dots{ display: inline-flex; align-items: center; gap: 7px; }
.nb-dots[hidden]{ display: none; }
.nb-dot{ width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 1px solid var(--t-ink); background: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.nb-dot[aria-current="true"]{ background: var(--t-accent); border-color: var(--t-accent); transform: scale(1.15); }
.nb-dot:focus-visible{ outline: 2px solid var(--t-accent); outline-offset: 2px; }

/* ---- spotlight ------------------------------------------------------------------------------ */
.nb-spotlight{
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; padding: 10px 18px 0;
  background: color-mix(in srgb, var(--t-screen) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: nb-sp-in .28s var(--pw-ease) both;
}
.nb-spotlight[hidden]{ display: none; }
@keyframes nb-sp-in{ from{ opacity: 0; transform: translateY(-14px); } to{ opacity: 1; transform: none; } }
.nb-spot-open .nb-home .nb-pager, .nb-spot-open .nb-home .nb-hfoot{ filter: blur(3px); opacity: .25; transition: opacity .25s ease; }
.nb-sp__bar{ display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.nb-sp__field{ flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1.2px solid var(--t-ink); }
.nb-sp__field svg{ flex: none; width: 15px; height: 15px; fill: none; stroke: var(--t-ink); stroke-width: 1.5; stroke-linecap: round; }
.nb-sp__field input{ flex: 1; min-width: 0; padding: 0; border: 0; background: none; outline: none; font-family: var(--f-news); font-size: 18px; color: var(--t-ink); -webkit-appearance: none; appearance: none; }
.nb-sp__field input::placeholder{ color: var(--t-mute); font-style: italic; }
.nb-sp__field input::-webkit-search-cancel-button{ -webkit-appearance: none; }
.nb-sp__cancel{ padding: 0; background: none; border: 0; cursor: pointer; font-family: var(--f-news); font-style: italic; font-size: 15px; color: var(--t-ink); }
.nb-sp__cancel:hover, .nb-sp__cancel:focus-visible{ color: var(--t-accent); outline: none; }
.nb-sp__res{ flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 16px; scrollbar-width: none; }
.nb-sp__res::-webkit-scrollbar{ display: none; }
.nb-sp__h{ display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px; font-family: var(--f-deco); font-weight: 600; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--t-mute); }
.nb-sp__h::after{ content: ''; flex: 1; border-bottom: 1px dotted var(--t-rule); transform: translateY(-3px); }
.nb-sp__apps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.nb-sp__app{ display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; background: none; border: 0; cursor: pointer; color: var(--t-ink); }
.nb-sp__app .nb-icon__art{ width: 50px; height: 50px; }
.nb-sp__appname{ font-family: var(--f-deco); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-ink); text-align: center; }
.nb-sp__app:hover .nb-sp__appname, .nb-sp__app:focus-visible .nb-sp__appname{ color: var(--t-accent); }
.nb-sp__app:hover .pw-ink, .nb-sp__app:focus-visible .pw-ink{ stroke: var(--t-accent); }
.nb-sp__app:focus-visible{ outline: none; }
.nb-sp__list{ list-style: none; margin: 0; padding: 0; }
.nb-sp__list li{ border-bottom: 1px dotted var(--t-rule); }
.nb-sp__hit{ display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--t-ink); }
.nb-sp__hit:hover .nb-sp__t, .nb-sp__hit:focus-visible .nb-sp__t{ color: var(--t-accent); }
.nb-sp__hit:focus-visible{ outline: none; }
.nb-sp__txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nb-sp__t{ font-family: var(--f-news); font-size: 15px; line-height: 1.3; color: var(--t-ink); }
.nb-sp__s{ font-family: var(--f-news); font-style: italic; font-size: 12.5px; color: var(--t-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-sp__in{ flex: none; font-family: var(--f-deco); font-weight: 600; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--t-mute); }
.nb-sp__res mark{ background: none; color: var(--t-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.nb-sp__none{ margin: 18px 0; font-family: var(--f-news); font-style: italic; font-size: 14px; color: var(--t-mute); }

a.nb-icon{ text-decoration: none; }

/* no highlighter: each phrase is boxed by hand in ink */
.nb-hl{
  padding: .06em .26em .08em; margin: 0 .04em;
  background-image: var(--nb-box, none);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
}
html.nb-ready .nb-hl{ background-size: 100% 100%; }
.nb-hl:hover, .nb-hl:focus-visible{ color: #6b6b66; }

/* education and experience, a boxed notice in the first column */
.nb-cred{ margin: 12px 0 8px; padding: 8px 10px 9px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.nb-cred[hidden]{ display: none; }
.nb-cred__h{ display: block; margin: 0 0 7px; text-align: center; font-family: var(--f-deco); font-weight: 700; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nb-cred__h:hover{ color: #6b6b66; }
.nb-cred__cols{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.nb-cred__col + .nb-cred__col{ border-left: 1px dotted rgba(20,20,20,.35); padding-left: 11px; }
.nb-cred__k{ margin: 0 0 4px; font-family: var(--f-news); font-style: italic; font-size: 11.5px; color: #5c5c5c; }
.nb-cred__list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nb-cred__list li{ display: flex; align-items: flex-start; gap: 6px; }
.nb-cred__logo{ flex: none; width: 14px; height: 14px; margin-top: 1px; object-fit: contain; filter: grayscale(1) contrast(1.2); }
.nb-cred__t{ display: block; min-width: 0; line-height: 1.2; }
.nb-cred__n{ font-family: var(--f-deco); font-weight: 600; font-size: 10.5px; line-height: 1.2; letter-spacing: .02em; }
.nb-cred__s{ margin-left: .3em; font-family: var(--f-news); font-style: italic; font-size: 10.5px; line-height: 1.2; color: #5c5c5c; }
@media (min-width: 1180px) and (max-height: 860px){
  .nb-cred__s{ display: none; }
  .nb-cred__list{ gap: 3px; }
  .nb-mag__col--ad .nb-spot{ min-height: 0; }
}
@media (min-width: 1180px) and (max-height: 760px){
  .nb-cred{ margin: 8px 0 4px; padding: 6px 8px 7px; }
  .nb-cred__h{ margin-bottom: 4px; }
  .nb-cred__k{ display: none; }
  .nb-cred__list{ gap: 2px; }
}

/* phones: a flat page turn (no 3D), so iPhone Safari aims every tap where it lands,
   and the tablet always fits above Safari's toolbar */
.nb-views{ perspective: none; }
@keyframes nb-turn{ from{ opacity: 0; transform: translateX(14px); } }
@keyframes nb-turn-back{ from{ opacity: 0; transform: translateX(-10px); } }
.nb-turn, .nb-turn--back{ animation-fill-mode: backwards; }
.nb-tablet{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 819px){
  .nb-tablet{ height: min(640px, max(520px, calc(100svh - 110px))); }
}

/* phones: a scroll that reaches the end of an app carries on down the page */
@media (max-width: 819px){
  .nb-app__body, .nb-sp__res{ overscroll-behavior: auto; }
}

/* ---- trial: darker edges on the page, the tablet and the project grid ------------------- */
html.nb{ --sheet-shadow: 0 0 0 1px rgba(43,46,36,.42), 0 1px 1px rgba(43,46,36,.08), 0 12px 26px -10px rgba(43,46,36,.26), 0 2px 6px -3px rgba(43,46,36,.12); }
article.card.pc{ border-color: rgba(43,46,36,.72) !important; }
.pc-pic__frame{ border-color: rgba(43,46,36,.5); }

/* ---- the tablet in one ink: pen drawings on paper, a dithered ground, a sheet of paper for a case */
/* every drawing in the one ink, no coloured flags or windows */
.nb-ink .pw-ink.pw-hue{ stroke: var(--t-ink); }
.nb-ink .pw-fill.pw-hue-fill, .nb-ink .pw-fill.pw-win{ fill: var(--t-ink); }
.nb-ink .pw-ink{ opacity: 1; }
.nb-icon:hover .nb-ink .pw-ink, .nb-icon:focus-visible .nb-ink .pw-ink, .nb-icon--called .nb-ink .pw-ink, .nb-icon:hover .nb-ink .pw-ink.pw-fine, .nb-icon--called .nb-ink .pw-ink.pw-fine{ stroke: var(--t-ink); }
.nb-icon:hover .nb-ink .pw-fill, .nb-icon:focus-visible .nb-ink .pw-fill, .nb-icon--called .nb-ink .pw-fill{ fill: var(--t-ink); }
.nb-icon:hover .nb-icon__label, .nb-icon--called .nb-icon__label, .nb-icon:focus-visible .nb-icon__label{ color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nb-icon__paper{ fill: var(--t-screen); stroke: none; }
.nb-ink .pw-ink.pw-paper{ opacity: 1; }

/* the printed tone under each drawing, and a paper halo around its lines */
.nb-ink .nb-tone{ fill: var(--t-ink); opacity: .18; }
.nb-ink .nb-halo .pw-ink, .nb-ink .nb-halo .pw-ink.pw-fine{ stroke: var(--t-screen); stroke-width: 3.2; opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; transition: none; }
.nb-ink .nb-halo .pw-fill{ fill: var(--t-screen); stroke: var(--t-screen); stroke-width: 2.4; opacity: 1; }
.nb-icon:hover .nb-ink .nb-halo .pw-ink, .nb-icon--called .nb-ink .nb-halo .pw-ink, .nb-icon:focus-visible .nb-ink .nb-halo .pw-ink{ stroke: var(--t-screen); }
.nb-icon:hover .nb-ink .nb-halo .pw-fill, .nb-icon--called .nb-ink .nb-halo .pw-fill, .nb-icon:focus-visible .nb-ink .nb-halo .pw-fill{ fill: var(--t-screen); }

/* the case: a sheet of paper with a softly torn edge, lifted off the page */
.nb-tablet{ --nb-deckle: none; }
.nb-bezel{ position: relative; }
.nb-screen{ clip-path: var(--nb-deckle); box-shadow: none; }
.nb-bezel::before{
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: var(--nb-deckle); background: rgba(43,40,32,.22); transform: translate(1.5px, 2.5px);
}

/* a thin ink border that follows the torn edge of the sheet */
.nb-bezel{ isolation: isolate; }
.nb-bezel::after{
  content: ''; position: absolute; inset: -1.1px; z-index: -1; pointer-events: none;
  clip-path: var(--nb-deckle); background: var(--t-ink); opacity: .78;
}
/* the byline under the headline: the one quiet place the name is printed */
.nb-mag__col--ad .nb-thin--m{ font-style: italic; white-space: pre-line; }

/* ---- the header: today's almanac entry ------------------------------------------------------- */
.nb-entry{ padding-top: 2px; }
.nb-entry .nb-greet__day{ font-size: 9px; letter-spacing: .28em; white-space: pre; }
.nb-entry__moon{ display: flex; align-items: center; justify-content: center; gap: 9px; margin: 7px 0 0; }
.nb-moon{ flex: none; width: 24px; height: 24px; overflow: visible; }
.nb-moon pattern circle{ fill: var(--t-ink); }
.nb-moon__dark{ fill: url(#nb-moon-dots); }
.nb-moon__lit{ fill: var(--t-screen); }
.nb-moon__rim{ fill: none; stroke: var(--t-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nb-entry .nb-greet__hi{ margin: 0; font-family: var(--f-news); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.2; letter-spacing: .005em; text-transform: none; color: var(--t-ink); }

/* ---- the foot: page dots, then a ruled dock lettered like the icons --------------------------- */
.nb-hfoot{ padding: 0 0 6px; }
.nb-dock{ gap: 0; justify-content: space-between; align-items: center; margin: 0 22px; padding: 6px 6px 12px; border-top: 1px solid var(--t-rule); }
.nb-dock__b{ display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; padding: 6px 0 2px; font-family: var(--f-deco); font-style: normal; font-weight: 600; font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--t-ink); }
.nb-dock__b--search, .nb-dock__b--settings{ width: 72px; justify-content: center; }
.nb-dock__t{ padding-left: .24em; background: none !important; }
.nb-dock__g{ width: 21px; height: 21px; fill: none; stroke: var(--t-ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--pw-ease); }
.nb-dock__g circle{ fill: var(--t-screen); }
.nb-dock__fine{ stroke-width: .9; opacity: .6; }
.nb-dock__b:hover, .nb-dock__b:focus-visible{ color: var(--t-ink); }
.nb-dock__b:hover .nb-dock__g, .nb-dock__b:focus-visible .nb-dock__g{ stroke: var(--t-ink); transform: translateY(-1px) rotate(-6deg); }
.nb-dock__b:hover .nb-dock__t, .nb-dock__b:focus-visible .nb-dock__t{ text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nb-dock__b--home .nb-seal{ width: 46px; height: 46px; }
.nb-entry .nb-greet__day{ font-size: 8px; letter-spacing: .26em; }
.nb-entry__moon{ gap: 7px; margin-top: 5px; }
.nb-moon{ width: 17px; height: 17px; }
.nb-entry .nb-greet__hi{ font-size: 13.5px; }

/* room between the day's entry and the icons, and between each drawing and its name */
.nb-entry{ padding-bottom: 30px; }
.nb-home .nb-icon{ gap: 9px; }

/* ---- a little of the site's ink colour in each drawing, and the scenes come alive on hover -------- */
.nb-tablet .nb-ink > g:not(.nb-halo) .pw-ink.pw-hue{ stroke: var(--pw-accent); }
.nb-tablet .nb-ink > g:not(.nb-halo) .pw-fill:is(.pw-hue-fill, .pw-win, .nb-tint){ fill: var(--pw-accent); opacity: .62; }
.nb-tablet .nb-ink > g:not(.nb-halo) .pw-fill.nb-tint--soft{ opacity: .2; }
.nb-tablet .nb-ink > g:not(.nb-halo) :is(.nb-mv--twinkle, .nb-mv--twinkle2, .nb-mv--steam) .pw-ink{ stroke: var(--pw-accent); }

.nb-mv{ transform-box: fill-box; transform-origin: 50% 50%; transition: transform .5s var(--pw-ease), opacity .5s ease; }
.nb-mv--sway, .nb-mv--write{ transform-origin: 50% 100%; }
.nb-mv--tilt{ transform-origin: 0% 100%; }
.nb-mv--wave{ transform-origin: 0% 50%; }
.nb-mv--rock, .nb-mv--bell{ transform-origin: 50% 0%; }
.nb-mv--swingA{ transform-origin: 70% 50%; }
.nb-mv--swingB{ transform-origin: 30% 50%; }
.nb-mv--steam, .nb-mv--smoke{ transform-origin: 50% 100%; }

@keyframes nb-float{ 0%{ transform: translate(0, 0); } 50%{ transform: translate(2px, -5px) rotate(-4deg); } 100%{ transform: translate(-1px, -8px) rotate(3deg); } }
@keyframes nb-smoke{ from{ transform: translate(0, 0) scale(1); opacity: 1; } to{ transform: translate(5px, -6px) scale(1.18); opacity: .55; } }
@keyframes nb-sway{ from{ transform: rotate(-4deg); } to{ transform: rotate(4deg); } }
@keyframes nb-tilt{ from{ transform: rotate(4deg); } to{ transform: rotate(-9deg); } }
@keyframes nb-twinkle{ 0%, 100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .25; transform: scale(.6); } }
@keyframes nb-write{ 0%{ transform: translate(0, 0) rotate(0); } 25%{ transform: translate(-3px, 1px) rotate(-3deg); } 50%{ transform: translate(-6px, 0) rotate(1deg); } 75%{ transform: translate(-9px, 1px) rotate(-3deg); } 100%{ transform: translate(0, 0) rotate(0); } }
@keyframes nb-wave{ from{ transform: scaleX(1) skewY(0); } to{ transform: scaleX(.78) skewY(9deg); } }
@keyframes nb-bob{ from{ transform: translateY(2px); } to{ transform: translateY(-7px); } }
@keyframes nb-drift{ 0%{ transform: translate(0, 0) scaleY(1); } 50%{ transform: translate(4px, -3px) scaleY(.6); } 100%{ transform: translate(8px, -1px) scaleY(1); } }
@keyframes nb-swing{ from{ transform: rotate(-3deg); } to{ transform: rotate(3deg); } }
@keyframes nb-steam{ from{ transform: translateY(0) scaleY(1); opacity: 1; } to{ transform: translateY(-5px) scaleY(1.12); opacity: .4; } }
@keyframes nb-bell{ from{ transform: rotate(-14deg); } to{ transform: rotate(14deg); } }

@media (prefers-reduced-motion: no-preference){
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv{ animation: 1.6s ease-in-out infinite alternate both; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--float{ animation-name: nb-float; animation-duration: 1.4s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--smoke{ animation-name: nb-smoke; animation-duration: 1.8s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--sway{ animation-name: nb-sway; animation-duration: 1.3s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--tilt{ animation-name: nb-tilt; animation-duration: 2.2s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--twinkle{ animation-name: nb-twinkle; animation-duration: 1.1s; animation-direction: normal; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--twinkle2{ animation-name: nb-twinkle; animation-duration: 1.1s; animation-direction: normal; animation-delay: .55s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--write{ animation-name: nb-write; animation-duration: .9s; animation-direction: normal; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--wave{ animation-name: nb-wave; animation-duration: .45s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--bob{ animation-name: nb-bob; animation-duration: 1.5s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--drift{ animation-name: nb-drift; animation-duration: .8s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) :is(.nb-mv--swingA, .nb-mv--swingB, .nb-mv--rock){ animation-name: nb-swing; animation-duration: 1.2s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--swingB{ animation-direction: alternate-reverse; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--steam{ animation-name: nb-steam; animation-duration: 1.2s; }
  :is(.nb-icon:hover, .nb-icon:focus-visible, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-mv--bell{ animation-name: nb-bell; animation-duration: .5s; }
}

/* ---- plain white tiles; on hover a stroke of the page's highlighter is drawn across the scene ----- */
.nb-ink .nb-tone{ display: none; }
.nb-hlx{ pointer-events: none; }
.nb-hlx__s{ fill: none; stroke: rgba(57,255,20,.42); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .2s ease, opacity .2s ease .05s; }
:is(.nb-icon:hover, .nb-icon:focus-visible, .nb-icon--called, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-hlx__s{ stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .38s cubic-bezier(.4,.1,.3,1), opacity .05s; }
:is(.nb-icon:hover, .nb-icon:focus-visible, .nb-icon--called, .nb-sp__app:hover, .nb-sp__app:focus-visible) .nb-hlx__s--1{ transition-delay: .34s, .34s; transition-duration: .3s, .05s; }
@media (prefers-reduced-motion: reduce){ .nb-hlx__s{ transition: opacity .2s !important; } }
/* the label stays as it is on hover */
.nb-home .nb-icon:hover .nb-icon__label, .nb-home .nb-icon--called .nb-icon__label, .nb-home .nb-icon:focus-visible .nb-icon__label{ text-decoration: none; }

/* swatch labels keep the tablet's own ink, not the swatch's */
.nb-tablet{ --t-label: var(--t-ink); }
.nb-swatch[aria-checked="true"]{ border-color: var(--t-label); }
.nb-tablet .nb-swatch .nb-swatch__name{ color: var(--t-label); }

/* ---- wide screens: the tablet stays on the right while the page scrolls ---------------- */
@media (min-width: 1180px){
  html.nb{ --nb-rail: calc(var(--nb-tab-w) + 56px); }
  html.nb main, html.nb .site-footer{ padding-right: var(--nb-rail); padding-left: 40px; }
  html.nb .pw-nav{ right: var(--nb-rail); padding-right: 22px; }
  html.nb .pw-nav__links{ display: none; }
  html.nb{ --nb-tab-h: min(calc(100vh - 100px), 760px); --nb-tab-top: max(78px, calc(50vh - var(--nb-tab-h) / 2)); }
  html.nb .nb-tablet{
    position: fixed; z-index: 30;
    top: var(--nb-tab-top);
    right: 30px;
    width: var(--nb-tab-w);
    height: var(--nb-tab-h);
  }
  /* the page is exactly as tall as the tablet beside it, and starts level with it */
  .nb-letter__paper{ box-sizing: border-box; min-height: var(--nb-tab-h); display: flex; flex-direction: column; }
  .nb-mag{ flex: 1; }
  html.nb .grid#selected_work, html.nb .grid#more_projects, html.nb .grid#more_projects_fallback{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.nb .hero.nb-hero{ padding-top: var(--nb-tab-top) !important; min-height: 0; align-content: start; }
}

/* ---- medium: the page and the tablet side by side ------------------------------------------- */
@media (min-width: 820px) and (max-width: 1179px){
  html.nb .hero.nb-hero{ grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; padding: 90px 22px 40px !important; }
  html.nb .nb-tablet{ position: sticky; top: 76px; height: 620px; }
  .nb-letter__paper{ padding: 24px 24px 26px; }
  .nb-mag{ grid-template-columns: 1fr 1fr; }
  .nb-mag__col--ad2{ grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--ink); margin-top: 18px; padding: 18px 0 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
  .nb-mag__col--ad2 > .nb-tall{ grid-row: 1 / span 6; grid-column: 2; }
  .nb-mag__col--ad2 > :not(.nb-tall){ grid-column: 1; }
  .nb-mag__col:nth-child(2){ padding-right: 0; }
  .nb-big__name{ font-size: 38px; }
}

/* ---- phones: the page, then the tablet; an app opens full screen ---------------------------- */
@media (max-width: 819px){
  html.nb .hero.nb-hero{ display: flex !important; flex-direction: column; padding: 78px 12px 24px !important; gap: 30px; }
  .nb-letter__paper{ padding: 20px 18px 22px; }
  .nb-folio__mid{ display: none; }
  .nb-mag{ display: block; }
  .nb-mag__col{ padding: 0 !important; }
  .nb-mag__col + .nb-mag__col{ border-left: 0; border-top: 1px solid var(--ink); margin-top: 20px; padding-top: 20px !important; }
  .nb-big__name{ font-size: 40px; }
  .nb-copy{ font-size: 16px; }
  .nb-tall{ flex: none; height: 300px; }
  .nb-spot{ flex: none; height: 170px; }

  .nb-tablet{ height: min(640px, max(520px, calc(100svh - 110px))); }

  .nb-icon__art{ width: 56px; height: 56px; }
  html.nb-full, html.nb-full body{ overflow: hidden; }
  html.nb-full .pw-nav{ display: none; }
  html.nb-full .nb-tablet{ position: fixed; z-index: 90; inset: 0; width: auto; height: auto; padding: 6px; background: rgba(20,18,14,.55); }
  html.nb-full .nb-bezel{ height: 100%; }
  html.nb .pw-nav{ padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce){
  .nb-letter, .nb-tablet{ transition: none; translate: none; }
  .nb-hl{ transition: none; }
  .nb-w, .nb-hl{ animation: none; }
  .nb-icon--called .nb-icon__art{ animation: none; }
  html.nb-ready .nb-home .nb-icon, .nb-unlocking .nb-home .nb-icon{ animation: none; }
  .nb-lock__hint svg{ animation: none; }
}

/* short laptop screens: smaller type and the drawings give way, so the page still matches */
@media (min-width: 1180px) and (max-height: 760px){
  .nb-spot{ min-height: 0; }
  .nb-copy{ font-size: 13.5px; line-height: 1.38; }
  .nb-big__name{ font-size: 38px; }
  .nb-thin--h{ font-size: 21px; }
  .nb-tall{ min-height: 120px; }
  .nb-box__x{ display: none; }
  .nb-letter__paper{ padding: 16px 24px 16px; }
  .nb-folio{ margin-bottom: 8px; }
  .nb-deck{ margin-bottom: 6px; }
  .nb-recipe{ margin-top: 6px; }
}
