:root {
	--sh: 0 2px 16px rgba(59, 56, 60, .6); 
	--bg: #fefbf3;
	/*
	choose a ratio 
	*/
  --scale: 1.2;
  /* 
  generate the scale using pow() 
  */
  --xxx-small: calc(1rem * pow(var(--scale), -1));
  --xx-small: calc(1rem * pow(var(--scale), -0.5));
  --x-small: calc(1rem * pow(var(--scale), -0.25));
  --small: calc(1rem * pow(var(--scale), -0.125));
  --medium: 1rem;
  --large: calc(1rem * pow(var(--scale), 1));
  --x-large: calc(1rem * pow(var(--scale), 2));
  --xx-large: calc(1rem * pow(var(--scale), 3));
  --xxx-large: calc(1rem * pow(var(--scale), 4));
	--body-text: clamp(1rem, 0.65rem + 0.5cqi, 1.25rem);  
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'], ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
	margin: 0;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
  font-weight: 400;
}

/* Balance text wrapping on headings */
h1, h2, h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img, picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
/*
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
*/

/* Make sure textareas without a rows attribute are not tiny */
/*
textarea:not([rows]) {
  min-height: 10em;
}
*/

/* Anything that has been anchored to should have extra scroll margin */
/*
:target {
  scroll-margin-block: 5ex;
}
*/

body {
	background: var(--bg);
	/*
	background: radial-gradient(ellipse 50% 65% at 88% 38%,rgba(0,151,167,.15) 0%,transparent 60%), radial-gradient(ellipse 38% 50% at 5% 82%,rgba(0,151,167,.08) 0%,transparent 55%), linear-gradient(155deg,#001528 0%,#002244 40%,#003562 100%); 
	*/
	font-size: var(--body-text);
	font-family: "Lato", sans-serif;
}

ul {
	margin: 1em 0;
	padding: 0;
}

header {
	padding: .5em;
}

footer,
header {
	text-align: center;
	/*
	font-size: 1.5em;
	*/
	font-size: clamp(1em, 2.5vw, 1.6em);
}

main {
	container: main / inline-size; 
}

main p {
	font-size: 1.1em;
	font-size: var(--large);
	margin: 0	0 1lh;
}

footer,
main {
	margin: 0 auto;
	max-width: 60rem;
	padding: 1em;
}

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding-bottom: 1em;
}

h1 {
	margin-top: 0;
}

a {
	transition: all .2s ease-in-out;
}

a:hover, a:active {
	color: #006797;
	text-decoration: none;
}

.fr {
	box-shadow: var(--sh);
	border-radius: .5em;
	margin: 1em auto;
	@container (inline-size > 600px) {
		float: right;
		margin: 1em;
	}
}

.creds {
	font-size: 1.5em;
	font-size: clamp(1.2em, 2.5vw, 1.6em);
}

.xprtc {
	display: grid;
	grid-template-columns: 1fr;
	font-size: 1.2em;
	font-size: var(--x-large);
	/*
	font-weight: 700;
	color: #666;
	*/
	gap: .5em;
	@container (inline-size > 600px) {
		grid-template-columns: 1fr 1fr;
	}
	@container (inline-size > 849px) {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
