/* Mindscan Labs: a minimal layout after the first version of the site (2024). No web fonts are downloaded: Sitka Text
   is the first version's typeface and is present on Windows; elsewhere the nearest system serif is used. */

:root {
  --page: #111111;
  --panel: #fefefe;
  --ink: #2e2e2e;
  --soft: #6a6a6a;
  --rule: #e6e2dc;
  --accent: #7f300e;
  --accent-ink: #000000;
  --card: #f7f5f2;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Sitka Text", "Sitka Small", Charter, "Iowan Old Style", "Bitstream Charter", Georgia, serif;
  -webkit-text-size-adjust: 100%;
  padding-top: 8px;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.page {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: calc(100vh - 8px);
  background: var(--panel);
}

/* the menu column, as in the first version */
.menu {
  padding: 28px 20px 24px 24px;
  font-size: 16px;
}
.menu nav { position: sticky; top: 28px; }
.wordmark {
  display: block;
  color: var(--ink);
  margin-bottom: 30px;
  white-space: nowrap;
}
.wordmark:hover, .wordmark:focus-visible { text-decoration: none; }
.wordmark img { display: block; width: 64px; height: auto; }
.menu ul { list-style: none; margin: 0; padding: 0 0 0 13px; }
.menu li { margin: 0 0 8px; }
.menu li a { color: var(--soft); }
.menu li a:hover, .menu li a:focus-visible { color: var(--ink); }

/* content */
main {
  padding: 28px 24px 40px 16px;
  max-width: 760px;
}
h1, h2, h3 { font-weight: bold; line-height: 1.25; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }

.tagline { color: var(--soft); margin: 6px 0 26px; font-size: 18px; }
.tagline .dot { padding: 0 0.35em; }
.nw { white-space: nowrap; }

section { padding-top: 34px; scroll-margin-top: 8px; }
section + section { border-top: 1px solid var(--rule); margin-top: 34px; }
.lead b { font-weight: bold; }

/* products: cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 18px 16px;
}
.card h3 { font-size: 20px; }
.card .what { color: var(--soft); margin: 8px 0 6px; }  /* equal gaps: 2.5 + 8 + 4.7 = 4.7 + 6 + 4.4 px (half-leadings) */
.card ul { margin: 0 0 14px; padding: 0 0 0 1.1em; font-size: 16px; }
.card li { margin: 0 0 4px; }
.card .button { margin-top: auto; align-self: flex-start; }
.button {
  display: inline-block;
  padding: 8px 16px 5px;
  line-height: 1.2;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.button:hover, .button:focus-visible { background: var(--accent); color: #ffffff; text-decoration: none; }

/* research: plain entries */
.entry { margin: 0 0 26px; }
.entry:last-child { margin-bottom: 0; }
.entry .what { color: var(--soft); margin: 2px 0 6px; }
.entry ul { margin: 0 0 6px; padding: 0 0 0 1.1em; }
.entry li { margin: 0 0 2px; }
.entry .link { font-size: 16px; }

/* contacts */
.mail { font-size: 19px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 -8px; padding: 0; list-style: none; }
.socials a { display: inline-flex; padding: 8px; color: var(--soft); border-radius: 4px; }
.socials a:hover, .socials a:focus-visible { color: var(--ink); text-decoration: none; }
.socials svg { width: 22px; height: 22px; fill: currentColor; display: block; }

footer { color: var(--soft); font-size: 14px; margin-top: 48px; }
footer a { color: var(--soft); }

/* the privacy policy */
.doc h2 { margin-top: 22px; font-size: 17px; }
.doc p { font-size: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-top: 6px; }
  .page { grid-template-columns: 1fr; min-height: calc(100vh - 6px); }
  .menu { padding: 20px 16px 4px; }
  .menu nav { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
  .wordmark { margin: 0 12px 6px 0; }
  .wordmark img { width: 44px; }
  .cards { grid-template-columns: 1fr; }
  .menu ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; }
  .menu li { margin: 0; }
  main { padding: 8px 16px 32px; }
  h1 { font-size: 23px; }
  section { padding-top: 26px; }
  section + section { margin-top: 26px; }
}
