/* Småföretagarnas Jurist — paper, ink, hairline rule. Quiet and exact. */

:root {
  --paper: #f2ede2;
  --paper-panel: #faf7ef;
  --ink: #1c1912;
  --ink-muted: rgba(28, 25, 18, 0.7);
  --line: rgba(28, 25, 18, 0.16);
  --accent: #1f3a5f;
  --accent-dark: #142a44;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-grain svg { width: 100%; height: 100%; }

header, main, footer { position: relative; z-index: 1; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  color: var(--ink) !important;
}
.nav-cta:hover { border-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 2.75rem;
  line-height: 1.1;
}
@media (min-width: 40rem) {
  h1 { font-size: 4rem; }
}
.lede {
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  margin: 0 0 2rem;
}
.cta {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover,
.cta:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- entrance ---------- */

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-rise   { animation: fade-rise .8s ease-out both; }
.fade-rise-1 { animation: fade-rise .8s ease-out .18s both; }
.fade-rise-2 { animation: fade-rise .8s ease-out .36s both; }
.fade-rise-3 { animation: fade-rise .8s ease-out .54s both; }

[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].is-in {
  animation: fade-rise .8s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- shared section rhythm ---------- */

.about, .how-it-works, .focus, .contact {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}
.contact { border-bottom: none; }

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 2rem;
  max-width: 34rem;
}
@media (min-width: 40rem) {
  h2 { font-size: 2.25rem; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .about-grid { grid-template-columns: 10rem 1fr; }
}
.statement {
  font-size: 1.25rem;
  max-width: 44rem;
  margin: 0;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper-panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.card-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}
.card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}
.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ---------- focus areas ---------- */

.focus-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .focus-grid { grid-template-columns: 1fr 1fr; }
}
.focus-panel {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--paper-panel);
}
.focus-panel h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.focus-panel p {
  margin: 0;
  color: var(--ink-muted);
}

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

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .contact-grid { grid-template-columns: 1fr auto; align-items: center; }
}
.contact p { color: var(--ink-muted); max-width: 34rem; }

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

.site-footer {
  padding: 2rem 0 2.5rem;
}
.site-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.site-footer a { color: var(--ink); }
