/* lmrdev.ro — engineering spec on paper */

:root {
  --paper: #FAFAF7;
  --ink: #17181C;
  --muted: #6B7075;
  --rule: #E5E4DD;
  --accent: #E24E1B;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: inherit; }

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- nav --- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.wordmark { font-weight: 700; text-decoration: none; }

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

/* --- sections & rhythm --- */

main > section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
}

main > section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* --- hero --- */

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.sub {
  max-width: 40rem;
  color: var(--ink);
}

.hero-links {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.cta {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.cta:hover { color: var(--ink); }

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

/* --- services tree (signature) --- */

.tree-wrap {
  border: 1px solid var(--rule);
  background: #FFFFFF;
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  margin-bottom: 3.5rem;
}

.tree {
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.tree .glyph { color: var(--accent); }

@media (max-width: 420px) {
  .tree { font-size: 0.8125rem; }
  .tree-wrap { padding: 1rem 1.125rem; }
}

/* --- service details --- */

.service { margin-bottom: 2.75rem; max-width: 40rem; }

.service:last-child { margin-bottom: 0; }

.service h2 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.path {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted);
  margin-right: 0.625rem;
}

.service p { color: var(--ink); }

/* --- method --- */

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.method dt {
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.method dd { color: var(--ink); font-size: 0.9375rem; }

.track-record {
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .method { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- contact --- */

.contact-h {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.contact-mail {
  font-family: var(--mono);
  font-size: clamp(1.0625rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.contact-mail a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.contact-mail a:hover { color: var(--ink); }

/* --- footer --- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

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

/* --- privacy / 404 pages --- */

.page { padding: 4.5rem 0; min-height: 60vh; }

.page h1 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page p { max-width: 40rem; margin-bottom: 1rem; }

/* --- motion: subtle fade-up on section entry, CSS-only ---
   Scroll-driven animations where supported; static elsewhere. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > section {
      animation: fade-up 0.4s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

@keyframes fade-up {
  from { opacity: 0.25; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
