@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://use.typekit.net/rdh2bcd.css');

html {
	--font-serif: 'meno-banner', Garamond, serif;
	--font-sans-serif: 'Lato', sans-serif;


	--color-dark: #222;
	--color-light: #fefefe;

	--font-size-tiny: 0.75rem;
	--font-size-normal: 1rem;
	--font-size-small: 1.35rem;
	--font-size-medium: 1.5rem;
	--font-size-large: 2.25rem;
	--font-size-huge: 3.3rem;
	--font-size-insane: 5rem;

	--font-size-double: 2rem;

	--color-white: #fff;
	--color-black: #000;

	--color-dark-grey: #707070;
	--color-grey: #8a8b8c;

	--color-accent-primary: #336699;

	--color-accent: #BDAE75;
	--color-accent-transparent: #BDAE7577;

	--color-background: var(--color-white);
	--color-foreground: var(--color-black);

	--spacing: 2rem;

	--spacing-small: 0.5rem;
	--spacing-tiny: calc(0.5 * var(--spacing-small));
	--spacing-medium: calc(2 * var(--spacing-small));
	--spacing-large: calc(2 * var(--spacing-medium));
	--spacing-huge: calc(2 * var(--spacing-large));
	--spacing-insane: calc(2 * var(--spacing-huge));


	/* Some paragraphs are constrained to a certain width */
	--max-p-width: 55ch;

	/*
	Media queries MUST be in this order.

	@media only screen and (min-width: 1400px) { }
	@media only screen and (max-width: 1400px) {  }
	@media only screen and (max-width: 1200px) {  }
	@media only screen and (max-width: 992px) {  }
	@media only screen and (max-width: 767px) {  }
	@media only screen and (max-width: 600px) {  }
	*/

	font-size: 22px;
}

body {
	font-family: var(--font-sans-serif);
	line-height: 1.5;

	background: var(--color-background);
	color: var(--color-foreground);
}

h1 {
	font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -2px;
  line-height: 1.2; }

h2 {
  font-size: 1.75rem; }

h3 {
  font-size: 1.5rem; }

legend {
  margin-bottom: 0.5rem; }

fieldset.optgroup > legend,
label {
  display: block;
  line-height: 1.5;
  font-size: 0.75em;
  opacity: 0.45; }

fieldset:not(.optgroup) {
  margin-top: 2rem;
  margin-bottom: 2rem; }

fieldset.optgroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 1rem;
  margin-bottom: 1rem; }

fieldset.optgroup label {
  display: flex;
  align-items: center;
  opacity: 1;
  font-size: 0.85rem; }

input[type='text'],
input[type='number'],
input[type='password'],
input[type='email'] {
  border: none;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  width: 100%;
  display: block;
  margin-bottom: 1rem;
  outline: none;
  font-size: 1.15em;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all 350ms ease-in; }
  input[type='text']:focus,
  input[type='number']:focus,
  input[type='password']:focus,
  input[type='email']:focus {
    background: linear-gradient(to bottom, transparent 85%, rgba(236, 236, 236, 0.55));
    border-bottom: 1px solid #04A499; }

fieldset:first-of-type {
  margin-top: 0; }

fieldset > *:last-child,
fieldset > *:last-child > *:last-child {
  margin-bottom: 0; }

textarea {
  border: 1px solid #ececec;
  width: 100%;
  min-height: 50vh; }

  button {
	  --background: var(--color-dark);
	  --foreground: var(--color-light);

	  background: var(--background);
	  color: var(--foreground);

	  padding: var(--spacing-tiny) var(--spacing);
	  border: 0px;
	  font-size: 1rem;
	  cursor: pointer;

	  transition: all 200ms ease-out;
  }

  button:hover,
  button:focus {
	  background: var(--color-accent-primary);
  }


body {
  background-image: url(/images/bg.jpg);
  background-position: bottom 25%;
  background-size: cover;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 40vw 1fr;
  min-height: 100vh; }

body > main,
body > header {
	min-width: 400px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
}

body > main,
body > footer {
  padding: 2rem 2rem; }

body > header {
  padding: 8rem 2rem;
  padding-bottom: 2rem; }

body > header, body > main {
  background: #fcfcfc;
  grid-column: 1; }

body > main {
	height: 100%;
}

#brand {
  width: 300px; }

h1 {
  font-size: 1.85rem;
  margin-bottom: 2rem; }
