/**
 * Millco Base CSS.
 * and definitions.
 */

 :root{
    
  --theme: #96d4cc;
  --accent: #FA9F27;

  --dark: #273331;

  --grey-dark: hsl(0, 0%, 15%);
  --grey-mid: hsl(0, 0%, 25%);
  --grey-light: hsl(0, 0%, 50%);

  --grey-very-light: #EBEBEB;
  --pale: #FFF3E5;
  --buff: #FFF3E5;
  --white: #FFF3E5;

	--about: #FF541F;

  --grey: #C4C8D0;

  --green: #70c642;
  --purple: #0b0246;
  --red: #E03000;
  --orange: #FF541F;
  --yellow: #FA9F27;
  --blue: #96d4cc;
  --blue-light: #96d4cc;
  --mauve: #7268AB;
  --pink: #E84DA1;

  --transition: all 0.3s ease-in-out;

  --light: 200;
  --text-regular: 200;
  --strong: 700;
  --bold: 600;
  --heavy: 700;


  --text-measure: 52ch;
  --shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.40);


      /* Modern Font Stacks */

/* System */
/* font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; */

/* Times New Roman-based serif */
/* font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; */

/* A modern Georgia-based serif */
/* font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; */

/*A more traditional Garamond-based serif */
/* font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif; */

/*The Helvetica/Arial-based sans serif */
/* font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif; */

/*The Verdana-based sans serif */
/* font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif; */

/*The Trebuchet-based sans serif */
/* font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif; */

/*The heavier "Impact" sans serif */
/* font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif; */

/*The monospace */
/* font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; */

--heading-font: 'Teko', Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;;

--font-sans: 'Teko', system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;;

--font-serif: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;

--font-condensed: 'Teko', Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif;

/*=============================
 Fluid Type sizes from
 https://utopia.fyi/
=============================*/

  /* @link https://utopia.fyi/type/calculator?c=320,16,1.333,1240,24,1.333,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

  --step--2: clamp(0.75rem, 0.46rem + 0.49vw, 0.84rem);
  --step--1: clamp(0.875rem, 0.62rem + 0.65vw, 1.13rem);
  --step-0: clamp(1.00rem, 0.83rem + 0.87vw, 1.50rem);
  --step-05: clamp(1.00rem, 1rem + 1.0vw, 1.75rem);
  --step-1: clamp(1.33rem, 1.10rem + 1.16vw, 2.00rem);
  --step-2: clamp(1.78rem, 1.47rem + 1.55vw, 2rem);
  --step-3: clamp(2.37rem, 1.96rem + 2.06vw, 56px);
  --step-40: clamp(2.37rem, 1.96rem + 2.06vw, 40px);
  --step-4: clamp(3.16rem, 2.61rem + 2.75vw, 4.74rem);
  --step-5: clamp(4.21rem, 3.48rem + 3.66vw, 106px);



/* Current (v5.0) Boostrap breakpoints are 
	X-Small 	None 	<576px
	Small 	sm 	≥576px
	Medium 	md 	≥768px
	Large 	lg 	≥992px
	Extra large 	xl 	≥1200px
	Extra extra large 	xxl 	≥1400px
	*/
	--gap-small: 0.5rem;
	--gap-mid: .625rem;
	--gap: 0.75rem;
}

@media (min-width: 768px) {
  :root {
    --gap-small: 0.75rem;
	--gap-mid: 0.875rem;
	--gap: 1rem;
  }
}

@media (min-width: 992px) {
  :root {
	--gap-small: 1rem;
	--gap-mid: 1.5rem;
    --gap: 2rem;
  }
}


/*=============================
  Base Styles
=============================*/
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;

scrollbar-color: var(--theme) var(--dark); /* Two valid colours.
The first applies to the thumb of the scrollbar, the second to the track. */
scroll-behavior: smooth;
}

body {
  font-size: 100%;
  line-height: 1.4;
  color: var(--dark);
  font-weight: 400;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  position:relative;
}

/* oooh can we use view transitions yet? */
@view-transition {
	navigation: auto;
}

/*=============================
  Link
=============================*/
a {
  color:var(--blue);
  transition: var(--transition);
}
a:hover {
  cursor: pointer;
  transition: var(--transition);
}

/*=============================
  List
=============================*/
ul,
ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 0;
  list-style-position: inside;
}
ul li,
ol li {
  margin-bottom: 16px;
}
ul li:last-child,
ol li:last-child {
  margin-bottom: 0;
}
ul ul,
ol ul,
ul ol,
ol ol {
  margin-left: 1rem;
}

/*=============================
  Image
=============================*/

picture{
	display: block;
}

img {
	display: inline-block;
  margin-top: 0;
  max-width: 100%;
  height: auto;
}

.img-fluid{
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.img-full-width{
  display: inline-block;
  width: 100%;
  height: auto;
}

figure{
  margin:0;
  margin-bottom: 1rem;
}

figure img,
svg{
  vertical-align: bottom;/* get rid of space for descender */
}

figcaption{
  background-color:var(--dark);
  color: var(--pale);
  padding:0.5rem;
  font-size:var(--step--1);
}

/*=============================
  Components
=============================*/

.alert{
  display: inline-block;
  margin: auto;
  padding:0.5rem;
  padding-left: 28px;
  border:2px solid hsl(349,100%,95%);
  background-color: hsl(349,100%,63%);
  color: white;
  border-radius: 0.5rem;
  position: relative;;
}

.alert::before {
	content: '!';
	color: hsl(349,100%,63%);
	background-color: white;
	width: 16px;
	height: 16px;
	position: absolute;
	top: 11px;
	left: 6px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.box {
  margin-bottom: 16px;
  padding-top: 16px;
  padding-right: 16px;
  padding-left: 16px;
  border: 1px solid #a7a7a7;
  border-radius: 2px;
}

.edit-link{
  position:fixed;
  width:40px;
  top:120px;
  bottom:auto;
  right:0;
  border:2px solid #ccc;
  background-color: var(--dark);
  padding:4px;
  color:white;
  text-decoration: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 2px 2px 4px #666;
  font-size:0.9rem;

}

.edit-link:hover{
  background-color: #ccc;
  color: var(--dark);
}


/*=============================
  Card
=============================*/
.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  border: 1px solid #a7a7a7;
  border-radius: 2px;
}
.card .card-content {
  margin: 0;
  padding: 16px;
}
.card .card-image {
  display: block;
  height: auto;
  width: 100%;
}

/*=============================
  Code
=============================*/
pre {
  margin-top: 0;
  margin-bottom: 16px;
}
pre code {
  display: block;
  padding: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
code {
  padding: 2px;
  white-space: nowrap;
  background: #e7e7e7;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  font-family: "Consolas", "Monaco", "Menlo", monospace;
}

/*=============================
  Fills
=============================*/

.fill-dark{
  fill:var(--dark);
}

.fill-pale{
  fill:var(--pale);
}

.fill-theme{
  fill:var(--theme);
}

.fill-none{
  fill:none;
}

.fill-white{
  fill:white;
}

/*=============================
  Divider
=============================*/
hr{
  border: 0;
  height: 2px;
  background: var(--accent);
  margin:8px 0;
}

/*=============================
  Padding and margins
=============================*/

.p-1{padding:1rem;}
.pl-1{padding-left:1rem;}
.pr-1{padding-right:1rem;}
.pt-1{padding-top:1rem;}
.pb-1{padding-bottom:1rem;}

.p-2{padding:2rem;}
.pl-2{padding-left:2rem;}
.pr-2{padding-right:2rem;}
.pt-2{padding-top:2rem;}
.pb-2{padding-bottom:2rem;}

.p-4{padding:4rem;}
.pl-4{padding-left:4rem;}
.pr-4{padding-right:4rem;}
.pt-4{padding-top:4rem;}
.pb-4{padding-bottom:4rem;}

.m-auto{margin-left:auto; margin-right: auto;}

.m-0{margin:0rem;}
.ml-0{margin-left:0rem;}
.mr-0{margin-right:0rem;}
.mt-0{margin-top:0rem;}
.mb-0{margin-bottom:0rem;}

.m-1{margin:1rem;}
.ml-1{margin-left:1rem;}
.mr-1{margin-right:1rem;}
.mt-1{margin-top:1rem;}
.mb-1{margin-bottom:1rem;}

.m-2{margin:2rem;}
.ml-2{margin-left:2rem;}
.mr-2{margin-right:2rem;}
.mt-2{margin-top:2rem;}
.mb-2{margin-bottom:2rem;}

.m-4{margin:4rem;}
.ml-4{margin-left:4rem;}
.mr-4{margin-right:4rem;}
.mt-4{margin-top:4rem;}
.mb-4{margin-bottom:4rem;}

.mt-auto{margin:auto;}
.m_auto{margin:auto;}

@media screen and (min-width: 768px) {
  .p-lg-0{
    padding:0;
  }
}


/*=============================
  Display and hidden
=============================*/

.desktop-only-block,
.desktop-only-flex{
  display:none;
}

@media screen and (min-width: 768px) {

  .desktop-only-block{
    display: flex;
  }
  .desktop-only-flex{
    display: flex;
  }
}


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

/*=============================
  Tables
=============================*/

.table-wrapper{
  max-width: 100%;
  overflow-x: auto;
}

.table-wrapper > table{
  min-width:360px;
}

table { 
  width: 100%; 
  border-collapse: collapse;
  margin:1rem 0 2rem 0;
}

/* Zebra striping */
tr:nth-of-type(odd) { 
  background: var(--pale);
  color: var(--dark) 
}

td, th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left;
  font-size:0.875rem;
}

th { 
  background: var(--theme);
  color:var(--pale); 
  font-weight: bold;
  text-transform: uppercase;
}
