@charset "utf-8";

@import url("/css/global/customfonts.css");
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@800&family=Chivo:ital,wght@0,400;0,500;0,700;1,400&display=swap");

:root {
	--system-font:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	--body-font: "Chivo", var(--system-font);
	--label-font: "Archivo", var(--body-font);
	--heading-font: "moranga", Georgia, serif;
	--mono-font: "Fira Mono", monospace;

	--sky: hsl(205, 80%, 67%);
	--bright: hsl(209, 90%, 50%);
	--blue: hsl(209, 100%, 35%);
	--navy: hsl(209, 100%, 20%);
	--red: hsl(0, 90%, 45%);
	--green: hsl(100, 100%, 35%);

	--yellow-100: #fff6cc;
	--yellow-200: #ffefad;
	--yellow-300: #ffe890;
	--yellow-400: #ffe600;
	--yellow-500: #fad500;
	--yellow-600: #edba00;
	--yellow-700: #dba400;
	--yellow-800: #d59900;
	--yellow-900: #ba8900;
	/* https://coolors.co/ffffff-fff6cc-ffefad-ffe890-ffe600-fad500-edba00-dba400-d59900 */

	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #dfe3e9;
	--gray-400: #a1a1aa;
	--gray-450: #838a98;
	--gray-500: #6b7280;
	--gray-600: #52525b;
	--gray-650: #414a5a;
	--gray-700: #3f3f46;
	--gray-900: #111827;

	--back-1: #fff;
	--back-2: var(--gray-100);
	--back-3: var(--gray-200);
	--text-3: var(--gray-450);
	--text-2: var(--gray-600);
	--text-1: var(--gray-900);

	/* --back-1: #fff;
	--back-2: hsl(200, 30%, 96%);
	--back-3: #dbdfe2; */
	/* biome-ignore lint/suspicious/noDuplicateCustomProperties: earlier declaration documents inspiration */
	--text-3: #70859f99;
	--text-2: #556d86dd;
	--text-1: #2d363f;

	--border-1: 2px;
	--border-2: 0.2rem;
	--border: solid var(--blue) var(--border-1);
	--radius: 6px;
	--shadow: 0 0.25rem 0.5rem hsl(from var(--gray-900) h s l / 25%);
	--shadow-inset: inset 0px var(--border-1) calc(var(--border-1) * 2)
		hsl(from var(--gray-900) h s l / 20%);
	--padding: calc(1rem + 1vw);

	--font-size-4: clamp(2.5rem, 2.25em + 1.25vw, 5rem);
	--font-size-3: clamp(1.8rem, 1.3em + 1vw, 2.5rem);
	--font-size-2: clamp(1.2rem, 1.1em + 0.2vw, 1.4rem);
	--font-size-1: clamp(1.05rem, 1.05em + 0.15vw, 1.1rem);
	--font-size: 1rem;
	--font-size-mini: 0.85rem;
	--font-size-micro: clamp(12px, 0.8em, 0.8rem);
	--min-button: 2.5rem;

	--spring-easing: cubic-bezier(0.01, 0.63, 0.16, 1.71);
}

/* RESET STYLES */

* {
	box-sizing: border-box;
	transition-timing-function: ease-out;
	font: inherit;
}

html {
	font-family: var(--body-font);
	font-size: var(--font-size);
	max-width: 100%;
}

body {
	background-color: var(--back-1);
	margin: 0;
}

menu {
	padding-left: 0;
	margin-block: 0;
}

menu > li {
	list-style: none;
}

input:not(:is([type="checkbox"], [type="radio"])),
select,
button,
optgroup,
textarea {
	-webkit-appearance: none;
	appearance: none;
	outline: none !important;
	background: none;
	border: none;
	text-align: inherit;
	display: inline-block;
	padding: 0;
}

a,
button,
.button,
summary {
	cursor: pointer;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6,
small,
p,
q,
blockquote,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.small,
.p,
.q,
.blockquote {
	line-height: calc(
		0.7rem +
		0.8em
	); /* The larger the font size the less the first number matters. */
	max-width: calc(25rem + 25em);
}

h1,
h2,
.h1,
.h2 {
	font-family: var(--heading-font);
	font-weight: 550;
	margin-block: 1.25em 1rem;
}

h1,
.h1 {
	color: var(--blue);
	font-size: var(--font-size-4);
}

:is(h1, .h1) + :is(h3, .h3) {
	margin-top: 0;
}

h2,
.h2 {
	color: var(--navy);
	font-size: var(--font-size-3);
}

h3,
.h3 {
	--diff: calc(1em - 1rem);
	font-size: var(--font-size-2);
	font-weight: bold;
	margin-top: calc(1em + var(--diff) * 7);
	margin-bottom: calc(0.75rem + var(--diff) * 3);
	font-family: var(--body-font);
	color: var(--blue);
}

:is(h1, h2, h3, .h1, .h2, .h3) :is(strong, em) {
	font-style: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-color: var(--sky);
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.15em;
} /* <em> is set so fewer fonts are required. */

.subtitle {
	color: var(--sky);
	font-family: var(--label-font);
	font-size: var(--font-size-1);
	font-weight: 700;
	letter-spacing: 0.15ch !important;
	text-transform: uppercase;
}

p,
.p,
address {
	font-weight: 400;
	color: var(--text);
	font-style: normal;
}

p,
.p {
	font-size: 1rem;
	margin-block: 0.75em;
}

:is(p, .p) + :is(p, .p) {
	margin-block: 1rem;
}

li.p + li.p {
	margin-block: 0.75rem;
}

.deck > li {
	margin-block: 0.5em;
}

p a,
p a:hover {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-thickness: calc(0.06rem + 0.06em);
	text-decoration-color: var(--red);
	text-underline-offset: 0.25em;
	transition-duration: 0.2s;
}
p a:not(:hover) {
	text-decoration-thickness: calc(0.075em);
	text-underline-offset: 0.15em;
	text-decoration-color: var(--text-3);
}

small,
.small,
.dm-in:is(.t, .ta, .s) .label,
.dm-in.c legend.label {
	letter-spacing: 0.02em;
	font-weight: 450;
	font-size: var(--font-size-mini);
	font-family: var(--body-font);
}

.sc {
	font-family: var(--label-font);
	letter-spacing: 0.15ch;
	text-transform: uppercase;
}

.deck {
	font-size: var(--font-size-2);
}

::selection {
	background: hsla(0, 90%, 45%, 85%);
	color: white;
}

span.nb {
	white-space: nowrap;
}

:is(button, .button) > :is(span + [class*="fa-"], [class*="fa-"] + span) {
	margin-left: 0.5em;
}

:where(details) {
	& > :where(summary)::before {
		content: "\276F";
		padding-inline: 0.5rem;
	}

	&:where([open]) > :where(summary)::before {
		transform: rotate(90deg);
	}
}
