/* klinto.ai. One stylesheet for every page except the blog, which has its own. */

/* Fonts: Epilogue, served from this site. Licence in /assets/fonts/OFL.txt */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/epilogue-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/epilogue-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/epilogue-latin-800-normal.woff2') format('woff2');
}

/* Base */
body {
  margin: 0;
  background: #231f20;
  color: #fff9ef;
  font-family: 'Epilogue', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
p, h1, h2, h3, ul, ol, dl, dd, pre {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: .3em;
}
a:hover {
  text-decoration-color: #df1860;
  text-decoration-thickness: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: #fff9ef;
  color: #231f20;
  font-weight: 600;
}
.skip:focus {
  left: 0;
}

/* Layout */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: clamp(22px, 4vw, 32px);
  padding-right: clamp(22px, 4vw, 32px);
  box-sizing: border-box;
}
.head {
  padding-top: 36px;
}
.section {
  padding-top: clamp(3rem, 7vw, 5rem);
}
.section-rule {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 32px;
  border-top: 1px solid #fff9ef;
}
.section-rule-ink {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #231f20;
}
.band {
  background: #fff9ef;
  color: #231f20;
}
.band-gap {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.band-gap-sm {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.band-pad {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* Header and navigation */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 19px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #ff74a3;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 51px;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}
.nav-link {
  padding: 14px 0;
}
.is-current {
  font-weight: 800;
  text-decoration: none;
}

/* Buttons and links */
.btn {
  display: inline-block;
  background: #fff9ef;
  color: #231f20;
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  text-decoration: underline;
  text-decoration-color: #df1860;
  text-decoration-thickness: 2px;
}
.btn-sm {
  padding: 10px 16px;
}
.btn-dark {
  background: #231f20;
  color: #fff9ef;
}
.link {
  font-weight: 600;
  padding: 12px 0;
}
.link-block {
  display: inline-block;
}

/* Type */
.display {
  margin-bottom: 40px;
  font-size: clamp(2.6rem, 6.1vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 1.02;
}
.title {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
  text-wrap: balance;
}
.title-narrow {
  max-width: 18ch;
}
.h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: balance;
}
.h2-sm {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.h3 {
  margin: 28px 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.lead {
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  line-height: 1.45;
  max-width: 40ch;
}
.text {
  font-size: 1.12rem;
  max-width: 52ch;
}
.fine {
  font-size: 0.85rem;
}
.note {
  font-size: 15px;
}
.label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff74a3;
}
.on-light {
  color: #df1860;
}
.group-label {
  margin-top: 40px;
  padding-bottom: 12px;
}
.pullquote {
  margin-top: 36px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-wrap: balance;
}
.pink {
  color: #df1860;
}
.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Home: hero */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}
.hero-main {
  flex: 1.5 1 380px;
  min-width: 0;
}
.hero-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  max-width: 36ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin-top: 28px;
}
.struck-list {
  flex: 1 1 280px;
  min-width: 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.struck {
  color: rgba(255,249,239,.62);
  text-decoration-color: #df1860;
  text-decoration-thickness: 3px;
}
.credential {
  padding: 22px 0;
  border-top: 1px solid rgba(255,249,239,.24);
  font-size: 1.12rem;
}

/* Home: the 68.3% band */
.stat {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 56px;
}
.stat-figure {
  flex: 0 1 auto;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: #df1860;
}
.stat-body {
  flex: 1 1 320px;
  min-width: 0;
}

/* Ruled lists */
.rows {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid rgba(255,249,239,.24);
}
.check {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,249,239,.24);
}
.check-name {
  flex: 1 1 240px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}
.check-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.check-catches {
  flex: 2 1 320px;
}
.step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 8px 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,249,239,.24);
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ff74a3;
}
.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.step-text {
  font-size: 1.12rem;
  line-height: 1.5;
}
.step-catches {
  line-height: 1.5;
}
.next {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,249,239,.24);
}
.next-text {
  line-height: 1.5;
}

/* Definition grids */
.cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}
.card {
  padding: 20px 0;
  border-top: 1px solid rgba(255,249,239,.24);
}
.card-text {
  margin-top: 6px;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 40ch;
}
.defs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  column-gap: 48px;
}
.def {
  padding: 19px 0;
  border-top: 1px solid rgba(255,249,239,.24);
}
.def-term {
  font-weight: 800;
  font-size: 1.15rem;
}
.def-text {
  margin-top: 7px;
  line-height: 1.55;
  max-width: 42ch;
}
.facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  column-gap: 32px;
}
.fact {
  padding: 14px 0;
  border-top: 1px solid rgba(35,31,32,.22);
}
.fact-text {
  margin-top: 4px;
  line-height: 1.45;
}

/* Sample task */
.code-block {
  margin-top: 28px;
  padding: 22px;
  background: #231f20;
  border-radius: 4px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
  color: #fff9ef;
}
.excerpt {
  padding: 18px 20px;
  border: 1px solid rgba(35,31,32,.35);
  border-radius: 4px;
  white-space: pre-wrap;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 8px;
}
.scores {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
}
.scores th, .scores td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid rgba(35,31,32,.22);
  font-weight: 400;
  vertical-align: top;
  text-align: left;
}
.scores thead th {
  font-weight: 800;
  font-size: .85rem;
  color: #df1860;
}

/* Brief form */
.form-card {
  margin-top: 28px;
  max-width: 640px;
  padding: clamp(18px, 4vw, 28px);
  background: #fff9ef;
  color: #231f20;
  border-radius: 8px;
  box-sizing: border-box;
}
.form-frame {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
}

/* Closing call to action and footer */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.cta-text {
  max-width: 34ch;
  flex: 1 1 320px;
}
.foot {
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 48px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

/* Utilities */
.measure-30 {
  max-width: 30ch;
}
.measure-44 {
  max-width: 44ch;
}
.measure-46 {
  max-width: 46ch;
}
.measure-60 {
  max-width: 60ch;
}
.measure-62 {
  max-width: 62ch;
}
.measure-70 {
  max-width: 70ch;
}
.mt-10 {
  margin-top: 10px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-14 {
  margin-top: 14px;
}
.mt-18 {
  margin-top: 18px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-28 {
  margin-top: 28px;
}
.mb-6 {
  margin-bottom: 6px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.bold {
  font-weight: 800;
}
.block {
  display: block;
}
.balance {
  text-wrap: balance;
}
