/* Beforehand Advisory: Evidence pack direction, web version (lighter: white pages, Paper bands).
   Colours and fonts are the exact values in the Brand Style Guide, Direction 1. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --navy: #1C2B3A;
  --paper: #F7F5F0;
  --teal: #1E6B66;
  --slate: #5B6672;
  --rule: #D9D6CF;
  --mist: #ECEAE4;
  --white: #FFFFFF;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --measure: 680px;
  --wide: 1040px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10;
}
.skip:focus { top: 8px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.2;
}
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}
@media (min-width: 760px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
}

p { margin: 0 0 16px; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.measure { max-width: var(--measure); }

section { padding: 48px 0; }
@media (min-width: 760px) { section { padding: 72px 0; } }
.band { background: var(--paper); }

.eyebrow {
  color: var(--slate);
  font-size: 13px;
  margin: 0 0 8px;
}

.small, small {
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}
.band .small, .band small { color: var(--slate); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { display: block; width: 132px; height: auto; }
.brand .strap { display: none; color: var(--teal); font-size: 14px; border-left: 1px solid var(--rule); padding-left: 12px; }
@media (min-width: 520px) { .brand .strap { display: inline; } }
.nav { display: none; gap: 24px; }
.nav a { color: var(--navy); text-decoration: none; font-size: 16px; }
.nav a:hover { text-decoration: underline; }
@media (min-width: 900px) { .nav { display: flex; } }
.header-right { display: flex; align-items: center; gap: 24px; }

/* Button: the one action */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 3px;
  border: 2px solid var(--teal);
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn:focus-visible { outline-color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 15px; }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 760px) { .hero { padding-top: 88px; padding-bottom: 96px; } }
.hero h1 { max-width: 18em; }
.hero .sub { font-size: 19px; max-width: 34em; margin-bottom: 28px; }
.hero .under { margin: 16px 0 0; color: var(--slate); font-size: 15px; }

/* Problem */
.problem-lines { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.problem-lines li {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  border-left: 3px solid var(--teal);
  padding-left: 16px;
}
@media (min-width: 760px) { .problem-lines li { font-size: 22px; } }

/* Columns */
.cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cols.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  padding: 20px;
}
.card p:last-child { margin-bottom: 0; }

/* Five areas */
.areas { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 0; counter-reset: area; }
.areas li { padding: 16px 0 16px 48px; border-top: 1px solid var(--rule); position: relative; counter-increment: area; }
.areas li:last-child { border-bottom: 1px solid var(--rule); }
.areas li::before {
  content: counter(area);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--teal);
  width: 32px;
}
.areas strong { display: block; font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { border-top: 3px solid var(--teal); padding-top: 12px; }
.steps .when { color: var(--slate); font-size: 15px; display: block; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
.compare caption { text-align: left; color: var(--slate); font-size: 13px; padding-bottom: 8px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--rule); }
.compare thead th { background: var(--mist); font-weight: 600; }
.compare tbody th { font-weight: 600; background: var(--paper); }
.compare .us { background: var(--paper); box-shadow: inset 0 3px 0 var(--teal); }
.compare thead .us { background: var(--mist); }
@media (max-width: 759px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; left: -9999px; }
  .compare caption { display: block; width: 100%; }
  .compare tr { margin-bottom: 16px; border: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; border-bottom: 1px solid var(--rule); }
  .compare td::before {
    content: attr(data-label);
    display: block;
    color: var(--slate);
    font-size: 13px;
    margin-bottom: 2px;
  }
  .compare td:last-child { border-bottom: 0; }
}

/* Sample */
.sample { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .sample { grid-template-columns: 300px 1fr; gap: 40px; } }
.sample figure { margin: 0; }
.sample img { display: block; border: 1px solid var(--rule); width: 100%; max-width: 300px; }
.sample figcaption { color: var(--slate); font-size: 13px; margin-top: 8px; }

/* Founder */
.founder { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .founder { grid-template-columns: 220px 1fr; gap: 40px; } }
.founder img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); }
@media (min-width: 760px) { .founder img { width: 220px; height: 220px; } }
.founder .line { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; margin-bottom: 16px; }
.facts { padding-left: 20px; margin: 0; }
.facts li { margin-bottom: 8px; }

/* Straight answers */
.qa { display: grid; gap: 24px; }
@media (min-width: 760px) { .qa { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
.qa h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.qa p:last-child { margin-bottom: 0; }

/* Close */
.close { text-align: left; }
.close p { font-size: 19px; max-width: 30em; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 40px 0; font-size: 15px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--mist); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer .firm { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0; }
.site-footer p { margin: 0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .privacy { color: var(--mist); font-size: 14px; max-width: 40em; }

/* Articles */
.article-head { padding: 48px 0 24px; }
.article-head .meta { color: var(--slate); font-size: 15px; margin: 0; }
.article-body { padding: 0 0 48px; }
.article-body h2 { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--teal); }
.article-body h3 { margin-top: 24px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 12px 16px 12px 20px;
  background: var(--mist);
  border-left: 3px solid var(--teal);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 16px; }
.article-body li { margin-bottom: 8px; }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.article-body .source { color: var(--slate); font-size: 13px; }
.callout {
  background: var(--mist);
  border-left: 3px solid var(--teal);
  padding: 20px;
  margin: 40px 0 0;
}
.callout p { margin: 0 0 16px; font-size: 18px; }
.callout p:last-child { margin-bottom: 0; }
.template-note {
  background: var(--paper);
  border: 1px dashed var(--slate);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--slate);
  margin: 0 0 24px;
}
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-top: 1px solid var(--rule); padding: 20px 0; }
.article-list li:last-child { border-bottom: 1px solid var(--rule); }
.article-list h2 { font-size: 21px; margin-bottom: 4px; }
.article-list .meta { color: var(--slate); font-size: 14px; margin: 0 0 8px; }
.empty-slot { min-height: 8px; }
