/* Ninestone — stone & lichen system
   chalk   #FAFBF8  page ground
   flint   #182428  ink / dark band
   slate   #4A5A60  secondary text
   lichen  #0E7C6B  accent (links, CTA)
   lichen-deep #0A5F52  hover / small text on light
   line    #E3E7E0  hairlines
*/
:root {
  --chalk: #FAFBF8;
  --flint: #182428;
  --slate: #4A5A60;
  --lichen: #0E7C6B;
  --lichen-deep: #0A5F52;
  --line: #E3E7E0;
  --band-ink: #EAF0EC;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--flint);
  background: var(--chalk);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--flint);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

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

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--chalk);
}
.site-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--flint);
}
.brand .mark { flex: none; }
.brand .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
nav.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.95rem;
  padding: 0.3rem 0;
}
nav.site-nav a:hover { color: var(--flint); }
nav.site-nav a.btn {
  color: #fff;
  padding: 0.7rem 1.3rem;
}
nav.site-nav a.btn:hover { color: #fff; background: var(--lichen-deep); }

.btn {
  display: inline-block;
  background: var(--lichen);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
}
.btn:hover { background: var(--lichen-deep); }
.btn.secondary {
  background: transparent;
  color: var(--lichen-deep);
  border: 1.5px solid var(--lichen);
}
.btn.secondary:hover { background: #EDF4F1; }

/* hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero .ghost {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}
@media (max-width: 48rem) {
  .hero .ghost { display: none; }
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lichen-deep);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12;
  max-width: 21ch;
  margin-bottom: 1.2rem;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--slate);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* sections */
section { padding: 3.75rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  max-width: 30ch;
}
.section-intro {
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}
.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.card p { color: var(--slate); font-size: 0.98rem; }

/* founder */
.founder {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 2rem;
  align-items: start;
}
.founder .photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}
.founder .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
@media (max-width: 40rem) {
  .founder { grid-template-columns: 1fr; }
  .founder .photo { max-width: 11rem; }
}
.note {
  border-left: 3px solid var(--lichen);
  padding: 0.9rem 1.2rem;
  background: #F1F6F3;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
  max-width: 46rem;
}

/* dark security band */
.band {
  background: var(--flint);
  color: var(--band-ink);
  padding: 3.75rem 0;
}
.band h2 { color: #fff; }
.band .section-intro { color: #B7C4BE; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 2rem;
  list-style: none;
}
.facts li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px 3px 2px 3px;
  background: var(--lichen);
}
.facts strong { color: #fff; display: block; }

/* contact */
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  max-width: 42rem;
}
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-form .optional {
  font-weight: 400;
  color: var(--slate);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--flint);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--lichen);
  outline-offset: 1px;
  border-color: var(--lichen);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; border: none; cursor: pointer; }
.contact-alt { margin-top: 1.25rem; color: var(--slate); font-size: 0.95rem; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: 0.9rem;
  color: var(--slate);
}
footer.site .legal { margin-bottom: 0.6rem; }
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* mobile */
@media (max-width: 48rem) {
  .site-bar {
    padding-block: 0.85rem;
    row-gap: 0.5rem;
  }
  nav.site-nav {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }
  nav.site-nav a { font-size: 0.92rem; }
  nav.site-nav a.btn {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
  }
  .hero { padding: 2.75rem 0 2.75rem; }
  .hero .lede { font-size: 1.08rem; }
  .hero .actions .btn {
    width: 100%;
    text-align: center;
  }
  section { padding: 2.75rem 0; }
  .band { padding: 2.75rem 0; }
  h2 { font-size: 1.45rem; }
}

/* legal pages */
.prose { max-width: 46rem; padding: 3rem 0 4rem; }
.prose h1 { font-family: var(--display); font-size: 2rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--slate); }
.prose ul { padding-left: 1.4rem; }
