/* ===========================
   Exclaim Robotics
   Black ink on gray, white "business card" with a hard offset shadow.
   Patrick Hand for the brand voice, Roboto for body (same family as the wordmark).
   Hand-drawn sketch kit — pure CSS, no images, no JS.

   Tokens mirror the Claude Design system (tokens/*.css), inlined into one
   stylesheet so the Jekyll site stays a single request.
   =========================== */

:root {
  /* ---- base: ink & paper (grayscale spine of the brand) ---- */
  --ink: #1a1a1a;            /* pen ink — all type, all strokes */
  --ink-70: #555555;         /* muted body copy */
  --ink-45: rgba(26, 26, 26, .45);
  --ink-25: rgba(26, 26, 26, .25);
  --ink-12: rgba(26, 26, 26, .12);
  --paper: #ffffff;          /* the "business card" */
  --paper-2: #f5f5f5;
  --bg-gray: #e7e7e7;        /* the desk the cards sit on */
  --bg-gray-dark: #d6d6d6;

  /* ---- accent: one soft orange, used sparingly ---- */
  --accent: #ff7a3c;
  --accent-hover: #e35f23;

  /* ---- semantic aliases ---- */
  --surface-page: var(--bg-gray);
  --surface-card: var(--paper);
  --surface-card-alt: var(--paper-2);
  --surface-ink: var(--ink);
  --text-body: var(--ink);
  --text-muted: var(--ink-70);
  --text-inverse: var(--paper);
  --text-kicker: var(--ink-45);
  --stroke: var(--ink);
  --stroke-soft: var(--ink-25);
  --rule: var(--ink-12);
  --focus-ring: var(--accent);
  --surface-note: var(--wash-accent);   /* closing-note / call-to-action panels */
  --surface-quiet: var(--wash-ink);     /* the quiet alternate panel fill */
  --link: var(--ink);
  --link-underline: var(--accent);

  /* ---- type ---- */
  --font-hand: "Patrick Hand", "Comic Sans MS", system-ui, cursive;
  --font-body: "Roboto", system-ui, sans-serif;
  --text-hero: 3.2rem;
  --text-hero-sm: 2.6rem;
  --text-h2: 2.1rem;
  --text-h3: 1.5rem;
  --text-tagline: 1.25rem;
  --text-nav: 1.35rem;
  --text-btn: 1.25rem;
  --text-body-md: 1rem;
  --text-small: .9rem;
  --leading-tight: 1;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --track-kicker: .08em;
  --track-hero: .01em;
  --measure: 34ch;

  /* weights actually used (the hand font has one weight — never bold it) */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- spacing ---- */
  --space-1: .2rem;
  --space-2: .5rem;
  --space-3: .9rem;
  --space-4: 1.25rem;
  --space-5: 1.6rem;
  --space-6: 2rem;
  --space-7: 2.4rem;
  --space-8: 2.8rem;
  --space-10: 3.6rem;

  --card-pad: 1.6rem 1.8rem;
  --card-pad-hero: 2.8rem 2.6rem;
  --btn-pad: .46rem 1.5rem;
  --stack-gap: 2.4rem;       /* between sections on a page */
  --row-gap: 1.4rem;         /* between sibling cards */
  --wrap-max: 960px;
  --card-max: 520px;

  /* the magic: irregular radii = a hand-drawn box, no images, no JS */
  --rough:   255px 15px 225px 15px / 15px 225px 15px 255px;
  --rough-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --rough-blob: 48% 52% 50% 50% / 52% 48% 52% 48%;
  --radius-chip: 6px;
  --radius-pill: 8px;
  --radius-btn: 999px;       /* buttons are geometric pills, not rough boxes */

  --stroke-w: 2.5px;
  --stroke-w-plate: 3px;
  --stroke-w-thin: 2px;

  /* hard offset "sticker" shadows — never blurred */
  --shadow: 6px 7px 0 rgba(0, 0, 0, .32);
  --shadow-sm: 4px 5px 0 rgba(0, 0, 0, .3);
  --shadow-press: 3px 4px 0 rgba(0, 0, 0, .3);

  /* Highlights are solid washes, not lines. Hatching is for large technical fills only. */
  --wash-accent: #ffeada;
  --wash-accent-strong: #ffd9b8;
  --wash-ink: rgba(26, 26, 26, .04);
  --marker-accent: linear-gradient(to top, #ffc078 0 .42em, transparent .42em);
  --hatch-ink: repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 1.2px, transparent 1.2px 11px);
  --hatch-cross:
    repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 1.1px, transparent 1.1px 11px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 1.1px, transparent 1.1px 11px);
  /* 18px graph paper — the one patterned fill in normal use, for technical panels */
  --grid-plate:
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 18px);
  --wavy-underline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='8'><path d='M1 5 C20 1, 40 8, 60 4 S95 2, 99 5' stroke='%23ff7a3c' fill='none' stroke-width='2'/></svg>");
}

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

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text-body);
  text-wrap: pretty;
}

.handwritten { font-family: var(--font-hand); }

/* Center a single card in the viewport (the one-pager) */
.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

/* Wrapper for multi-section pages as the site grows */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* ===========================
   The reusable sketch box
   =========================== */
.sketch {
  background: var(--surface-card);
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--rough);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}
.sketch.alt { border-radius: var(--rough-2); }
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1deg); }

/* accent-wash callout / aside — reads like a highlighted margin note */
.callout { background-color: var(--wash-accent); }

/* ===========================
   Plate — a square-cornered technical panel.
   The datasheet is a spec sheet, not a sketch: no rough radius, heavier rule.
   =========================== */
.plate {
  background: var(--surface-card);
  border: var(--stroke-w-plate) solid var(--stroke);
  box-shadow: var(--shadow);
  width: min(600px, 100%);
  padding: 2.8rem 2.4rem 2.2rem;
}

/* ===========================
   Wordmark
   =========================== */
.wordmark {
  margin: 0 auto 1.9rem;
  display: block;
  width: min(280px, 74%);
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================
   Datasheet — label / value rows
   =========================== */
.spec {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem 1.2rem;
  align-items: baseline;
  font-size: .98rem;
}
.spec dt {
  font-family: var(--font-hand);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-kicker);
  font-size: .85rem;
  white-space: nowrap;
}
.spec dd { margin: 0; }

/* Redaction bar — the interesting rows live under ink until you ask.
   Keyboard users get it too: the span carries tabindex="0". */
.redact {
  background: var(--ink);
  color: transparent;
  border-radius: 2px;
  cursor: help;
  user-select: none;
  transition: background .12s, color .12s;
}
.redact:hover,
.redact:focus-visible {
  background: var(--wash-accent-strong);
  color: var(--text-body);
}

/* ===========================
   Buttons — hand-lettered label in a geometric pill
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-hand);
  font-size: var(--text-btn);
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--text-body);
  text-decoration: none;
  background: var(--surface-card);
  background-image: none;      /* cancel the inline-link wavy underline */
  border: var(--stroke-w-plate) solid var(--stroke);
  border-radius: var(--radius-btn);
  padding: var(--btn-pad);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.btn:hover {
  background: var(--wash-accent-strong);
  color: var(--text-body);
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-press);
}
/* solid primary */
.btn.primary { background: var(--surface-ink); color: var(--text-inverse); }
.btn.primary:hover { background: var(--surface-ink); }

.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border: var(--stroke-w) solid currentColor;
  border-radius: 50%;
  font-size: .82em;
  margin-right: -.35em;
}

/* Signature Exclaim "!" — the contact button earns an extra bang on hover.
   Pure CSS: no script needed.
   The bang is positioned out of flow and only fades in, so hovering doesn't
   widen the label and resize the pill — it lands in the button's own 1.5rem
   right padding. Swapping content: "" -> "!" would reflow the button. */
.btn .btn-label { position: relative; }
.btn .btn-label::after {
  content: "!";
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
}
.btn:hover .btn-label::after { opacity: 1; }

/* ===========================
   Inline text accents
   =========================== */
/* hand-drawn wavy underline link */
.ulink {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background-image: var(--wavy-underline);
  background-repeat: no-repeat;
  background-position: 0 1.15em;
  background-size: 100% 8px;
  padding-bottom: .45em;
}
.ulink:hover { color: var(--accent-hover); }

/* highlighter — a solid marker swipe across the lower half of the phrase */
.mark,
mark {
  background-color: transparent;
  background-image: var(--marker-accent);
  color: var(--text-body);
  padding: .02em .18em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===========================
   Nav (ready for when there's more than one page)
   =========================== */
.main-nav {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-hand);
  font-size: var(--text-nav);
}
.main-nav a { color: var(--ink); text-decoration: none; position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--ink);
  opacity: .25;
  border-radius: 2px;
}
.main-nav a:hover::after { opacity: .7; height: 3px; }

/* ===========================
   Content building blocks
   =========================== */
.kicker {
  margin: 0 0 .6rem;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--text-kicker);
}

.note {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.note p {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
}

/* image placeholder (the X box) — swap for real photos later */
.ph {
  position: relative;
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--rough);
  aspect-ratio: 4 / 3;
  background: var(--hatch-ink);
  display: grid;
  place-items: center;
}
.ph::before,
.ph::after { content: ""; position: absolute; inset: 8px; border-top: var(--stroke-w-thin) solid var(--stroke-soft); }
.ph::before { transform: rotate(33deg); }
.ph::after  { transform: rotate(-33deg); }
.ph span {
  position: relative;
  font-family: var(--font-hand);
  color: var(--text-kicker);
  background: var(--surface-card);
  padding: .1rem .5rem;
  border-radius: 8px;
}

/* wireframe filler lines */
.lines { display: flex; flex-direction: column; gap: .55rem; }
.lines i { display: block; height: .7rem; background: var(--rule); border-radius: 6px; }
.lines i:nth-child(2) { width: 92%; }
.lines i:nth-child(3) { width: 78%; }

/* person row (team page) */
.person { display: flex; align-items: center; gap: 1rem; }
.avatar {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--rough-blob);
  display: grid;
  place-items: center;
  background: var(--surface-card);
}
.avatar svg { width: 32px; height: 32px; opacity: .6; }

.row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.row > * { flex: 1 1 240px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ===========================
   Focus + responsive
   =========================== */
a:focus-visible,
button:focus-visible,
.redact:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .plate { padding: 2.2rem 1.5rem 1.8rem; }
  .spec { grid-template-columns: 1fr; gap: .15rem; }
  .spec dd { margin-bottom: .5rem; }
}

/* Respect reduced-motion: the hover nudge is decorative. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .redact { transition: none; }
}
