@charset "utf-8";

/* Firstline Desk — the whole stylesheet.
   Typefaces are self-hosted from this origin under the SIL Open Font License
   1.1. There is no font CDN, no script CDN and no third-party origin of any
   kind, which is what makes the claim on /privacy true at the network level
   rather than only in the copy. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* The seven-role palette. Each colour has exactly one job; the accent means one
   thing only — a quoted response-time commitment — and is never a button. */
:root {
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #15181D;
  --action: #0D4A6E;
  --accent: #B45309;
  --muted: #5A6270;
  --rule: #E2DED5;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 68ch;
  --gutter: 1.5rem;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; max-width: 20ch; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.25rem; }

@media (min-width: 48rem) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

p, ul, ol, dl, table { margin: 0 0 1.1rem; }
p, li { max-width: var(--measure); }
ul, ol { padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--action); text-decoration: underline; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
  border-radius: 2px;
}

strong, b { font-weight: 500; }

code, .mono, .quotelabel {
  font-family: var(--mono);
  font-size: 0.9em;
}

.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.src { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 0.2rem; }
.accent { color: var(--accent); }
.tnum { font-variant-numeric: tabular-nums; }

/* Layout ------------------------------------------------------------------ */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--action);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* Masthead ---------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
}
.brand svg { display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-left: auto; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--action); color: var(--action); }

/* Sections ---------------------------------------------------------------- */

main { display: block; }

.section { padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.section > .wrap > :last-child { margin-bottom: 0; }

.hero { padding-top: 3rem; padding-bottom: 3rem; }
.hero p.lead { max-width: 40ch; }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Call to action ---------------------------------------------------------- */

.cta { margin: 1.75rem 0 0; }
.btn {
  display: inline-block;
  background: var(--action);
  color: var(--surface);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--action);
  border-radius: 2px;
  text-decoration: none;
}
.btn:hover { background: #0A3A57; }
.btn-wide { display: block; text-align: center; max-width: 26rem; }
.cta .note { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Cards, panels, tables --------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.25rem;
}
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 1rem;
}
.quote p { margin-bottom: 0.4rem; }
.quote .figure { color: var(--accent); font-weight: 500; }

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
caption { text-align: left; color: var(--muted); font-size: 0.8125rem; padding-bottom: 0.4rem; }
th, td { border: 1px solid var(--rule); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
th { font-weight: 500; background: var(--surface); }
td.num, th.num { font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; margin-bottom: 1.1rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding-left: 2.4rem;
  position: relative;
  margin-bottom: 0.9rem;
  max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 50%;
  text-align: center;
  line-height: 1.6rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--action);
  font-weight: 500;
}
.steps .day { display: block; color: var(--muted); font-size: 0.875rem; }

.ticks, .crosses { list-style: none; padding: 0; }
.ticks li, .crosses li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--action); }
.crosses li::before { content: "\2715"; position: absolute; left: 0; color: var(--muted); }

.price { font-family: var(--serif); font-size: 2.25rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* FAQ --------------------------------------------------------------------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " \203A"; color: var(--muted); }
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq details > p:last-child { margin-bottom: 0; }

/* Closing block ----------------------------------------------------------- */

.closing { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.closing p.lead { max-width: 46ch; }

/* Footer ------------------------------------------------------------------ */

.foot { padding: 2.25rem 0 3rem; color: var(--muted); font-size: 0.9375rem; }
.foot a { color: var(--action); }
.foot .brand { color: var(--muted); font-size: 1rem; margin-bottom: 0.75rem; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.foot p { max-width: 60ch; }

/* Worked example ---------------------------------------------------------- */

.redacted {
  background: var(--rule);
  color: var(--muted);
  padding: 0 0.3em;
  border-radius: 2px;
  font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
