/* css reset */

/* 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;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* fonts */
html {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
}

/* colors */
:root {
  --primary-color: #aa67c7;
  --background-color: #e0c7eb;
  --card-color: #f1e9f5;
}

/* styling */
.container {
  display: grid;
  grid-template-rows: 1fr 5fr;
  grid-template-columns: 1fr 4fr;
}

a:link,
a:focus,
a:visited {
  color: inherit;
  text-decoration: none;
}

.avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.primary {
  height: 52px;
  width: 52px;
}

.admin {
  background-image: url("assets/images/osaka-pfp.jpg");
  background-size: cover;
  background-position: center;
}

img[class="icon"] {
  height: 20px;
}

.header,
.navbar,
.main {
  padding: 1.4em;
}

.header {
  grid-row: 1;
  grid-column: 2 / -1;
  background-color: var(--card-color);

  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: 2fr 1fr;
}

.search,
.notification-and-profile > li,
.heading span,
.heading h1,
.actions li {
  align-self: center;
}

.search input,
.actions button {
  border: none;
  padding: 0.4em;
}

.search input,
.actions button,
.project-card {
  border-radius: 8px;
}

.search label {
  display: flex;
  gap: 0.5em;
}

.search input {
  width: 100%;
  background-color: var(--background-color);
}

.notification-and-profile {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
}

.notification-and-profile > li {
  justify-self: center;
}

.notification-and-profile > li:first-of-type {
  justify-self: right;
}

.heading {
  display: grid;
  grid-template-columns: 1fr 6fr;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.actions button {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--card-color);
}

.navbar {
  grid-row: 1 / -1;
  grid-column: 1;

  display: grid;
  grid-template-rows: repeat(3, min-content);
  gap: 24px;

  background-color: var(--primary-color);
  color: var(--card-color);
}

.navbar li {
  margin-bottom: 1em;
}

.navbar > h2,
.navbar > ul:first-of-type {
  align-self: center;
}

.navbar a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(19%) saturate(3014%)
    hue-rotate(201deg) brightness(103%) contrast(92%);
}

.main {
  grid-row: 2 / -1;
  grid-column: 2;
  background-color: var(--background-color);

  display: grid;
  grid-template-rows: repeat(2, min-content);
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}

.main h2 {
  margin-bottom: 0.5em;
}

.project-card,
.announcements > ul,
.trending > ul {
  box-shadow: 2px 2px 4px -3px black;
  background-color: var(--card-color);
  padding: 1.5em 1em;
}

.projects-container {
  grid-row: 1 / -1;
  grid-column: 1;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.project-card {
  display: grid;
  grid-template-rows: 2fr 1fr;
  grid-template-columns: 2fr 1fr;

  background-color: var(--card-color);
  border-left: 8px solid var(--primary-color);
}

.project-card > div {
  grid-column: 1 / -1;
}

.project-card h2 {
  margin-bottom: 0.5em;
}

.project-card > ul {
  grid-row: -2;
  grid-column: 2;
  align-self: flex-end;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-card button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.announcements {
  grid-row: 1;
  grid-column: 2;
}

.announcements h3 {
  margin-bottom: 0.5em;
}

.announcements hr {
  margin: 1.2em 0;
}

.account {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: 1fr 4fr;

  margin-bottom: 1em;
}

.account > span {
  grid-row: 1 / -1;
  grid-column: 1;

  margin-right: 0.4em;
}

.account > h4 {
  margin-bottom: 0.3em;
}

.sakaki {
  background-image: url("assets/icons/face-woman.svg");
  background-size: cover;
  background-position: center;
}

.koyomi {
  background-image: url("assets/images/koyomi-pfp.webp");
  background-size: cover;
  background-position: center;
}

.kagura {
  background-image: url("assets/images/kagura-pfp.jpg");
  background-size: cover;
  background-position: center;
}
