/* Backline One — all styling.
   Colour, type and layout follow the Backline One brand specification.
   See Conventions in README.md before changing any of it. */

/* ---------------------------------------------------------------- fonts
   Archivo is self-hosted so the site makes no external requests.
   Archivo is a variable font: one file per unicode subset covers the
   whole weight axis, which gives us 400, 500 and 800. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */

:root {
  --ink: #201E1D;
  --ground: #F3F2F2;
  --red: #EC3013;
  --red-hover: #DD2B0F;
  --surface: #EAE9E9;
  --muted: #605D5D;
  --deep-red: #AE1800;
  --rule: rgba(32, 30, 29, .4);
  --rule-reversed: rgba(243, 242, 242, .4);

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 62ch;
}

/* ---------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
}

/* Focus is never the browser default. */
:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* ------------------------------------------------------------ typography
   The scale is fixed. When a layout feels tight, change the spacing. */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  text-align: left;
}

.display {
  font-size: clamp(44px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 17ch;
}

.heading {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.label {
  display: block;
  margin: 0 0 14px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.lede {
  font-size: 19px;
  line-height: 1.5;
}

.small {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

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

/* Red at paragraph size is always the deep step (6.4:1). */
.deep-red {
  color: var(--deep-red);
}

/* ---------------------------------------------------------------- layout */

.wrap {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 2px solid var(--rule);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------- header */

.site-head {
  border-bottom: 2px solid var(--rule);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.lockup img {
  width: 40px;
  height: 40px;
  flex: none;
}

.wordmark {
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-nav a {
  display: inline-block;
  padding: 4px 0;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--red);
}

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

/* --------------------------------------------------------------- buttons
   The label is 19px / 800. At that size and weight WCAG's large-text
   threshold (3:1) applies, so signal red at 3.78:1 passes AA. */

.btn {
  display: inline-block;
  padding: 18px 24px;
  border: 0;
  background: var(--red);
  color: var(--ground);
  font-family: inherit;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-wide {
  display: block;
  width: 100%;
  max-width: 560px;
}

.btn-ink {
  background: var(--ink);
  color: var(--ground);
}

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

/* ----------------------------------------------------------- cell grids
   Rules are drawn by the cells themselves, never by the container.
   The 2px container padding stops the outer ring of edge cells clipping. */

.cells {
  display: grid;
  gap: 2px;
  padding: 2px;
  background: var(--ground);
}

.cell {
  padding: 26px 22px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--rule);
}

.cell h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.cell p {
  margin-top: 10px;
}

.cell-num {
  display: block;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.035em;
}

.cell-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--deep-red);
}

@media (min-width: 700px) {
  .cells-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cells-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------ full rows */

.rows {
  border-bottom: 2px solid var(--rule);
}

.row {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 2px solid var(--rule);
}

.row-key {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.row-num {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.row-name {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.row p {
  margin: 0;
}

@media (min-width: 700px) {
  .row {
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 40px;
    padding: 30px 0;
  }
}

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

.service {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 2px solid var(--rule);
}

.service-name {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* Heading-size red: 3.78:1 clears the 3:1 large-text threshold. */
.service-word {
  color: var(--red);
}

.service-def {
  margin-top: 14px;
  padding-bottom: 24px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 68ch;
}

.service-rule {
  height: 2px;
  margin-bottom: 28px;
  background: var(--rule);
  border: 0;
}

.tasks {
  display: grid;
  gap: 22px 48px;
}

.task {
  margin: 0;
  max-width: 52ch;
}

.task b {
  font-weight: 800;
}

.task span {
  color: var(--muted);
}

@media (min-width: 700px) {
  .tasks {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------- closing panel
   The one place red runs full-bleed. Display type and the 26px/800 call to
   action clear 3:1; nothing body-sized is ever set on red. */

.closing {
  background: var(--red);
  color: var(--ground);
  padding-top: 64px;
  padding-bottom: 64px;
}

.closing h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 22ch;
}

.closing .domain {
  margin-top: 32px;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.closing .btn {
  margin-top: 32px;
}

/* A red outline is invisible on the red panel; ink at 3.95:1 is not. */
.closing :focus,
.closing :focus-visible {
  outline-color: var(--ink);
}

/* ---------------------------------------------------------------- forms */

.form {
  max-width: 560px;
  margin-top: 8px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--rule);
  background: var(--ground);
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding-top: 48px;
  padding-bottom: 56px;
  background: var(--ink);
  color: var(--ground);
}

.site-foot a {
  color: var(--ground);
}

.foot-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--rule-reversed);
}

.site-foot .label {
  color: rgba(243, 242, 242, .72);
}

.foot-nav ul {
  display: grid;
  gap: 8px;
}

.foot-nav a {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-nav a:hover {
  border-bottom-color: var(--red);
}

.foot-legal {
  padding-top: 28px;
  display: grid;
  gap: 12px;
}

.foot-legal p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(243, 242, 242, .78);
  max-width: 76ch;
}

.site-foot :focus,
.site-foot :focus-visible {
  outline-color: var(--red);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

/* -------------------------------------------------------------- utility */

.stack > * + * {
  margin-top: 28px;
}

.note {
  padding: 20px 22px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--rule);
}

.note p {
  max-width: 72ch;
}

/* Footer text on ink: 9.7:1 and 8.4:1 respectively. Muted is never used
   on the dark field — it only reaches 2.7:1 there. */

.foot-blurb {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(243, 242, 242, .78);
  max-width: 34ch;
}

.foot-contact {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.foot-contact a {
  font-weight: 500;
}

.cta-block {
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 2px solid var(--rule);
}

.cta-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 24ch;
}

.cta-block .btn {
  margin-top: 28px;
}

.no-sales {
  padding-top: 40px;
  border-top: 2px solid var(--rule);
}

.todo {
  padding: 20px 22px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--rule);
  max-width: 560px;
}

.todo p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Spacing, never type size, resolves tight layouts. */
.display + .lede,
.service-name + .service-def {
  margin-top: 26px;
}

.heading + p,
.heading + .cells,
.heading + .note,
.heading + .form,
.label + .cells,
.label + .rows,
.cells + p,
.form + p,
p + .todo {
  margin-top: 26px;
}

.section-head + .wrap {
  margin-top: 28px;
}
