/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

ul,
ol {
  list-style: square;
  list-style-position: inside;
}

:root {
  --base: #cfcfcf;
  --text: #1e1e1e;

  --font-size-base: 1rem;
  --font-size-lg: 1.333rem;
  --font-size-xl: 1.777rem;
  --font-size-xxl: 2.369rem;
  --font-size-sm: 0.75rem;
}

@media (min-width: 960px) {
  :root {
    --font-size-base: 1rem;
    --font-size-lg: 1.618rem;
    --font-size-xl: 2.618rem;
    --font-size-xxl: 4.236rem;
    --font-size-sm: 0.75rem;
  }
}

@counter-style hearts {
  system: cyclic;
  symbols: "💙" "🧡" "💚";
  suffix: " ";
}

body {
  font-size: var(--font-size-base);
}

h3 {
  font-size: var(--font-size-lg);
}

h2 {
  font-size: var(--font-size-xl);
}

h1 {
  font-size: var(--font-size-xxl);
}

@media (prefers-color-scheme: dark) {
  :root {
    --base: #1e1e1e;
    --text: #cfcfcf;
  }
}

:root:has(#theme [value="business-light"]:checked) {
  color-scheme: light;
  --base: #cfcfcf;
  --text: #1e1e1e;

  .footer {
    background-color: hsl(from var(--base) h s 75%);
  }
}

:root:has(#theme [value="business-dark"]:checked) {
  color-scheme: dark;
  --base: #1e1e1e;
  --text: #cfcfcf;

  .footer {
    background-color: hsl(from var(--base) h s 25%);
  }
}

:root:has(#theme [value="party-mode"]:checked) {
  --base: rgb(87, 0, 87);
  --text: rgb(101, 188, 199);

  a {
    color: rgb(227, 179, 227);
  }

  font-family: "DynaPuff", system-ui;
  letter-spacing: 1.05;

  .title {
    background-image: linear-gradient(
      to right,
      rgb(254, 172, 94),
      rgb(227, 179, 227),
      rgb(75, 192, 200)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  ul,
  ol {
    list-style-type: hearts;
    list-style-position: inside;
  }

  .footer {
    background-color: hsl(from var(--base) h s 25%);
    color: rgb(227, 179, 227);
  }
}

html {
  color-scheme: dark light;
  height: 100vh;
  font-family: "Consolas", monospace;
}

body {
  color: var(--text);
  background-color: var(--base);
}

input,
select {
  font: inherit;
}

.theme-changer-container {
  text-align: end;
  padding-inline: 2rem;
  padding-block: 1rem;

  @media (max-width: 600px) {
    padding-inline: 2rem;
    padding-block: 1rem;
    font-size: var(--font-size-sm);
  }
}

.main-container {
  padding-inline: 2rem;
  padding-block: 1rem;
  display: flex;
  flex-direction: column;

  @media (max-width: 600px) {
    padding-inline: 1rem;
    padding-block: 0.5rem;
  }
}

.about-container,
.employment-history-container,
.skills-container {
  padding-inline: 1rem;
  padding-block: 0.5rem;

  li {
    padding: 0.25rem;
  }
}

.skills,
.title {
  padding-block: 0.5rem;
}

.links,
.job-description {
  padding-block: 0.5rem;
}

.description,
.job-description {
  font-style: italic;
  font-size: var(--font-size-base);
  line-height: 1.2;
}

.footer {
  width: 100%;
  margin-top: auto;
  position: fixed;
  bottom: 0;
  padding-inline: 1rem;
  padding-block: 0.5rem;

  p {
    text-align: center;
    font-size: var(--font-size-sm);
  }

  @media (max-width: 600px) {
    display: none;
  }
}

/* todo: fix spacing */
