/* Jost and Source Serif 4 under the SIL Open Font License 1.1. Texts are in licenses/. */

:root {
  --ink: #0f1b2d;
  --amber: #f2a93b;
  --amber-deep: #a8680c;
  --bone: #f6f2ea;
  --white: #ffffff;
  --graphite: #5b6472;
  --sans: "Jost", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --text: 42.5rem;
  --wide: 60rem;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A9, U+00B7, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026, U+2192;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A9, U+00B7, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026, U+2192;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  z-index: 30;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--text));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.prose {
  max-width: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bone);
  border-bottom: 1px solid var(--graphite);
}

.header-inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo img {
  width: 168px;
  min-width: 140px;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.15rem;
  border-radius: 6px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}

.site-header .btn {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  font-size: 0.8125rem;
  width: auto;
  flex: 0 0 auto;
}

.btn:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

h1,
h2,
h3,
.price {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  max-width: 16ch;
}

h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  max-width: 20ch;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0;
}

.hero .kicker {
  color: var(--white);
}

.hero h1,
.final h2 {
  color: var(--white);
}

.hero .sub {
  margin-top: 1.15rem;
  font-size: 1.125rem;
}

.hero .actions,
.final .actions,
.quiz .actions {
  margin-top: 1.6rem;
}

.fine {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.hero .fine,
.final .fine {
  color: var(--white);
}

.hero :focus-visible,
.final :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

.band {
  padding: 4rem 0;
}

.band-bone {
  background: var(--bone);
}

.band-white {
  background: var(--white);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  margin: 0;
  padding: 0.85rem 0 0.85rem 0.9rem;
  border-left: 2px solid var(--amber-deep);
  max-width: 62ch;
}

.ticks li + li {
  margin-top: 0.75rem;
}

.closing {
  margin-top: 1.35rem;
}

.diagram {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.panel {
  margin: 0;
}

.panel figcaption {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.today {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.today ul,
.handed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.today li,
.handed li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--graphite);
  max-width: none;
}

.bracket {
  width: 1.25rem;
  align-self: stretch;
  border: 2px solid var(--ink);
  border-left: 0;
  margin: 0.45rem 0;
}

.you {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  padding: 0.9rem 1rem;
  min-width: 4.5rem;
  text-align: center;
}

.caption {
  margin: 1rem 0 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

.patterns {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.patterns li {
  background: var(--white);
  padding: 1.1rem 1.15rem 1.2rem;
  max-width: none;
}

.patterns p {
  margin: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.35rem;
  max-width: 62ch;
}

.steps li::before {
  content: counter(step);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--amber-deep);
  padding-top: 0.15rem;
}

.sheet {
  margin: 1.75rem 0 0;
  background: var(--bone);
  border: 1px solid var(--graphite);
  padding: 1rem 1rem 0.4rem;
  overflow-x: auto;
}

.sheet figcaption {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  font-size: 1rem;
}

.sheet th,
.sheet td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem 0.7rem 0;
  border-top: 1px solid var(--graphite);
}

.sheet th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  border-top: 0;
}

.keep {
  margin: 0.25rem 0 1.25rem;
  padding-left: 1.15rem;
}

.keep li {
  margin: 0.35rem 0;
  max-width: 62ch;
}

.keep li::marker {
  color: var(--ink);
}

.price {
  margin: 0.25rem 0 0.85rem;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  max-width: 18ch;
}

.fit {
  display: grid;
  gap: 1.5rem;
}

.fit h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  border-bottom: 1px solid var(--graphite);
  padding-bottom: 0.35rem;
}

.faq summary {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.45rem 0;
}

.faq details p {
  margin: 0.15rem 0 0.85rem;
}

.final {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.35rem;
  color: var(--white);
  text-underline-offset: 0.2em;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}

.site-footer .logo img {
  width: 180px;
}

.tagline {
  margin: 1rem 0 0.35rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  max-width: none;
}

.address,
.contact-line,
.copy {
  margin: 0.2rem 0;
  max-width: 36rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-top: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 0.2em;
}

.page-main {
  padding: 3.5rem 0 4rem;
}

.page-main h1 {
  margin-bottom: 1.15rem;
}

@media (min-width: 800px) {
  body {
    font-size: 1.25rem;
  }

  .band,
  .hero,
  .final {
    padding: 6rem 0;
  }

  .btn {
    width: auto;
  }

  .diagram,
  .patterns,
  .fit {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    width: min(100% - 4rem, var(--wide));
  }

  .wrap {
    width: min(100% - 4rem, var(--text));
  }

  .wrap-wide {
    width: min(100% - 4rem, var(--wide));
  }
}

@media (max-width: 799px) {
  .actions .btn {
    width: 100%;
  }
}

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