/* Novrik Digital — site styles */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --text: #111113;
  --text-muted: #6b6b74;
  --border: #e5e5e8;
  --accent: #2f5bea;
  --accent-hover: #1e42b8;
  --radius-card: 8px;
  --radius-btn: 6px;
  --max: 1080px;
  --gutter: 16px;
  --section-y: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 900px) {
  :root {
    --gutter: 24px;
    --section-y: 96px;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-label,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
}

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

ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  max-width: 68ch;
}

li {
  margin-bottom: 8px;
}

li:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.prose {
  max-width: 68ch;
}

/* With .container: keep full width so text aligns with the header; cap line length on children */
.container.prose {
  max-width: var(--max);
}

.container.prose > * {
  max-width: 68ch;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg);
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-btn);
}

.site-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 500;
}

.site-nav .nav-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  text-align: center;
  font-weight: 500;
}

/* Keep white text on the CTA when it is the active page */
.site-nav .nav-cta.is-active {
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

@media (min-width: 640px) {
  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 12px;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 8px;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Sections */

.section {
  padding: var(--section-y) 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  margin-bottom: 32px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.hero {
  padding: var(--section-y) 0;
}

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

.hero-meta {
  margin-top: 16px;
  max-width: none;
}

.hero-meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Cards / grid */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
}

.product-card .domain {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Contact strip */

.contact-strip {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .contact-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.contact-strip p {
  margin: 0;
}

.contact-strip p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page hero (inner pages) */

.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .page-hero {
    padding: 64px 0 48px;
  }
}

.page-hero .lede {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Definition / detail lists */

.detail-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: none;
  border-top: 1px solid var(--border);
}

.detail-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .detail-list li {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}

.detail-list dt,
.detail-list .label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.detail-list dd,
.detail-list .value {
  margin: 0;
}

/* Legal pages */

.legal h2 {
  margin-top: 48px;
  font-size: 1.25rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.page-hero .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stack footer items on small screens; separators only on wide layouts */
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 900px) {
  .footer-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }

  .footer-meta span::before {
    content: "·";
    margin-right: 16px;
    color: var(--border);
  }
}

.footer-meta span:first-child::before {
  content: none;
  margin: 0;
}

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

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}
