body {
  background-color: #121212;
  color: #33FF33;
}
a:link {
  color: #4AFF00;
}
a:visited {
  color: #4AFF00;
}
a:hover {
  color: #FFB700;
}
a:active {
  color: #FFB000;
}

/*
	:root {
	  --bg: #f5f7fa;
	  --surface: #ffffff;
	  --text: #1f2937;
	  --muted: #6b7280;
	  --border: #d1d5db;
	  --accent: #2563eb;
	  --footer-bg: #111827;
	  --footer-text: #f9fafb;
	}
*/

:root {
  --bg: #121212;
  --surface: #121212;
  --text: #4AFF00;
  --muted: #33FF33;
  --border: #FFB000;
  --accent: #FFB700;
  --footer-bg: #121212;
  --footer-text: #FFB700;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--accent);
}

/* Top header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.primary-nav ul,
.auth-nav ul,
.secondary-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.primary-nav {
  justify-self: flex-start;
}

.auth-nav {
  justify-self: flex-end;
}

.auth-nav .button {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.auth-nav .button-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.auth-nav .button-primary:hover {
  color: var(--bg);
  filter: brightness(0.95);
}

/* Main three-column layout */

.page-layout {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr) minmax(220px, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.secondary-nav,
main,
aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.secondary-nav {
  grid-column: 1;
}

.secondary-nav ul {
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

main {
  grid-column: 2;
  min-width: 0;
}

aside {
  grid-column: 3;
}

h1,
h2 {
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Forms */
form {
  border-radius: 5px;
  background-color: var(--surface: #121212);
  padding: 20px;
}

label {display: block;}

button, input, textarea, select {
  padding: 12px;
  margin: 8px 0;
  width: 100%;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--muted);
  display: inline-block;
}

input[type=text], select {
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: var(--bg);
}


/* Main content card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
}

.profile-photo {
  width: 25%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border);
  border-radius: 0.6rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.profile-card p {
  margin-bottom: 0;
}

.profile-meta {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text);
}

.meeting-button {
  width: 100%;
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.meeting-button:hover {
  filter: brightness(0.95);
}

/* Server */
.server {
  width: 70rem;
  height: 70rem;
  display: inline-block;
}

/* Footer */

.site-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* Card grid responsiveness */

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet layout */

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .secondary-nav {
    grid-column: 1;
  }

  main {
    grid-column: 2;
  }

  aside {
    grid-column: 1 / -1;
  }
}

/* Mobile layout */

@media (max-width: 650px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav ul,
  .auth-nav ul {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .page-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .secondary-nav,
  main,
  aside {
    grid-column: 1;
  }

  .secondary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
