/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
 @import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500&family=Playfair+Display&display=swap');

 /* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

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

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

a {
  text-decoration: none;
}

input, textarea {
  margin: 0;
  border: none;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 100%;
}

textarea {
  resize: none;
}

select {
  margin: 0;
}

button {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  /* show a hand cursor on hover; some argue that we
  should keep the default arrow cursor for buttons */
  cursor: pointer;
}


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

img {
  height: auto;
  max-width: 100%;

}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

   body {
    color: #222;
    padding-top: 2rem;
    font-family: "Graphik Regular", Arial, sans-serif;
  }



  :root {
    /* body font size */
    --text-base-size: 1rem;
    --text-scale-ratio: 1.25;
    --text-size-small: .875rem;
    --text-size-xsmall: .75rem;
    /* type scale */
    --text-x1: calc(var(--text-base-size) * var(--text-scale-ratio));
    --text-x2: calc(var(--text-x1) * var(--text-scale-ratio));
    --text-x3: calc(var(--text-x2) * var(--text-scale-ratio));
    --text-x4: calc(var(--text-x3) * var(--text-scale-ratio));
    --text-x5: calc(var(--text-x4) * var(--text-scale-ratio));
    --text-x6: calc(var(--text-x5) * var(--text-scale-ratio));
  }
  
  @media (min-width: 30em) {
    :root {
      --text-base-size: 1.125rem;
      --text-scale-ratio: 1.333;
      --text-size-small: 1rem;
      --text-size-xsmall: .813rem;
      /* type scale */
      --text-x1: calc(var(--text-base-size) * var(--text-scale-ratio));
      --text-x2: calc(var(--text-x1) * var(--text-scale-ratio));
      --text-x3: calc(var(--text-x2) * var(--text-scale-ratio));
      --text-x4: calc(var(--text-x3) * var(--text-scale-ratio));
      --text-x5: calc(var(--text-x4) * var(--text-scale-ratio));
      --text-x6: calc(var(--text-x5) * var(--text-scale-ratio));
    }
  }

main {
  background: #fff;  
  width: 80vw;
  margin: 0 auto;
}

article {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  
  grid-template-rows: auto;  
  gap: 1rem;
}

.type-grid {
  display: grid;
  grid-template-columns: auto;  
  grid-template-rows: auto;  
  gap: 1rem;
}

@media (min-width: 30em) {
  .type-grid {
    display: grid;
    grid-template-columns: 2fr 8fr;  
    grid-template-rows: auto;  
    gap: 1rem;
  }
}

section {
  padding:1rem;
}

nav ul {
  display: flex;
  background-color: #222;
  padding:1rem;
  flex-direction: row-reverse;
}

nav li {
  flex: auto ;
  padding:1rem;
  margin:1rem;
  background-color: #f5f5f5;
}

.box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 200px;
  padding:1rem;
  margin:1rem;
  background-color: #f5f5f5;
  border: 1px solid #999; 
}
.box>*:first-child {
    align-self: stretch;
}
.box .selected {
    align-self: center;
}

.flex-item {
  padding:1rem;
  margin:1rem;
  background-color: yellow;
  border: 1px solid #999; 
}


p {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base-size);
  margin-bottom: 1 rem;
  line-height: 150%;
}

.typescale-x6 {
  font-size: var(--text-x6);
}

.typescale-x5 {
  font-size: var(--text-x5);
}

.typescale-x4 {
  font-size: var(--text-x4);
}

.typescale-x3 {
  font-size: var(--text-x3);
}

.typescale-x2 {
  font-size: var(--text-x2);
}

.typescale-x1 {
  font-size: var(--text-x1);
}

.typescale-base {
  font-size: var(--text-base-size);
  line-height: 150%;
}

.typescale-small {
  font-size: var(--text-size-small);
  line-height: 150%;
}

.typescale-xsmall {
  font-size: var(--text-size-xsmall);
  line-height: 150%;
}

.all-caps {
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eye-brow {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: var(--text-base-size);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--text-x6);
  line-height: 110%;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-weight: 700;
}

h2 {
  font-size: var(--text-x5);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  line-height: 110%;
  font-weight: 700;
}

h3 {
  font-size: var(--text-x4);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  line-height: 120%;
  font-weight: 700;
}

h4 {
  font-size: var(--text-x3);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  line-height: 120%;
  font-weight: 700;
}

h5 {
  font-size: var(--text-x2);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  line-height: 120%;
  font-weight: 700;
}

h6 {
  font-size: var(--text-x1);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  line-height: 120%;
  font-weight: 700;
}

.core-lab-sans-medium {
  font-family: 'Jost', sans-serif; 
  font-weight: 500;
  line-height: 100%;

}

.core-lab-sans {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 100%;

}

.core-lab-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 100%;

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
