/* Automa Corp site. Plain CSS, no build step. Square corners everywhere. */

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

:root {
  color-scheme: light dark;
  --ink: #1b1f24;
  --text-2: #4a525c;
  --line: #d9dde2;
  --page: #f7f8fa;
  --surface: #ffffff;
  --accent: #1f5fae;
  --accent-ink: #ffffff;
  --accent-soft: #e7eef8;
  --focus: #1f5fae;
  --measure: 68ch;
  --wrap: 72rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecef;
    --text-2: #b3bac3;
    --line: #343b44;
    --page: #121519;
    --surface: #1a1e23;
    --accent: #8ab8f0;
    --accent-ink: #0d1726;
    --accent-soft: #1b2a3d;
    --focus: #8ab8f0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
}

p,
ul {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--accent);
  display: inline-block;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Sections */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  section {
    padding: 5rem 0;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: clamp(1.125rem, 3.2vw, 1.3rem);
  color: var(--text-2);
  max-width: 44ch;
}

.hero h1 {
  max-width: 18ch;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--accent);
  line-height: 1.2;
}

.button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Product cards */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.3rem;
}

.card p {
  color: var(--text-2);
}

.card .more {
  margin-top: auto;
  font-weight: 600;
}

.price {
  font-weight: 650;
  color: var(--ink);
}

/* Status tags */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
  vertical-align: middle;
  white-space: nowrap;
}

.tag.ready {
  color: var(--accent);
}

.tag.coming {
  color: var(--text-2);
  border-style: dashed;
}

/* Feature lists */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  border-top: 1px solid var(--line);
}

.features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.features strong {
  display: block;
  font-weight: 650;
}

.features span {
  color: var(--text-2);
}

.cols {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .cols {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cols h2 .tag,
.cols h3 .tag {
  margin-left: 0.4rem;
}

/* Principles */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  gap: 0;
  counter-reset: p;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .principles {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.principles li {
  counter-increment: p;
  padding: 1.1rem 0 1.1rem 2.75rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.principles strong {
  display: block;
}

.principles span {
  color: var(--text-2);
}

/* Callouts */
.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.note p:last-child {
  margin-bottom: 0;
}

/* Figures (all screenshots on this site show example data) */
figure {
  margin: 2rem 0 0;
}

.shot {
  border: 1px solid var(--line);
  background: var(--surface);
}

.shot-missing {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-2);
  font-size: 0.95rem;
  border: 1px dashed var(--line);
  background: var(--surface);
}

figcaption {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 0.6rem;
}

figcaption b {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.figs {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .figs {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact */
.contact-mail {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 600;
}

/* Prose pages */
.prose {
  padding: 3rem 0 4rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header .nav,
  .skip,
  .actions {
    display: none;
  }
}
