/* Solutions in Spades: playing-card print palette (card navy ink, card red) on cool paper. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --paper: #f3f5f9;
  --surface: #ffffff;
  --ink: #1b2440;
  --muted: #535e78;
  --line: #d3d9e4;
  --red: #b3122e;
  --on-ink: #f3f5f9;
  --card-face: #ffffff;
  --card-ink: #1b2440;
  --shadow: 0 1px 2px rgb(27 36 64 / 0.12), 0 18px 40px -12px rgb(27 36 64 / 0.35);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111830;
    --surface: #18213d;
    --ink: #e8ecf4;
    --muted: #a6b0c6;
    --line: #2c385a;
    --red: #ff7085;
    --on-ink: #111830;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -12px rgb(0 0 0 / 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw + 0.5rem, 4.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.75rem, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0.5rem; background: var(--ink); color: var(--on-ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 1.35rem; height: auto; }
.site-header ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; padding-block: 0.4rem; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.site-header nav a.nav-cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.9rem; }
.site-header nav a.nav-cta:hover { background: var(--ink); color: var(--on-ink); }

/* Buttons */
.button {
  display: inline-block; background: var(--ink); color: var(--on-ink); text-decoration: none;
  font-weight: 600; padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink);
}
.button:hover { background: transparent; color: var(--ink); }
.text-link { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

/* Hero: the one bold element is the dealt ace. */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--muted); max-width: 40em; }

.card-ace {
  position: relative; aspect-ratio: 5 / 7; width: min(100%, 320px); justify-self: center;
  background: var(--card-face); color: var(--card-ink);
  border-radius: 18px; border: 1px solid #c9d0dc; box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 2.5rem 1.5rem;
  transform: rotate(4deg);
  animation: deal 700ms cubic-bezier(.2,.8,.2,1) 150ms both;
}
.card-index { position: absolute; top: 0.8rem; left: 0.9rem; display: grid; justify-items: center; line-height: 1; font-weight: 800; font-size: 1.6rem; }
.card-index .pip { width: 1.05rem; margin-top: 0.2rem; }
.card-index-flip { top: auto; left: auto; bottom: 0.8rem; right: 0.9rem; transform: rotate(180deg); }
.card-spade { width: 46%; height: auto; }
.card-proof { margin: 0; text-align: center; font-size: 0.95rem; line-height: 1.35; }
.card-proof strong { display: block; font-size: 1.1rem; }
.card-proof span { color: #535e78; }

@keyframes deal {
  from { opacity: 0; transform: translate(40%, -12%) rotate(28deg); }
  to { opacity: 1; transform: rotate(4deg); }
}

/* Bands */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.band-alt { background: var(--surface); }

.offer-list, .work-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.offer-list li { padding-left: 2rem; position: relative; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1rem; height: 1.2rem; background: var(--ink);
  -webkit-mask: url("/favicon.svg") center / contain no-repeat; mask: url("/favicon.svg") center / contain no-repeat;
}
.offer-list h3 a { text-decoration: none; }
.offer-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.offer-list p, .work-list p { color: var(--muted); margin: 0; }
.work-list li { border-left: 3px solid var(--red); padding-left: 1.25rem; }

.closing-inner { text-align: left; }
.closing-inner .button { margin-top: 0.5rem; }

/* Services page */
.page-intro { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem); }
.services { display: grid; gap: 0; padding-bottom: clamp(2rem, 5vw, 4rem); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem; padding-block: 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.service-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.service-mark { width: 1.4rem; flex: none; margin-top: 0.35rem; }
.service-summary { font-size: 1.15rem; }
.ticks { margin: 0 0 1.25rem; padding-left: 1.25rem; max-width: var(--measure); }
.ticks li { margin-bottom: 0.5rem; }
.ticks li::marker { color: var(--red); }
.tools { color: var(--muted); font-size: 0.95rem; margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--red); margin-bottom: 0.75rem; }
.steps p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.footer-mark { width: 0.9rem; height: auto; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-ace { width: min(70%, 240px); padding: 2rem 1rem; }
  .card-proof { font-size: 0.85rem; }
  .service { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .card-ace { animation: none; }
}
