/* the notebook (Sean, Nov 27): on a desktop the site is a graph-paper notebook on a desk, its tabs down the right edge */
.page { position: relative; }
.nb-tabs { display: none; }
@media (min-width: 900px) {
  :root { --pw: min(1060px, calc(100vw - 7rem)); }
  html, body { background: #2E3136; }
  body { background-image: none; }
  .page { z-index: 2; max-width: var(--pw); margin: 2rem auto 3rem; border-radius: 2px 4px 4px 2px;
    background-color: var(--paper);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px; background-position: -1px -1px; background-attachment: fixed;
    /* the pages under this one: their edges show along the right and the bottom */
    box-shadow: 2px 2px 0 -0.5px #DCE3E0, 3px 3px 0 0 rgba(0,0,0,.10), 4px 4px 0 -0.5px #D3DBD8, 5px 5px 0 0 rgba(0,0,0,.10),
      6px 6px 0 -0.5px #CBD3D0, 0 16px 40px rgba(0,0,0,.45); }
  .page > .top nav a:not(.client-login), .page > .top > span.label { display: none; }
  .nb-menu { display: none; }
  .hero h1 { font-size: min(8.5rem, calc(var(--pw) * 0.105)); }
  .turn { display: none; }   /* the pencil intro is drawn to the full-window grid; on the notebook sheet it would not line up */
  /* tabs of a notebook (Sean: "vertical writing"): written down the tab, out from the sheet's right edge, sized to the window height */
  /* Nov 27: the tabs belong to the sheet and move with it (they were pinned to the window and came loose from the
     page); every sheet is at least as tall as the tabs, so they all fit at a size you can read */
  .nb-tabs { display: flex; flex-direction: column; gap: 0.25rem; position: absolute; top: 1.6rem; left: 100%; z-index: 5;
    font-size: 0.78rem; }
  .page { min-height: 880px; }
  .nb-tab { writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; gap: 0.5em; flex-shrink: 0;
    padding: 0.9em 0.75em; font-family: var(--mono); font-size: 1em; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    color: var(--graphite); border-radius: 0 7px 7px 0; margin-left: 6px;   /* out from under the stacked page edges */
    background: linear-gradient(90deg, rgba(0,0,0,.24), rgba(0,0,0,0) 16px), var(--tab, var(--sheet));   /* the sheet's shadow falls on it */
    box-shadow: 2px 2px 5px rgba(0,0,0,.30); transform: translateX(-0.2rem); transition: transform .15s ease; }
  .nb-tab b { font-family: var(--display); font-weight: 400; font-size: 1.5em; line-height: 1; letter-spacing: 0; }
  .nb-tab:hover { transform: translateX(0.15rem); color: var(--graphite); }
  /* the open tab is cut from this page: same paper, same grid, no seam */
  .nb-tab[aria-current="page"] { transform: none; font-weight: 600; margin-left: -3px; padding-left: calc(0.75em + 9px); padding-right: 0.95em; border-radius: 0 7px 7px 0;
    background-color: var(--paper);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px; background-position: -1px -1px; background-attachment: fixed;
    box-shadow: 3px 3px 0 -0.5px #D3DBD8, 6px 3px 8px -3px rgba(0,0,0,.4); }
  .nb-tab.t0, .nb-tab.t1, .nb-tab.t5 { --tab: #F7F8F5; }
  .nb-tab.t2 { --tab: #C9D0EE; } .nb-tab.t3 { --tab: #F6DE9A; } .nb-tab.t4 { --tab: #B9DACF; }
  .nb-tab.t6 { --tab: var(--cad); }
  .nb-tab.t2 { margin-top: 0.7em; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .nb-tab { transition: none; } }
/* phones and tablets: one simple drop-down menu, top right (Sean, Nov 27: "to keep it un crowded") */
@media (max-width: 899.98px) {
  .page > .top nav, .page > .top > span.label { display: none; }
  .nb-menu { position: absolute; top: 1.6rem; right: clamp(16px, 4vw, 51.2px); z-index: 6; }
  .nb-menu > summary { list-style: none; cursor: pointer; color: var(--ultra); border: 1.5px solid var(--ultra); padding: 0.15rem 0.6rem; background: var(--paper); }
  .nb-menu > summary::-webkit-details-marker { display: none; }
  .nb-menu > summary::after { content: " \25BE"; }
  .nb-menu[open] > summary { background: var(--ultra); color: var(--sheet); }
  .nb-menu nav { position: absolute; right: 0; margin-top: 0.4rem; min-width: 14rem; display: flex; flex-direction: column;
    background: var(--sheet); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 0.4rem 0; }
  .nb-menu nav a { padding: 0.6rem 1rem; color: var(--graphite); text-decoration: none; }
  .nb-menu nav a b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin-right: 0.3rem; }
  .nb-menu nav a[aria-current="page"] { background: var(--paper); font-weight: 600; }
  .nb-menu nav a.client { color: var(--ultra); margin-top: 0.4rem; }
}
/* a tab's own page */
.tabpage > .label:first-child { display: block; color: var(--ultra); margin: 1rem 0 0.4rem; }
.tabpage h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); line-height: 1.05; margin: 0 0 1.5rem; }
.tabpage .step-panel { padding-top: 0; }
.tabnext { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1rem; }
/* the ArtShop, coming soon: a card on home and its own page (Sean, Nov 27) */
.soon { margin: clamp(2.5rem, 6vw, 4rem) 0 1rem; padding: 1.6rem 1.8rem 1.4rem; background: var(--sheet); border-left: 6px solid var(--viridian); }
.soon > .label:first-child { display: block; color: var(--viridian); margin-bottom: 0.5rem; }
.soon h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.05; margin: 0 0 0.9rem; }
.soon p { max-width: 62ch; margin: 0 0 1rem; }
.soon .links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.2rem 0 0; }
.soon-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; max-width: 62ch; }
.soon-steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 0.8rem; }
.soon-steps li::before { content: counter(s); font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--viridian); }
.soon-steps b { display: block; }
/* the machines, on the art shop page (styles as on the old home page) */
.machines { margin: clamp(3rem, 7vw, 5rem) 0 2rem; }
.machines h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.02; margin: 0 0 1rem; }
.machines h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 1.75rem 0 0.5rem; }
.machines p { max-width: 62ch; margin: 0 0 1rem; }
.machines .sheet { background: var(--sheet); border: 1.5px solid var(--graphite); box-shadow: 5px 5px 0 var(--graphite); }
.machines .ledger { margin: 1.5rem 0 1.25rem; }
.machines .ledger > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 7rem; gap: 0.3rem 1.5rem; padding: 1rem 1.2rem; border-bottom: 1.5px solid var(--graphite); align-items: baseline; }
.machines .ledger > div:last-child { border-bottom: 0; }
.machines .ledger h4 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; margin: 0 0 0.2rem; }
.machines .ledger p { font-size: 0.95rem; color: var(--lead); margin: 0; }
.machines .ledger .when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.machines .ledger .pay { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ultra); text-align: right; }
@media (max-width: 760px) { .machines .ledger > div { grid-template-columns: minmax(0, 1fr) auto; } .machines .ledger .when { grid-column: 1 / -1; } }
/* on a tab's page, pricing is part of the page, always open */
.tabpage details.entry > summary { pointer-events: none; }
.tabpage details.entry .plus { display: none; }

/* the Process tab (Sean, Nov 27): the 2x2 grid on top; a box opens its step below */
.road > .label:first-child { display: block; color: var(--ultra); margin: 1rem 0 0.4rem; }
.road h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); line-height: 1.05; margin: 0 0 0.8rem; }
.road-lead { max-width: 62ch; margin: 0 0 0.5rem; }
.step-panel details.entry > summary { pointer-events: none; }
.step-panel details.entry .plus { display: none; }
.tabpage.machines { margin-top: 0; }
/* Features and cost (Sean, Nov 27) */
.tabpage.features .nosub { margin: 0 0 2.5rem; }
.fc-h { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; margin: 2.5rem 0 0.8rem; }
.tabpage.features .step-panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 1.75rem 0 0.5rem; }
