/* New Orleans Technology Services LLC
   Static site stylesheet. No external requests, no webfonts, no JS. */

:root {
  --ink:        #1c1f1a;  /* headings */
  --body:       #3a3d40;  /* body text, 10.9:1 on white */
  --muted:      #5f6367;  /* captions, 6.1:1 on white */
  --green:      #4f7a15;  /* links + text accent, 5.09:1 on white */
  --green-lit:  #8cc63f;  /* brand green, dark backgrounds only, 8.4:1 on ink */
  --rule:       #dfe3da;
  --tint:       #f4f6f1;
  --white:      #ffffff;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}

/* ---- Skip link ---- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Links ---- */
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- Layout ---- */
.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.prose { max-width: var(--measure); }

/* ---- Header ---- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.masthead__inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.wordmark:hover { color: var(--green); }

/* ---- Hero ---- */
.hero {
  background: var(--ink);
  color: #e8eae4;
  padding-top: clamp(2.75rem, 7vw, 5rem);
  padding-bottom: clamp(2.75rem, 7vw, 5rem);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-lit);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero p { font-size: 1.1875rem; max-width: 54ch; margin: 0 0 1.5rem; }

.cta {
  display: inline-block;
  background: var(--green-lit);
  color: #14170f;
  font-weight: 700;
  padding: .9rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
}
.cta:hover { background: #9fd456; }
.cta:focus-visible { outline-color: var(--green-lit); }

/* ---- Sections ---- */
.section { padding-top: clamp(2.25rem, 4.5vw, 3.5rem); padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section--tint { background: var(--tint); }

h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}
h3 { color: var(--ink); font-size: 1.125rem; margin: 2rem 0 .5rem; }

.pillars {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2rem;
}
.pillar h3 {
  margin: 0 0 .75rem;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  border-top: 2px solid var(--ink);
  padding-top: .75rem;
}
.pillar p { margin: 0 0 .75rem; }

/* ---- Contact band ----
   Details live in the footer. This band is a single action, not a repeat. */
.contact .cta { margin-top: 1.75rem; }

/* Brand green on the light tint is 1.9:1 and fails. Ink primary, outlined secondary. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.cta-row .cta { margin-top: 0; }

.cta--dark {
  background: var(--ink);
  color: var(--white);
}
.cta--dark:hover { background: #2e332a; }
.cta--dark:focus-visible { outline-color: var(--ink); }

/* Secondary action. The 2px border carries the affordance, so it must clear
   3:1 against the tint on its own (WCAG 1.4.11, non-text contrast). */
.cta--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: calc(.9rem - 2px) calc(1.75rem - 2px);
}
.cta--outline:hover { background: var(--ink); color: var(--white); }
.cta--outline:focus-visible { outline-color: var(--ink); }

/* ---- Terms document ---- */
.doc { padding-top: 2rem; padding-bottom: 3rem; }
.doc__layout { display: grid; gap: 3rem; }
@media (min-width: 62rem) {
  .doc__layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .doc__index {
    order: -1;                 /* visually left, but after the <h1> in source order */
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}
.doc h1 {
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
}
.doc__meta { color: var(--muted); font-size: .9375rem; margin: 0 0 1.25rem; }
.doc__lede {
  border-left: 3px solid var(--green-lit);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
  font-size: 1.0625rem;
}

.doc__index h2 {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
}
.doc__index ol { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.doc__index li { margin-bottom: .4rem; }
.doc__index a { text-decoration: none; color: var(--body); display: block; }
.doc__index a:hover { color: var(--green); text-decoration: underline; }
.doc__index .num { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .5rem; }

.clause { margin-bottom: 2rem; scroll-margin-top: 2rem; }
.clause > h2 {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.clause > h2 .num { color: var(--green); font-variant-numeric: tabular-nums; margin-right: .6rem; }
.clause h3 {
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.25rem 0 .5rem;
}
.clause p { margin: 0 0 1rem; max-width: var(--measure); }
.clause ul { margin: 0 0 1rem; padding-left: 1.25rem; max-width: var(--measure); }
.clause li { margin-bottom: .4rem; }
.clause :last-child { margin-bottom: 0; }

.doc__sig {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #b9bdb4;
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
  font-size: .9375rem;
}
.site-footer a { color: var(--green-lit); }
.site-footer h2 {
  color: #e8eae4;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .875rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.colophon {
  border-top: 1px solid #34382f;
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #8b8f86;
  font-size: .8125rem;
}

/* ---- Non-contractual appendices on the terms page ---- */
.appendix { margin-top: 4rem; }
.appendix__note {
  background: var(--tint);
  border-left: 3px solid var(--muted);
  padding: 1rem 1.25rem;
  margin: 0 0 3rem;
  font-size: .9375rem;
  color: var(--body);
  max-width: var(--measure);
}
.appendix .clause > h2 { padding-bottom: .5rem; }
.doc__index-sub {
  margin-top: 1.75rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.doc__index-extra { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.doc__index-extra li { margin-bottom: .4rem; }
.doc__index-extra a { text-decoration: none; color: var(--body); display: block; }
.doc__index-extra a:hover { color: var(--green); text-decoration: underline; }

/* ---- Hero crossfade ----------------------------------------------------
   Two stacked layers, one CSS animation, zero JavaScript. CSP stays at
   default-src 'none'.

   The scrim is a horizontal gradient, not a flat wash. Text is left-aligned,
   so the darkness sits on the left and the photograph breathes on the right.
   hero-1 contains a blown-out window that reaches pure white directly behind
   the headline, so every stop below is verified against rgb(255,255,255):

       x=0%    alpha .88   white 11.54:1   sage 8.39:1
       x=35%   alpha .86   white 10.81:1   sage 7.86:1
       x=55%   alpha .82   white  9.39:1   sage 6.83:1
       x=60%   alpha .75   white  7.19:1   sage 5.23:1   <- text ends here
       beyond  ------------ no text, photo shows through

   On narrow screens the text spans the full width, so the gradient flattens.
   Missing images degrade to the plain ink hero: the slides go transparent and
   ink-over-ink composites to ink.
------------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 31, 26, 0.88)   0%,
    rgba(28, 31, 26, 0.86)  35%,
    rgba(28, 31, 26, 0.82)  55%,
    rgba(28, 31, 26, 0.60)  70%,
    rgba(28, 31, 26, 0.28) 100%
  );
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__slide--1 {
  background-image: image-set(
    url("/img/hero-1.e140c603.webp") type("image/webp"),
    url("/img/hero-1.d37049c1.jpg")  type("image/jpeg")
  );
}
.hero__slide--2 {
  background-image: image-set(
    url("/img/hero-2.c1e4e842.webp") type("image/webp"),
    url("/img/hero-2.7f51f2ad.jpg")  type("image/jpeg")
  );
  opacity: 0;
  animation: heroCrossfade 18s ease-in-out infinite;
}

@keyframes heroCrossfade {
   0%,  42% { opacity: 0; }
  50%,  92% { opacity: 1; }
 100%       { opacity: 0; }
}

.hero > .wrap { position: relative; z-index: 1; }

/* The brand green measures 3.20:1 over a blown highlight and fails AA.
   Pale sage keeps the family and clears 5.23:1 at the far edge of the text. */
.hero__eyebrow { color: #cfe3b0; }

/* Narrow screens: text is full-width, so darken evenly and serve smaller files. */
@media (max-width: 48rem) {
  .hero__media::after { background: rgba(28, 31, 26, 0.82); }
  .hero__slide--1 {
    background-image: image-set(
      url("/img/hero-1-sm.aeaab730.webp") type("image/webp"),
      url("/img/hero-1-sm.b5effda6.jpg")  type("image/jpeg")
    );
  }
  .hero__slide--2 {
    background-image: image-set(
      url("/img/hero-2-sm.6f2ccd67.webp") type("image/webp"),
      url("/img/hero-2-sm.84bb5687.jpg")  type("image/jpeg")
    );
  }
}

/* Motion is the visitor's preference, not ours. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide--2 { animation: none; opacity: 0; }
}
