/* IndQueue: counters, token slips and the people waiting at them. */

:root {
  color-scheme: light;

  --bg: #f6f3ec;
  --bg-alt: #efeadf;
  --card: #fdfbf7;
  --raised: #e9e2d5;
  --paper: #fffdf8;
  --line: rgba(31, 27, 22, 0.1);
  --line-strong: rgba(31, 27, 22, 0.18);

  --text: #1f1b16;
  --text-2: #5a5146;
  --text-3: #73695d;

  --accent: #b23c1c;
  --accent-ink: #9a3216;
  --accent-soft: rgba(178, 60, 28, 0.08);

  /* DeskRx's own brand colours, used only inside the product preview */
  --pine: #0f5446;
  --pine-soft: #e3efe9;
  --saffron: #f2b544;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-3);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--paper);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-ink);
}

.btn-dark {
  background: var(--text);
  color: var(--paper);
}

.btn-dark:hover {
  background: #39322a;
}

.btn-quiet {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-quiet:hover {
  background: var(--paper);
  border-color: rgba(31, 27, 22, 0.32);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.text-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(154, 50, 22, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  padding: 80px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

h1 {
  font-size: 60px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.lede {
  margin-top: 24px;
  max-width: 36rem;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-2);
}

/* The counter: two printed token slips */

.counter {
  position: relative;
  height: 500px;
}

.slip {
  position: absolute;
  width: 268px;
  filter:
    drop-shadow(0 1px 1px rgba(31, 27, 22, 0.08))
    drop-shadow(0 16px 24px rgba(31, 27, 22, 0.14));
}

.slip-paper {
  padding: 28px 24px 24px;
  background: var(--paper);
  /* Torn top and bottom edges of a receipt roll */
  -webkit-mask:
    radial-gradient(5px at 50% 0, #0000 98%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(5px at 50% 100%, #0000 98%, #000) 50% 100% / 12px 51% repeat-x;
  mask:
    radial-gradient(5px at 50% 0, #0000 98%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(5px at 50% 100%, #0000 98%, #000) 50% 100% / 12px 51% repeat-x;
}

.slip-front {
  left: 0;
  top: 88px;
  transform: rotate(-3deg);
  z-index: 2;
}

.slip-back {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}

.slip-back .slip-paper {
  background: #faf5ea;
}

.slip-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-strong);
}

.slip-label {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}

.slip-token {
  font-family: var(--mono);
  font-size: 72px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.slip-front .slip-token {
  color: var(--accent);
}

.slip-title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
}

.slip-lines {
  margin-top: 16px;
  font-size: 13px;
}

.slip-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dotted var(--line-strong);
}

.slip-lines li span:first-child {
  color: var(--text-3);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pine);
  font-weight: 500;
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.slip-tear {
  height: 1px;
  margin: 16px -24px 12px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 0);
  background-size: 8px 1px;
}

.slip-foot {
  font-size: 12px;
  color: var(--text-2);
}

/* Sections */

.section {
  scroll-margin-top: 64px;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.token-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.token-mark span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

h2 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.body {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 17px;
  line-height: 28px;
  color: var(--text-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}

.split-reverse > figure {
  order: -1;
}

.feature-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list .num {
  font-size: 13px;
  line-height: 24px;
  color: var(--text-3);
}

.feature-list p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}

.fact {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text);
}

/* DeskRx phone preview */

.phone-stage {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-stage figcaption {
  font-size: 13px;
  color: var(--text-3);
}

.phone {
  position: relative;
  width: 300px;
  padding: 12px;
  border-radius: 44px;
  background: #1c1915;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(31, 27, 22, 0.1),
    0 32px 64px -24px rgba(31, 27, 22, 0.4);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #1c1915;
  z-index: 1;
}

.screen {
  border-radius: 32px;
  background: #f7f6f1;
  padding: 52px 16px 20px;
  overflow: hidden;
}

.screen-top {
  padding: 0 4px;
}

.clinic {
  font-size: 17px;
  font-weight: 600;
  color: var(--pine);
}

.room {
  font-size: 12px;
  color: #5d6a64;
}

.ticket {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 84, 70, 0.08), 0 0 0 1px rgba(15, 84, 70, 0.08);
}

.t-label {
  font-size: 12px;
  color: #5d6a64;
}

.t-number {
  font-family: var(--mono);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--pine);
}

.t-rule {
  height: 1px;
  margin: 12px -16px;
  background-image: linear-gradient(to right, rgba(15, 84, 70, 0.25) 50%, transparent 0);
  background-size: 8px 1px;
}

.t-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.t-fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 500;
  color: #17221e;
}

.t-cap {
  font-size: 12px;
  color: #5d6a64;
}

.queue {
  margin-top: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 84, 70, 0.08);
  overflow: hidden;
}

.queue li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: #3e4a45;
  border-top: 1px solid rgba(15, 84, 70, 0.07);
}

.queue li:first-child {
  border-top: 0;
}

.queue li span:last-child {
  font-size: 12px;
  color: #5d6a64;
}

.queue .now span:last-child {
  color: #8a5a00;
  font-weight: 500;
}

.queue .now .mono::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--saffron);
  vertical-align: 2px;
}

.queue .you {
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 500;
}

.queue .you span:last-child {
  color: var(--pine);
  font-weight: 500;
}

.screen-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #6b7772;
}

/* MealQ phone preview, in MealQ's own colours */

.screen-meal .clinic {
  color: #9a3412;
}

.screen-meal .room,
.screen-meal .t-label {
  color: #6b5f52;
}

.screen-meal .ticket {
  box-shadow: 0 1px 2px rgba(154, 52, 18, 0.08), 0 0 0 1px rgba(154, 52, 18, 0.1);
}

.screen-meal .t-number {
  color: #9a3412;
}

.screen-meal .t-rule {
  background-image: linear-gradient(to right, rgba(154, 52, 18, 0.25) 50%, transparent 0);
}

.stages {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #8a7f72;
}

.stages li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stages li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.stages .done {
  color: #14532d;
}

.stages .done::before {
  background: #15803d;
  border-color: #15803d;
}

.stages .current {
  color: #1f1a15;
  font-weight: 500;
}

.stages .current::before {
  background: #d97706;
  border-color: #d97706;
}

.screen-meal .queue {
  box-shadow: 0 0 0 1px rgba(154, 52, 18, 0.1);
}

.order-items li span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-items li span:last-child {
  color: #3e3a35;
}

.veg,
.nonveg {
  width: 10px;
  height: 10px;
  border: 1.5px solid;
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
}

.veg {
  border-color: #15803d;
}

.nonveg {
  border-color: #9a3412;
}

.veg::after,
.nonveg::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.veg::after {
  background: #15803d;
}

.nonveg::after {
  background: #9a3412;
}

/* Custom software */

.build-head {
  max-width: 44rem;
}

.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.build-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.build-card p {
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.build-card .text-link {
  font-size: 15px;
}

.tick-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.tick-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
  border-top: 1px dotted var(--line-strong);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.steps li {
  padding: 24px 28px 28px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
}

.step-no {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.steps p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  max-width: 40rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-list div {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-list dt {
  color: var(--text-3);
}

.composer {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.05);
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.topics legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.topic {
  position: relative;
  cursor: pointer;
}

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

.topic span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.topic strong {
  font-size: 15px;
  font-weight: 500;
}

.topic small {
  font-size: 13px;
  color: var(--text-3);
}

.topic:hover span {
  border-color: rgba(31, 27, 22, 0.32);
}

.topic input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.topic input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--text);
  font: 400 16px/24px var(--sans);
  transition: border-color 150ms var(--ease);
}

.field input {
  height: 44px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(31, 27, 22, 0.32);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-error {
  margin-top: 16px;
  font-size: 14px;
  color: #b42318;
}

.composer-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hint {
  font-size: 13px;
  color: var(--text-3);
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-row p {
  margin-top: 8px;
  font-size: 14px;
}

.footer-row nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.footer-row nav a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 0 !important;
}

/* Blog (indqueue.com/blog, rendered by the DeskRx app and proxied by Caddy) */

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

.blog-hero {
  padding: 64px 0 48px;
}

.blog-hero h1 {
  max-width: 22ch;
  font-size: 48px;
  line-height: 1.08;
}

.blog-hero .lede {
  margin-top: 20px;
  max-width: 40rem;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-2);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.blog-filters a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.blog-filters small {
  font-size: 12px;
  color: var(--text-3);
}

.blog-filters a[aria-current="page"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--paper);
}

.blog-filters a[aria-current="page"] small {
  color: rgba(255, 253, 248, 0.7);
}

.blog-list-section {
  padding-top: 56px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.blog-list-section .blog-grid {
  margin-top: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.blog-card img {
  display: block;
  width: calc(100% + 48px);
  height: auto;
  margin: -24px -24px 4px;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-card h2,
.blog-card h3 {
  max-width: none;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-card h2 a,
.blog-card h3 a {
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--accent-ink);
}

.blog-card p:last-child {
  color: var(--text-2);
  font-size: 15px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}

.blog-hero .blog-meta {
  margin-top: 24px;
}

.blog-tag {
  padding: 2px 8px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  font-size: 14px;
}

.blog-column {
  max-width: calc(720px + 2 * var(--gutter));
}

.blog-crumbs {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-3);
}

.blog-crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.blog-crumbs a:hover {
  color: var(--text);
}

.blog-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.blog-body {
  font-size: 18px;
  line-height: 30px;
  color: var(--text);
}

.blog-body > * + * {
  margin-top: 20px;
}

.blog-body h2 {
  max-width: none;
  margin-top: 48px;
  font-size: 28px;
  line-height: 1.25;
}

.blog-body h3 {
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.35;
}

.blog-body ul,
.blog-body ol {
  padding-left: 24px;
}

.blog-body ul {
  list-style: disc;
}

.blog-body ol {
  list-style: decimal;
}

.blog-body li + li {
  margin-top: 8px;
}

.blog-body a {
  color: var(--accent-ink);
  text-decoration-color: rgba(154, 50, 22, 0.35);
  text-underline-offset: 3px;
}

.blog-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
}

.blog-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--raised);
}

.blog-body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--raised);
}

.blog-body pre code {
  padding: 0;
  background: none;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.blog-body th,
.blog-body td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-body hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.blog-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--raised);
  font-size: 13px;
  color: var(--text-2);
}

.blog-cta {
  margin: 56px 0 96px;
}

.blog-cta h2 {
  max-width: none;
  font-size: 26px;
  line-height: 1.25;
}

.blog-cta .actions {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 40px 0 32px;
  }

  .blog-hero h1 {
    font-size: 34px;
  }

  .blog-hero .lede {
    font-size: 17px;
    line-height: 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-body {
    font-size: 17px;
    line-height: 28px;
  }

  .blog-body h2 {
    font-size: 24px;
  }

  .blog-cta {
    margin-bottom: 64px;
  }
}

/* Entrance: one short rise for the hero */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .counter {
    animation: rise 480ms var(--ease) both;
  }

  .counter {
    animation-delay: 60ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

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

/* Tablet */

@media (max-width: 960px) {
  .hero-grid,
  .faq-grid,
  .split,
  .contact-grid,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .faq-grid {
    gap: 24px;
  }

  .counter {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .phone-stage {
    position: static;
  }

  .split-reverse > figure {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* Phone */

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .header-row {
    gap: 16px;
  }

  .nav {
    display: none;
  }

  .site-header .btn-small {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0 64px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .lede {
    font-size: 17px;
    line-height: 28px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .counter {
    height: 540px;
  }

  .slip {
    width: 232px;
  }

  .slip-paper {
    padding: 24px 20px 20px;
  }

  .slip-tear {
    margin-left: -20px;
    margin-right: -20px;
  }

  .slip-token {
    font-size: 56px;
  }

  .slip-front {
    left: 0;
    top: 200px;
  }

  .section {
    padding: 72px 0;
  }

  h2 {
    font-size: 30px;
  }

  .tick-list,
  .topics {
    grid-template-columns: 1fr;
  }

  .build-card,
  .composer {
    padding: 20px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .phone {
    width: 280px;
  }
}
