/* Bitsol Works — shared styles */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1c1b19;
  --text-muted: #4f4b46;
  --border: #ddd8cf;
  --accent: #1e4a46;
  --accent-hover: #163834;
  --focus: #1e4a46;
  --max-width: 42rem;
  --space: 1.25rem;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

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

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem var(--space);
}

.site-logo {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem var(--space) 3rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.product-card {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.2rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-card h2 {
  margin-top: 0;
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.contact-box {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem var(--space) 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.policy-meta {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

@media (max-width: 36rem) {
  body {
    font-size: 1.0625rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  main {
    padding-top: 1.75rem;
  }
}
