/* Hopper marketing site. Paper, ink and one blue. Serif for voice, mono for the machine. */

:root {
  --paper: #efeee9;
  --paper-2: #e4e3dd;
  --ink: #0b0b0c;
  --ink-2: #3a3a38;
  --mute: #75746e;
  --rule: rgba(11, 11, 12, 0.85);
  --hair: rgba(11, 11, 12, 0.14);
  --blue: #2337ff;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --bar: 40px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.4 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 52px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  font: 500 12px/1 var(--mono);
}

.caps {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dither {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* The terminal bar: Hopper's log, typed live. */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  background: var(--ink);
  color: #f4f3ee;
  font: 400 12px/1 var(--mono);
}

.log {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log .prompt {
  color: #8d8c86;
}

.log .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #f4f3ee;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.bar nav a {
  text-decoration: none;
  color: #c9c8c2;
}

.bar nav a:hover,
.bar nav a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bar nav .get {
  color: #fff;
  background: var(--blue);
  padding: 7px 10px;
  text-decoration: none !important;
}

/* The blue band: a marquee of what Hopper did today. */

.band {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font: 500 11px/26px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band-track {
  display: inline-flex;
  animation: marquee 60s linear infinite;
}

.band-track span {
  padding-right: 2.5em;
}

.band-track span::before {
  content: '●';
  margin-right: 0.8em;
  font-size: 8px;
  vertical-align: 1px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--blue);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--blue);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--blue);
}

.btn.light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--bar) - 26px);
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: 28px 16px 22px;
  color: #f4f3ee;
  background: var(--ink) url('/img/hero.png') center calc(100% + 72px) / cover no-repeat;
  image-rendering: pixelated;
  text-align: center;
  overflow: hidden;
}

.wordmark {
  font: 400 clamp(56px, 8vw, 104px) / 0.9 var(--serif);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.hero-copy {
  align-self: start;
  margin-top: clamp(12px, 4vh, 56px);
  max-width: 980px;
}

.hero h1 {
  margin: 0;
  font: 400 clamp(46px, 7.2vw, 96px) / 0.98 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero p {
  margin: 22px auto 30px;
  max-width: 520px;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.35;
  color: #b9b8b2;
}

/* Generic section */

.section {
  padding: clamp(96px, 14vw, 168px) 16px 0;
}

.col {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.wide {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.shout {
  margin: 0 0 28px;
  font: 400 clamp(46px, 6.4vw, 76px) / 0.95 var(--serif);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lines p {
  margin: 0 0 12px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
}

.lines p.strong {
  margin-top: 26px;
  font-style: italic;
}

.figure {
  margin: clamp(48px, 7vw, 80px) auto 0;
  max-width: 900px;
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--mute);
}

/* A day with Hopper */

.grey {
  color: #8b8a84;
}

.day h2 {
  margin: 0 0 28px;
  font: 400 clamp(40px, 5vw, 60px) / 1 var(--serif);
  letter-spacing: -0.02em;
}

.day ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day li {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.25;
}

.day time {
  font: 400 12px/1 var(--mono);
  color: var(--mute);
  letter-spacing: 0.04em;
}

.day li.last {
  margin-top: 14px;
  font-style: italic;
}

/* What Hopper does */

.does-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.does-head h2 {
  margin: 0;
  font: 400 clamp(40px, 5vw, 60px) / 1 var(--serif);
  letter-spacing: -0.02em;
}

.does {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.does li {
  padding: 26px 28px 34px 0;
  border-bottom: 1px solid var(--hair);
}

.does li:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--hair);
}

.does .n {
  display: block;
  margin-bottom: 30px;
  color: var(--blue);
}

.does h3 {
  margin: 0 0 10px;
  font: 400 30px/1.05 var(--serif);
  letter-spacing: -0.01em;
}

.does p {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink-2);
}

/* Pricing: a receipt */

.pricing {
  text-align: center;
}

.pricing .shout {
  margin-bottom: 12px;
}

.pricing .sub {
  margin: 0 auto 48px;
  font-size: 23px;
  color: var(--ink-2);
}

.receipt {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 28px 36px;
  background: #fbfaf7;
  text-align: left;
  font: 400 13px/1.7 var(--mono);
  box-shadow: 0 1px 0 var(--hair), 0 24px 40px -28px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);
}

.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, #fbfaf7 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, #fbfaf7 0) 0 0 / 14px 10px repeat-x;
}

.receipt header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--ink);
  margin-bottom: 14px;
}

.receipt header strong {
  display: block;
  font: 400 34px/1 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.receipt dl {
  margin: 0;
}

.receipt .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt .row dt {
  margin: 0;
}

.receipt .row dd {
  margin: 0;
  white-space: nowrap;
  color: var(--mute);
}

.receipt .total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink);
  font-weight: 500;
}

.receipt .total dd {
  color: var(--ink);
}

.receipt .price {
  font: 400 64px/1 var(--serif);
  text-align: center;
  margin: 22px 0 4px;
  letter-spacing: -0.02em;
}

.receipt .price small {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0;
  color: var(--mute);
}

.receipt .btn {
  width: 100%;
  margin-top: 20px;
}

.receipt .fine {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--blue);
}

/* Closing */

.closing {
  margin-top: clamp(110px, 15vw, 180px);
  min-height: 80svh;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  text-align: center;
  background: url('/img/clouds.png') center / cover no-repeat var(--paper);
  image-rendering: pixelated;
}

.closing h2 {
  margin: 0 0 26px;
  font: 400 clamp(44px, 6.2vw, 80px) / 0.98 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.closing .caps {
  display: block;
  margin-top: 22px;
  color: var(--mute);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding: 20px 16px 24px;
  border-top: 1px solid var(--rule);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer a {
  text-underline-offset: 3px;
}

.footer .right {
  margin-left: auto;
  color: var(--mute);
}

/* About: a letter typed on ruled paper */

.desk {
  background: var(--paper-2);
  padding: clamp(32px, 6vw, 72px) 16px clamp(64px, 9vw, 120px);
}

.letter {
  --line: 24px;
  --margin: 52px;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--line) 32px calc(var(--line) * 2) calc(var(--margin) + 20px);
  background:
    linear-gradient(90deg, transparent var(--margin), rgba(35, 55, 255, 0.55) var(--margin), rgba(35, 55, 255, 0.55) calc(var(--margin) + 1px), transparent calc(var(--margin) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(35, 55, 255, 0.12) calc(var(--line) - 1px) var(--line)),
    #fbfaf7;
  background-position: 0 0, 0 6px;
  font: 400 13px / var(--line) var(--mono);
  box-shadow: 0 1px 0 var(--hair), 0 30px 50px -36px rgba(0, 0, 0, 0.4);
}

.letter header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--line);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.letter header .meta {
  text-align: right;
}

.letter p {
  margin: 0 0 var(--line);
}

.letter .sig {
  font: italic 400 30px / calc(var(--line) * 2) var(--serif);
  margin: 0;
}

.letter .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0 0 var(--line);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.letter .links a {
  text-underline-offset: 3px;
}

.letter .links a:hover {
  color: var(--blue);
}

.letter pre {
  margin: var(--line) 0 0;
  font: inherit;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-2);
}

.letter .back {
  display: inline-block;
  margin-top: var(--line);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}

/* Sign-up, sign-in and the signed-in page: one card on the desk */

.sign {
  min-height: calc(100svh - var(--bar) - 60px);
  display: grid;
  align-items: center;
}

.auth {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 34px 32px 32px;
  background: #fbfaf7;
  font: 400 13px/1.6 var(--mono);
  box-shadow: 0 1px 0 var(--hair), 0 30px 50px -36px rgba(0, 0, 0, 0.4);
}

.auth header {
  margin-bottom: 26px;
}

.auth h1 {
  margin: 0 0 8px;
  font: 400 44px/1 var(--serif);
  letter-spacing: -0.02em;
}

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

.auth .btn {
  width: 100%;
}

.auth .btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn.google {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn.google:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.btn.google:active {
  box-shadow: 1px 1px 0 var(--ink);
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  color: var(--mute);
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--ink);
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  /* 16px keeps phones from zooming in on focus. */
  font: 400 16px/1 var(--mono);
}

.field input:focus-visible {
  outline-offset: 0;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--mute);
  font-size: 11px;
}

.form-error {
  margin: 0 0 16px;
  color: var(--blue);
}

.auth form .btn {
  margin-top: 8px;
}

.forgot {
  margin: -8px 0 16px;
  text-align: right;
  font-size: 12px;
}

.forgot a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

/* "We've sent a link": what replaces a form once it's done. */
.sent {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: #fff;
}

.auth [data-join] .btn,
.auth [data-other] .btn {
  margin-top: 4px;
}

.auth > .form-error:not([hidden]) {
  margin: 16px 0 0;
}

.switch {
  margin: 26px 0 0;
  text-align: center;
  color: var(--ink-2);
}

.switch a {
  text-underline-offset: 3px;
}

/* Signed-in pages: hiring and setting up a Hopper, and its home. A form on
   the desk, and the teammate's badge beside it, filling in as you go. */

.office {
  padding: clamp(32px, 6vw, 72px) 16px clamp(72px, 10vw, 120px);
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 580px) 300px;
  gap: clamp(32px, 5vw, 64px);
  justify-content: center;
  align-items: start;
}

.sheet {
  min-width: 0;
  padding: 30px 36px 36px;
  background: #fbfaf7;
  font: 400 13px/1.6 var(--mono);
  box-shadow: 0 1px 0 var(--hair), 0 30px 50px -36px rgba(0, 0, 0, 0.4);
}

.sheet > header,
.step > header {
  margin-bottom: 28px;
}

.sheet h1 {
  margin: 0 0 10px;
  font: 400 clamp(38px, 4.4vw, 52px) / 1 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sheet h1[tabindex='-1']:focus {
  outline: none;
}

.sheet header p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-2);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 34px;
  padding: 0 0 14px;
  list-style: none;
  border-bottom: 1px solid var(--rule);
  counter-reset: step;
  font-size: 11px;
}

.steps li {
  counter-increment: step;
}

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

.steps a::before {
  content: counter(step) ' ';
  color: var(--blue);
}

.steps a:hover {
  color: var(--ink);
}

.steps a[aria-current='step'] {
  color: var(--ink);
  text-decoration: underline 2px var(--blue);
  text-underline-offset: 6px;
}

.steps a[aria-disabled] {
  color: var(--mute);
  cursor: default;
}

.steps a[aria-disabled]::before {
  color: inherit;
}

.choices,
.dials {
  margin: 6px 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices legend,
.dials legend {
  margin-bottom: 8px;
  padding: 0;
}

.choice {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 14px;
  padding: 11px 14px 12px;
  border-top: 1px dashed rgba(11, 11, 12, 0.3);
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.choice:first-of-type {
  border-top-color: transparent;
}

.choice:hover {
  background: #fff;
}

.choice:has(input:checked) {
  position: relative;
  border-top-color: transparent;
  background: #fff;
  outline: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}

.choice:has(input:checked) + .choice {
  border-top-color: transparent;
}

.choice input {
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  margin: 6px 0 0;
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.choice input:checked {
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.choice input:focus-visible {
  outline-offset: 2px;
}

.choice-title {
  font: 400 24px/1.1 var(--serif);
  letter-spacing: -0.01em;
}

.choice-note {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-2);
}

.dial {
  display: grid;
  grid-template-columns: 124px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 10px 0 8px;
}

.dial-name {
  font: 400 21px/1 var(--serif);
}

.dial-ends {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--mute);
}

/* The sliders are rulers: a hairline with a tick every tenth. */
.dial input {
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(10% - 0.1px)) center / calc(100% + 1px) 7px no-repeat;
  cursor: pointer;
}

.dial input::-webkit-slider-thumb {
  width: 12px;
  height: 22px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
}

.dial input::-moz-range-thumb {
  width: 12px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
}

.dial input:focus-visible {
  outline-offset: 4px;
}

.field textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.45 var(--mono);
  resize: vertical;
}

.field textarea::placeholder,
.field input::placeholder {
  color: #8b8a84;
}

.field textarea:focus-visible {
  outline-offset: 0;
}

.sheet .field {
  margin-bottom: 20px;
}

/* The team step: the website it reads, and the kinds of help to pick. */

.ask-site {
  margin-bottom: 22px;
}

.ask-site .field {
  margin-bottom: 0;
}

.ask-site small {
  display: block;
  margin-top: 8px;
  max-width: 56ch;
  color: var(--mute);
  font-size: 11px;
}

.inline {
  display: flex;
  gap: 14px;
  align-items: center;
}

.inline input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1 var(--mono);
}

.inline input:focus-visible {
  outline-offset: 0;
}

.field .reading {
  color: var(--blue);
}

.help {
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.help legend {
  padding: 0;
}

.help-note {
  margin: 4px 0 12px;
  color: var(--mute);
  font-size: 11px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chip {
  position: relative;
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:hover {
  background: var(--paper);
}

.chip:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--blue);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.sheet .form-error:not([hidden]) + .actions {
  margin-top: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn.small {
  height: 34px;
  padding: 0 14px;
  font-size: 11px;
  box-shadow: 3px 3px 0 var(--blue);
}

.later {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 400 12px/1 var(--mono);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.later:hover {
  color: var(--ink);
}

.notice {
  margin: -6px 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: #fff;
}

.notice.bad {
  color: var(--blue);
  border-color: var(--blue);
}

.tools {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px dashed var(--ink);
}

.tools li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px dashed var(--ink);
}

.tools strong {
  display: block;
  margin-bottom: 4px;
  font: 400 26px/1 var(--serif);
  letter-spacing: -0.01em;
}

.tools li > div > span {
  display: block;
  max-width: 40ch;
  font-size: 12px;
  color: var(--ink-2);
}

.tools li.soon strong {
  color: var(--mute);
}

.state {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}

.state.on {
  color: var(--ink);
}

.state.on::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--blue);
}

.state b {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* A connected tool: its state, and a way to change what it reaches. */
.tool-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

/* The second action next to a primary one. */
.btn.plain {
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.plain:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.btn.plain:active {
  box-shadow: 1px 1px 0 var(--ink);
}

.notice-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.rules {
  margin: 0;
  padding: 10px 0;
  border-top: 1px dashed var(--ink);
  border-bottom: 1px dashed var(--ink);
}

.rules div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}

.rules dt {
  margin: 0;
}

.rules dd {
  margin: 0;
  white-space: nowrap;
  color: var(--mute);
}

.rules dd[data-v='does it'] {
  color: var(--ink);
}

.rules dd[data-v='never'] {
  color: var(--blue);
}

/* Home */

.part {
  margin-top: 34px;
}

.part h2 {
  margin: 0 0 10px;
}

.part-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.edit {
  font-size: 12px;
  color: var(--ink-2);
  text-underline-offset: 3px;
}

.notes {
  margin: 0;
}

.notes div {
  padding: 10px 0 12px;
  border-top: 1px dashed var(--hair);
}

.notes dt {
  color: var(--mute);
  font-size: 10px;
}

.notes dd {
  margin: 4px 0 0;
  font-size: 14px;
  white-space: pre-line;
}

.notes dd.off {
  color: var(--mute);
}

/* Calls on the home page. */

.part-note {
  margin: 0 0 12px;
  max-width: 60ch;
  color: var(--ink-2);
}

.part-note b {
  font-weight: 500;
  color: var(--ink);
}

.join {
  margin-bottom: 14px;
}

.join .form-error {
  margin: 8px 0 0;
}

/* The company's people and open invites, on the home page. */

.join .sent {
  margin-top: 10px;
  font-size: 12px;
}

.people {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px dashed var(--ink);
}

.people li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px dashed var(--ink);
}

.people strong {
  display: block;
  font: 400 21px/1.1 var(--serif);
  overflow-wrap: anywhere;
}

.people li > div > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.people li.pending strong {
  color: var(--mute);
}

.calls {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px dashed var(--ink);
}

.calls li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px dashed var(--ink);
}

.calls li.empty {
  display: block;
  color: var(--mute);
}

.calls time {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.calls strong {
  display: block;
  font: 400 21px/1.1 var(--serif);
}

.calls .state {
  display: block;
  margin-top: 4px;
  text-align: left;
}

.calls li.live .state {
  color: var(--blue);
}

.recap {
  grid-column: 2 / -1;
}

.recap summary {
  width: max-content;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.recap p {
  margin: 8px 0 0;
  white-space: pre-line;
  font-size: 13px;
}

/* The teammate's badge, clipped to a lanyard. */

.badge {
  position: sticky;
  top: calc(var(--bar) + 28px);
  padding-bottom: 22px;
  background: #fbfaf7;
  font: 400 12px/1.5 var(--mono);
  box-shadow: 0 1px 0 var(--hair), 0 26px 44px -30px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

.badge::before {
  content: '';
  display: block;
  width: 54px;
  height: 9px;
  margin: 14px auto 0;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.badge-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 18px 10px;
  border-bottom: 1px dashed var(--ink);
  font-size: 10px;
}

.badge-head span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-orb {
  display: block;
  width: calc(100% - 36px);
  height: auto;
  aspect-ratio: 1;
  margin: 18px auto 0;
  background: var(--ink);
}

.badge-id {
  padding: 16px 18px 0;
}

.badge h2 {
  margin: 0 0 6px;
  font: 400 44px/0.95 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.badge-id .caps {
  margin: 0;
  color: var(--blue);
}

.hello {
  min-height: 6.5em;
  margin: 14px 18px 0;
  font: 400 19px/1.3 var(--serif);
}

.hello [data-hello]::after {
  content: '';
  display: inline-block;
  width: 0.42em;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stamps {
  margin: 16px 18px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--ink);
}

.stamps:empty {
  display: none;
}

.stamps div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.stamps dt {
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  line-height: 18px;
}

.stamps dd {
  display: inline-block;
  margin: 0;
}

.stamps dd.off {
  color: var(--mute);
}

.stamps .stamped dd {
  animation: stamp 0.5s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.7) rotate(-8deg);
  }
}

.bar nav .signout {
  padding: 0;
  border: 0;
  background: none;
  color: #c9c8c2;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.bar nav .signout:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hello [data-hello]::after,
  .stamps .stamped dd {
    animation: none;
  }
}

@media (max-width: 860px) {
  .office-grid {
    grid-template-columns: minmax(0, 580px);
  }

  .badge {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    padding: 0 16px 16px;
    transform: none;
  }

  .badge::before,
  .badge-head,
  .hello,
  .stamps {
    grid-column: 1 / -1;
  }

  .badge-head {
    padding: 0 0 10px;
  }

  .badge-orb {
    width: 72px;
    margin: 14px 0 0;
  }

  .badge-id {
    align-self: center;
    padding: 14px 0 0;
  }

  .badge h2 {
    font-size: 34px;
  }

  .hello {
    min-height: 4em;
    margin: 12px 0 0;
    font-size: 18px;
  }

  .stamps {
    margin: 12px 0 0;
  }
}

.receipt .fine a {
  text-underline-offset: 3px;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Small screens */

@media (max-width: 860px) {
  .does {
    grid-template-columns: 1fr;
  }

  .does li,
  .does li:not(:nth-child(3n + 1)) {
    padding: 22px 0 26px;
    border-left: 0;
  }

  .does .n {
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .bar nav a:not(.get, .signin) {
    display: none;
  }

  .auth,
  .sheet {
    padding: 28px 20px 26px;
  }

  .dial {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .dial-ends {
    grid-column: 1;
  }

  .tools li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .state {
    text-align: left;
  }

  .tool-side {
    justify-items: start;
  }

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

  .calls time,
  .recap {
    grid-column: 1 / -1;
  }

  .hero {
    background-size: auto 100%;
  }

  .day li {
    grid-template-columns: 64px 1fr;
  }

  .does-head {
    flex-direction: column;
    align-items: start;
  }

  .letter {
    --margin: 30px;
    padding: var(--line) 18px calc(var(--line) * 2) 44px;
    font-size: 12px;
  }

  .letter header {
    flex-direction: column;
    gap: 0;
  }

  .letter header .meta {
    text-align: left;
  }

  .footer .right {
    margin-left: 0;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
