/* Proficio Consulting Group: the one set of colors, type and spacing.
   Every page reads these. Change a value here and the whole site follows.
   Navy and white carry the pages. Green is an accent only: a thin rule, an arrow, an underline, and the last line
   of the tagline at the top of the home page. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- color (contrast ratios measured, WCAG 2) ---- */
  --paper: #ffffff;            /* page background */
  --paper-lot: #eef3f9;        /* quiet panel and band background */
  --ink: #0b1f3a;              /* text on paper (16.52:1; 14.81:1 on --paper-lot) */
  --ink-soft: #3d5170;         /* secondary text (8.05:1 on paper; 7.21:1 on --paper-lot) */
  --line: #c5d3e4;             /* 1px hairlines on paper */
  --blue: #0f66ab;             /* links on paper (5.98:1; 5.36:1 on --paper-lot) */
  --navy: #083c7f;             /* Proficio's deep blue: the first screen, page heads, bands */
  --navy-deep: #062a5a;        /* the footer */
  --on-navy: #ffffff;          /* text on navy (10.7:1; 14.13:1 on --navy-deep) */
  --on-navy-soft: #c7d8ee;     /* secondary text on navy (7.38:1; 9.74:1 on --navy-deep) */
  --line-on-navy: #3a69a8;     /* hairlines on navy; decoration only */
  --accent: #86bb36;           /* Proficio's green: thin rules and the small arrow box. Never text on paper (2.29:1) */
  --accent-ink: #3d7a14;       /* green for a small label on paper (5.26:1; 4.71:1 on --paper-lot) */
  --accent-on-navy: #a9d95f;   /* green as a rule, underline or icon on navy, and the tagline's last line (6.51:1; 8.6:1 on --navy-deep) */
  --on-accent: #0b1f3a;        /* the arrow inside the small green box (7.22:1) */

  /* ---- type ---- */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;      /* headings, labels, navigation */
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif; /* reading text */
  --wdth-head: 106%;           /* headings run very slightly wide */
  --wdth-label: 112%;          /* small capital labels run a little wider */
  --size-hero: clamp(2.125rem, 1rem + 3.4vw, 4rem);          /* the tagline on the home page */
  --size-page: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);         /* an inner page's h1 */
  --size-title: clamp(1.75rem, 1.3rem + 1.3vw, 2.625rem);    /* section titles */
  --size-h2: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);           /* a listed post's title, a zone's heading */
  --size-row: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);     /* a title in a plain link row (related case studies, previous and next) */
  --size-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --size-name: clamp(1.375rem, 1rem + 1.1vw, 2rem);          /* a service name in its row */
  --size-person: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);  /* a partner's name */
  --size-mega: clamp(1.375rem, 0.9rem + 1.9vw, 2.25rem);     /* the email and phone in Get In Touch */
  --size-lead: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --size-lead-lg: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); /* the opening paragraph of a page */
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;
  --size-label: 0.8125rem;
  --leading-tight: 1.08;
  --leading-heading: 1.2;
  --leading-body: 1.62;
  --track-label: 0.08em;
  --measure: 68ch;

  /* ---- spacing: one scale, 4px base ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);   /* page side margin */
  --sheet: 78rem;                           /* widest the content runs */
  --block: clamp(3.5rem, 6vw, 5.5rem);      /* padding above and below every section */

  /* ---- lines and shape ---- */
  --hair: 1px;
  --rule: 2px;                 /* the thin green rule that opens an item */
  --rule-top: 3px;             /* the green rule on top of a panel */
  --focus: 3px;                /* keyboard focus ring */
  --tap: 2.75rem;              /* 44px: the smallest touch target */
  --go: 3.5rem;                /* 56px: the arrow box on a service row, the largest green fill on the site */
  --go-phone: 2.75rem;
  --rule-short: 3rem;          /* the length of a short green rule under a name */
  --pic-max: 112.5rem;         /* 1800px: the widest picture file, so a box never draws one above its size */
  --hero-min: 36rem;           /* the least height of the home first screen on a wide screen */
  --head-min: 30rem;           /* the least height of a service page head on a wide screen */
  --band-pic: clamp(11rem, 24vw, 21rem); /* the height of the picture band under a case study's head */
  --portrait-lg: 15.625rem;    /* 250px: a partner photo at its own file size, never larger */
  --portrait-md: 12.5rem;      /* 200px: the person page photo on a phone */
  --portrait-md-band: 11rem;   /* 176px: the photo in the navy contact band */
  --portrait-xs: 4.5rem;       /* 72px: the photo in the band at the foot of inner pages */
  --logo: 13.5rem;             /* the logo in the header */
  --logo-phone: 11rem;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wipe: cubic-bezier(0.65, 0, 0.35, 1);  /* an even wipe: starts and ends gently */
  --t-fast: 160ms;
  --t-mid: 520ms;              /* the wipe across a service row */
}
