:root {
  --bg: #fcfcfa;
  --ink: #111827;
  --body: #3d4653;
  --muted: #6b7280;
  --rule: #e7e5df;
  --link: #24557f;
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

/* ---- Home ---- */

.hero {
  flex: 1;
  min-height: min(66svh, 38rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero .logo {
  width: min(320px, 72vw);
  height: auto;
}

.hero h1 {
  font-size: clamp(1.35rem, 1rem + 2vw, 1.85rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero .contact {
  font-size: 1rem;
  color: var(--muted);
}

/* ---- Products ---- */

.products {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.products-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #d6d3cb;
  box-shadow: 0 12px 28px rgb(17 24 39 / 0.09);
  color: inherit;
}

.product-card:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.product-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--rule);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  padding: 1.375rem 1.5rem 1.5rem;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.product-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-domain {
  margin-top: auto;
  padding-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.product-domain .arrow {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
}

.product-card:hover .product-domain {
  color: var(--link);
}

.product-card:hover .product-domain .arrow {
  transform: translateX(3px);
}

/* ---- Legal pages ---- */

.page {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page header {
  margin-bottom: 3rem;
}

.page header img {
  height: 30px;
  width: auto;
  display: block;
}

.page h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.page h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.5rem;
}

.page p,
.page address {
  margin-bottom: 0.75rem;
  font-style: normal;
}

.page .lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.page .updated {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Footer ---- */

footer {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--ink);
}

footer .sep {
  margin: 0 0.5rem;
  color: var(--rule);
}
