/* Emtsco — corporate site
   Brand blue #0039AD, sampled from the logo wordmark. */

:root {
  --brand: #0039ad;
  --brand-hover: #002a80;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --text: #16191f;
  --muted: #5a6472;
  --border: #e1e6ef;
  --focus: #0039ad;
  --radius: 10px;
  --container: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7ba4ff;
    --brand-hover: #a3c0ff;
    --bg: #0e1116;
    --surface: #161b23;
    --text: #e8ecf2;
    --muted: #9aa5b5;
    --border: #242c38;
    --focus: #7ba4ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- header ---------- */

.site-header {
  padding: 40px 0 8px;
}

.site-header a {
  display: inline-block;
}

.logo {
  display: block;
  width: 172px;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  /* the wordmark is a dark blue PNG; lift it so it reads on a dark ground */
  .logo {
    filter: brightness(1.9) saturate(0.85);
  }
}

/* ---------- typography ---------- */

h1 {
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 16px;
}

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 1.02rem;
  color: var(--muted);
  margin-bottom: 8px;
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* ---------- company facts ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.facts dt {
  padding: 11px 16px 11px 0;
  color: var(--muted);
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}

.facts dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

/* the section already draws a rule beneath; avoid a doubled hairline */
.facts dt:last-of-type,
.facts dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding: 12px 0 0;
    border-bottom: 0;
    font-size: 0.86rem;
  }

  .facts dd {
    padding: 0 0 12px;
  }
}

/* ---------- products ---------- */

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.product {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--surface);
}

.product p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.product .link {
  font-size: 0.94rem;
  word-break: break-word;
}

/* ---------- contact ---------- */

.contact-email {
  font-size: 1.08rem;
  font-weight: 600;
}

form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

button {
  justify-self: start;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  background: #0039ad;
  border: 0;
  border-radius: 8px;
  padding: 11px 24px;
  cursor: pointer;
}

button:hover {
  background: var(--brand-hover);
}

@media (prefers-color-scheme: dark) {
  button {
    background: #1e56d6;
    color: #ffffff;
  }

  button:hover {
    background: #3a6fe8;
  }
}

/* ---------- legal pages ---------- */

.legal h1 {
  font-size: 1.75rem;
  margin-top: 24px;
}

.legal h2 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  margin: 32px 0 10px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 7px;
}

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

.back {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.94rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer nav a {
  margin-right: 18px;
}
