/* Design Tokens */
:root {
  --meka-navy: #0f2b46;
  --meka-blue: #1e5a8a;
  --meka-light-blue: #e8f0f8;
  --meka-text: #2c3340;
  --meka-bg: #ffffff;
  --meka-muted: #6b7280;
  --meka-spacing-base: 1.25rem;
  --meka-border-radius: 0.625rem;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--meka-bg);
  color: var(--meka-text);
  line-height: 1.5;
  margin: 0;
}

/* Container */
.container {
  width: min(90%, 48rem);
  margin-inline: auto;
  padding: var(--meka-spacing-base);
}

/* Header */
.header {
  margin-block: 2rem 0;
  padding: var(--meka-spacing-base) var(--meka-spacing-base) 0;
}

.header-logo {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

/* About Section */
.about {
  max-width: 65ch;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--meka-text);
}

/* Products Section */
.products {
  border-top: 1px solid var(--meka-light-blue);
  padding-top: 2rem;
}

.products-title {
  text-align: center;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--meka-navy);
  letter-spacing: -0.01em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--meka-spacing-base);
}

.product-tile {
  display: block;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background-color: var(--meka-light-blue);
  border-radius: var(--meka-border-radius);
  border-left: 3px solid var(--meka-blue);
  text-decoration: none;
  color: var(--meka-text);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-tile:hover {
  box-shadow: 0 4px 16px rgba(15, 43, 70, 0.15);
  transform: translateY(-2px);
  border-color: var(--meka-navy);
}

.product-name {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 600;
  color: var(--meka-navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.product-description {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.product-link-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--meka-blue);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 6rem;
  padding: 2rem var(--meka-spacing-base);
  border-top: 1px solid var(--meka-light-blue);
  font-size: 0.85rem;
  color: var(--meka-muted);
}

.footer address {
  font-style: normal;
}

.footer p {
  margin-block: 0.5rem;
}

.footer-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--meka-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--meka-navy);
  text-decoration: underline;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--meka-blue);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .product-tile,
  .footer-link {
    transition: none;
  }
}

/* Print */
@media print {
  .footer {
    margin-top: 2rem;
  }

  .product-tile {
    background-color: transparent;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 48em) {
  .footer {
    margin-top: 3rem;
  }
}

/* High Contrast */
@media (forced-colors: active) {
  .product-tile {
    border: 1px solid currentColor;
  }
}
