@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900');
@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800');

:root {
  --text-color: 29, 29, 29;
  --background-color: 235, 235, 235;
  --primary-color: 191, 191, 191;
  --secondary-color: 67, 67, 67;
  --accent-color: 249, 216, 104;

  --text: rgb(var(--text-color));
  --background: rgb(var(--background-color));
  --primary: rgb(var(--primary-color));
  --secondary: rgb(var(--secondary-color));
  --accent: rgb(var(--accent-color));
}

/* DEFAULT STYLES */
body {
  width: 21cm;
  height: 29.7cm;
  margin: auto;
  box-sizing: border-box;
  background: var(--background);
  
  color: var(--text);
  font-family: 'Montserrat';
  font-weight: 400;
}

h1, h2, h3, h4, h5, p, a, ul, li {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: var(--text);
}

h1, h2, h3, h4, h5 {
  font-family: 'Parkinsans';
  font-weight: 600;
}

h1 {
  width: fit-content;
  font-size: 2.15rem;
  color: var(--secondary);

  margin-bottom: 0.2rem;
  border-bottom: 2px solid var(--secondary);
}
h2 {
  width: fit-content;
  font-size: 1.25rem;
  font-variant: small-caps;
  color: var(--secondary);
}
h3 {
  font-size: 1.05rem;
  font-variant: small-caps;
  color: var(--secondary);
}
h4 {
  font-size: 0.975rem;
  font-variant: small-caps;
  letter-spacing: 0.01rem;
}
h5 { font-size: 0.8rem; }
a, p, span { font-size: 0.785rem; }
p {
  letter-spacing: 0.0025rem;
}
span[data-translatable] { font-size: inherit; }
small {
  font-size: 0.7rem;
  font-weight: 500;
}

.motto { font-size: 0.7rem; }

a:hover, a:focus {
  color: rgba(var(--secondary-color), 0.85);
  text-decoration: underline;
}

/* LIST STYLES */
ul {
  padding: 0.45rem 0.5rem;

  display: flex;
  flex-direction: column;
  row-gap: 0.4rem;
}
ul > li {
  display: flex;
  flex-direction: column;
  row-gap: 0.15rem;
  list-style-type: none;
}
ul > li > p {
  padding: 0 0.4rem;
}

ul.sublist {
  display: flex;
  flex-direction: column;
  row-gap: 0.35rem;
}
ul.sublist > li > p {
  font-size: 0.8rem;
  font-weight: 500;
}

/* CUSTOM HEADINGS */
h1 + .subheading {
  font-size: 90%;
  font-weight: 600;
  font-variant: small-caps;
  text-align: center;
}

.sublist-heading {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
}
.sublist-heading > h3 {
  text-decoration: overline;
}

.heading-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}
.heading-date {
  font-style: italic;
  text-align: end;
  flex: 1;
}
.source {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  column-gap: 0.5rem;
}

/* LAYOUT */
header {
  padding: 0.85rem 1.5rem;

  display: flex;
  justify-content: space-around;
  align-items: center;
  column-gap: 1rem;

  border-bottom-left-radius: 2.25rem;
  border-bottom-right-radius: 2.25rem;
  background: rgba(var(--primary-color), 0.25);
  box-shadow: 2px 6px 8px -2px rgba(var(--primary-color), 0.35);
}

main {
  padding: 1.15rem 1rem;
  padding-bottom: 0.5rem;
  display: flex;
  position: relative;
}

main > .sidebar {
  width: 33%;
  padding-right: 1rem;

  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;

  border-right: 2px solid rgba(var(--secondary-color), 0.4);
}
main > .content {
  width: 67%;
  padding-left: 1rem;

  display: flex;
  flex-direction: column;
  row-gap: 0.3rem;
}

/* ICONS */
.icon-sm {
  width: 0.85rem;
  height: 0.85rem;
}
.icon-md {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.15rem;
}
.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;

  padding: 0.25rem;
  border-radius: 0.5rem;
  background: rgba(var(--accent-color), 0.35);
}
.icon-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 0.2rem;
}

/* UTILS */
.indent-border {
  padding-left: 0.5rem;
  border-radius: 0.2rem;
  border-left: 0.2rem solid rgba(var(--secondary-color), 0.25);
}
.bg-heading {
  background: rgba(var(--accent-color), 0.7);
  box-shadow: 1px 5px 8px -2px rgba(var(--accent-color), 0.3);
}
.border-md {
  padding: 0.05rem 0.8rem;
  border-radius: 0.7rem;
}
.border-lg {
  width: fit-content;
  padding: 0.6rem 1.85rem;
  border-radius: 1.5rem;
}

/* INTRODUCTION */
#intro {
  display: flex;
  flex-direction: column;
  row-gap: 0.6rem;
  flex: 1;

  padding-left: 1.25rem;

  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  border-left: 0.25rem solid rgba(var(--secondary-color), 0.25);
}
#intro > p {
  font-weight: 500;
  letter-spacing: 0.04rem;
}
.avatar {
  height: 9.25rem;
  width: 9.25rem;
  flex: none;
}
.avatar > img {
  width: 100%;
  height: 100%;

  border-radius: 3.5rem;
  border-color: var(--secondary);
  background: var(--primary);

  box-shadow: 0 20px 25px -5px rgba(var(--secondary-color), 0.4);
}

/* SALARY */
#salary {
  display: none;
}
