/* Digital Knowledge — dk-bi.com
   One family (Archivo) used at two widths: condensed for headings, normal for text.
   Colours come from the logo: navy and steel, on a cool drawing-sheet white. */

:root {
  --navy: #05203f;
  --navy-2: #0c2f59;
  --steel: #97a7bf;
  --paper: #f4f6f9;
  --white: #ffffff;
  --ink: #16263d;
  --muted: #55657d;
  --rule: #cfd7e3;
  --line: #2d7ff9;
  --amber: #ffb020;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-stretch: 68%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.2vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06; }
h3 { font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--white); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand span { font-stretch: 68%; font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: .01em; }
.top nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); padding-block: .35rem; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--steel); }
.top nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }

/* buttons and links */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--amber); color: var(--navy);
  font-weight: 650; padding: .85rem 1.4rem; border-radius: 2px;
}
.btn:hover { background: #ffc24d; }
.textlink { font-weight: 600; color: var(--navy); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.textlink:hover { text-decoration-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* hero: text on a drawing grid, with the frame rising beside it */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 3rem 3rem;
  background-position: center top;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-block: clamp(3rem, 8vw, 6.5rem) 0; }
.hero-text { padding-bottom: clamp(3rem, 8vw, 6.5rem); }
.hero .lead { margin-top: 1.75rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: 54ch; }

.frame { width: 100%; max-height: 34rem; align-self: end; }
.frame line { fill: none; stroke: var(--navy); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.frame .slab { stroke-width: 1.6; }
.frame .col { stroke-width: 1.2; }
.frame .grid { stroke-width: .6; stroke: var(--steel); }
.frame .dim { stroke-width: .8; stroke: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .frame line { animation: draw .7s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * .16s); }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* page heads */
.pagehead { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5.5rem); }
.pagehead h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 16ch; }
.pagehead .lead { margin-top: 1.5rem; }

/* content blocks */
.block { padding-block: clamp(3rem, 7vw, 5.5rem); }
.block.tint { background: var(--paper); border-block: 1px solid var(--rule); }
.block > .wrap > h2 { margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 4rem; align-items: start; }
.aside { color: var(--muted); margin-top: 1rem; }
.split > div > .textlink, .split > div > p > .textlink { display: inline-block; margin-top: .25rem; }

/* services: a ruled list, like a drawing schedule */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.services li { border-bottom: 1px solid var(--rule); }
.services a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .5rem 4rem; padding: 1.5rem 0; text-decoration: none; }
.services p { color: var(--muted); }
.services a:hover h3 { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: .2em; }

.schedule { margin: 0; border-top: 2px solid var(--navy); }
.schedule > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.schedule dt { font-weight: 650; color: var(--navy); }
.schedule dd { margin: 0; color: var(--ink); }
.schedule a { color: var(--navy); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: .25em; }

.plain { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.plain li { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-stretch: 68%; font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--navy); }

/* call to action band */
.band { background: var(--navy); color: #dfe6f0; padding-block: clamp(3rem, 6vw, 4.5rem); }
.band h2 { color: var(--white); margin-bottom: .75rem; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }

/* footer: the title block from the corner of a drawing sheet */
.sheet { background: var(--navy); color: #dfe6f0; padding-block: 2.5rem; border-top: 1px solid var(--navy-2); }
.band + .sheet, main:has(.band:last-child) + .sheet { border-top-color: #24466f; }
.titleblock { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr 1fr .7fr; border: 1px solid var(--steel); }
.titleblock .cell { padding: 1rem 1.1rem; border-left: 1px solid var(--steel); font-size: .92rem; line-height: 1.45; min-width: 0; }
.titleblock .cell:first-child { border-left: 0; }
.titleblock .firm { display: flex; gap: .9rem; align-items: center; }
.titleblock .firm strong { color: var(--white); font-stretch: 68%; font-size: 1.25rem; }
.titleblock .k { display: block; font-size: .78rem; color: var(--steel); margin-bottom: .2rem; }
.titleblock p { margin: 0; }
.titleblock a { color: var(--white); text-underline-offset: .2em; overflow-wrap: anywhere; }

@media (max-width: 56rem) {
  .hero-in { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-text { padding-bottom: 1rem; }
  .frame { max-height: 20rem; }
  .split, .services a { grid-template-columns: 1fr; gap: 1rem; }
  .schedule > div { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock .cell { border-left: 0; border-top: 1px solid var(--steel); }
  .titleblock .firm { grid-column: 1 / -1; border-top: 0; }
  .titleblock .cell:nth-child(odd):not(.firm) { border-left: 1px solid var(--steel); }
}
@media (max-width: 34rem) {
  .top nav ul { gap: .1rem 1.1rem; }
  .titleblock { grid-template-columns: 1fr; }
  .titleblock .cell:nth-child(odd):not(.firm) { border-left: 0; }
}
