/* ---------------------------------------------------------
   Quite Orbit M LLC — company site
   Palette: ink / paper / indigo accent (deliberately distinct
   from Back Here's dark, earthy Literata/Manrope system)
--------------------------------------------------------- */

:root {
  --ink: #14151a;
  --ink-soft: #34353d;
  --muted: #63636b;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --line: #e4e2dc;
  --accent: #3a3de0;
  --accent-soft: #ececfb;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.5rem, 4vw, 3rem);
  --measure: 40rem;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.logomark {
  color: var(--accent);
  flex-shrink: 0;
}

.header-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.header-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

main {
  max-width: 56rem;
  margin: 0 auto;
}

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.section-index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.section-label h2 {
  font-size: 1.5rem;
}

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

.hero {
  padding-top: clamp(4.5rem, 12vw, 8rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: var(--measure);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
}

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

.about {
  border-bottom: 1px solid var(--line);
}

.about p {
  max-width: var(--measure);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- building / product card ---------- */

.building {
  border-bottom: 1px solid var(--line);
}

.product-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: var(--measure);
}

.product-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.product-card p:not(.product-label) {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

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

.contact-sub {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.contact-email:hover {
  color: var(--accent);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .wordmark span {
    font-size: 0.95rem;
  }

  section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
