/* Smart Computer Co. — smartcomputer.company
   Typography follows the Lightspeed site (ls.bot): Merriweather for
   headings, Merriweather Sans Light for body. Black on a light ground. */

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

@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/merriweather-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #fbfbf9;
  --fg: #000000;
  --muted: #6b6b66;
  --rule: #dcdcd6;
  --underline: #a3a39c;
  --font-display: "Merriweather", ui-serif, Georgia, serif;
  --font-sans: "Merriweather Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
}

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

a:hover {
  text-decoration-color: currentColor;
}

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

svg {
  fill: none;
  stroke: currentColor;
}

/* One column, header at the top, footer at the bottom, content in between. */
.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: min(100% - 2 * var(--gutter), 42rem);
  margin-inline: auto;
  padding-block: clamp(1.75rem, 5vh, 3.5rem) clamp(1.75rem, 5vh, 3rem);
}

.page > main {
  margin-block: auto;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.3;
}

.wordmark a {
  text-decoration: none;
}

.lead {
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
}

main p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

/* One product: its mark floated left, the paragraph flowing around it. */
.product-block {
  display: flow-root;
  margin-bottom: 1.75rem;
}

.product-block p {
  margin-bottom: 0;
}

main > :last-child {
  margin-bottom: 0;
}

/* Product names stay on one line. */
.product {
  font-weight: 400;
  white-space: nowrap;
}

.logo {
  float: left;
  width: clamp(3.25rem, 5vw, 4rem);
  margin: 0.2em 1.25rem 0.5rem 0;
  text-decoration: none;
}

/* The image mark sits a little smaller than its box so it doesn't outweigh
   the text mark; the box width is shared so both paragraphs align. */
.logo img {
  display: block;
  width: 82%;
  height: auto;
}

/* The AgentOS mark is set as text; its size tracks the mark box width. */
.logo-text {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Reading pages (imprint, 404). */
.prose h1 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.25rem);
  line-height: 1.2;
}

.prose .intro {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.3;
}

.prose ul {
  margin: 0 0 1.25em;
  padding-left: 1.125em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose strong {
  font-weight: 500;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

footer .sep {
  margin-inline: 0.4em;
}
