/* freshagents.co — site overrides for tiny-brutalism.css.
 * Load order matters: tiny-brutalism.css first, then this file.
 * The library supplies the reset, Roboto Mono, hard borders and offset
 * shadows. This file adds layout and the freshagents brand accents. */

:root {
  --navy: #00167a;
  /* --purple is decorative only (borders, shadows, underlines). #8a58fe is
     4.25:1 on white, so --purple-deep (6.8:1) is used wherever it is text or
     sits behind text. */
  --purple: #8a58fe;
  --purple-deep: #6a2fe0;
  --ink: #000;
  --muted: #4a4a55;
  --page: #fbfaff;

  --edge: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lift: 7px 7px 0 var(--ink);
}

/* The library pins html/body to height:100%, which stops the sticky footer
   grid from growing with long legal pages. */
html,
body {
  height: auto;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 2.5rem;
  padding: 2rem 1.25rem;
  background-color: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a:hover,
a:focus-visible {
  color: var(--purple-deep);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* Landing page ------------------------------------------------------------ */

.shell {
  max-width: 38rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.logo {
  width: min(20rem, 78vw);
  height: auto;
}

.tagline {
  margin: -0.75rem 0 0;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--muted);
  text-wrap: balance;
}

/* Plain label, no frame. The negative bottom margin trims the .shell flex gap
   so the label stays visually attached to the grid it introduces. */
.eyebrow {
  margin: 0 0 -1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep);
}

.services {
  list-style: none;
  width: 100%;
  display: grid;
  gap: 1rem;
}

/* .box already carries the border + offset shadow; the grid owns the gaps. */
.services .box {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.services .box:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lift);
}

.contact {
  width: min(100%, 22rem);
  text-align: center;
}

.contact p {
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* .button supplies the brutalist frame; this is the brand-coloured variant. */
.mail {
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--navy);
  box-shadow: var(--shadow);
  word-break: break-word;
}

.mail:hover,
.mail:focus-visible {
  color: #fff;
  background-color: var(--purple-deep);
  box-shadow: var(--shadow-lift);
}

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

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.625rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.legal a {
  color: var(--muted);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dot {
  color: var(--purple);
}

/* Legal / prose pages ---------------------------------------------------- */

.body-prose {
  align-items: start;
}

.prose {
  width: 100%;
  max-width: 44rem;
  padding: 0;
  counter-reset: clause;
}

.prose .logo {
  width: min(11rem, 45vw);
}

.prose h1 {
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid var(--purple);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy);
}

.prose .updated {
  margin-bottom: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  padding-left: 0.625rem;
  border-left: 6px solid var(--navy);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.prose p,
.prose li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--navy);
  text-decoration-color: var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose .legal {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: var(--edge);
  justify-content: flex-start;
}

/* Numbered clauses */

.clause {
  counter-increment: clause;
}

.clause h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 0.9375rem;
}

.clause h2::before {
  content: counter(clause) ". ";
  color: var(--purple-deep);
}

.clause > ol {
  counter-reset: sub;
  list-style: none;
  padding-left: 3.25rem;
}

.clause > ol > li {
  counter-increment: sub;
  position: relative;
}

.clause > ol > li::before {
  content: counter(clause) "." counter(sub);
  position: absolute;
  left: -3.25rem;
  color: var(--purple-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clause ol ol {
  margin: 0.5rem 0;
  padding-left: 1.75rem;
  list-style: lower-alpha;
}

.clause ol ol ol {
  list-style: lower-roman;
}

.clause ol ol > li::marker {
  color: var(--muted);
}

.clause ul {
  padding-left: 1.25rem;
}

.defs {
  padding-left: 3.25rem;
}

.defs dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.875rem;
}

.defs dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.term {
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 34rem) {
  .clause > ol,
  .defs {
    padding-left: 2.5rem;
  }

  .clause > ol > li::before {
    left: -2.5rem;
  }
}

@media (min-width: 40rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
  }
}
