/*@import url("colors.css");
@import url("https://cache.lol/type/gosh/gosh.css");
@import url("https://cache.lol/type/cornbread/cornbread.css");
@import url("https://cache.lol/type/cardinal/regular.css");
@import url("https://cache.lol/type/cardinal/semi-bold.css");
@import url("https://cache.lol/type/cardinal/cardinal.css");
@import url("https://cache.lol/type/honey/honey.css");
@import url("https://cdn.cache.lol/type/berkeley-mono/berkeley-mono.css");
@import url("https://cdn.cache.lol/type/fontawesome-pro/css/all.css");*/

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

:root {
  --step--2: clamp(0.7813rem, 0.6913rem + 0.45vi, 1.04rem);
  --step--1: clamp(0.9375rem, 0.8114rem + 0.6304vi, 1.3rem);
  --step-0: clamp(1.125rem, 0.9511rem + 0.8696vi, 1.625rem);
  --step-1: clamp(1.35rem, 1.113rem + 1.1848vi, 2.0313rem);
  --step-2: clamp(1.62rem, 1.3003rem + 1.5984vi, 2.5391rem);
  --step-3: clamp(1.944rem, 1.5162rem + 2.1388vi, 3.1738rem);
  --step-4: clamp(2.3328rem, 1.7643rem + 2.8426vi, 3.9673rem);
  --step-5: clamp(2.7994rem, 2.0481rem + 3.7561vi, 4.9591rem);
}

/* @link https://utopia.fyi/space/calculator?c=320,18,1.2,1240,26,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|5,s-m&g=s,l,xl,12 */

:root {
  --space-3xs: clamp(0.3125rem, 0.269rem + 0.2174vi, 0.4375rem);
  --space-2xs: clamp(0.5625rem, 0.4755rem + 0.4348vi, 0.8125rem);
  --space-xs: clamp(0.875rem, 0.7446rem + 0.6522vi, 1.25rem);
  --space-s: clamp(1.125rem, 0.9511rem + 0.8696vi, 1.625rem);
  --space-m: clamp(1.6875rem, 1.4266rem + 1.3043vi, 2.4375rem);
  --space-l: clamp(2.25rem, 1.9022rem + 1.7391vi, 3.25rem);
  --space-xl: clamp(3.375rem, 2.8533rem + 2.6087vi, 4.875rem);
  --space-2xl: clamp(4.5rem, 3.8043rem + 3.4783vi, 6.5rem);
  --space-3xl: clamp(5.625rem, 4.7554rem + 4.3478vi, 8.125rem);

  /* One-up pairs */
  --space-3xs-2xs: clamp(0.3125rem, 0.1386rem + 0.8696vi, 0.8125rem);
  --space-2xs-xs: clamp(0.5625rem, 0.3234rem + 1.1957vi, 1.25rem);
  --space-xs-s: clamp(0.875rem, 0.6141rem + 1.3043vi, 1.625rem);
  --space-s-m: clamp(1.125rem, 0.6685rem + 2.2826vi, 2.4375rem);
  --space-m-l: clamp(1.6875rem, 1.144rem + 2.7174vi, 3.25rem);
  --space-l-xl: clamp(2.25rem, 1.337rem + 4.5652vi, 4.875rem);
  --space-xl-2xl: clamp(3.375rem, 2.288rem + 5.4348vi, 6.5rem);
  --space-2xl-3xl: clamp(4.5rem, 3.2391rem + 6.3043vi, 8.125rem);

  /* Custom pairs */
  --space-s-m: clamp(1.125rem, 0.6685rem + 2.2826vi, 2.4375rem);
}

:root {
  --edges: clamp(1rem, -5rem + 20vw, 30rem);
}

:root {
  --border-radius: .1em;
  --button-radius: .5em;
  --border-color: #555;
  --background: rgb(237, 232, 210);
  
  --foreground: #000;
  --gap: 3rem;
  --box-color: #000;
  --box-background: #EBCB8B;
  --box-shadow: #000;
}

*{
  box-sizing: border-box;
}

.caps {
  font-feature-settings: "smcp";
  text-transform: lowercase;
}

body {
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-family: "VC Cornbread", serif;
  font-feature-settings: "ss01";
  font-variant-numeric: lining-nums;
  font-size: var(--step-0);
  line-height: 1.5;
  
  background: var(--background);
  color: var(--foreground);
  
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1.5rem 0;
}

p:last-child {
  margin: 0;
}

i {
  margin-inline-end: 0.3em;
}

p {
  line-height: 1.33em;
}

header {
  padding: .75em var(--edges);
  margin-top: clamp(1rem, -4.9167rem + 10.9333vw, 3rem);
}

main {
  margin: 1.5em var(--edges);
}

footer {
  font-family: "Cardinal", sans-serif;
  font-size: 80%;
  text-align: center;
  margin-bottom: 4em;
}

footer:before {
  margin: 1rem 0;
  content: "\2022 \2022 \2022";
  font-size: var(--step-5);
  text-align: center;
  display: block;
}

footer .flex {
  display: inline-flex;
  align-items: center;
}

footer .box {
  background: inherit;
  
}

footer nav {
  font-size: 120%;
}

img {
  max-width: 100%;
}

header h1 {
  font-family: "Gosh", sans-serif;
  font-feature-settings: "ss03";
  font-size: var(--step-1);
  margin: 0;
}

header h2 {
  font-family: "Cardinal", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--step-0);
  margin: 0;
}

header a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-family: "Cardinal", sans-serif;
  margin-top: 2.5rem;
}

h3, h4, h5, h6 {
  font-family: "VC Cornbread", serif;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); }
h6 { font-size: var(--step-0); }

code {
  font-family: "Berkeley Mono", monospace;
  font-size: 90%;
}

form {
  display: inline-block;
}

form * {
  font-family: inherit;
  font-size: inherit;
}

fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 0;
  padding: var(--space-xs) var(--space-xs) var(--space-s) var(--space-xs);
}

legend {
  font-size: var(--step-0);
  font-feature-settings: "smcp";
  text-transform: lowercase;
}

label {
  display: block;
  font-family: "VC Cardinal Wide", sans-serif;
  margin: 0 0 .1em 0;
}

input {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: "VC Cardinal Wide", sans-serif;
  padding: var(--space-3xs);
  max-width: 100%;
  background: inherit;
  font-size: 90%;
}

input[type=text], input[type=email], input[type=password] {
  width: 100%;
}

button {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: "VC Cardinal Wide", sans-serif;
  font-weight: 600;
  padding: var(--space-2xs);
  background: var(--foreground);
  color: var(--background);
}

button:hover {
  cursor: pointer;
}

.json {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--border-radius);
  padding: var(--space-s);
}

.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--gap);
  margin: 0 0 2rem 0;
}

.box {
  min-width: 20ch;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  margin-right: 5px;
  border-radius: var(--border-radius);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.box * {
  flex-grow: 1;
  flex-basis: 100%;
}

.basis-10 { flex-basis: 10ch; }
.basis-15 { flex-basis: 15ch; }
.basis-20 { flex-basis: 20ch; }
.basis-25 { flex-basis: 25ch; }
.basis-30 { flex-basis: 30ch; }
.basis-35 { flex-basis: 35ch; }
.basis-40 { flex-basis: 40ch; }
.basis-45 { flex-basis: 45ch; }
.basis-50 { flex-basis: 50ch; }
.basis-55 { flex-basis: 55ch; }
.basis-60 { flex-basis: 60ch; }

.flex-top {
  flex-grow: 1;
  flex-basis: 100%;
}

.flex-bottom {
  padding: 1.5rem 0 .75rem 0;
  align-self: flex-end !important;
}

.flush {
  padding-left: 0;
  padding-right: 0;
}

.shadowed {
  box-shadow: 10px 10px 0px 0px var(--box-shadow);
}

.button, button {
  border: 0;
  background: rgb(214, 161, 0);
  color: #000;
  text-decoration: none;
  font-family: "VC Cardinal Wide", sans-serif;
  font-weight: 500;
  font-size: 85%;
  border-radius: var(--button-radius);
  padding: .3em .5em .4em .5em;
}

.button, button {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: transform 0.1s;
  box-shadow: 0 5px rgba(0, 0, 0, 0.5);
}

.button:active, button:active {
  box-shadow: 0 2px rgba(0, 0, 0, 0.5);
  transform: translateY(3px);
}

@-webkit-keyframes sparkle {
    from {  transform: scale(1); }
    to   {  transform: scale(.9); }
}

.sparkle:hover:before {
  font-family: "Font Awesome 6 Pro";
  font-weight: bold;
  content: "\e5d6";
  color: rgba(255, 215, 0, .8);
  text-shadow: 1px 0 5px rgba(0, 0, 0, 0.5);
  font-size: 2em;
  position: absolute;
  top: -1rem;
  left: -1rem;
  animation: sparkle .3s alternate infinite;
  animation-timing-function: linear;
}

.sparkle:hover:after {
  font-family: "Font Awesome 6 Pro";
  font-weight: bold;
  content: "\f890";
  color: rgba(255, 215, 0, .8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 2em;
  position: absolute;
  bottom: -1rem;
  right: -1.5rem;
  animation: sparkle .2s alternate infinite;
  animation-timing-function: linear;
}

a:link, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration-color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .12em;
}

.message {
  font-size: 90%;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.error {
  background: #b00;
  color: #fff;
}
