/* Pip. Tokens and rules are in docs/BRAND.md. */

:root {
  --paper: #faf9f5;
  --card: #ffffff;
  --tint: #f1eee6;
  --ink: #15140f;
  --ink-2: #55524a;
  --ink-3: #8b877c;
  --rule: #e2ded2;
  --pip: #ff5b2e;
  --pip-wash: #fff0ea;
  --pip-deep: #c93a12;
  --ok: #1d6b4f;
  --ok-wash: #e4f1ea;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shell: 72rem;
  --radius: 14px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Text held to a readable measure, but on the same left edge as everything else. */
.narrow > * {
  max-width: 46rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.eyebrow {
  font: 600 0.78rem / 1 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pip-deep);
  margin: 0 0 1.1rem;
}

.eyebrow a {
  text-decoration: none;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pip);
  outline-offset: 3px;
}

/* the mark: the word, then an orange colon. "Pip:" is how Pip signs everything it writes. */

.mark {
  font: 800 1.7rem / 1 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

/* The colon's dots run from the baseline to the height of the small letters. */
.mark .colon {
  flex: none;
  width: 0.19em;
  height: 0.53em;
  margin-left: 0.07em;
  fill: var(--pip);
}

/* the face: the colon's two dots turned on their side, as eyes, on an orange square.
   Only the eyes ever move. */

.face {
  flex: none;
  display: block;
  width: 2.2rem;
  height: 2.2rem;
}

.face * {
  transform-box: fill-box;
  transform-origin: center;
}

.face-head {
  fill: var(--pip);
}

.face-eye {
  fill: var(--ink);
}

.face-light {
  fill: var(--card);
}

.face-arc {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7.5;
  stroke-linecap: round;
  opacity: 0;
}

.face[data-state="done"] .face-lid {
  opacity: 0;
}

.face[data-state="done"] .face-arc {
  opacity: 1;
}

.face[data-state="unsure"] .face-gaze {
  transform: translate(5px, 0);
}

.face[data-state="unsure"] .face-r .face-lid {
  transform: scale(0.84);
}

@media (prefers-reduced-motion: no-preference) {
  .face[data-state="idle"] .face-lid {
    animation: face-blink 4.6s infinite;
  }

  .face[data-state="done"] .face-arc {
    animation: face-joy 1.6s ease-in-out infinite;
  }
}

@keyframes face-blink {
  0%,
  90%,
  100% {
    transform: scaleY(1);
  }

  95% {
    transform: scaleY(0.08);
  }
}

@keyframes face-joy {
  0%,
  100% {
    transform: translateY(1px);
  }

  50% {
    transform: translateY(-2.5px);
  }
}

.face-lg {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.6rem;
}

/* buttons and links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 1.02rem / 1 var(--body);
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  background: var(--pip-deep);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.93rem;
}

.btn-wide {
  width: 100%;
}

.btn-ink:hover {
  background: #000;
}

.link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--pip);
  padding-bottom: 0.15rem;
}

.link:hover {
  color: var(--pip-deep);
}

.link-light {
  color: #fff;
}

.link-light:hover {
  color: var(--pip);
}

/* nav ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.nav nav {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  color: var(--ink);
}

.nav nav a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--pip);
}

.nav-act {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  /* At the right edge when there is no menu before it, as on the one page (src/one-page/layout.html). */
  margin-left: auto;
}

.signin {
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
}

/* hero ----------------------------------------------------------------- */

.hero {
  padding: 4rem 0 5.5rem;
  overflow: hidden;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.6rem;
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 2.2rem 0 1.1rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-3);
}

.hero-art {
  position: relative;
  padding: 0 0 0 1rem;
}

/* an email, drawn */

.mail,
.bill,
.letter,
.form,
.jd,
.plan {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(21, 20, 15, 0.04),
    0 18px 40px -22px rgba(21, 20, 15, 0.28);
}

.mail {
  width: 82%;
  padding: 0 1.15rem 1.15rem;
  transform: rotate(-2.2deg);
  font-size: 0.92rem;
}

.mail-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 0;
}

.mail-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rule);
}

.mail-from,
.letter-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mail-from div,
.letter-head div {
  line-height: 1.25;
  margin-right: auto;
}

.mail-from small,
.letter-head small {
  display: block;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.mail time,
.letter time {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.avatar {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  font: 700 0.72rem var(--body);
  color: var(--ink-2);
}

.avatar-pip {
  overflow: hidden;
  background: var(--pip);
}

.avatar-pip .face {
  width: 100%;
  height: 100%;
}

.mail-subject {
  font: 700 1.05rem / 1.3 var(--display);
  letter-spacing: -0.015em;
  margin: 0.9rem 0 0.35rem;
}

.mail-body {
  color: var(--ink-2);
  margin-bottom: 0.9rem;
}

.chip,
.bill-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
}

.chip {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
}

.chip i,
.bill-file i {
  width: 0.7rem;
  height: 0.9rem;
  border-radius: 2px;
  background: var(--pip);
}

/* the hand-over between the two */

.hop {
  position: relative;
  height: 3.4rem;
  margin-left: 42%;
  border-left: 2px dashed var(--ink-3);
}

.hop .face {
  position: absolute;
  left: calc(-1.2rem - 1px);
  top: 50%;
  translate: 0 -50%;
  width: 2.4rem;
  height: 2.4rem;
}

/* a Xero draft bill, drawn */

.bill {
  margin-left: 9%;
  padding: 1.15rem 1.25rem 1rem;
  transform: rotate(1.1deg);
  font-size: 0.88rem;
}

.bill .label,
.jd dt {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bill-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bill-top strong {
  font: 700 1.15rem var(--display);
  letter-spacing: -0.02em;
}

.pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
}

.bill-meta {
  display: flex;
  gap: 1.75rem;
  margin: 0.9rem 0 1rem;
  font-variant-numeric: tabular-nums;
}

.bill-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr auto;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.bill-row span:last-child {
  text-align: right;
}

.bill-head {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bill-pip {
  display: block;
  background: var(--pip-wash);
  border-top-color: transparent;
  border-left: 3px solid var(--pip);
  border-radius: 0 6px 6px 0;
  padding: 0.55rem 0.7rem;
  margin: 0 -0.35rem;
}

.bill-pip span:last-child {
  text-align: left;
}

.bill-pip b {
  color: var(--pip-deep);
}

.bill-total {
  margin: 0.85rem 0 0.8rem auto;
  width: 55%;
  font-variant-numeric: tabular-nums;
}

.bill-total div {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  color: var(--ink-2);
}

.bill-total .grand {
  border-top: 2px solid var(--ink);
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

/* the hire at a glance ------------------------------------------------- */

.facts {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: space-between;
  gap: 1.1rem 2rem;
  margin: 0;
  padding: 1.35rem 0;
}

.facts dt,
.traits dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.facts dt {
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* the ad you would write ------------------------------------------------ */

.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.traits > div {
  padding: 1.5rem 0 1.7rem;
  border-bottom: 1px solid var(--rule);
}

.traits dt {
  font: 700 1.2rem / 1.25 var(--display);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.traits dd {
  margin: 0;
  color: var(--ink-2);
}

/* blocks --------------------------------------------------------------- */

.block {
  padding: 6.5rem 0;
}

.block-tint {
  background: var(--tint);
}

.block-flush {
  padding-top: 0;
}

.page-head {
  padding: 4.5rem 0 4rem;
}

.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin-bottom: 1.4rem;
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4.5rem;
  align-items: start;
}

.two-flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.two-head h2,
.two-head h1 {
  margin-bottom: 1.3rem;
}

.two-head p:not(.eyebrow),
.prose p {
  color: var(--ink-2);
}

.head-center {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.head-left {
  max-width: 40rem;
  margin-bottom: 3rem;
}

/* position description -------------------------------------------------- */

.jd {
  overflow: hidden;
}

.jd-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: #fff;
  font: 600 0.74rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jd-top span:last-child {
  color: var(--pip);
}

.jd dl {
  margin: 0;
  padding: 0.4rem 1.4rem 0.6rem;
}

.jd dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.jd dl div:last-child {
  border-bottom: 0;
}

.jd dt {
  padding-top: 0.3rem;
}

.jd dd {
  margin: 0;
  font-weight: 500;
}

/* a day, as a timeline -------------------------------------------------- */

.day {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
}

.day li {
  display: grid;
  grid-template-columns: 4.5rem 1.5rem 1fr;
  position: relative;
  padding-bottom: 2rem;
}

.day li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  background: var(--tint);
  z-index: 1;
}

.day li.pip::before {
  border-color: var(--pip);
  background: var(--pip);
}

.day li::after {
  content: "";
  position: absolute;
  left: calc(4.5rem + 0.75rem - 1px);
  top: 0.9rem;
  bottom: -0.4rem;
  width: 2px;
  background: var(--rule);
}

.day li:last-child::after {
  display: none;
}

.day time {
  grid-column: 1;
  grid-row: 1;
  font: 600 0.95rem / 1.7 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.day div {
  grid-column: 3;
  grid-row: 1;
  padding-left: 1rem;
}

.day h3 {
  margin-bottom: 0.3rem;
}

.day p {
  margin: 0;
  color: var(--ink-2);
}

.day li.pip h3::after {
  content: "Pip";
  margin-left: 0.6rem;
  font: 700 0.66rem var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pip-deep);
  background: var(--pip-wash);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  vertical-align: 0.15em;
}

/* the digest, as an email ---------------------------------------------- */

.letter {
  padding: 1.3rem 1.5rem 1.4rem;
  font-size: 0.95rem;
}

.letter-subject {
  font: 700 1.2rem / 1.25 var(--display);
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.4rem;
}

.letter h4 {
  font: 600 0.74rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 1.2rem 0 0.5rem;
}

.letter h4 span {
  color: var(--ink);
  margin-left: 0.3rem;
}

.letter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.letter li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.letter li b {
  color: var(--ink);
  font-weight: 600;
}

.learned li small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.letter-sign {
  margin: 1.3rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* the dark band --------------------------------------------------------- */

.never {
  background: var(--ink);
  color: #fff;
  padding: 6.5rem 0;
}

.never .eyebrow {
  color: var(--pip);
}

.never h2 {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.never ul {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #34322b;
}

.never li {
  padding: 1.6rem 1.5rem 1.8rem 0;
  border-bottom: 1px solid #34322b;
  font: 600 1.3rem / 1.25 var(--display);
  letter-spacing: -0.02em;
}

.never li span {
  display: block;
  font: 600 0.78rem var(--body);
  letter-spacing: 0.08em;
  color: var(--pip);
  margin-bottom: 0.8rem;
}

.never-page h2 {
  margin-bottom: 0;
}

.prose-light p {
  color: #cfcbc0;
  font-size: 1.12rem;
}

/* plans ----------------------------------------------------------------- */

.pay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

/* An odd number of cards: the last one takes the whole row, so it never sits beside an empty half. */
.pay > .plan:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.plan.pay-base {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.pay .plan-size {
  font: 600 0.74rem var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}

.pay .plan-price {
  font-size: 3.6rem;
  margin-bottom: 1.2rem;
}

.pay-covers {
  color: var(--ink-2);
  margin-bottom: 1.6rem;
}

.rates {
  margin: 0;
}

.rates div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

/* The label keeps its own width where it can; the figure takes the rest and wraps inside the card, to the right. */
.rates dt {
  flex: 0 1 auto;
  min-width: 0;
}

.rates dd {
  flex: 1 1 0;
  min-width: 9rem;
  margin: 0;
  font: 700 1.1rem / 1.25 var(--display);
  letter-spacing: -0.02em;
  text-align: right;
  text-wrap: balance;
}

.pay-eg {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.plan {
  padding: 1.75rem;
  box-shadow: none;
}

.plan-size {
  color: var(--ink-2);
  margin-bottom: 2.2rem;
}

.plan-size b {
  display: block;
  font: 800 3.6rem / 0.9 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
}

.plan-price {
  font: 700 1.9rem / 1 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.plan-price span {
  font-size: 1.1rem;
  vertical-align: 0.4em;
  margin-right: 0.1rem;
}

.plan-price small {
  font: 500 0.9rem var(--body);
  letter-spacing: 0;
  color: var(--ink-3);
  margin-left: 0.4rem;
}

.plans-note {
  text-align: center;
  color: var(--ink-2);
  margin: 2rem 0 0;
}

.pay + .plans-terms {
  margin-top: 2rem;
}

.plans-terms {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.plans-note a {
  font-weight: 600;
  margin-left: 0.4rem;
}

/* setup steps, outcomes, grids ------------------------------------------ */

.setup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.setup li {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}

.setup span {
  font: 800 2.6rem / 1 var(--display);
  letter-spacing: -0.04em;
  color: var(--pip);
}

.setup h3 {
  margin: 0.9rem 0 0.4rem;
}

.setup p,
.grid3 p,
.outcomes p {
  color: var(--ink-2);
  margin: 0;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.outcomes > div {
  background: var(--card);
  padding: 1.5rem;
}

.outcomes h3 {
  margin-bottom: 0.35rem;
}

.tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
}

.tag-done {
  background: var(--ok-wash);
  color: var(--ok);
}

.tag-back {
  background: var(--pip-wash);
  color: var(--pip-deep);
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.grid3 > div {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.grid3 h3 {
  margin-bottom: 0.4rem;
}

/* an exchange with Pip --------------------------------------------------- */

.thread {
  display: grid;
  gap: 0.9rem;
}

.msg {
  max-width: 85%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
}

.msg p {
  margin: 0 0 0.4rem;
}

.msg p:last-child {
  margin: 0;
}

.msg small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}

.msg-you {
  justify-self: end;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-you small {
  color: #a9a598;
}

.msg-pip {
  border-bottom-left-radius: 4px;
}

.msg-pip small {
  color: var(--pip-deep);
}

/* lists, prose, faq ------------------------------------------------------ */

.ticks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-top: 1px solid var(--rule);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pip);
}

.ticks-lg {
  margin: 0;
  font: 600 1.2rem / 1.3 var(--display);
  letter-spacing: -0.015em;
}

.ticks-lg li {
  padding: 1rem 0 1rem 1.8rem;
}

.ticks-lg li::before {
  top: 1.5rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.8rem 0 0.8rem;
}

.prose h3 {
  margin: 2rem 0 0.4rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-2);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--pip-deep);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pip);
  border-radius: 0 10px 10px 0;
  font-weight: 500;
}

.prose blockquote p {
  margin: 0;
  color: var(--ink);
}

.prose code {
  font: 0.88em var(--mono);
  background: var(--tint);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}

.faq h3 {
  margin: 2.2rem 0 0.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.faq p {
  color: var(--ink-2);
}

.guide-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.guide-list li {
  border-top: 1px solid var(--rule);
}

.guide-list a {
  display: block;
  padding: 1.3rem 0 0.2rem;
  font: 700 1.35rem var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.guide-list a:hover {
  color: var(--pip-deep);
}

.guide-list span {
  display: block;
  color: var(--ink-2);
  padding-bottom: 1.3rem;
}

/* form ------------------------------------------------------------------- */

.form {
  padding: 1.75rem;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

/* The browser's own arrow sits hard against the border. This one is drawn, with room either side. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315140f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 0.75rem auto;
  cursor: pointer;
}

textarea {
  display: block;
  min-height: 5.2rem;
  resize: vertical;
}

label small {
  font-weight: 400;
  color: var(--ink-3);
}

.form-note a {
  color: var(--ink-2);
}

input::placeholder {
  color: var(--ink-3);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
}

/* Not for people: a field only automated form-fillers complete. */
.hp {
  position: absolute;
  left: -9999px;
}

/* closing band and footer ------------------------------------------------ */

.band-cta {
  background: var(--pip);
  padding: 5.5rem 0;
}

.band-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  max-width: 44rem;
  margin-bottom: 1rem;
}

.band-cta p {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.cta-note {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.foot {
  background: var(--ink);
  color: #cfcbc0;
  padding: 4rem 0 3rem;
  font-size: 0.95rem;
}

.foot-in {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 4rem;
}

.foot .mark {
  color: #fff;
  margin-bottom: 0.9rem;
}

.foot p {
  max-width: 24rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.6rem 1.75rem;
}

.foot nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.foot nav a:hover {
  color: var(--pip);
}

.foot .fine {
  grid-column: 1 / -1;
  max-width: none;
  border-top: 1px solid #34322b;
  padding-top: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: #8b877c;
}

/* small screens ---------------------------------------------------------- */

@media (max-width: 60rem) {
  .hero {
    padding: 2.5rem 0 4rem;
  }

  .hero-in,
  .two,
  .two-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-art {
    padding: 0;
    max-width: 30rem;
  }

  .block,
  .never {
    padding: 4.5rem 0;
  }

  .block-flush {
    padding-top: 0;
  }

  .never ul,
  .pay,
  .setup,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .traits {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 44rem) {
  .nav-in {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 1rem;
    height: auto;
    padding-top: 0.8rem;
  }

  .nav nav {
    order: 3;
    width: 100%;
    gap: 1.4rem;
    margin: 0;
    padding: 0.7rem 0 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .signin {
    display: none;
  }

  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jd dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .day li {
    grid-template-columns: 3.4rem 1.5rem 1fr;
  }

  .day li::after {
    left: calc(3.4rem + 0.75rem - 1px);
  }

  .bill-row {
    grid-template-columns: 1.4fr 1fr auto;
    gap: 0.5rem;
  }

  .cta-note {
    display: block;
    margin: 1rem 0 0;
  }

  .msg {
    max-width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* the messy email -------------------------------------------------------- */

mark {
  background: linear-gradient(transparent 55%, #ffd2c2 55%);
  color: inherit;
  padding: 0 0.1em;
}

mark.warn {
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

.mail-body {
  color: var(--ink);
  font-size: 0.98rem;
}

.fwd {
  border-left: 2px solid var(--rule);
  padding-left: 0.8rem;
  margin: 0 0 0.9rem;
  color: var(--ink-2);
}

.fwd small {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}

.fwd p {
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-plain i {
  background: var(--ink-3);
}

.hero-in {
  align-items: start;
}

.hero-copy {
  padding-top: 3.5rem;
}

.mail {
  width: 90%;
}

.bill-pip + .bill-pip {
  margin-top: 0.3rem;
}

.head-wide {
  max-width: 48rem;
}

.head-wide .lede {
  max-width: 44rem;
  margin-top: 1.3rem;
}

.mess {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mess article {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.mess .said {
  font: 500 0.92rem / 1.5 var(--mono);
  color: var(--ink);
  background: var(--tint);
  border-radius: 10px 10px 10px 2px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.3rem;
  min-height: 4.4rem;
}

.mess h3 {
  margin-bottom: 0.4rem;
}

.mess article p:last-child {
  color: var(--ink-2);
  margin: 0;
}

.mess article.mess-warn {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mess-warn .said {
  background: #2b2924;
  color: #fff;
}

.mess article.mess-warn p:last-child {
  color: #cfcbc0;
}

@media (max-width: 60rem) {
  .mess {
    grid-template-columns: minmax(0, 1fr);
  }

  .mess .said {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .mail {
    width: 96%;
  }
}

/* roles ------------------------------------------------------------------ */

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.role {
  border-top: 2px solid var(--rule);
  padding-top: 1.2rem;
}

.role h3 {
  font-size: 1.3rem;
  margin: 0.9rem 0 0.5rem;
}

.role p {
  color: var(--ink-2);
  margin: 0;
}

.role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.role-on {
  border-top-color: var(--pip);
}

.role-on .role-tag {
  color: #fff;
  background: var(--pip-deep);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

/* A position on the page that Pip does not fill yet says so, in a line of its own. */
.later,
.role p.later {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0.5rem 0 0;
}

.who {
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.who .role h3 {
  max-width: 26rem;
}

.role-ask {
  border-top-style: dashed;
  border-top-color: var(--ink-3);
}

@media (max-width: 60rem) {
  .roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* the owner's question, above the answer --------------------------------- */

.ask {
  font: 600 1.15rem / 1.3 var(--display);
  letter-spacing: -0.015em;
  color: var(--pip-deep);
  margin: 0 0 0.9rem;
}

.never .ask {
  color: var(--pip);
}

/* what comes off your desk, and what stays ------------------------------- */

.handover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.handover > div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1rem;
}

.handover > div:first-child {
  border-top: 3px solid var(--pip);
}

.handover > div:last-child {
  border-top: 3px solid var(--ink);
}

.handover h3 {
  margin-bottom: 0.3rem;
}

.handover .ticks {
  margin-top: 1rem;
}

.handover > div:last-child .ticks li::before {
  background: var(--ink);
}

.handover-more {
  margin: 2rem 0 0;
}

@media (max-width: 60rem) {
  .handover {
    grid-template-columns: minmax(0, 1fr);
  }
}

.two-head p.ask {
  color: var(--pip-deep);
}

.two > .bill {
  width: auto;
  margin: 0;
  transform: none;
}

.who-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

@media (max-width: 60rem) {
  .who-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.role h3 a {
  color: inherit;
  text-decoration-color: var(--pip);
  text-underline-offset: 0.18em;
}

/* the four parts of the job, then what comes off your desk */
.roles + .handover {
  margin-top: 2.75rem;
}

/* a note under the week, centred like its heading */
.day + .plans-note {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* the notes under the comparison with an accounts person's hours */
.grid3 + .plans-note {
  margin-top: 2.5rem;
}

/* the two guides, the questions, and the documents drawn in them ---------- */

.guide-group {
  font: 600 0.78rem var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pip-deep);
  margin: 3rem 0 0;
}

.guide-group + .guide-list,
.guide-group + .faq {
  margin-top: 0.8rem;
}

.prose .guide-list {
  padding-left: 0;
}

.prose .guide-list a {
  color: var(--ink);
}

.prose .guide-list a:hover {
  color: var(--pip-deep);
}

.prose .guide-list li {
  margin-bottom: 0;
}

.faq h3 a {
  color: inherit;
  text-decoration: none;
}

.faq h3 a:hover {
  color: var(--pip-deep);
}

.more {
  font-weight: 600;
}

.more a::after {
  content: " \2192";
}

.updated,
.in-books {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-3);
}

.in-books + .updated {
  margin-top: 0.4rem;
  padding-top: 0;
  border-top: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.prose th {
  border-top: 0;
  font: 600 0.74rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.prose td:first-child {
  font-weight: 600;
  width: 38%;
}

.prose td {
  color: var(--ink-2);
}

.prose td:first-child {
  color: var(--ink);
}

.shot {
  margin: 2rem 0;
}

.prose .shot p {
  color: var(--ink);
}

.bill.shot {
  max-width: 34rem;
}

.thread.shot {
  max-width: 34rem;
}

.setup-four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .setup-four {
    grid-template-columns: 1fr;
  }
}

.prose .msg-you p {
  color: #fff;
}

/* one of Pip's own sheets, shown as it is -------------------------------- */

.example img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--rule);
}

/* one of Pip's own sheets, drawn: the parts that carry the point, not a picture of the whole */

.sheet {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--rule);
  padding: 1.4rem 1.5rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink);
  text-align: left;
}

.sheet p {
  margin: 0;
  color: inherit;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.sheet-mark {
  font: 700 1.3rem var(--display);
  letter-spacing: -0.03em;
}

.sheet-mark i {
  font-style: normal;
  color: var(--pip);
}

.sheet-when {
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
  color: var(--ink-3);
}

.sheet-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sheet .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
  white-space: nowrap;
}

.sheet .tag-ink {
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sheet .tag-ok {
  background: var(--ok-wash);
  color: var(--ok);
}

.sheet-ref {
  font-weight: 600;
  line-height: 1;
}

.sheet .sheet-name {
  font: 700 1.5rem var(--display);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.2rem;
}

.sheet .sheet-say {
  color: var(--ink-2);
}

.sheet-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sheet-alert {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem 1rem;
  background: var(--ink);
  color: #fff;
}

.sheet-alert > .sheet-label {
  color: var(--pip);
  margin-bottom: 0.3rem;
}

.sheet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.8rem;
  border: 1px solid #3a3932;
}

.sheet-pair div {
  padding: 0.6rem 0.75rem;
}

.sheet-pair div + div {
  border-left: 1px solid #3a3932;
}

.sheet-pair b {
  display: block;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.sheet-pair b.new {
  color: var(--pip);
}

.sheet-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0;
  font-variant-numeric: tabular-nums;
}

.sheet-look {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--pip-wash);
}

.sheet-look .sheet-label {
  color: var(--pip-deep);
}

.sheet-look ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.sheet .sheet-head {
  font: 700 1rem var(--display);
  margin: 1.2rem 0 0.4rem;
}

.sheet-row {
  display: grid;
  grid-template-columns: 0.9rem 8rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.sheet-row > span {
  color: var(--ink-2);
}

.sheet-row .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--rule);
  align-self: center;
}

.sheet-row .dot-warn {
  background: var(--pip);
}

.sheet-row .dot-ok {
  background: var(--ok);
}

.sheet-line {
  grid-template-columns: 1.1fr 1.2fr auto 4rem;
}

.sheet-line .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.sheet-log {
  grid-template-columns: 4.5rem 1fr;
}

.sheet-log time {
  font-weight: 600;
  white-space: nowrap;
}

.sheet .sheet-done {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--ok-wash);
  color: var(--ok);
  font-weight: 600;
}

@media (max-width: 560px) {
  .sheet-row {
    grid-template-columns: 0.9rem 1fr;
  }

  .sheet-row > span:last-child {
    grid-column: 2;
  }

  .sheet-line {
    grid-template-columns: 1fr auto;
  }

  .sheet-log {
    grid-template-columns: 4.5rem 1fr;
  }

  .sheet-line > span:last-child,
  .sheet-log > span:last-child {
    grid-column: auto;
  }

  .sheet-facts,
  .sheet-pair {
    grid-template-columns: 1fr;
  }

  .sheet-pair div + div {
    border-left: 0;
    border-top: 1px solid #3a3932;
  }
}

/* the work that comes with every position, above the positions themselves */

.lead-role {
  max-width: 44rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
}

.lead-role h3 {
  margin: 0 0 0.5rem;
}

.lead-role p {
  margin: 0;
}

.pay-least {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
