/* 
  These styles should apply to anything under the MCA web development
  umbrella should/can inherit this starting point of styles. A rule of thumb would be fairly generic
  contexts (ie., not deeply nested selector chains), no classes, no unique attribute selectors not part,
  of the html dtd—for instance, details[open] is generic, li[data-special] is not
  
*/

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

html, body, div, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
address, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, 
figure, figcaption, footer, header, 
menu, nav, output, section, summary, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

pre {
  white-space: pre-wrap;
}

summary,
button {
  cursor: pointer;
}

blockquote {
  quotes: none;
  margin: var(--gap) 0;
  padding: 0 var(--gap-half);
}

/* one level deep, make big blockquotes */
article > * > blockquote > p {
  font-family: var(--MCA06);
  letter-spacing: -0.025ch;
  max-width: 50ch;
  line-height: 1.25;

}

blockquote:before,
blockquote:after {
  content: none;
}

/* 
[lang=en] q:before { content: '"'}
[lang=en] q:after  { content: '"'}

*/

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  scroll-behavior: smooth;
  text-rendering: geometricPrecision;

  /* styleguide color variables */
  --yellow: rgb(255 255 0);
  --blue: rgb(8, 8, 255);
  --black: rgb(0 0 0);
  --white: rgb(255 255 255);
  --highlight: var(--yellow);
  --shade: rgb(0 0 0 / 0.025);

  /* non-standard color variables */
  --magenta: rgb(255 0 255);

  /* default dark/light theme variables (prefers-color-scheme fallback) */
  --background-color: var(--white);
  --foreground-color: var(--black);
  --accent-color: var(--blue);

  /* All typefaces fall back to the 10 unit then to web safe fonts */
  --MCA10: 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --MCA02: 'mca_u_v.102u_1', 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --MCA03: 'mca_u_v.103u_1.5', 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --MCA04: 'mca_u_v.104u_2', 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --MCA06: 'mca_u_v.106u_3', 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --MCA08: 'mca_u_v.108u_4', 'mca_u_v.110u', Arial, Helvetica, sans-serif;
  --underline: solid underline var(--foreground-color) 1px;
}

::selection {
  color: var(--white);
  background-color: var(--blue);
}

/* The web-default unbroken 10 unit typeface */
/* ALT / VINYL - NORMAL */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mcau_10u_5_alt_re_r5.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ALT / VINYL - ITAL */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mcau_10u_5_alt_it_r3.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* The legacy broken 10 unit typeface shares the same family name and can
be used by defining a font-weight of "500" */
/* STANDARD 10 */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mca_u_10u_5_k.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 10 - ITAL */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mca_u_10u_5_it_k.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* The broken 10 unit medium weight can be used with the same family name and
a font-weight of "700" or "bold" */
/* STANDARD 10 - BOLD */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mcau_10u_6.5_re_r4.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 10 - BOLD ITAL */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mcau_10u_6.5_it_r4.woff2') format('woff2'),
    url('/media/fonts/mcau_10u_6.5_it_r4.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* STANDARD 10 - X-BOLD */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mca_u_10u_8_k.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 10 - X-BOLD ITAL */
@font-face {
  font-family: 'mca_u_v.110u';
  src: url('/media/fonts/mca_u_10u_8_it_k.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* STANDARD 2 */
@font-face {
  font-family: 'mca_u_v.102u_1';
  src: url('/media/fonts/mca_u_02u_1_k.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 3 */
@font-face {
  font-family: 'mca_u_v.103u_1.5';
  src: url('/media/fonts/mca_u_03u_1.5_k.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 4 */
@font-face {
  font-family: 'mca_u_v.104u_2';
  src: url('/media/fonts/mca_u_04u_2_k.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 6 */
@font-face {
  font-family: 'mca_u_v.106u_3';
  src: url('/media/fonts/mca_u_06u_3_k.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* STANDARD 8 */
@font-face {
  font-family: 'mca_u_v.108u_4';
  src: url('/media/fonts/mca_u_08u_4_k.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* @media (prefers-color-scheme: dark) {

  :root {
    --white: rgb(240 240 240);
    --background-color: var(--black);
    --foreground-color: var(--white);
    --shade: rgb(255 255 255 / 0.175);
    --blue: cyan;
    --highlight: var(--magenta);
    text-rendering: optimizeLegibility;
  }


  body.light-scheme {
    --background-color: var(--white);
    --foreground-color: var(--black);
  }


}


@media (prefers-color-scheme: light) {

  :root {
    --background-color: var(--white);
    --foreground-color: var(--black);
  }


  body.dark-scheme {
    --background-color: var(--black);
    --foreground-color: var(--white);
  }


}
 */

body {
  font-family: var(--MCA10);
  line-height: 1.3;
  letter-spacing: -0.025em;
  background-color: var(--background-color);
  color: var(--foreground-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin: 0.75em 0 0.5em;
}


h1,
.h1 {
  font-family: var(--MCA06);
  font-size: 2rem;
  overflow-wrap: break-word;
  line-height: 0.9;
}

h2,
.h2 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.075ch;
}

h3,
.h3 {
  font-size: 1.25rem;
}

p,
dl {
  margin: var(--gap-half) 0;
  line-height: inherit;
}

p,
li,
dd {
  max-width: 68ch;
}

a {
  --foreground-color: var(--blue);
  color: var(--foreground-color);
  text-decoration: solid underline var(--foreground-color);
  -webkit-text-decoration: solid underline var(--foreground-color);
  text-decoration-thickness: 0.075em;
  text-decoration: underline;
}

li a {
  text-rendering: optimizeLegibility;
}

p > a {
  --foreground-color: var(--foreground-color);
  /* text-decoration: none; */
}

a:hover {
  --foreground-color: var(--blue);
}

abbr {
  text-transform: uppercase;
  letter-spacing: -0.0875em;
}

abbr,
a:hover {
  text-decoration: none;
}

sup {
  line-height: 1;
  font-size: 80%;
  vertical-align: text-top;
}

dt,
strong {
  font-weight: 600;
}

input {
  max-width: 100%;
  border: var(--rule);
  padding: var(--gap-quarter);
  background-color: var(--background-color);
}

main article ul {
  list-style: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzaGFwZS1yZW5kZXJpbmc6IGNyaXNwRWRnZXM7c3Ryb2tlOiM1NTU7ZmlsbDpub25lO3N0cm9rZS13aWR0aDowLjU7IiB2aWV3Qm94PSIwIDAgNSA1Ij48cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMyIgaGVpZ2h0PSIzIi8+PC9zdmc+');
  padding-left: calc(var(--gap-half) + 1ch);
}

main article ul,
main article ol {
  margin: 1em 0;
}

ol,
dd {
  margin-left: var(--gap-half);
  list-style-position: inside;
}

figure img {
  width: 100%;
  object-fit: contain;
  height: auto;
  display: block;
}

hr {
  border: none;
  margin: var(--gap-half) 0;
  border-top: var(--rule);
}

body > header > nav h1,
body > header > nav h2,
body > header > nav h3,
body > header > nav h4,
body > header > nav h5,
body > header > nav h6 {
  margin: var(--gap-inverse);
  padding: var(--gap) var(--gap-half);
}

nav ul,
nav ol,
footer ul {
  list-style: none;
  margin-bottom: var(--gap);
}

body > header > nav a {
  --foreground-color: var(--foreground-color);
  text-decoration: none;
}

body > header > nav li a:hover {
  text-decoration: underline;
}

body > header > nav li > ul {
  margin: var(--gap-half) 0 var(--gap) 0;
  font-size: 75%;
}

footer {
  font-size: 80%;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h6 {
  font-size: inherit;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.125ch;
}

/* DEVELOP / DISCUSS */

summary {
  list-style-type: none;
  padding: var(--gap-half);
}

/* note, this may lower lighthouse score or emit deprication notice... nothing to be done about that as is needed in safari */
summary::-webkit-details-marker {
  display: none;
}

details + details {
  border-top: var(--rule);
}

summary:focus {
  background-color: var(--shade);
}

mark {
  background-color: var(--highlight);
}

code {
  overflow-wrap: anywhere;
  font-family: inconsolata;
  padding: 0 0.25ch;
  background-color: var(--shade);
  border: var(--dashed);
  margin: 0 -0.25ch;
}

summary::before {
  content: '>';
  padding: 0.25rem;
  display: inline-block;
  transition: transform 0.125s steps(2);
}

details[open] summary::before {
  transform: rotate(90deg) translate(0, 0.25rem);
}


details > *:not(summary) {
  margin-left: var(--gap-half);
}
