/* The pages that are mostly words: the blog index, an article, and About.
 *
 * This file assumes landing.css has already loaded -- it owns the tokens, the
 * bar, the buttons and the foot. Nothing here redefines a colour or a radius;
 * a page of reading should look like the same company as the page that sold
 * them on it, which means borrowing its parts rather than inventing new ones.
 *
 * The one thing a landing page does not need and an article cannot do without
 * is a measure: a column narrow enough to read a thousand words in. That is
 * what most of what follows is about.
 */

/* The bar is fixed, so every page of this kind starts below it. */
.page { padding-top: calc(var(--bar-h) + clamp(22px, 4vw, 54px)); }

/* ---- Breadcrumb ----------------------------------------------------------------- */

/* Shown because a reader arriving from a search result has no idea where they
   are, and marked up as BreadcrumbList for the same reason. */

.crumbs { display: flex; margin-bottom: clamp(12px, 1.6vw, 18px); flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text-4); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--text-4); font-weight: 600; }

/* ---- A page's own head ---------------------------------------------------------- */

.phead { display: grid; gap: 16px; max-width: 760px; }
.phead__k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.phead h1 { font-size: clamp(31px, 5vw, 56px); }
.phead .lede { max-width: 62ch; font-size: clamp(16.5px, 1.6vw, 20px); }
.phead--wide { max-width: 900px; }

/* ---- Who wrote it, and when ----------------------------------------------------- */

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.byline .face { width: 34px; height: 34px; }
.byline b { color: var(--text-2); font-weight: 800; }
.byline small { color: var(--text-4); font-size: 13.5px; }
.byline__who { display: grid; gap: 1px; }
.byline__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.byline time { color: var(--text-3); }

/* ---- The chip that names the subject -------------------------------------------- */

.topic {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---- Cover art ------------------------------------------------------------------- */

/* No photography. A piece of flat art built from the same marks as the rest of
   the site, on the blue, so a list of articles reads as one publication. */

.art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(150deg, var(--blue) 0%, #063f66 62%, var(--bg-deep) 100%);
  color: var(--brand);
}
.art svg { width: 44%; max-width: 160px; height: auto; }
.art--wide {
  aspect-ratio: 3 / 1;
  max-height: 300px;
  margin-top: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: clamp(18px, 2.4vw, 26px);
}
.art--wide svg { width: 30%; max-width: 190px; }

/* ---- The index ------------------------------------------------------------------- */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(28px, 4vw, 52px);
}

.post {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: clamp(18px, 2.4vw, 24px);
  background: var(--surface);
  box-shadow: var(--edge);
  transition: transform 220ms var(--out), border-color 220ms var(--out), box-shadow 220ms var(--out);
}
.post:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: var(--edge-lg); }
.post:focus-within { border-color: var(--brand-line); }
.post__body { display: grid; align-content: start; gap: 12px; padding: clamp(16px, 2.2vw, 24px); }
.post__body h2 { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.34; }
.post__body h2 a { color: var(--text); text-decoration: none; }
.post__body h2 a:hover { color: var(--brand-strong); }
/* The whole card is the target, with the heading's link doing the work. */
.post__body h2 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post p { color: var(--text-3); font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.post__meta .byline { font-size: 13px; }
.post__meta .byline .face { width: 26px; height: 26px; }

/* The newest one gets the room, because a list where everything is the same
   size tells the reader nothing about where to start. */
@media (min-width: 760px) {
  .posts > .post:first-child {
    grid-column: 1 / -1;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .posts > .post:first-child .art { aspect-ratio: auto; height: 100%; border-bottom: 0; border-inline-end: 1px solid var(--hairline); }
  .posts > .post:first-child .post__body { align-content: center; gap: 14px; padding: clamp(22px, 3vw, 40px); }
  .posts > .post:first-child h2 { font-size: clamp(24px, 2.8vw, 34px); }
  .posts > .post:first-child p { font-size: 16px; }
}

/* ---- An article ------------------------------------------------------------------ */

.article { display: grid; gap: clamp(26px, 4vw, 44px); margin-top: clamp(24px, 3.4vw, 40px); }

@media (min-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: clamp(40px, 5vw, 72px); }
  .article__side { position: sticky; top: calc(var(--bar-h) + 28px); }
}

/* The measure. 68 characters is about as wide as a line can be before the eye
   loses the start of the next one. */
.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--text-2); font-size: clamp(16.5px, 1.35vw, 18.5px); line-height: 1.85; text-wrap: pretty; }
.prose h2 {
  margin-top: clamp(38px, 4.6vw, 64px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.prose h3 { margin-top: clamp(26px, 3vw, 38px); font-size: clamp(18px, 1.7vw, 21px); }
.prose a { color: var(--brand-strong); text-decoration: underline; text-decoration-color: var(--brand-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--text); font-weight: 800; }
.prose em { color: var(--text); font-style: italic; }

.prose ul, .prose ol { display: grid; gap: 10px; padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 30px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.8; }
.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; }
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* A line worth stopping on, set apart without shouting. */
.prose .note {
  margin-top: clamp(22px, 2.6vw, 32px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  border-inline-start: 3px solid var(--brand);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  color: var(--text);
  font-size: clamp(16.5px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.7;
}

/* ---- Contents ------------------------------------------------------------------- */

.toc { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); }
.toc h2 { color: var(--text-3); font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.toc ol { display: grid; gap: 7px; counter-reset: t; list-style: none; }
.toc a { display: block; color: var(--text-3); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a[aria-current] { color: var(--brand-strong); }
.toc--inline { margin-top: clamp(22px, 3vw, 30px); max-width: 68ch; }
@media (min-width: 1000px) { .toc--inline { display: none; } }
@media (max-width: 999px) { .article__side .toc { display: none; } }

/* ---- Questions ------------------------------------------------------------------- */

/* Written as questions and answers because that is how they are asked, and
   marked up as FAQPage because that is how they get quoted. */

.qa { margin-top: clamp(44px, 6vw, 80px); max-width: 68ch; }
.qa > h2 { margin-bottom: 18px; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -0.02em; }
.qa__item { border-bottom: 1px solid var(--hairline); }
.qa__item:first-of-type { border-top: 1px solid var(--hairline); }
.qa__item h3 { padding-block: 16px 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; }
.qa__item p { padding-block: 8px 18px; color: var(--text-2); font-size: 16px; line-height: 1.8; text-wrap: pretty; }

/* ---- Keep reading ---------------------------------------------------------------- */

.more { margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--hairline); }
.more > h2 { margin-bottom: 18px; color: var(--text-3); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.more .posts { margin-top: 0; }
.more .posts > .post:first-child { grid-column: auto; grid-template-rows: auto 1fr; grid-template-columns: none; }
.more .posts > .post:first-child .art { aspect-ratio: 16 / 9; height: auto; border-bottom: 1px solid var(--hairline); border-inline-end: 0; }
.more .posts > .post:first-child .post__body { align-content: start; gap: 12px; padding: clamp(16px, 2.2vw, 24px); }
.more .posts > .post:first-child h2 { font-size: clamp(19px, 1.9vw, 23px); }
.more .posts > .post:first-child p { font-size: 15px; }

/* ---- The band at the end ---------------------------------------------------------- */

/* Every page of words ends with the same offer, because a reader who got to
   the bottom of a thousand words on SEO is the reader this is for. */

.band {
  display: grid;
  gap: 20px;
  margin-top: clamp(52px, 7vw, 96px);
  margin-bottom: clamp(52px, 7vw, 96px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--brand-line);
  border-radius: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(254, 204, 2, 0.14), transparent 62%),
    var(--bg-deep);
  box-shadow: var(--edge-lg);
}
.band h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.26; letter-spacing: -0.02em; text-wrap: balance; }
.band p { max-width: 54ch; color: var(--text-3); font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.8; }
.band .start { max-width: 520px; }
.band .slog { margin-top: 2px; }

@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 36px; }
}

/* ---- About -------------------------------------------------------------------------- */

.about__grid { display: grid; gap: clamp(34px, 5vw, 60px); margin-top: clamp(26px, 3.6vw, 44px); }

/* The five, as faces. The same portraits the landing page introduces, at the
   size a staff page uses. */
.crewlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: clamp(14px, 2vw, 20px); margin-top: clamp(22px, 3vw, 34px); }
.crewlist li {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--edge);
}
.crewlist .face { width: 56px; height: 56px; font-size: 19px; }
.crewlist__id { display: grid; gap: 4px; }
.crewlist__id b { color: var(--text); font-size: 16.5px; font-weight: 800; }
/* The role, not the wrapper: a bare `span` here would also catch the two
   elements that hold the name and the line under it. */
.crewlist__id > span { color: var(--brand-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.crewlist__id small { color: var(--text-3); font-size: 14px; line-height: 1.65; }

/* The human lead, on the blue, so the one person reads as a different kind of
   thing from the five. */
.human {
  display: grid;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 26px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(0, 106, 167, 0.5);
  border-radius: 22px;
  background: linear-gradient(140deg, var(--blue-soft), transparent 70%), var(--surface);
}
.human h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(17px, 1.7vw, 20px); }
.human h3 .ic { width: 22px; height: 22px; color: var(--blue-strong); }
.human p { max-width: 58ch; color: var(--text-2); font-size: 15.5px; line-height: 1.8; }

/* ---- Tighter screens -------------------------------------------------------------- */

@media (max-width: 600px) {
  /* The separators are there to hold a line together; once the line wraps
     they are just marks at the start of a row. */
  .byline__dot { display: none; }
  .phead h1 { font-size: clamp(27px, 8vw, 36px); }
  .prose h2 { font-size: clamp(21px, 6.2vw, 26px); }
  .band { text-align: start; }
}

/* ---- Pricing ---------------------------------------------------------------------- */

/* Three cards, the recommended one lifted rather than shouted. The price is
   the largest thing on each, because that is what the visitor came for. */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 52px);
}

.plan {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: clamp(20px, 2.6vw, 26px);
  background: var(--surface);
  box-shadow: var(--edge);
}

.plan--best {
  border-color: var(--brand-line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(254, 204, 2, 0.12), transparent 60%),
    var(--surface);
  box-shadow: var(--edge-lg);
}

.plan__flag {
  width: fit-content;
  margin-bottom: 2px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.plan__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -0.02em; }
.plan__line { color: var(--text-3); font-size: 15px; font-weight: 600; }

.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan__price b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan__price span { color: var(--text-3); font-size: 15px; font-weight: 700; }
.plan__vat { margin-top: -4px; color: var(--text-4); font-size: 13px; }

.plan .btn { margin-top: 12px; width: 100%; }
.plan__who { margin-top: 4px; color: var(--text-3); font-size: 14.5px; line-height: 1.7; text-wrap: pretty; }

.plan__has { display: grid; gap: 10px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.plan__has li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.plan__has .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); stroke-width: 2.4; }
.plan__has strong { color: var(--text); font-weight: 800; }

.plans__note { max-width: 70ch; margin-top: clamp(18px, 2.4vw, 26px); color: var(--text-3); font-size: 14.5px; line-height: 1.8; }

/* ---- Contact ---------------------------------------------------------------------- */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(26px, 3.4vw, 44px);
}

.way {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--edge);
}
.way__label { color: var(--text-3); font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.way__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -0.015em; }
.way__value a { color: var(--brand-strong); text-decoration: none; }
.way__value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.way__note { color: var(--text-3); font-size: 14.5px; line-height: 1.7; text-wrap: pretty; }

.addr { color: var(--text) !important; font-weight: 700; font-style: normal; line-height: 1.6; }

/* ---- The legal two ------------------------------------------------------------------ */

/* The date is the first thing a reader of a policy looks for. */
.stamp {
  margin-top: clamp(16px, 2vw, 22px);
  color: var(--text-4);
  font-size: 13.5px;
  font-weight: 700;
}
.stamp time { color: var(--text-3); }

/* A page that is a heading and a paragraph: the login stub, the API note, the
   404. Set a little larger, because there is almost nothing on them. */
.prose--lead { margin-top: clamp(18px, 2.4vw, 28px); }
.prose--lead p { font-size: clamp(17px, 1.5vw, 19.5px); }
