/* tokens/fonts.css */
/* ECP webfonts.
   Plantin Pro (display) and Karmilla (body) are not available to this project.
   Substitutions in use, flagged in readme.md:
     Plantin Pro -> Source Serif 4  (transitional serif, large x-height, editorial)
     Karmilla    -> Karla           (Karmilla is a direct fork of Karla)
   Replace this file with self-hosted @font-face rules when the licensed files arrive. */


:root{
  --font-display:"Source Serif 4","Plantin Pro","Plantin",Georgia,serif;
  --font-body:"Karla","Karmilla",system-ui,sans-serif;
}

/* tokens/colors.css */
:root{
  /* Base palette */
  --emerald:#212A25;
  --champagne:#F4F0E8;
  --white:#FFFFFF;
  --mulled-wine:#B7645C;
  --rose:#ECC3AF;

  /* Derived, for dividers and tints only. Never for text. */
  --emerald-12:rgba(33,42,37,.12);
  --emerald-24:rgba(33,42,37,.24);
  --emerald-60:rgba(33,42,37,.60);
  --champagne-deep:#EAE4D8;
  --rose-tint:#F6E4DA;

  /* Semantic surfaces */
  --surface-page:var(--champagne);
  --surface-card:var(--white);
  --surface-inverse:var(--emerald);
  --surface-accent:var(--mulled-wine);
  --surface-tint:var(--rose);
  --surface-tint-soft:var(--rose-tint);

  /* Semantic text. Emerald on Champagne is the default pairing. */
  --text-body:var(--emerald);
  --text-muted:var(--emerald-60);
  --text-on-inverse:var(--champagne);
  --text-on-accent:var(--white);
  --text-on-tint:var(--emerald);

  /* Lines */
  --rule-hairline:var(--emerald-24);
  --rule-soft:var(--emerald-12);
  --rule-accent:var(--mulled-wine);
  --rule-light:rgba(244,240,232,.28);

  /* Focus */
  --focus-ring:var(--emerald);
}

/* tokens/typography.css */
:root{
  /* 1.25 scale from a 16px base */
  --display-1:61px;
  --display-2:49px;
  --display-3:39px;
  --display-4:31px;
  --body-lg:20px;
  --body-md:16px;
  --body-sm:14px;
  --label:12px;

  --leading-display:1.08;
  --leading-display-loose:1.14;
  --leading-body:1.55;
  --leading-tight:1.3;

  --tracking-display:-0.01em;
  --tracking-body:0;
  --tracking-label:0.08em;

  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;

  --measure:68ch;
}

/* tokens/spacing.css */
:root{
  --space-1:4px;
  --space-2:8px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:48px;
  --space-7:64px;
  --space-8:96px;
  --space-9:128px;
  --space-10:160px;

  --section-y:128px;
  --section-y-mobile:64px;
}

/* tokens/layout.css */
:root{
  --container-max:1440px;
  --gutter-outer:80px;
  --gutter-outer-mobile:24px;
  --columns:12; /* @kind other */
  --columns-tablet:8; /* @kind other */
  --columns-mobile:4; /* @kind other */
  --column-gap:24px;
  --radius:2px;
  --radius-none:0px;
  --border-hairline:1px;
}

/* tokens/motion.css */
:root{
  --duration-hover:200ms; /* @kind other */
  --duration-entrance:400ms; /* @kind other */
  --ease-standard:cubic-bezier(.22,.61,.36,1); /* @kind other */
  --offset-entrance:16px;
}
@media (prefers-reduced-motion:reduce){
  :root{--duration-hover:0ms; /* @kind other */ --duration-entrance:0ms; /* @kind other */ --offset-entrance:0px}
}

/* tokens/base.css */
html{-webkit-font-smoothing:antialiased}
body{margin:0;background:var(--surface-page);color:var(--text-body);font-family:var(--font-body);font-size:var(--body-md);line-height:var(--leading-body)}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:var(--weight-regular);line-height:var(--leading-display);letter-spacing:var(--tracking-display);margin:0}
p{margin:0;max-width:var(--measure);text-wrap:pretty}
a{color:var(--text-body);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;transition:opacity var(--duration-hover) var(--ease-standard)}
a:hover{opacity:.65}
*{box-sizing:border-box}
.ecp-label{font-family:var(--font-body);font-size:var(--label);letter-spacing:var(--tracking-label);line-height:var(--leading-tight);text-transform:none}
.ecp-container{max-width:var(--container-max);margin:0 auto;padding-inline:var(--gutter-outer)}
@media (max-width:900px){.ecp-container{padding-inline:var(--gutter-outer-mobile)}}

