/* Home Copilot LLC — company site
   Plain, static, no JavaScript, no web fonts, no third-party requests. */

:root {
  --bg:        #ffffff;
  --bg-subtle: #f6f7f8;
  --border:    #e2e5e9;
  --border-str:#cdd3da;
  --text:      #1c2126;
  --text-mute: #5c6672;
  --link:      #14532d;
  --link-hover:#0b3d20;
  --accent:    #2f6f4f;
  --max:       60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14171a;
    --bg-subtle: #1b1f23;
    --border:    #2b3138;
    --border-str:#3a424b;
    --text:      #e6e9ec;
    --text-mute: #9aa4af;
    --link:      #7fc9a0;
    --link-hover:#a4dcbb;
    --accent:    #7fc9a0;
  }
}

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

/* <address> is italic by default in every browser. It is used here for postal
   addresses in running text, where italics read as emphasis rather than markup. */
address { font-style: normal; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover { color: var(--text); }

.wordmark .suffix {
  font-weight: 400;
  color: var(--text-mute);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.95rem;
}

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

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

/* ---------- typography ---------- */

main { padding: 3.25rem 0 4rem; }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  font-weight: 600;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.9rem;
  font-weight: 600;
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.4rem;
  font-weight: 600;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.12rem;
  color: var(--text-mute);
  max-width: 42rem;
  margin-bottom: 2rem;
}

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

.prose { max-width: 42rem; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

.updated {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin-bottom: 2.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ---------- products ---------- */

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.product {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-subtle);
}

.product h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

.product p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--text-mute);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border-str);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: 0.12em;
  white-space: nowrap;
}

/* ---------- details block ---------- */

.details {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.65rem 1.5rem;
  font-size: 0.97rem;
  max-width: 42rem;
}

.details dt {
  color: var(--text-mute);
}

.details dd {
  margin: 0;
}

.details dd address {
  font-style: normal;
}

@media (max-width: 34rem) {
  .details { grid-template-columns: 1fr; gap: 0.15rem; }
  .details dd { margin-bottom: 0.85rem; }
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 2.5rem 0;
  font-size: 0.92rem;
  color: var(--text-mute);
}

.footer-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.site-footer h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 0.6rem;
}

.site-footer address { font-style: normal; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.3rem; }

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

.legal-line {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-str);
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* ---------- small utilities ----------
   Kept here rather than as inline style attributes: the Content-Security-Policy
   on this site is `style-src 'self'` with no 'unsafe-inline', which blocks
   inline style attributes outright. */

.more-link { margin-top: 1.75rem; }

.legal-line.bare {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* A single product card in the grid would otherwise stretch the full content
   width, which reads as a layout mistake rather than a deliberate short list. */
.product:only-child { max-width: 28rem; }
