@import '/graphics/icons.css?fill=%23000';

/* 
  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, input {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

pre {
  white-space: pre-wrap;
}

summary,
button,
[role=tab] {
  cursor: pointer;
}

small {
  font-size: 80%;
}

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.125;
}

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

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





:root, html.theme-light {
  /* 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);

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

  /* 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;

  --logo: url(/graphics/mca-logo.svg?fill=%23000);
  --logo-h: url(/graphics/mca-logo-horizontal.svg?fill=%23000);
}

::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: magenta;
    --accent-color: magenta;
    --highlight: cyan;
    --logo: url(/graphics/mca-logo.svg?fill=%23FFF);
    --logo-h: url(/graphics/mca-logo-horizontal.svg?fill=%23FFF);
    text-rendering: optimizeLegibility;
  }
}


@media (prefers-color-scheme: light) {
  html.theme-dark {
    --background-color: var(--black);
    --foreground-color: var(--white);
    --blue: magenta;
    --accent-color: magenta;
    --shade: rgb(255 255 255 / 10%);
    --highlight: cyan;
    --logo: url(/graphics/mca-logo.svg?fill=%23FFF);
    --logo-h: url(/graphics/mca-logo-horizontal.svg?fill=%23FFF);
    text-rendering: optimizeLegibility;
  }
}


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,
address span {
  display: block;
  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;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

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

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

a[href] {
  --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;
}

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

li a {
  text-rendering: optimizeLegibility;
}

p a[href] {
  --foreground-color: var(--foreground-color);
  text-decoration-color: var(--accent-color);
}

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);
  border-radius: 0;
  color: var(--foreground-color);
}

.invert,
input[type='submit'],
button,
aside[aria-label*='notice' i],
figure.embed {
  background-color: var(--foreground-color);
  color: var(--background-color);
  text-rendering: optimizeLegibility;
}

/* black button */
input[type='submit'],
button {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 var(--gap-quarter);
  display: inline-block;
  border: var(--rule);
  font-family: var(--MCA10);
  cursor: pointer;
  border-radius: 0;
}


select {
  font-family: var(--MCA10);
  width: 100%;
  border-radius: 0;
  border-color: #000;
}

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

figure img {
  width: 100%;
  object-fit: contain;
  line-height: 1;
  font-size: 75%;
  height: auto;
  object-position: 0 0;
}

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

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);
}

main article ul {
  padding: 0 0 0 0.875em;
  list-style: square;
}

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

section > ol {
  padding: 0 0 0 var(--gap-half);
}

article section > ul li {
  margin: var(--gap-quarter);
}


section > ol li {
  padding: var(--gap-quarter) var(--gap-half);
  counter-increment: idx;
  list-style-position: outside;
}

section > ol li::marker {
  content: counter(idx);
  font-family: var(--MCA06);
}


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 h2,
footer h3,
footer h4,
footer h6 {
  font-size: inherit;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.125ch;
}

footer .titleblock a {
  display: block;
  background: var(--logo) no-repeat 100% 100%;
  background-position: 50% 50%;
  color: transparent;
  text-indent: -100em;
}

footer .connect,
footer .titleblock,
footer #hours,
footer .group {
  display: flex;
  flex-wrap: wrap;
}
footer form {
  width: 100%;
}
footer form input {
  font-size: 16px;
}
footer section > section {
  margin: 0 1em;
}

footer.info section,
footer .connect section {
  flex: 1 1 auto;
}

footer .titleblock address {
  padding: var(--gap-half) var(--gap);
}

footer > section:last-of-type {
  grid-column: 1 / -1;
  margin: var(--gap) var(--gap-inverse) var(--gap-inverse);
  padding: 0.75em 1.5em;
}

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

summary::-webkit-details-marker {
  display: none;
}

details + details {
  border-top: 1px solid #000;
}

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

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

code {
  overflow-wrap: anywhere;
  font-family: inconsolata, monospace;
  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);
}

div#modal, .modal {
  position: fixed;
  backdrop-filter: blur(3px);
  background-color: rgb(255 255 255 / 0.85);
  z-index: 10000;
}

div#modal {
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: var(--gap);
}

#prefs {
  margin: var(--gap) 0;
  background-color: var(--shade);
  padding: var(--gap-half);
}
#prefs h4::before {
  mask-image: var(--accessibility);
  -webkit-mask-image: var(--accessibility);
  mask-size: auto 100%;
  -webkit-mask-size: 100%;
  content: 'accessibility';
  overflow: hidden;
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.5ch;
  display: inline-block;
  background-color: var(--foreground-color);
}

#prefs .group label {
  display: inline-block;
  margin-left: 0.5em;
}

#prefs .group input + span::before {
  margin-right :0.25em;
  border-radius: 50%;
}

#prefs input {
  display: inline-block;
  position: absolute;
  opacity:0;
  margin: 0;
}

#prefs input:focus + span::before {
  outline: 1px dashed var(--accent-color);
  outline-offset: 1px;
}
#prefs input + span::before {
  vertical-align: top;
  content: ' ';
  display: inline-block;
  border: var(--rule);
  width: calc(1em + 2px);
  height: calc(1em + 2px);
  line-height: 0.8;
  margin: 0 0.5em 0 0;
  text-align: center;
}

#prefs input:checked + span::before {
  content: '×';
}
#prefs > label, #prefs > div {
  padding: var(--gap-half) 0;
  display: block;
}


#prefs > label:not(:first-of-type), #prefs > div  {
  border-top: var(--dashed);
}