/* ============================================================================
   Seppi — identity tokens for the web.

   SOURCE OF TRUTH: brand/seppi-ci-v0.1.pdf
   "Seppi / Identity Guidelines / v0.1 — Working CI, 09 September 2026",
   by an attitude. Where this file and that document disagree, the PDF wins
   and this file is the bug. The standards page reads its quoted values
   straight out of these rules, so the documentation cannot drift.

   Values marked "proposed" in the source are proposed here too — see the
   Established / Still to approve section at the foot of the page.
   ========================================================================= */

:root{
  /* --- the five colours ------------------------------------------------- */
  --charcoal:  #202020;   /* text, outlines, dark field */
  --white:     #FFFFFF;   /* cards, light field */
  --lavender:  #B2A1F9;   /* brand field, soft emphasis */
  --lime:      #E6F17A;   /* actions, key information */
  --orange:    #F05A24;   /* small status accent — keep it small */

  /* documentation neutrals. Not brand colours: this page needs a hairline
     and a secondary grey that the app does not. */
  --hair:      #E4E2DD;
  --hair-dark: #3A3A3A;
  --grey:      #6B6B66;
  --grey-dark: #A0A09A;

  /* --- type ------------------------------------------------------------- */
  /* Serif character. Sans clarity. Two roles, no third family. */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
           'Helvetica Neue', Arial, sans-serif;

  /* Proposed logical screen points from the source, expressed fluid for the
     web: clamp(min, intercept + slope*vw, max), 360px to 1440px. */
  --t-display: clamp(30px, 22.67px + 2.0370vw, 52px);   /* 34–40 pt on device */
  --t-card:    clamp(21px, 17.67px + 0.9259vw, 31px);   /* 22–28 pt */
  --t-count:   clamp(40px, 26.67px + 3.7037vw, 80px);   /* 44–56 pt */
  --t-body:    17px;                                     /* 16–17 pt */
  --t-label:   13px;                                     /* 13–15 pt */

  /* --- rhythm ----------------------------------------------------------- */
  /* Proposed starting grid: 24 pt page inset, 16 pt card padding,
     8 pt spacing steps. */
  --inset:   24px;
  --card-pad:16px;
  --s1:8px; --s2:16px; --s3:24px; --s4:32px; --s5:40px; --s6:48px;
  --gutter:  clamp(20px, 15.56px + 1.2346vw, 40px);
  --section: clamp(56px, 37.33px + 5.1852vw, 112px);

  /* --- shape ------------------------------------------------------------ */
  /* Soft pebbles. A small reusable set of silhouettes, never random
     deformation on every render. */
  /* Absolute radii, not percentages: a percentage radius scales with the box,
     so a wide card collapses into an ellipse and eats its own copy. These
     hold the soft asymmetry at every card size. */
  --pebble-a:   44px 58px 48px 54px / 54px 44px 58px 48px;  /* large tiles */
  --pebble-b:   58px 44px 54px 48px / 44px 58px 46px 56px;
  --pebble-c:   38px 62px 46px 56px / 50px 40px 60px 46px;
  --pebble-row: 30px 40px 32px 38px / 34px 30px 38px 32px;  /* long rows */
  --pebble-md:  20px 28px 22px 26px / 24px 20px 28px 22px;  /* small cards */
  --pebble-sm:  13px 19px 15px 17px / 15px 13px 19px 15px;  /* phone rows */
  --circle: 50%;

  /* --- mascot ----------------------------------------------------------- */
  /* Proposed starting sizes. Test on a phone before approval. */
  --mascot-head: 32px;
  --mascot-bust: 72px;
  --mascot-full: 120px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:var(--s3)}
body{
  margin:0;background:var(--white);color:var(--charcoal);
  font-family:var(--sans);font-size:var(--t-body);line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition-duration:.001ms!important}
}

.shell{max-width:1160px;margin:0 auto;padding:0 var(--gutter)}

/* --- type roles --------------------------------------------------------- */
.display{
  font-family:var(--serif);font-weight:700;font-size:var(--t-display);
  line-height:1.14;letter-spacing:-.005em;margin:0;text-wrap:balance;
}
.card-head{
  font-family:var(--serif);font-weight:700;font-size:var(--t-card);
  line-height:1.2;margin:0;text-wrap:balance;
}
.count{
  font-family:var(--serif);font-weight:700;font-size:var(--t-count);
  line-height:.95;font-variant-numeric:tabular-nums;
}
.body{font-size:var(--t-body);line-height:1.55;margin:0;max-width:62ch}
.muted{color:var(--grey)}
.label{
  font-family:var(--sans);font-weight:500;font-size:var(--t-label);
  line-height:1.35;
}
.eyebrow{
  font-family:var(--sans);font-weight:500;font-size:11px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--grey);
}
a{color:inherit}
strong{font-weight:600}

/* --- the wordmark ------------------------------------------------------- */
/* Always lowercase, upright, monochrome. Reversed to white on dark. */
.wordmark{
  font-family:var(--serif);font-weight:700;
  letter-spacing:-.005em;line-height:1.1;
  display:inline-block;
}

/* --- structure ---------------------------------------------------------- */
.header{
  display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);
  align-items:baseline;justify-content:space-between;
  padding:var(--s3) 0;border-bottom:1px solid var(--hair);
}
.section{padding:var(--section) 0;border-bottom:1px solid var(--hair)}
.sec-label{
  display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);
  align-items:baseline;justify-content:space-between;
  padding-bottom:var(--s2);margin-bottom:var(--s5);
  border-bottom:1px solid var(--hair);
}
.stack{display:grid;gap:var(--s3);align-content:start}
.cols-2{display:grid;gap:var(--s5);grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}
.cols-3{display:grid;gap:var(--s5);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:start}

/* Three-up explanatory blocks, as the source document sets them. */
.notes{display:grid;gap:var(--s5);grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.note h3{font-family:var(--serif);font-weight:700;font-size:19px;line-height:1.25;margin:0 0 var(--s1)}
.note p{margin:0;font-size:15px;line-height:1.5;color:var(--grey)}

/* Hairline rows: label left, value right. */
.rows{display:grid}
.rows > div{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:4px 24px;align-items:baseline;
  padding:13px 0;border-top:1px solid var(--hair);
}
.rows > div:last-child{border-bottom:1px solid var(--hair)}
.rows dfn{font-style:normal;font-weight:500}
.rows .v{font-size:15px;color:var(--grey)}

/* A caveat carried over from the source, set as the source sets it. */
.footnote{
  font-size:13px;line-height:1.5;color:var(--grey);
  border-top:1px solid var(--hair);padding-top:var(--s2);margin-top:var(--s5);
  max-width:88ch;
}

/* --- pebbles ------------------------------------------------------------ */
.pebble{
  border-radius:var(--pebble-a);
  padding:var(--card-pad);
  display:grid;gap:4px;align-content:center;
}
.pebble--b{border-radius:var(--pebble-b)}
.pebble--c{border-radius:var(--pebble-c)}
.pebble--row{border-radius:var(--pebble-row);padding:14px 26px}
.pebble--md{border-radius:var(--pebble-md)}
.pebble--sm{border-radius:var(--pebble-sm)}
.pebble--lavender{background:var(--lavender);color:var(--charcoal)}
.pebble--lime{background:var(--lime);color:var(--charcoal)}
.pebble--white{background:var(--white);color:var(--charcoal)}
.pebble--charcoal{background:var(--charcoal);color:var(--white)}
.action{
  width:52px;height:52px;border-radius:var(--circle);
  background:var(--lime);color:var(--charcoal);
  display:grid;place-items:center;font-size:20px;flex:none;
}
.chip{
  display:inline-block;border-radius:999px;padding:3px 10px;
  font-size:12px;font-weight:500;
}
.chip--orange{background:var(--orange);color:var(--white)}
.chip--lavender{background:var(--lavender);color:var(--charcoal)}

/* --- fields ------------------------------------------------------------- */
/* Full-bleed bands that show a colour doing its actual job. */
.field{padding:var(--s5) var(--gutter);border-radius:0}
.field--charcoal{background:var(--charcoal);color:var(--white)}
.field--lavender{background:var(--lavender);color:var(--charcoal)}
.field--lime{background:var(--lime);color:var(--charcoal)}
.field--charcoal .muted{color:var(--grey-dark)}
.field--charcoal .eyebrow{color:var(--grey-dark)}
.field--charcoal .rows > div{border-color:var(--hair-dark)}
.field--charcoal .rows .v{color:var(--grey-dark)}

/* --- the drawn character ------------------------------------------------ */
/* Option A, the Curious Kid: a light pen line. Option B, the Cave Kid:
   broad charcoal strokes whose pigment gaps come from a filter. */
.kid{display:block;height:auto;color:var(--charcoal);--face:var(--white)}
.pen{
  fill:none;stroke:currentColor;stroke-width:4;
  stroke-linecap:round;stroke-linejoin:round;
}
.pen-fill{fill:currentColor;stroke:none}
.cave{
  fill:none;stroke:currentColor;stroke-width:12;
  stroke-linecap:round;stroke-linejoin:round;filter:url(#pigment);
}
.cave-fill{fill:currentColor;stroke:none;filter:url(#pigment)}
.prop-lime{fill:var(--lime);stroke:none}
.prop-lavender{fill:var(--lavender);stroke:none}
/* A white face keeps the character readable across every field. */
.face-plate{fill:var(--face);stroke:none}

/* On dark areas the linework reverses, and the face plate reverses with it —
   otherwise the plate paints over the character and leaves a blank oval.
   Both have to travel as *inherited* properties: the poses live in <defs> and
   are drawn through <use>, and a descendant selector cannot reach inside that
   shadow tree. currentColor and a custom property can. */
.field--charcoal .kid,
.phone--charcoal .kid{color:var(--white);--face:var(--charcoal)}

.footer{padding:var(--section) 0 var(--s4)}
.footer-cols{display:grid;gap:var(--s5);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));padding-bottom:var(--s4)}
.footer-bar{border-top:1px solid var(--hair);padding-top:var(--s2);display:flex;flex-wrap:wrap;gap:var(--s2);justify-content:space-between;font-size:13px;color:var(--grey)}
