/* Kairoera — base styles */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1d21;
  --color-text-muted: #5a616b;
  --color-border: #e2e5e9;
  --color-accent: #1f3a5f;
  --color-accent-hover: #16294380;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */

header.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 1rem;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--color-accent);
}

/* Main content */

main {
  flex: 1;
  padding: 3rem 0;
}

main .container > * + * {
  margin-top: 1.25rem;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.5rem;
}

p {
  color: var(--color-text);
  max-width: 65ch;
}

.lede {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Product cards */

.product-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.product-card p {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.product-card .product-link {
  font-weight: 600;
}

/* Contact */

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 28rem;
}

.contact-card a {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Responsive */

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav {
    gap: 1rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  h1 {
    font-size: 1.625rem;
  }
}
