@import url('https://fonts.googleapis.com/css2?family=Caudex&family=Proza+Libre:wght@400;600&display=swap');

:root {
	color-scheme: light dark;
  --primary-color: #354F50;
  --secondary-color: #B2B0BF;
	--accent-primary-color: #BFFF00;
	--accent-secondary-color: #9590B5;
}

[data-theme="light"] {
  --primary-color: #354F50;
  --secondary-color: #B2B0BF;
	--accent-primary-color: #BFFF00;
	--accent-secondary-color: #9590B5;
}

[data-theme="dark"] {
  --primary-color: #9590B5;
  --secondary-color: #2E3838; /* 204050 */
	--accent-primary-color: #BFFF00;
	--accent-secondary-color: #354F50;
}

@media (prefers-color-scheme: dark) {
	:root {
		--primary-color: #9590B5;
	  --secondary-color: #2E3838; /* 204050 */
		--accent-primary-color: #BFFF00;
		--accent-secondary-color: #354F50;
	}

	[data-theme="light"] {
	  --primary-color: #354F50;
	  --secondary-color: #B2B0BF;
		--accent-primary-color: #BFFF00;
		--accent-secondary-color: #9590B5;
	}

	[data-theme="dark"] {
	  --primary-color: #9590B5;
	  --secondary-color: #2E3838; /* 204050 */
		--accent-primary-color: #BFFF00;
		--accent-secondary-color: #354F50;
	}
}

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

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd,
svg {
  margin: 0;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/*
article > * + * {
  margin-top: 1em;
}
*/

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- */

html {
	font-size: 16px;
	background-color: var(--secondary-color);
}

body {
	font-family: 'Proza Libre', sans-serif;
	font-size: 1.0625rem;
	color: var(--primary-color);
}

article {
	padding: max(5vw, 5vh) 5vw;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em 0;
	font-weight: 400;
	line-height: 1.25;
}

h1 {
	font-size: 2.125rem;
	font-family: 'Caudex', serif;
	line-height: 1.125;
}

p {
	max-width: 64ch;
}

a {
	color: inherit;
}

header {
	padding: 0 5vw max(5vw, 5vh);
	background-color: var(--accent-secondary-color);
	height: calc(50vh - 10vw - 48px);
  min-height: -moz-fit-content;
  min-height: fit-content;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

header h1 {
	font-size: clamp(2.125rem, 4vw, 3.1875rem); /* 34 - 51 */
}

header p, header h2 {
	font-size: 1.375rem;
}

header h1, header p {
	max-width: clamp(42.5vw, calc(1200px - 100%), 90vw);
}

blockquote {
	max-width: 48ch;
}

blockquote p {
	margin-bottom: .5em;
}

section {
	margin-bottom: max(5vw, 5vh);
}

code {
	font-family: menlo, inconsolata, monospace;
	font-size: calc(1em - 2px);
	color: #555;
	background-color: #f0f0f0;
	padding: 0.2em 0.4em;
	border-radius: 2px;
}

@media (min-width: 400px) {
	body {
		font-size: 16px;
	}
}
