/* Colors come from interactiveaptitude.com's theme, so these pages read as the company's own. */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/saira-600.woff2") format("woff2"); }

:root {
  --navy: #141f33;
  --blue: #008ce9;
  --page: #f5f7fa;
  --surface: #ffffff;
  --text: #141414;
  --muted: #595959;
  --rule: #d9dee6;
  --link: #0068ad;
  --steel-light: #f4f6f8;
  --steel-dark: #c9ced5;
  --steel-text: #141f33;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1524;
    --surface: #141f33;
    --text: #e8ecf2;
    --muted: #a3adbd;
    --rule: #2a3750;
    --link: #5cb8ff;
    --steel-light: #3a4558;
    --steel-dark: #232d3f;
    --steel-text: #f1f4f8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Lato", system-ui, sans-serif;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* The masthead echoes the logo: a navy field framed by the logo's blue. */
.masthead {
  background: var(--navy);
  border-bottom: 5px solid var(--blue);
}

.masthead a {
  display: inline-block;
  padding: 1.4rem 0 1.25rem;
}

.masthead img {
  display: block;
  width: min(17rem, 70vw);
  height: auto;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main.wrap { flex: 1 0 auto; width: 100%; padding-top: 3rem; padding-bottom: 4rem; }

h1, h2 {
  font-family: "Saira", "Lato", system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.6rem;
}

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.intro {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 36rem;
}

.effective {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* The one loud element: the three fields Google sends, stamped on the logo's brushed-steel plate. */
.plate {
  margin: 2.25rem 0 0.5rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 4px solid var(--blue);
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, var(--steel-light), var(--steel-dark));
  color: var(--steel-text);
}

.plate h2 { margin: 0 0 1rem; color: var(--steel-text); }

.plate ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.plate li {
  margin: 0;
  font-family: "Saira", "Lato", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}

.plate li small {
  display: block;
  margin-top: 0.3rem;
  font: 400 0.9rem/1.4 "Lato", system-ui, sans-serif;
  opacity: 0.85;
}

.plate p {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 34rem) {
  .plate ol { grid-template-columns: 1fr; }
}

.products {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.products li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.products a {
  font-family: "Saira", "Lato", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.products p { margin: 0.2rem 0 0; color: var(--muted); }

.colophon {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.colophon p { margin: 0; }
