/* decisiontect.com. Palette and wordmark from the MVP's docs/decisiontect-visual-identity.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --ground: #faf9f6;
  --navy: #0E2240;
  --crimson: #a31d2d; /* two places only: the mark's front plane and ARCHITECT */
  color-scheme: light;
}

html {
  background: var(--ground);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* The mark: 1.15 cap heights, seated on the baseline, 0.39 cap heights from the type (section 6.4). */
.mark {
  display: inline-block;
  width: 0.836em;
  height: 0.836em;
  margin-right: 0.284em;
  vertical-align: baseline;
}

/* The trademark sign rides the wordmark, top aligned to its cap line (section 8). */
.tm {
  font-weight: 400;
  font-size: 0.5em;
  position: relative;
  top: -0.73em;
  margin-left: 0.05em;
  letter-spacing: 0;
}

/* At phone width the wordmark and the language switch share the first row and the menu takes the second;
   from 40rem all three share one row. */
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand switch" "nav nav";
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .site-header .wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav switch";
  }
}

/* The wordmark: upright, weight 700, navy, tracking opened slightly (section 4). */
.wordmark {
  grid-area: brand;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* The menu's bars are borders between its items, not characters in its text. */
.nav {
  grid-area: nav;
  justify-self: start;
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .nav {
    justify-self: end;
  }
}

.nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li + li {
  margin-left: 0.75em;
  padding-left: 0.75em;
  border-left: 1px solid var(--navy);
}

.nav a {
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: underline;
}

.nav [aria-current] {
  font-weight: 700;
}

.switch {
  grid-area: switch;
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.switch [aria-current] {
  font-weight: 700;
}

main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* The definition line: capitals, upright, weight 500, letterspaced (section 5). */
.definition {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.architect {
  color: var(--crimson);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1.25rem;
}

.problem {
  font-size: 1.25rem;
  line-height: 1.45;
}

.authorship {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 2rem 0;
}

.announcement {
  border: 2px solid var(--navy);
  padding: 1.25rem 1.5rem 0.25rem;
  margin: 2.5rem 0;
}

.example {
  padding-left: 1rem;
  border-left: 2px solid var(--navy);
}

.actions {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.actions li {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.opening {
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 2rem;
}

/* Each credential: its name as a heading over a rule, its description under it. */
.credentials h2 {
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy);
}

.credentials p {
  margin-bottom: 1.75rem;
}

.site-footer {
  margin-top: 3rem;
  font-size: 0.875rem;
}

.site-footer .wrap {
  border-top: 1px solid var(--navy);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

/* In running copy the face's own trademark glyph, already a superior, at the text's size. */
.site-footer .tm {
  font-size: 1em;
  top: 0;
  margin-left: 0;
}

.footer-cert {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 0.25rem;
}

.footer-links {
  padding-bottom: 0.5rem;
}

.footer-links a {
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}
